public sealed class SendCommandToDeviceRequest : IMessage<SendCommandToDeviceRequest>, IEquatable<SendCommandToDeviceRequest>, IDeepCloneable<SendCommandToDeviceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class SendCommandToDeviceRequest.
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}.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eSendCommandToDeviceRequest\u003c/code\u003e class is 2.2.0, part of the Google Cloud IoT v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to send commands to a device, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt allows for sending binary data to a device through the \u003ccode\u003eBinaryData\u003c/code\u003e property, which takes a \u003ccode\u003eByteString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property is a required field specifying the full device name, while the \u003ccode\u003eSubfolder\u003c/code\u003e property allows for optional subfolder routing of commands.\u003c/p\u003e\n"],["\u003cp\u003eThere are available constructors for the \u003ccode\u003eSendCommandToDeviceRequest\u003c/code\u003e class, including a default constructor and one that accepts another \u003ccode\u003eSendCommandToDeviceRequest\u003c/code\u003e instance for cloning.\u003c/p\u003e\n"]]],[],null,[]]