integration.TxAckEvent */ class TxAckEvent extends \Google\Protobuf\Internal\Message { /** * Downlink ID. * * Generated from protobuf field uint32 downlink_id = 1; */ protected $downlink_id = 0; /** * 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 = ''; /** * Downlink frame-counter. * * Generated from protobuf field uint32 f_cnt_down = 5; */ protected $f_cnt_down = 0; /** * Gateway ID. * * Generated from protobuf field string gateway_id = 6; */ protected $gateway_id = ''; /** * TX info. * * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 7; */ protected $tx_info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $downlink_id * Downlink ID. * @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 int $f_cnt_down * Downlink frame-counter. * @type string $gateway_id * Gateway ID. * @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info * TX info. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); parent::__construct($data); } /** * Downlink ID. * * Generated from protobuf field uint32 downlink_id = 1; * @return int */ public function getDownlinkId() { return $this->downlink_id; } /** * Downlink ID. * * Generated from protobuf field uint32 downlink_id = 1; * @param int $var * @return $this */ public function setDownlinkId($var) { GPBUtil::checkUint32($var); $this->downlink_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; } /** * Downlink frame-counter. * * Generated from protobuf field uint32 f_cnt_down = 5; * @return int */ public function getFCntDown() { return $this->f_cnt_down; } /** * Downlink frame-counter. * * Generated from protobuf field uint32 f_cnt_down = 5; * @param int $var * @return $this */ public function setFCntDown($var) { GPBUtil::checkUint32($var); $this->f_cnt_down = $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; } /** * TX info. * * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 7; * @return \Chirpstack\Gateway\DownlinkTxInfo|null */ public function getTxInfo() { return $this->tx_info; } public function hasTxInfo() { return isset($this->tx_info); } public function clearTxInfo() { unset($this->tx_info); } /** * TX info. * * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 7; * @param \Chirpstack\Gateway\DownlinkTxInfo $var * @return $this */ public function setTxInfo($var) { GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class); $this->tx_info = $var; return $this; } }