api.DeviceQueueItem */ class DeviceQueueItem extends \Google\Protobuf\Internal\Message { /** * ID (UUID). * This is automatically generated on enqueue. * * 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; /** * Is pending. * This is set by ChirpStack to true when the downlink is pending (e.g. it * has been sent, but a confirmation is still pending). * * Generated from protobuf field bool is_pending = 7; */ protected $is_pending = false; /** * Downlink frame-counter. * Do not set this for plain-text data payloads. It will be automatically set * by ChirpStack when the payload has been sent as downlink. * * Generated from protobuf field uint32 f_cnt_down = 8; */ protected $f_cnt_down = 0; /** * Is encrypted. * This must be set to true if the end-application has already encrypted * the data payload. In this case, the f_cnt_down field must be set to * the corresponding frame-counter which has been used during the encryption. * * Generated from protobuf field bool is_encrypted = 9; */ protected $is_encrypted = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID (UUID). * This is automatically generated on enqueue. * @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. * @type bool $is_pending * Is pending. * This is set by ChirpStack to true when the downlink is pending (e.g. it * has been sent, but a confirmation is still pending). * @type int $f_cnt_down * Downlink frame-counter. * Do not set this for plain-text data payloads. It will be automatically set * by ChirpStack when the payload has been sent as downlink. * @type bool $is_encrypted * Is encrypted. * This must be set to true if the end-application has already encrypted * the data payload. In this case, the f_cnt_down field must be set to * the corresponding frame-counter which has been used during the encryption. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Device::initOnce(); parent::__construct($data); } /** * ID (UUID). * This is automatically generated on enqueue. * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * ID (UUID). * This is automatically generated on enqueue. * * 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; } /** * Is pending. * This is set by ChirpStack to true when the downlink is pending (e.g. it * has been sent, but a confirmation is still pending). * * Generated from protobuf field bool is_pending = 7; * @return bool */ public function getIsPending() { return $this->is_pending; } /** * Is pending. * This is set by ChirpStack to true when the downlink is pending (e.g. it * has been sent, but a confirmation is still pending). * * Generated from protobuf field bool is_pending = 7; * @param bool $var * @return $this */ public function setIsPending($var) { GPBUtil::checkBool($var); $this->is_pending = $var; return $this; } /** * Downlink frame-counter. * Do not set this for plain-text data payloads. It will be automatically set * by ChirpStack when the payload has been sent as downlink. * * Generated from protobuf field uint32 f_cnt_down = 8; * @return int */ public function getFCntDown() { return $this->f_cnt_down; } /** * Downlink frame-counter. * Do not set this for plain-text data payloads. It will be automatically set * by ChirpStack when the payload has been sent as downlink. * * Generated from protobuf field uint32 f_cnt_down = 8; * @param int $var * @return $this */ public function setFCntDown($var) { GPBUtil::checkUint32($var); $this->f_cnt_down = $var; return $this; } /** * Is encrypted. * This must be set to true if the end-application has already encrypted * the data payload. In this case, the f_cnt_down field must be set to * the corresponding frame-counter which has been used during the encryption. * * Generated from protobuf field bool is_encrypted = 9; * @return bool */ public function getIsEncrypted() { return $this->is_encrypted; } /** * Is encrypted. * This must be set to true if the end-application has already encrypted * the data payload. In this case, the f_cnt_down field must be set to * the corresponding frame-counter which has been used during the encryption. * * Generated from protobuf field bool is_encrypted = 9; * @param bool $var * @return $this */ public function setIsEncrypted($var) { GPBUtil::checkBool($var); $this->is_encrypted = $var; return $this; } }