Class DeviceState.Builder (2.4.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeviceState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeviceState.Builder
Overrides

build()

public DeviceState build()
Returns
TypeDescription
DeviceState

buildPartial()

public DeviceState buildPartial()
Returns
TypeDescription
DeviceState

clear()

public DeviceState.Builder clear()
Returns
TypeDescription
DeviceState.Builder
Overrides

clearBinaryData()

public DeviceState.Builder clearBinaryData()

The device state data.

bytes binary_data = 2;

Returns
TypeDescription
DeviceState.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeviceState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeviceState.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeviceState.Builder
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
TypeDescription
DeviceState.Builder

clone()

public DeviceState.Builder clone()
Returns
TypeDescription
DeviceState.Builder
Overrides

getBinaryData()

public ByteString getBinaryData()

The device state data.

bytes binary_data = 2;

Returns
TypeDescription
ByteString

The binaryData.

getDefaultInstanceForType()

public DeviceState getDefaultInstanceForType()
Returns
TypeDescription
DeviceState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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;

Returns
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeviceState other)

public DeviceState.Builder mergeFrom(DeviceState other)
Parameter
NameDescription
otherDeviceState
Returns
TypeDescription
DeviceState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeviceState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceState.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeviceState.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeviceState.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceState.Builder
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
NameDescription
valueTimestamp
Returns
TypeDescription
DeviceState.Builder

setBinaryData(ByteString value)

public DeviceState.Builder setBinaryData(ByteString value)

The device state data.

bytes binary_data = 2;

Parameter
NameDescription
valueByteString

The binaryData to set.

Returns
TypeDescription
DeviceState.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeviceState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeviceState.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeviceState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeviceState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceState.Builder
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
NameDescription
valueTimestamp
Returns
TypeDescription
DeviceState.Builder

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
NameDescription
builderForValueBuilder
Returns
TypeDescription
DeviceState.Builder