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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DeviceState build()
Returns
buildPartial()
public DeviceState buildPartial()
Returns
clear()
public DeviceState.Builder clear()
Returns
Overrides
clearBinaryData()
public DeviceState.Builder clearBinaryData()
The device state data.
bytes binary_data = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public DeviceState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clone()
public DeviceState.Builder clone()
Returns
Overrides
getBinaryData()
public ByteString getBinaryData()
The device state data.
bytes binary_data = 2;
Returns
getDefaultInstanceForType()
public DeviceState getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
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;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DeviceState other)
public DeviceState.Builder mergeFrom(DeviceState other)
Parameter
Returns
public DeviceState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DeviceState.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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
|
Returns