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