Class DeviceConfig.Builder (2.2.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeviceConfig build()
Returns
TypeDescription
DeviceConfig

buildPartial()

public DeviceConfig buildPartial()
Returns
TypeDescription
DeviceConfig

clear()

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

clearBinaryData()

public DeviceConfig.Builder clearBinaryData()

The device configuration data.

bytes binary_data = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeviceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getBinaryData()

public ByteString getBinaryData()

The device configuration data.

bytes binary_data = 4;

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

getDefaultInstanceForType()

public DeviceConfig getDefaultInstanceForType()
Returns
TypeDescription
DeviceConfig

getDescriptorForType()

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

Whether the deviceAckTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
DeviceConfig.Builder

mergeFrom(DeviceConfig other)

public DeviceConfig.Builder mergeFrom(DeviceConfig other)
Parameter
NameDescription
otherDeviceConfig
Returns
TypeDescription
DeviceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceConfig.Builder
Overrides

setBinaryData(ByteString value)

public DeviceConfig.Builder setBinaryData(ByteString value)

The device configuration data.

bytes binary_data = 4;

Parameter
NameDescription
valueByteString

The binaryData to set.

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The version to set.

Returns
TypeDescription
DeviceConfig.Builder

This builder for chaining.