Class 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 type google.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 interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • clear

        public DeviceConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • getDefaultInstanceForType

        public DeviceConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DeviceConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DeviceConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DeviceConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • setField

        public DeviceConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • clearField

        public DeviceConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • clearOneof

        public DeviceConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • addRepeatedField

        public DeviceConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • mergeFrom

        public DeviceConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface DeviceConfigOrBuilder
        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 interface DeviceConfigOrBuilder
        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 interface DeviceConfigOrBuilder
        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 interface DeviceConfigOrBuilder
      • 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 interface DeviceConfigOrBuilder
        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 interface DeviceConfigOrBuilder
        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 interface DeviceConfigOrBuilder
      • getBinaryData

        public com.google.protobuf.ByteString getBinaryData()
         The device configuration data.
         
        bytes binary_data = 4;
        Specified by:
        getBinaryData in interface DeviceConfigOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>
      • mergeUnknownFields

        public final DeviceConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceConfig.Builder>