Interface SendCommandToDeviceRequestOrBuilder (2.41.0)

public interface SendCommandToDeviceRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBinaryData()

public abstract ByteString getBinaryData()

Required. The command data to send to the device.

bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The binaryData.

getName()

public abstract 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) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract 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
TypeDescription
ByteString

The bytes for name.

getSubfolder()

public abstract 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
TypeDescription
String

The subfolder.

getSubfolderBytes()

public abstract 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
TypeDescription
ByteString

The bytes for subfolder.