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
Modifier and Type | Method and Description |
---|---|
DeviceConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
DeviceConfig |
build() |
DeviceConfig |
buildPartial() |
DeviceConfig.Builder |
clear() |
DeviceConfig.Builder |
clearBinaryData()
The device configuration data.
|
DeviceConfig.Builder |
clearCloudUpdateTime()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
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.
|
DeviceConfig.Builder |
clearField(Descriptors.FieldDescriptor field) |
DeviceConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
DeviceConfig.Builder |
clearVersion()
[Output only] The version of this update.
|
DeviceConfig.Builder |
clone() |
ByteString |
getBinaryData()
The device configuration data.
|
Timestamp |
getCloudUpdateTime()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
Timestamp.Builder |
getCloudUpdateTimeBuilder()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
TimestampOrBuilder |
getCloudUpdateTimeOrBuilder()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
DeviceConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.
|
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.
|
long |
getVersion()
[Output only] The version of this update.
|
boolean |
hasCloudUpdateTime()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DeviceConfig.Builder |
mergeCloudUpdateTime(Timestamp value)
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
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.
|
DeviceConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
DeviceConfig.Builder |
mergeFrom(DeviceConfig other) |
DeviceConfig.Builder |
mergeFrom(Message other) |
DeviceConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
DeviceConfig.Builder |
setBinaryData(ByteString value)
The device configuration data.
|
DeviceConfig.Builder |
setCloudUpdateTime(Timestamp.Builder builderForValue)
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
DeviceConfig.Builder |
setCloudUpdateTime(Timestamp value)
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
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.
|
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.
|
DeviceConfig.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
DeviceConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
DeviceConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
DeviceConfig.Builder |
setVersion(long value)
[Output only] The version of this update.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DeviceConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DeviceConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DeviceConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder mergeFrom(DeviceConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public DeviceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DeviceConfig.Builder>
IOException
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;
getVersion
in interface DeviceConfigOrBuilder
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;
value
- The version to set.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;
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;
hasCloudUpdateTime
in interface DeviceConfigOrBuilder
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;
getCloudUpdateTime
in interface DeviceConfigOrBuilder
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;
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;
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;
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;
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;
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;
getCloudUpdateTimeOrBuilder
in interface DeviceConfigOrBuilder
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;
hasDeviceAckTime
in interface DeviceConfigOrBuilder
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;
getDeviceAckTime
in interface DeviceConfigOrBuilder
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;
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;
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;
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;
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;
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;
getDeviceAckTimeOrBuilder
in interface DeviceConfigOrBuilder
public ByteString getBinaryData()
The device configuration data.
bytes binary_data = 4;
getBinaryData
in interface DeviceConfigOrBuilder
public DeviceConfig.Builder setBinaryData(ByteString value)
The device configuration data.
bytes binary_data = 4;
value
- The binaryData to set.public DeviceConfig.Builder clearBinaryData()
The device configuration data.
bytes binary_data = 4;
public final DeviceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
public final DeviceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<DeviceConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.