public static final class SendCommandToDeviceRequest.Builder extends GeneratedMessageV3.Builder<SendCommandToDeviceRequest.Builder> implements SendCommandToDeviceRequestOrBuilder
Request for SendCommandToDevice
.
Protobuf type google.cloud.iot.v1.SendCommandToDeviceRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SendCommandToDeviceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SendCommandToDeviceRequest build()
buildPartial()
public SendCommandToDeviceRequest buildPartial()
clear()
public SendCommandToDeviceRequest.Builder clear()
Overrides
clearBinaryData()
public SendCommandToDeviceRequest.Builder clearBinaryData()
Required. The command data to send to the device.
bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public SendCommandToDeviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public SendCommandToDeviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
clone()
public SendCommandToDeviceRequest.Builder clone()
Overrides
getBinaryData()
public ByteString getBinaryData()
Required. The command data to send to the device.
bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public SendCommandToDeviceRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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) = { ... }
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public 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) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
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;
Returns |
---|
Type | Description |
String | The subfolder.
|
getSubfolderBytes()
public 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;
Returns |
---|
Type | Description |
ByteString | The bytes for subfolder.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SendCommandToDeviceRequest other)
public SendCommandToDeviceRequest.Builder mergeFrom(SendCommandToDeviceRequest other)
public SendCommandToDeviceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SendCommandToDeviceRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SendCommandToDeviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBinaryData(ByteString value)
public SendCommandToDeviceRequest.Builder setBinaryData(ByteString value)
Required. The command data to send to the device.
bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The binaryData to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SendCommandToDeviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setName(String value)
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) = { ... }
Parameter |
---|
Name | Description |
value | String
The name to set.
|
setNameBytes(ByteString value)
public SendCommandToDeviceRequest.Builder setNameBytes(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) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SendCommandToDeviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSubfolder(String value)
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;
Parameter |
---|
Name | Description |
value | String
The subfolder to set.
|
setSubfolderBytes(ByteString value)
public SendCommandToDeviceRequest.Builder setSubfolderBytes(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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for subfolder to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SendCommandToDeviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides