Package com.google.cloud.iot.v1
Class DeviceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
- com.google.cloud.iot.v1.DeviceConfig.Builder
-
- All Implemented Interfaces:
DeviceConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DeviceConfig
public static final class DeviceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder> implements DeviceConfigOrBuilder
The device configuration. Eventually delivered to devices.
Protobuf typegoogle.cloud.iot.v1.DeviceConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeviceConfigbuild()DeviceConfigbuildPartial()DeviceConfig.Builderclear()DeviceConfig.BuilderclearBinaryData()The device configuration data.DeviceConfig.BuilderclearCloudUpdateTime()[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfig.BuilderclearDeviceAckTime()[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.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DeviceConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DeviceConfig.BuilderclearVersion()[Output only] The version of this update.DeviceConfig.Builderclone()com.google.protobuf.ByteStringgetBinaryData()The device configuration data.com.google.protobuf.TimestampgetCloudUpdateTime()[Output only] The time at which this configuration version was updated in Cloud IoT Core.com.google.protobuf.Timestamp.BuildergetCloudUpdateTimeBuilder()[Output only] The time at which this configuration version was updated in Cloud IoT Core.com.google.protobuf.TimestampOrBuildergetCloudUpdateTimeOrBuilder()[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetDeviceAckTime()[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version.com.google.protobuf.Timestamp.BuildergetDeviceAckTimeBuilder()[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version.com.google.protobuf.TimestampOrBuildergetDeviceAckTimeOrBuilder()[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version.longgetVersion()[Output only] The version of this update.booleanhasCloudUpdateTime()[Output only] The time at which this configuration version was updated in Cloud IoT Core.booleanhasDeviceAckTime()[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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DeviceConfig.BuildermergeCloudUpdateTime(com.google.protobuf.Timestamp value)[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfig.BuildermergeDeviceAckTime(com.google.protobuf.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.BuildermergeFrom(DeviceConfig other)DeviceConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DeviceConfig.BuildermergeFrom(com.google.protobuf.Message other)DeviceConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DeviceConfig.BuildersetBinaryData(com.google.protobuf.ByteString value)The device configuration data.DeviceConfig.BuildersetCloudUpdateTime(com.google.protobuf.Timestamp value)[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfig.BuildersetCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfig.BuildersetDeviceAckTime(com.google.protobuf.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.BuildersetDeviceAckTime(com.google.protobuf.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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeviceConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DeviceConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DeviceConfig.BuildersetVersion(long value)[Output only] The version of this update.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
clear
public DeviceConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
getDefaultInstanceForType
public DeviceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeviceConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeviceConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeviceConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
setField
public DeviceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
clearField
public DeviceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
clearOneof
public DeviceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
setRepeatedField
public DeviceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
addRepeatedField
public DeviceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
mergeFrom
public DeviceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeviceConfig.Builder>
-
mergeFrom
public DeviceConfig.Builder mergeFrom(DeviceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
mergeFrom
public DeviceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeviceConfig.Builder>- Throws:
IOException
-
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;- Specified by:
getVersionin interfaceDeviceConfigOrBuilder- Returns:
- The version.
-
setVersion
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;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasCloudUpdateTimein interfaceDeviceConfigOrBuilder- Returns:
- Whether the cloudUpdateTime field is set.
-
getCloudUpdateTime
public com.google.protobuf.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;- Specified by:
getCloudUpdateTimein interfaceDeviceConfigOrBuilder- Returns:
- The cloudUpdateTime.
-
setCloudUpdateTime
public DeviceConfig.Builder setCloudUpdateTime(com.google.protobuf.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
public DeviceConfig.Builder setCloudUpdateTime(com.google.protobuf.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;
-
mergeCloudUpdateTime
public DeviceConfig.Builder mergeCloudUpdateTime(com.google.protobuf.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;
-
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;
-
getCloudUpdateTimeBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getCloudUpdateTimeOrBuilderin interfaceDeviceConfigOrBuilder
-
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;- Specified by:
hasDeviceAckTimein interfaceDeviceConfigOrBuilder- Returns:
- Whether the deviceAckTime field is set.
-
getDeviceAckTime
public com.google.protobuf.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;- Specified by:
getDeviceAckTimein interfaceDeviceConfigOrBuilder- Returns:
- The deviceAckTime.
-
setDeviceAckTime
public DeviceConfig.Builder setDeviceAckTime(com.google.protobuf.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
public DeviceConfig.Builder setDeviceAckTime(com.google.protobuf.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;
-
mergeDeviceAckTime
public DeviceConfig.Builder mergeDeviceAckTime(com.google.protobuf.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;
-
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;
-
getDeviceAckTimeBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getDeviceAckTimeOrBuilderin interfaceDeviceConfigOrBuilder
-
getBinaryData
public com.google.protobuf.ByteString getBinaryData()
The device configuration data.
bytes binary_data = 4;- Specified by:
getBinaryDatain interfaceDeviceConfigOrBuilder- Returns:
- The binaryData.
-
setBinaryData
public DeviceConfig.Builder setBinaryData(com.google.protobuf.ByteString value)
The device configuration data.
bytes binary_data = 4;- Parameters:
value- The binaryData to set.- Returns:
- This builder for chaining.
-
clearBinaryData
public DeviceConfig.Builder clearBinaryData()
The device configuration data.
bytes binary_data = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DeviceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
mergeUnknownFields
public final DeviceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
-