public static final class DeviceState.Builder extends GeneratedMessageV3.Builder<DeviceState.Builder> implements DeviceStateOrBuilder
The device state, as reported by the device.
Protobuf type google.cloud.iot.v1.DeviceState
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DeviceState build()
buildPartial()
public DeviceState buildPartial()
clear()
public DeviceState.Builder clear()
Overrides
clearBinaryData()
public DeviceState.Builder clearBinaryData()
The device state data.
bytes binary_data = 2;
clearField(Descriptors.FieldDescriptor field)
public DeviceState.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearUpdateTime()
public DeviceState.Builder clearUpdateTime()
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
clone()
public DeviceState.Builder clone()
Overrides
getBinaryData()
public ByteString getBinaryData()
The device state data.
bytes binary_data = 2;
getDefaultInstanceForType()
public DeviceState getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.
|
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DeviceState other)
public DeviceState.Builder mergeFrom(DeviceState other)
public DeviceState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DeviceState.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeUpdateTime(Timestamp value)
public DeviceState.Builder mergeUpdateTime(Timestamp value)
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
setBinaryData(ByteString value)
public DeviceState.Builder setBinaryData(ByteString value)
The device state data.
bytes binary_data = 2;
Parameter |
---|
Name | Description |
value | ByteString
The binaryData to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUpdateTime(Timestamp value)
public DeviceState.Builder setUpdateTime(Timestamp value)
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
setUpdateTime(Timestamp.Builder builderForValue)
public DeviceState.Builder setUpdateTime(Timestamp.Builder builderForValue)
[Output only] The time at which this state version was updated in Cloud
IoT Core.
.google.protobuf.Timestamp update_time = 1;
Parameter |
---|
Name | Description |
builderForValue | Builder
|