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

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

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

        public SendCommandToDeviceRequest 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<SendCommandToDeviceRequest.Builder>
      • mergeFrom

        public SendCommandToDeviceRequest.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<SendCommandToDeviceRequest.Builder>
        Throws:
        IOException
      • 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 SendCommandToDeviceRequestOrBuilder
        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 SendCommandToDeviceRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SendCommandToDeviceRequest.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 SendCommandToDeviceRequest.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 SendCommandToDeviceRequest.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.
      • getBinaryData

        public com.google.protobuf.ByteString getBinaryData()
         Required. The command data to send to the device.
         
        bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getBinaryData in interface SendCommandToDeviceRequestOrBuilder
        Returns:
        The binaryData.
      • setBinaryData

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

        public SendCommandToDeviceRequest.Builder clearBinaryData()
         Required. The command data to send to the device.
         
        bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getSubfolder

        public String getSubfolder()
         Optional subfolder for the command. If empty, the command will be delivered
         to the /devices/{device-id}/commands topic, otherwise it will be delivered
         to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
         subfolders are allowed. This field must not have more than 256 characters,
         and must not contain any MQTT wildcards ("+" or "#") or null characters.
         
        string subfolder = 3;
        Specified by:
        getSubfolder in interface SendCommandToDeviceRequestOrBuilder
        Returns:
        The subfolder.
      • getSubfolderBytes

        public com.google.protobuf.ByteString getSubfolderBytes()
         Optional subfolder for the command. If empty, the command will be delivered
         to the /devices/{device-id}/commands topic, otherwise it will be delivered
         to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
         subfolders are allowed. This field must not have more than 256 characters,
         and must not contain any MQTT wildcards ("+" or "#") or null characters.
         
        string subfolder = 3;
        Specified by:
        getSubfolderBytes in interface SendCommandToDeviceRequestOrBuilder
        Returns:
        The bytes for subfolder.
      • setSubfolder

        public SendCommandToDeviceRequest.Builder setSubfolder​(String value)
         Optional subfolder for the command. If empty, the command will be delivered
         to the /devices/{device-id}/commands topic, otherwise it will be delivered
         to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
         subfolders are allowed. This field must not have more than 256 characters,
         and must not contain any MQTT wildcards ("+" or "#") or null characters.
         
        string subfolder = 3;
        Parameters:
        value - The subfolder to set.
        Returns:
        This builder for chaining.
      • clearSubfolder

        public SendCommandToDeviceRequest.Builder clearSubfolder()
         Optional subfolder for the command. If empty, the command will be delivered
         to the /devices/{device-id}/commands topic, otherwise it will be delivered
         to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
         subfolders are allowed. This field must not have more than 256 characters,
         and must not contain any MQTT wildcards ("+" or "#") or null characters.
         
        string subfolder = 3;
        Returns:
        This builder for chaining.
      • setSubfolderBytes

        public SendCommandToDeviceRequest.Builder setSubfolderBytes​(com.google.protobuf.ByteString value)
         Optional subfolder for the command. If empty, the command will be delivered
         to the /devices/{device-id}/commands topic, otherwise it will be delivered
         to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
         subfolders are allowed. This field must not have more than 256 characters,
         and must not contain any MQTT wildcards ("+" or "#") or null characters.
         
        string subfolder = 3;
        Parameters:
        value - The bytes for subfolder to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SendCommandToDeviceRequest.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<SendCommandToDeviceRequest.Builder>
      • mergeUnknownFields

        public final SendCommandToDeviceRequest.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<SendCommandToDeviceRequest.Builder>