Class ModifyCloudToDeviceConfigRequest.Builder

    • 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<ModifyCloudToDeviceConfigRequest.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<ModifyCloudToDeviceConfigRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ModifyCloudToDeviceConfigRequest.Builder>
      • getName

        public String getName()
         Required. The name of the device. For example,
         `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
         `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface ModifyCloudToDeviceConfigRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name of the device. For example,
         `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
         `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface ModifyCloudToDeviceConfigRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ModifyCloudToDeviceConfigRequest.Builder setName​(String value)
         Required. The name of the device. For example,
         `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
         `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ModifyCloudToDeviceConfigRequest.Builder clearName()
         Required. The name of the device. For example,
         `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
         `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public ModifyCloudToDeviceConfigRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the device. For example,
         `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
         `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getVersionToUpdate

        public long getVersionToUpdate()
         The version number to update. If this value is zero, it will not check the
         version number of the server and will always update the current version;
         otherwise, this update will fail if the version number found on the server
         does not match this version number. This is used to support multiple
         simultaneous updates without losing data.
         
        int64 version_to_update = 2;
        Specified by:
        getVersionToUpdate in interface ModifyCloudToDeviceConfigRequestOrBuilder
        Returns:
        The versionToUpdate.
      • setVersionToUpdate

        public ModifyCloudToDeviceConfigRequest.Builder setVersionToUpdate​(long value)
         The version number to update. If this value is zero, it will not check the
         version number of the server and will always update the current version;
         otherwise, this update will fail if the version number found on the server
         does not match this version number. This is used to support multiple
         simultaneous updates without losing data.
         
        int64 version_to_update = 2;
        Parameters:
        value - The versionToUpdate to set.
        Returns:
        This builder for chaining.
      • clearVersionToUpdate

        public ModifyCloudToDeviceConfigRequest.Builder clearVersionToUpdate()
         The version number to update. If this value is zero, it will not check the
         version number of the server and will always update the current version;
         otherwise, this update will fail if the version number found on the server
         does not match this version number. This is used to support multiple
         simultaneous updates without losing data.
         
        int64 version_to_update = 2;
        Returns:
        This builder for chaining.
      • getBinaryData

        public com.google.protobuf.ByteString getBinaryData()
         Required. The configuration data for the device.
         
        bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getBinaryData in interface ModifyCloudToDeviceConfigRequestOrBuilder
        Returns:
        The binaryData.
      • setBinaryData

        public ModifyCloudToDeviceConfigRequest.Builder setBinaryData​(com.google.protobuf.ByteString value)
         Required. The configuration data for the device.
         
        bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The binaryData to set.
        Returns:
        This builder for chaining.
      • clearBinaryData

        public ModifyCloudToDeviceConfigRequest.Builder clearBinaryData()
         Required. The configuration data for the device.
         
        bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.