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

259 lines
6.2 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;
/**
* AckEvent is the message sent when a confirmation on a confirmed downlink
* has been received -or- when the downlink timed out.
*
* Generated from protobuf message <code>integration.AckEvent</code>
*/
class AckEvent extends \Google\Protobuf\Internal\Message
{
/**
* Deduplication ID (UUID).
*
* Generated from protobuf field <code>string deduplication_id = 1;</code>
*/
protected $deduplication_id = '';
/**
* 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 = '';
/**
* Frame was acknowledged.
*
* Generated from protobuf field <code>bool acknowledged = 5;</code>
*/
protected $acknowledged = false;
/**
* Downlink frame counter to which the acknowledgement relates.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 6;</code>
*/
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 <code>string deduplication_id = 1;</code>
* @return string
*/
public function getDeduplicationId()
{
return $this->deduplication_id;
}
/**
* Deduplication ID (UUID).
*
* Generated from protobuf field <code>string deduplication_id = 1;</code>
* @param string $var
* @return $this
*/
public function setDeduplicationId($var)
{
GPBUtil::checkString($var, True);
$this->deduplication_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;
}
/**
* Frame was acknowledged.
*
* Generated from protobuf field <code>bool acknowledged = 5;</code>
* @return bool
*/
public function getAcknowledged()
{
return $this->acknowledged;
}
/**
* Frame was acknowledged.
*
* Generated from protobuf field <code>bool acknowledged = 5;</code>
* @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 <code>uint32 f_cnt_down = 6;</code>
* @return int
*/
public function getFCntDown()
{
return $this->f_cnt_down;
}
/**
* Downlink frame counter to which the acknowledgement relates.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 6;</code>
* @param int $var
* @return $this
*/
public function setFCntDown($var)
{
GPBUtil::checkUint32($var);
$this->f_cnt_down = $var;
return $this;
}
}