Class ListDevicesResponse (2.40.0)

public final class ListDevicesResponse extends GeneratedMessageV3 implements ListDevicesResponseOrBuilder

Response for ListDevices.

Protobuf type google.cloud.iot.v1.ListDevicesResponse

Static Fields

DEVICES_FIELD_NUMBER

public static final int DEVICES_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListDevicesResponse getDefaultInstance()
Returns
TypeDescription
ListDevicesResponse

getDescriptor()

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

newBuilder()

public static ListDevicesResponse.Builder newBuilder()
Returns
TypeDescription
ListDevicesResponse.Builder

newBuilder(ListDevicesResponse prototype)

public static ListDevicesResponse.Builder newBuilder(ListDevicesResponse prototype)
Parameter
NameDescription
prototypeListDevicesResponse
Returns
TypeDescription
ListDevicesResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListDevicesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListDevicesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListDevicesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListDevicesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListDevicesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListDevicesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListDevicesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListDevicesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListDevicesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListDevicesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListDevicesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListDevicesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListDevicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListDevicesResponse> parser()
Returns
TypeDescription
Parser<ListDevicesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ListDevicesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDevicesResponse

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

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.

getParserForType()

public Parser<ListDevicesResponse> getParserForType()
Returns
TypeDescription
Parser<ListDevicesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListDevicesResponse.Builder newBuilderForType()
Returns
TypeDescription
ListDevicesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListDevicesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListDevicesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListDevicesResponse.Builder toBuilder()
Returns
TypeDescription
ListDevicesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException