public static final class ListDevicesResponse.Builder extends GeneratedMessage.Builder<ListDevicesResponse.Builder> implements ListDevicesResponseOrBuilder Response for ListDevices.
Protobuf type google.cloud.iot.v1.ListDevicesResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListDevicesResponse.BuilderImplements
ListDevicesResponseOrBuilderStatic 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 |
|
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 |
|
clearDevices()
public ListDevicesResponse.Builder clearDevices()The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
| Returns | |
|---|---|
| Type | Description |
ListDevicesResponse.Builder |
|
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. |
getDefaultInstanceForType()
public ListDevicesResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListDevicesResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListDevicesResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListDevicesResponse.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListDevicesResponse.Builder |
This builder for chaining. |