public static final class DeviceConfig.Builder extends GeneratedMessageV3.Builder<DeviceConfig.Builder> implements DeviceConfigOrBuilder
The device configuration. Eventually delivered to devices.
Protobuf type google.events.cloud.iot.v1.DeviceConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DeviceConfig build()
buildPartial()
public DeviceConfig buildPartial()
clear()
public DeviceConfig.Builder clear()
Overrides
clearBinaryData()
public DeviceConfig.Builder clearBinaryData()
The device configuration data.
bytes binary_data = 4;
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;
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;
clearField(Descriptors.FieldDescriptor field)
public DeviceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public DeviceConfig.Builder clone()
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;
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;
getDefaultInstanceForType()
public DeviceConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
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;
mergeFrom(DeviceConfig other)
public DeviceConfig.Builder mergeFrom(DeviceConfig other)
public DeviceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DeviceConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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;
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
|
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|