integration.DownlinkCommand */ class DownlinkCommand extends \Google\Protobuf\Internal\Message { /** * ID (UUID). * If left blank, a random UUID will be generated. * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * Device EUI (EUI64). * * Generated from protobuf field string dev_eui = 2; */ protected $dev_eui = ''; /** * Confirmed. * * Generated from protobuf field bool confirmed = 3; */ protected $confirmed = false; /** * FPort (must be > 0). * * Generated from protobuf field uint32 f_port = 4; */ protected $f_port = 0; /** * Data. * Or use the json_object field when a codec has been configured. * * Generated from protobuf field bytes data = 5; */ protected $data = ''; /** * Only use this when a codec has been configured that can encode this * object to bytes. * * Generated from protobuf field .google.protobuf.Struct object = 6; */ protected $object = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID (UUID). * If left blank, a random UUID will be generated. * @type string $dev_eui * Device EUI (EUI64). * @type bool $confirmed * Confirmed. * @type int $f_port * FPort (must be > 0). * @type string $data * Data. * Or use the json_object field when a codec has been configured. * @type \Google\Protobuf\Struct $object * Only use this when a codec has been configured that can encode this * object to bytes. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); parent::__construct($data); } /** * ID (UUID). * If left blank, a random UUID will be generated. * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * ID (UUID). * If left blank, a random UUID will be generated. * * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * Device EUI (EUI64). * * Generated from protobuf field string dev_eui = 2; * @return string */ public function getDevEui() { return $this->dev_eui; } /** * Device EUI (EUI64). * * Generated from protobuf field string dev_eui = 2; * @param string $var * @return $this */ public function setDevEui($var) { GPBUtil::checkString($var, True); $this->dev_eui = $var; return $this; } /** * Confirmed. * * Generated from protobuf field bool confirmed = 3; * @return bool */ public function getConfirmed() { return $this->confirmed; } /** * Confirmed. * * Generated from protobuf field bool confirmed = 3; * @param bool $var * @return $this */ public function setConfirmed($var) { GPBUtil::checkBool($var); $this->confirmed = $var; return $this; } /** * FPort (must be > 0). * * Generated from protobuf field uint32 f_port = 4; * @return int */ public function getFPort() { return $this->f_port; } /** * FPort (must be > 0). * * Generated from protobuf field uint32 f_port = 4; * @param int $var * @return $this */ public function setFPort($var) { GPBUtil::checkUint32($var); $this->f_port = $var; return $this; } /** * Data. * Or use the json_object field when a codec has been configured. * * Generated from protobuf field bytes data = 5; * @return string */ public function getData() { return $this->data; } /** * Data. * Or use the json_object field when a codec has been configured. * * Generated from protobuf field bytes data = 5; * @param string $var * @return $this */ public function setData($var) { GPBUtil::checkString($var, False); $this->data = $var; return $this; } /** * Only use this when a codec has been configured that can encode this * object to bytes. * * Generated from protobuf field .google.protobuf.Struct object = 6; * @return \Google\Protobuf\Struct|null */ public function getObject() { return $this->object; } public function hasObject() { return isset($this->object); } public function clearObject() { unset($this->object); } /** * Only use this when a codec has been configured that can encode this * object to bytes. * * Generated from protobuf field .google.protobuf.Struct object = 6; * @param \Google\Protobuf\Struct $var * @return $this */ public function setObject($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->object = $var; return $this; } }