Class ListDeviceStatesResponse (2.13.0)

public final class ListDeviceStatesResponse extends GeneratedMessageV3 implements ListDeviceStatesResponseOrBuilder

Response for ListDeviceStates.

Protobuf type google.cloud.iot.v1.ListDeviceStatesResponse

Static Fields

DEVICE_STATES_FIELD_NUMBER

public static final int DEVICE_STATES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListDeviceStatesResponse getDefaultInstance()
Returns
TypeDescription
ListDeviceStatesResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ListDeviceStatesResponse prototype)

public static ListDeviceStatesResponse.Builder newBuilder(ListDeviceStatesResponse prototype)
Parameter
NameDescription
prototypeListDeviceStatesResponse
Returns
TypeDescription
ListDeviceStatesResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ListDeviceStatesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDeviceStatesResponse

getDeviceStates(int index)

public DeviceState getDeviceStates(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceState

getDeviceStatesCount()

public int getDeviceStatesCount()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
int

getDeviceStatesList()

public List<DeviceState> getDeviceStatesList()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
List<DeviceState>

getDeviceStatesOrBuilder(int index)

public DeviceStateOrBuilder getDeviceStatesOrBuilder(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceStateOrBuilder

getDeviceStatesOrBuilderList()

public List<? extends DeviceStateOrBuilder> getDeviceStatesOrBuilderList()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 ListDeviceStatesResponse.Builder newBuilderForType()
Returns
TypeDescription
ListDeviceStatesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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