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

214 lines
5.7 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gw/gw.proto
namespace Chirpstack\Gateway;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>gw.DownlinkTxAck</code>
*/
class DownlinkTxAck extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID (deprecated).
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
*/
protected $gateway_id_legacy = '';
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 6;</code>
*/
protected $gateway_id = '';
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 2;</code>
*/
protected $downlink_id = 0;
/**
* Downlink ID (deprecated).
*
* Generated from protobuf field <code>bytes downlink_id_legacy = 4;</code>
*/
protected $downlink_id_legacy = '';
/**
* Downlink frame items.
* This list has the same length as the request and indicates which
* downlink frame has been emitted of the requested list (or why it failed).
* Note that at most one item has a positive acknowledgement.
*
* Generated from protobuf field <code>repeated .gw.DownlinkTxAckItem items = 5;</code>
*/
private $items;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $gateway_id_legacy
* Gateway ID (deprecated).
* @type string $gateway_id
* Gateway ID.
* @type int $downlink_id
* Downlink ID.
* @type string $downlink_id_legacy
* Downlink ID (deprecated).
* @type array<\Chirpstack\Gateway\DownlinkTxAckItem>|\Google\Protobuf\Internal\RepeatedField $items
* Downlink frame items.
* This list has the same length as the request and indicates which
* downlink frame has been emitted of the requested list (or why it failed).
* Note that at most one item has a positive acknowledgement.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Gateway ID (deprecated).
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
* @return string
*/
public function getGatewayIdLegacy()
{
return $this->gateway_id_legacy;
}
/**
* Gateway ID (deprecated).
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
* @param string $var
* @return $this
*/
public function setGatewayIdLegacy($var)
{
GPBUtil::checkString($var, False);
$this->gateway_id_legacy = $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;
}
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 2;</code>
* @return int
*/
public function getDownlinkId()
{
return $this->downlink_id;
}
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 2;</code>
* @param int $var
* @return $this
*/
public function setDownlinkId($var)
{
GPBUtil::checkUint32($var);
$this->downlink_id = $var;
return $this;
}
/**
* Downlink ID (deprecated).
*
* Generated from protobuf field <code>bytes downlink_id_legacy = 4;</code>
* @return string
*/
public function getDownlinkIdLegacy()
{
return $this->downlink_id_legacy;
}
/**
* Downlink ID (deprecated).
*
* Generated from protobuf field <code>bytes downlink_id_legacy = 4;</code>
* @param string $var
* @return $this
*/
public function setDownlinkIdLegacy($var)
{
GPBUtil::checkString($var, False);
$this->downlink_id_legacy = $var;
return $this;
}
/**
* Downlink frame items.
* This list has the same length as the request and indicates which
* downlink frame has been emitted of the requested list (or why it failed).
* Note that at most one item has a positive acknowledgement.
*
* Generated from protobuf field <code>repeated .gw.DownlinkTxAckItem items = 5;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getItems()
{
return $this->items;
}
/**
* Downlink frame items.
* This list has the same length as the request and indicates which
* downlink frame has been emitted of the requested list (or why it failed).
* Note that at most one item has a positive acknowledgement.
*
* Generated from protobuf field <code>repeated .gw.DownlinkTxAckItem items = 5;</code>
* @param array<\Chirpstack\Gateway\DownlinkTxAckItem>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setItems($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DownlinkTxAckItem::class);
$this->items = $arr;
return $this;
}
}