Class ListDevicesResponse.Builder (2.42.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.iot.v1.Device>
Returns
Type Description
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
Name Description
value Device
Returns
Type Description
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
Name Description
builderForValue Device.Builder
Returns
Type Description
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
Name Description
index int
value Device
Returns
Type Description
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
Name Description
index int
builderForValue Device.Builder
Returns
Type Description
ListDevicesResponse.Builder

addDevicesBuilder()

public Device.Builder addDevicesBuilder()

The devices that match the request.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
Device.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDevicesResponse build()
Returns
Type Description
ListDevicesResponse

buildPartial()

public ListDevicesResponse buildPartial()
Returns
Type Description
ListDevicesResponse

clear()

public ListDevicesResponse.Builder clear()
Returns
Type Description
ListDevicesResponse.Builder
Overrides

clearDevices()

public ListDevicesResponse.Builder clearDevices()

The devices that match the request.

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

Returns
Type Description
ListDevicesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDevicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListDevicesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListDevicesResponse getDefaultInstanceForType()
Returns
Type Description
ListDevicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
Device.Builder

getDevicesBuilderList()

public List<Device.Builder> getDevicesBuilderList()

The devices that match the request.

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

Returns
Type Description
List<Builder>

getDevicesCount()

public int getDevicesCount()

The devices that match the request.

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

Returns
Type Description
int

getDevicesList()

public List<Device> getDevicesList()

The devices that match the request.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
DeviceOrBuilder

getDevicesOrBuilderList()

public List<? extends DeviceOrBuilder> getDevicesOrBuilderList()

The devices that match the request.

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

Returns
Type Description
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
Type Description
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
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(ListDevicesResponse other)

public ListDevicesResponse.Builder mergeFrom(ListDevicesResponse other)
Parameter
Name Description
other ListDevicesResponse
Returns
Type Description
ListDevicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListDevicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListDevicesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDevicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value Device
Returns
Type Description
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
Name Description
index int
builderForValue Device.Builder
Returns
Type Description
ListDevicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDevicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDevicesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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