Class ListDevicesResponse.Builder (2.36.0)

public static final class ListDevicesResponse.Builder extends GeneratedMessageV3.Builder<ListDevicesResponse.Builder> implements ListDevicesResponseOrBuilder

Response for ListDevices.

Protobuf type google.cloud.iot.v1.ListDevicesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDevices(Iterable<? extends Device> values)

public ListDevicesResponse.Builder addAllDevices(Iterable<? extends Device> values)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.iot.v1.Device>
Returns
TypeDescription
ListDevicesResponse.Builder

addDevices(Device value)

public ListDevicesResponse.Builder addDevices(Device value)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
valueDevice
Returns
TypeDescription
ListDevicesResponse.Builder

addDevices(Device.Builder builderForValue)

public ListDevicesResponse.Builder addDevices(Device.Builder builderForValue)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
builderForValueDevice.Builder
Returns
TypeDescription
ListDevicesResponse.Builder

addDevices(int index, Device value)

public ListDevicesResponse.Builder addDevices(int index, Device value)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameters
NameDescription
indexint
valueDevice
Returns
TypeDescription
ListDevicesResponse.Builder

addDevices(int index, Device.Builder builderForValue)

public ListDevicesResponse.Builder addDevices(int index, Device.Builder builderForValue)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameters
NameDescription
indexint
builderForValueDevice.Builder
Returns
TypeDescription
ListDevicesResponse.Builder

addDevicesBuilder()

public Device.Builder addDevicesBuilder()

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Returns
TypeDescription
Device.Builder

addDevicesBuilder(int index)

public Device.Builder addDevicesBuilder(int index)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Device.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListDevicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

build()

public ListDevicesResponse build()
Returns
TypeDescription
ListDevicesResponse

buildPartial()

public ListDevicesResponse buildPartial()
Returns
TypeDescription
ListDevicesResponse

clear()

public ListDevicesResponse.Builder clear()
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

clearDevices()

public ListDevicesResponse.Builder clearDevices()

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Returns
TypeDescription
ListDevicesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDevicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

clearNextPageToken()

public ListDevicesResponse.Builder clearNextPageToken()

If not empty, indicates that there may be more devices that match the request; this value should be passed in a new ListDevicesRequest.

string next_page_token = 2;

Returns
TypeDescription
ListDevicesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListDevicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

clone()

public ListDevicesResponse.Builder clone()
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListDevicesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDevicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDevices(int index)

public Device getDevices(int index)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Device

getDevicesBuilder(int index)

public Device.Builder getDevicesBuilder(int index)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Device.Builder

getDevicesBuilderList()

public List<Device.Builder> getDevicesBuilderList()

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Returns
TypeDescription
List<Builder>

getDevicesCount()

public int getDevicesCount()

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Returns
TypeDescription
int

getDevicesList()

public List<Device> getDevicesList()

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Returns
TypeDescription
List<Device>

getDevicesOrBuilder(int index)

public DeviceOrBuilder getDevicesOrBuilder(int index)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceOrBuilder

getDevicesOrBuilderList()

public List<? extends DeviceOrBuilder> getDevicesOrBuilderList()

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Returns
TypeDescription
List<? extends com.google.cloud.iot.v1.DeviceOrBuilder>

getNextPageToken()

public String getNextPageToken()

If not empty, indicates that there may be more devices that match the request; this value should be passed in a new ListDevicesRequest.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If not empty, indicates that there may be more devices that match the request; this value should be passed in a new ListDevicesRequest.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListDevicesResponse other)

public ListDevicesResponse.Builder mergeFrom(ListDevicesResponse other)
Parameter
NameDescription
otherListDevicesResponse
Returns
TypeDescription
ListDevicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListDevicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListDevicesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDevicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

removeDevices(int index)

public ListDevicesResponse.Builder removeDevices(int index)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListDevicesResponse.Builder

setDevices(int index, Device value)

public ListDevicesResponse.Builder setDevices(int index, Device value)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameters
NameDescription
indexint
valueDevice
Returns
TypeDescription
ListDevicesResponse.Builder

setDevices(int index, Device.Builder builderForValue)

public ListDevicesResponse.Builder setDevices(int index, Device.Builder builderForValue)

The devices that match the request.

repeated .google.cloud.iot.v1.Device devices = 1;

Parameters
NameDescription
indexint
builderForValueDevice.Builder
Returns
TypeDescription
ListDevicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDevicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

setNextPageToken(String value)

public ListDevicesResponse.Builder setNextPageToken(String value)

If not empty, indicates that there may be more devices that match the request; this value should be passed in a new ListDevicesRequest.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListDevicesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDevicesResponse.Builder setNextPageTokenBytes(ByteString value)

If not empty, indicates that there may be more devices that match the request; this value should be passed in a new ListDevicesRequest.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListDevicesResponse.Builder

This builder for chaining.

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

public ListDevicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDevicesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides