Class DeviceConfig.Builder (2.44.0)

public static final class DeviceConfig.Builder extends GeneratedMessageV3.Builder<DeviceConfig.Builder> implements DeviceConfigOrBuilder

The device configuration. Eventually delivered to devices.

Protobuf type google.cloud.iot.v1.DeviceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeviceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeviceConfig.Builder
Overrides

build()

public DeviceConfig build()
Returns
Type Description
DeviceConfig

buildPartial()

public DeviceConfig buildPartial()
Returns
Type Description
DeviceConfig

clear()

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

clearBinaryData()

public DeviceConfig.Builder clearBinaryData()

The device configuration data.

bytes binary_data = 4;

Returns
Type Description
DeviceConfig.Builder

This builder for chaining.

clearCloudUpdateTime()

public DeviceConfig.Builder clearCloudUpdateTime()

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Returns
Type Description
DeviceConfig.Builder

clearDeviceAckTime()

public DeviceConfig.Builder clearDeviceAckTime()

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Returns
Type Description
DeviceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public DeviceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeviceConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeviceConfig.Builder
Overrides

clearVersion()

public DeviceConfig.Builder clearVersion()

[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.

int64 version = 1;

Returns
Type Description
DeviceConfig.Builder

This builder for chaining.

clone()

public DeviceConfig.Builder clone()
Returns
Type Description
DeviceConfig.Builder
Overrides

getBinaryData()

public ByteString getBinaryData()

The device configuration data.

bytes binary_data = 4;

Returns
Type Description
ByteString

The binaryData.

getCloudUpdateTime()

public Timestamp getCloudUpdateTime()

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Returns
Type Description
Timestamp

The cloudUpdateTime.

getCloudUpdateTimeBuilder()

public Timestamp.Builder getCloudUpdateTimeBuilder()

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Returns
Type Description
Builder

getCloudUpdateTimeOrBuilder()

public TimestampOrBuilder getCloudUpdateTimeOrBuilder()

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DeviceConfig getDefaultInstanceForType()
Returns
Type Description
DeviceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDeviceAckTime()

public Timestamp getDeviceAckTime()

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Returns
Type Description
Timestamp

The deviceAckTime.

getDeviceAckTimeBuilder()

public Timestamp.Builder getDeviceAckTimeBuilder()

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Returns
Type Description
Builder

getDeviceAckTimeOrBuilder()

public TimestampOrBuilder getDeviceAckTimeOrBuilder()

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Returns
Type Description
TimestampOrBuilder

getVersion()

public long getVersion()

[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.

int64 version = 1;

Returns
Type Description
long

The version.

hasCloudUpdateTime()

public boolean hasCloudUpdateTime()

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Returns
Type Description
boolean

Whether the cloudUpdateTime field is set.

hasDeviceAckTime()

public boolean hasDeviceAckTime()

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Returns
Type Description
boolean

Whether the deviceAckTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudUpdateTime(Timestamp value)

public DeviceConfig.Builder mergeCloudUpdateTime(Timestamp value)

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
DeviceConfig.Builder

mergeDeviceAckTime(Timestamp value)

public DeviceConfig.Builder mergeDeviceAckTime(Timestamp value)

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
DeviceConfig.Builder

mergeFrom(DeviceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DeviceConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeviceConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceConfig.Builder
Overrides

setBinaryData(ByteString value)

public DeviceConfig.Builder setBinaryData(ByteString value)

The device configuration data.

bytes binary_data = 4;

Parameter
Name Description
value ByteString

The binaryData to set.

Returns
Type Description
DeviceConfig.Builder

This builder for chaining.

setCloudUpdateTime(Timestamp value)

public DeviceConfig.Builder setCloudUpdateTime(Timestamp value)

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
DeviceConfig.Builder

setCloudUpdateTime(Timestamp.Builder builderForValue)

public DeviceConfig.Builder setCloudUpdateTime(Timestamp.Builder builderForValue)

[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.

.google.protobuf.Timestamp cloud_update_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DeviceConfig.Builder

setDeviceAckTime(Timestamp value)

public DeviceConfig.Builder setDeviceAckTime(Timestamp value)

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
DeviceConfig.Builder

setDeviceAckTime(Timestamp.Builder builderForValue)

public DeviceConfig.Builder setDeviceAckTime(Timestamp.Builder builderForValue)

[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.

.google.protobuf.Timestamp device_ack_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DeviceConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DeviceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeviceConfig.Builder
Overrides

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

public DeviceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeviceConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceConfig.Builder
Overrides

setVersion(long value)

public DeviceConfig.Builder setVersion(long value)

[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.

int64 version = 1;

Parameter
Name Description
value long

The version to set.

Returns
Type Description
DeviceConfig.Builder

This builder for chaining.