public static final class ListDevicesResponse.Builder extends GeneratedMessageV3.Builder<ListDevicesResponse.Builder> implements ListDevicesResponseOrBuilder
Response for ListDevices
.
Protobuf type google.cloud.iot.v1.ListDevicesResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
addDevices(Device value)
public ListDevicesResponse.Builder addDevices(Device value)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addDevicesBuilder()
public Device.Builder addDevicesBuilder()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Returns
addDevicesBuilder(int index)
public Device.Builder addDevicesBuilder(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListDevicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListDevicesResponse build()
Returns
buildPartial()
public ListDevicesResponse buildPartial()
Returns
clear()
public ListDevicesResponse.Builder clear()
Returns
Overrides
clearDevices()
public ListDevicesResponse.Builder clearDevices()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ListDevicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListDevicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListDevicesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListDevicesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDevices(int index)
public Device getDevices(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Parameter
Returns
getDevicesBuilder(int index)
public Device.Builder getDevicesBuilder(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Parameter
Returns
getDevicesBuilderList()
public List<Device.Builder> getDevicesBuilderList()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Returns
getDevicesCount()
public int getDevicesCount()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Returns
getDevicesList()
public List<Device> getDevicesList()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Returns
getDevicesOrBuilder(int index)
public DeviceOrBuilder getDevicesOrBuilder(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListDevicesResponse other)
public ListDevicesResponse.Builder mergeFrom(ListDevicesResponse other)
Parameter
Returns
public ListDevicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListDevicesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListDevicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListDevicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListDevicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListDevicesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides