Class DeviceState.Builder (2.83.0)

public static final class DeviceState.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public DeviceState build()
Returns
Type Description
DeviceState

buildPartial()

public DeviceState buildPartial()
Returns
Type Description
DeviceState

clear()

public DeviceState.Builder clear()
Returns
Type Description
DeviceState.Builder
Overrides

clearBinaryData()

public DeviceState.Builder clearBinaryData()

The device state data.

bytes binary_data = 2;

Returns
Type Description
DeviceState.Builder

This builder for chaining.

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
Type Description
DeviceState.Builder

getBinaryData()

public ByteString getBinaryData()

The device state data.

bytes binary_data = 2;

Returns
Type Description
ByteString

The binaryData.

getDefaultInstanceForType()

public DeviceState getDefaultInstanceForType()
Returns
Type Description
DeviceState

getDescriptorForType()

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeviceState other)

public DeviceState.Builder mergeFrom(DeviceState other)
Parameter
Name Description
other DeviceState
Returns
Type Description
DeviceState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeviceState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceState.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeviceState.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
DeviceState.Builder

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
Type Description
DeviceState.Builder

This builder for chaining.

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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
DeviceState.Builder