public static final class ListDeviceSessionsResponse.Builder extends GeneratedMessage.Builder<ListDeviceSessionsResponse.Builder> implements ListDeviceSessionsResponseOrBuilderResponse message for DirectAccessService.ListDeviceSessions.
Protobuf type google.cloud.devicestreaming.v1.ListDeviceSessionsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListDeviceSessionsResponse.BuilderImplements
ListDeviceSessionsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDeviceSessions(Iterable<? extends DeviceSession> values)
public ListDeviceSessionsResponse.Builder addAllDeviceSessions(Iterable<? extends DeviceSession> values)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.devicestreaming.v1.DeviceSession> |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
addDeviceSessions(DeviceSession value)
public ListDeviceSessionsResponse.Builder addDeviceSessions(DeviceSession value)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
DeviceSession |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
addDeviceSessions(DeviceSession.Builder builderForValue)
public ListDeviceSessionsResponse.Builder addDeviceSessions(DeviceSession.Builder builderForValue)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DeviceSession.Builder |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
addDeviceSessions(int index, DeviceSession value)
public ListDeviceSessionsResponse.Builder addDeviceSessions(int index, DeviceSession value)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DeviceSession |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
addDeviceSessions(int index, DeviceSession.Builder builderForValue)
public ListDeviceSessionsResponse.Builder addDeviceSessions(int index, DeviceSession.Builder builderForValue)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DeviceSession.Builder |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
addDeviceSessionsBuilder()
public DeviceSession.Builder addDeviceSessionsBuilder()The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Returns | |
|---|---|
| Type | Description |
DeviceSession.Builder |
|
addDeviceSessionsBuilder(int index)
public DeviceSession.Builder addDeviceSessionsBuilder(int index)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeviceSession.Builder |
|
build()
public ListDeviceSessionsResponse build()| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse |
|
buildPartial()
public ListDeviceSessionsResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse |
|
clear()
public ListDeviceSessionsResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
clearDeviceSessions()
public ListDeviceSessionsResponse.Builder clearDeviceSessions()The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
clearNextPageToken()
public ListDeviceSessionsResponse.Builder clearNextPageToken() A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ListDeviceSessionsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDeviceSessions(int index)
public DeviceSession getDeviceSessions(int index)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeviceSession |
|
getDeviceSessionsBuilder(int index)
public DeviceSession.Builder getDeviceSessionsBuilder(int index)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeviceSession.Builder |
|
getDeviceSessionsBuilderList()
public List<DeviceSession.Builder> getDeviceSessionsBuilderList()The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDeviceSessionsCount()
public int getDeviceSessionsCount()The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getDeviceSessionsList()
public List<DeviceSession> getDeviceSessionsList()The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Returns | |
|---|---|
| Type | Description |
List<DeviceSession> |
|
getDeviceSessionsOrBuilder(int index)
public DeviceSessionOrBuilder getDeviceSessionsOrBuilder(int index)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeviceSessionOrBuilder |
|
getDeviceSessionsOrBuilderList()
public List<? extends DeviceSessionOrBuilder> getDeviceSessionsOrBuilderList()The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.devicestreaming.v1.DeviceSessionOrBuilder> |
|
getNextPageToken()
public String getNextPageToken() A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The nextPageToken. |
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes() A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for nextPageToken. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListDeviceSessionsResponse other)
public ListDeviceSessionsResponse.Builder mergeFrom(ListDeviceSessionsResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ListDeviceSessionsResponse |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListDeviceSessionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListDeviceSessionsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
removeDeviceSessions(int index)
public ListDeviceSessionsResponse.Builder removeDeviceSessions(int index)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
setDeviceSessions(int index, DeviceSession value)
public ListDeviceSessionsResponse.Builder setDeviceSessions(int index, DeviceSession value)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DeviceSession |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
setDeviceSessions(int index, DeviceSession.Builder builderForValue)
public ListDeviceSessionsResponse.Builder setDeviceSessions(int index, DeviceSession.Builder builderForValue)The sessions matching the specified filter in the given cloud project.
repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DeviceSession.Builder |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
|
setNextPageToken(String value)
public ListDeviceSessionsResponse.Builder setNextPageToken(String value) A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListDeviceSessionsResponse.Builder setNextPageTokenBytes(ByteString value) A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListDeviceSessionsResponse.Builder |
This builder for chaining. |