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.Builder
addRepeatedField(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field)
DeviceConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DeviceConfig.Builder
clearVersion()
[Output only] The version of this update.DeviceConfig.Builder
clone()
com.google.protobuf.ByteString
getBinaryData()
The device configuration data.com.google.protobuf.Timestamp
getCloudUpdateTime()
[Output only] The time at which this configuration version was updated in Cloud IoT Core.com.google.protobuf.Timestamp.Builder
getCloudUpdateTimeBuilder()
[Output only] The time at which this configuration version was updated in Cloud IoT Core.com.google.protobuf.TimestampOrBuilder
getCloudUpdateTimeOrBuilder()
[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.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.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.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DeviceConfig.Builder
mergeCloudUpdateTime(com.google.protobuf.Timestamp value)
[Output only] The time at which this configuration version was updated in Cloud IoT Core.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.DeviceConfig.Builder
mergeFrom(DeviceConfig other)
DeviceConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DeviceConfig.Builder
mergeFrom(com.google.protobuf.Message other)
DeviceConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DeviceConfig.Builder
setBinaryData(com.google.protobuf.ByteString value)
The device configuration data.DeviceConfig.Builder
setCloudUpdateTime(com.google.protobuf.Timestamp value)
[Output only] The time at which this configuration version was updated in Cloud IoT Core.DeviceConfig.Builder
setCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
[Output only] The time at which this configuration version was updated in Cloud IoT Core.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.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.DeviceConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeviceConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DeviceConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DeviceConfig.Builder
setVersion(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
clear
public DeviceConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
getDefaultInstanceForType
public DeviceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeviceConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeviceConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeviceConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
setField
public DeviceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
clearField
public DeviceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
clearOneof
public DeviceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
setRepeatedField
public DeviceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
addRepeatedField
public DeviceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
mergeFrom
public DeviceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DeviceConfig.Builder>
-
mergeFrom
public DeviceConfig.Builder mergeFrom(DeviceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getVersion
in 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:
hasCloudUpdateTime
in 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:
getCloudUpdateTime
in 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:
getCloudUpdateTimeOrBuilder
in 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:
hasDeviceAckTime
in 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:
getDeviceAckTime
in 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:
getDeviceAckTimeOrBuilder
in interfaceDeviceConfigOrBuilder
-
getBinaryData
public com.google.protobuf.ByteString getBinaryData()
The device configuration data.
bytes binary_data = 4;
- Specified by:
getBinaryData
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
mergeUnknownFields
public final DeviceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
-
-