Class ListDeviceSessionsResponse.Builder (0.2.0)

public static final class ListDeviceSessionsResponse.Builder extends GeneratedMessageV3.Builder<ListDeviceSessionsResponse.Builder> implements ListDeviceSessionsResponseOrBuilder

Response message for DirectAccessService.ListDeviceSessions.

Protobuf type google.cloud.devicestreaming.v1.ListDeviceSessionsResponse

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListDeviceSessionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ListDeviceSessionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListDeviceSessionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

clone()

public ListDeviceSessionsResponse.Builder clone()
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListDeviceSessionsResponse getDefaultInstanceForType()
Returns
Type Description
ListDeviceSessionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListDeviceSessionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDeviceSessionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListDeviceSessionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

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 String

The 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 ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDeviceSessionsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListDeviceSessionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDeviceSessionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDeviceSessionsResponse.Builder
Overrides