integration.AckEvent */ class AckEvent extends \Google\Protobuf\Internal\Message { /** * Deduplication ID (UUID). * * Generated from protobuf field string deduplication_id = 1; */ protected $deduplication_id = ''; /** * Timestamp. * * Generated from protobuf field .google.protobuf.Timestamp time = 2; */ protected $time = null; /** * Device info. * * Generated from protobuf field .integration.DeviceInfo device_info = 3; */ protected $device_info = null; /** * Downlink queue item ID (UUID). * * Generated from protobuf field string queue_item_id = 4; */ protected $queue_item_id = ''; /** * Frame was acknowledged. * * Generated from protobuf field bool acknowledged = 5; */ protected $acknowledged = false; /** * Downlink frame counter to which the acknowledgement relates. * * Generated from protobuf field uint32 f_cnt_down = 6; */ protected $f_cnt_down = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $deduplication_id * Deduplication ID (UUID). * @type \Google\Protobuf\Timestamp $time * Timestamp. * @type \Chirpstack\Integration\DeviceInfo $device_info * Device info. * @type string $queue_item_id * Downlink queue item ID (UUID). * @type bool $acknowledged * Frame was acknowledged. * @type int $f_cnt_down * Downlink frame counter to which the acknowledgement relates. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); parent::__construct($data); } /** * Deduplication ID (UUID). * * Generated from protobuf field string deduplication_id = 1; * @return string */ public function getDeduplicationId() { return $this->deduplication_id; } /** * Deduplication ID (UUID). * * Generated from protobuf field string deduplication_id = 1; * @param string $var * @return $this */ public function setDeduplicationId($var) { GPBUtil::checkString($var, True); $this->deduplication_id = $var; return $this; } /** * Timestamp. * * Generated from protobuf field .google.protobuf.Timestamp time = 2; * @return \Google\Protobuf\Timestamp|null */ public function getTime() { return $this->time; } public function hasTime() { return isset($this->time); } public function clearTime() { unset($this->time); } /** * Timestamp. * * Generated from protobuf field .google.protobuf.Timestamp time = 2; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->time = $var; return $this; } /** * Device info. * * Generated from protobuf field .integration.DeviceInfo device_info = 3; * @return \Chirpstack\Integration\DeviceInfo|null */ public function getDeviceInfo() { return $this->device_info; } public function hasDeviceInfo() { return isset($this->device_info); } public function clearDeviceInfo() { unset($this->device_info); } /** * Device info. * * Generated from protobuf field .integration.DeviceInfo device_info = 3; * @param \Chirpstack\Integration\DeviceInfo $var * @return $this */ public function setDeviceInfo($var) { GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); $this->device_info = $var; return $this; } /** * Downlink queue item ID (UUID). * * Generated from protobuf field string queue_item_id = 4; * @return string */ public function getQueueItemId() { return $this->queue_item_id; } /** * Downlink queue item ID (UUID). * * Generated from protobuf field string queue_item_id = 4; * @param string $var * @return $this */ public function setQueueItemId($var) { GPBUtil::checkString($var, True); $this->queue_item_id = $var; return $this; } /** * Frame was acknowledged. * * Generated from protobuf field bool acknowledged = 5; * @return bool */ public function getAcknowledged() { return $this->acknowledged; } /** * Frame was acknowledged. * * Generated from protobuf field bool acknowledged = 5; * @param bool $var * @return $this */ public function setAcknowledged($var) { GPBUtil::checkBool($var); $this->acknowledged = $var; return $this; } /** * Downlink frame counter to which the acknowledgement relates. * * Generated from protobuf field uint32 f_cnt_down = 6; * @return int */ public function getFCntDown() { return $this->f_cnt_down; } /** * Downlink frame counter to which the acknowledgement relates. * * Generated from protobuf field uint32 f_cnt_down = 6; * @param int $var * @return $this */ public function setFCntDown($var) { GPBUtil::checkUint32($var); $this->f_cnt_down = $var; return $this; } }