gw.GatewayCommandExecRequest */ class GatewayCommandExecRequest extends \Google\Protobuf\Internal\Message { /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; */ protected $gateway_id_legacy = ''; /** * Gateway ID. * * Generated from protobuf field string gateway_id = 6; */ protected $gateway_id = ''; /** * Command to execute. * This command must be pre-configured in the LoRa Gateway Bridge * configuration. * * Generated from protobuf field string command = 2; */ protected $command = ''; /** * Execution request ID. * The same will be returned when the execution of the command has * completed. * * Generated from protobuf field uint32 exec_id = 7; */ protected $exec_id = 0; /** * Standard input. * * Generated from protobuf field bytes stdin = 4; */ protected $stdin = ''; /** * Environment variables. * * Generated from protobuf field map environment = 5; */ private $environment; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $gateway_id_legacy * Gateway ID. * Deprecated: use gateway_id. * @type string $gateway_id * Gateway ID. * @type string $command * Command to execute. * This command must be pre-configured in the LoRa Gateway Bridge * configuration. * @type int $exec_id * Execution request ID. * The same will be returned when the execution of the command has * completed. * @type string $stdin * Standard input. * @type array|\Google\Protobuf\Internal\MapField $environment * Environment variables. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); parent::__construct($data); } /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; * @return string */ public function getGatewayIdLegacy() { return $this->gateway_id_legacy; } /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; * @param string $var * @return $this */ public function setGatewayIdLegacy($var) { GPBUtil::checkString($var, False); $this->gateway_id_legacy = $var; return $this; } /** * Gateway ID. * * Generated from protobuf field string gateway_id = 6; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway ID. * * Generated from protobuf field string gateway_id = 6; * @param string $var * @return $this */ public function setGatewayId($var) { GPBUtil::checkString($var, True); $this->gateway_id = $var; return $this; } /** * Command to execute. * This command must be pre-configured in the LoRa Gateway Bridge * configuration. * * Generated from protobuf field string command = 2; * @return string */ public function getCommand() { return $this->command; } /** * Command to execute. * This command must be pre-configured in the LoRa Gateway Bridge * configuration. * * Generated from protobuf field string command = 2; * @param string $var * @return $this */ public function setCommand($var) { GPBUtil::checkString($var, True); $this->command = $var; return $this; } /** * Execution request ID. * The same will be returned when the execution of the command has * completed. * * Generated from protobuf field uint32 exec_id = 7; * @return int */ public function getExecId() { return $this->exec_id; } /** * Execution request ID. * The same will be returned when the execution of the command has * completed. * * Generated from protobuf field uint32 exec_id = 7; * @param int $var * @return $this */ public function setExecId($var) { GPBUtil::checkUint32($var); $this->exec_id = $var; return $this; } /** * Standard input. * * Generated from protobuf field bytes stdin = 4; * @return string */ public function getStdin() { return $this->stdin; } /** * Standard input. * * Generated from protobuf field bytes stdin = 4; * @param string $var * @return $this */ public function setStdin($var) { GPBUtil::checkString($var, False); $this->stdin = $var; return $this; } /** * Environment variables. * * Generated from protobuf field map environment = 5; * @return \Google\Protobuf\Internal\MapField */ public function getEnvironment() { return $this->environment; } /** * Environment variables. * * Generated from protobuf field map environment = 5; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setEnvironment($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->environment = $arr; return $this; } }