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 |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static DeviceState getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DeviceState.Builder newBuilder()
newBuilder(DeviceState prototype)
public static DeviceState.Builder newBuilder(DeviceState prototype)
public static DeviceState parseDelimitedFrom(InputStream input)
public static DeviceState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DeviceState parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DeviceState parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(CodedInputStream input)
public static DeviceState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(InputStream input)
public static DeviceState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DeviceState parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DeviceState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DeviceState> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBinaryData()
public ByteString getBinaryData()
The device state data.
bytes binary_data = 2;
getDefaultInstanceForType()
public DeviceState getDefaultInstanceForType()
getParserForType()
public Parser<DeviceState> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
Timestamp | The updateTime.
|
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;
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DeviceState.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DeviceState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public DeviceState.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides