public final class DeviceState extends GeneratedMessageV3 implements DeviceStateOrBuilder
The device state, as reported by the device.
Protobuf type google.cloud.iot.v1.DeviceState
Static Fields
BINARY_DATA_FIELD_NUMBER
public static final int BINARY_DATA_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static DeviceState getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static DeviceState.Builder newBuilder()
Returns
newBuilder(DeviceState prototype)
public static DeviceState.Builder newBuilder(DeviceState prototype)
Parameter
Returns
public static DeviceState parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DeviceState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static DeviceState parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static DeviceState parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DeviceState parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DeviceState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DeviceState parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DeviceState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static DeviceState parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<DeviceState> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBinaryData()
public ByteString getBinaryData()
The device state data.
bytes binary_data = 2;
Returns
getDefaultInstanceForType()
public DeviceState getDefaultInstanceForType()
Returns
getParserForType()
public Parser<DeviceState> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns
hasUpdateTime()
public boolean hasUpdateTime()
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public DeviceState.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DeviceState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public DeviceState.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions