2024-06-25 12:27:28 +01:00

304 lines
7.0 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: integration/integration.proto
namespace Chirpstack\Integration;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* TxAckEvent is the message sent when a downlink was acknowledged by the
* gateway for transmission. As a downlink can be scheduled in the future, this
* event does not confirm that the message has already been transmitted.
*
* Generated from protobuf message <code>integration.TxAckEvent</code>
*/
class TxAckEvent extends \Google\Protobuf\Internal\Message
{
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 1;</code>
*/
protected $downlink_id = 0;
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
*/
protected $time = null;
/**
* Device info.
*
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
*/
protected $device_info = null;
/**
* Downlink queue item ID (UUID).
*
* Generated from protobuf field <code>string queue_item_id = 4;</code>
*/
protected $queue_item_id = '';
/**
* Downlink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 5;</code>
*/
protected $f_cnt_down = 0;
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 6;</code>
*/
protected $gateway_id = '';
/**
* TX info.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 7;</code>
*/
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 <code>uint32 downlink_id = 1;</code>
* @return int
*/
public function getDownlinkId()
{
return $this->downlink_id;
}
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 1;</code>
* @param int $var
* @return $this
*/
public function setDownlinkId($var)
{
GPBUtil::checkUint32($var);
$this->downlink_id = $var;
return $this;
}
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
* @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 <code>.google.protobuf.Timestamp time = 2;</code>
* @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 <code>.integration.DeviceInfo device_info = 3;</code>
* @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 <code>.integration.DeviceInfo device_info = 3;</code>
* @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 <code>string queue_item_id = 4;</code>
* @return string
*/
public function getQueueItemId()
{
return $this->queue_item_id;
}
/**
* Downlink queue item ID (UUID).
*
* Generated from protobuf field <code>string queue_item_id = 4;</code>
* @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 <code>uint32 f_cnt_down = 5;</code>
* @return int
*/
public function getFCntDown()
{
return $this->f_cnt_down;
}
/**
* Downlink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 5;</code>
* @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 <code>string gateway_id = 6;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 6;</code>
* @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 <code>.gw.DownlinkTxInfo tx_info = 7;</code>
* @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 <code>.gw.DownlinkTxInfo tx_info = 7;</code>
* @param \Chirpstack\Gateway\DownlinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
}