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

144 lines
3.4 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.UplinkFrameSet</code>
*/
class UplinkFrameSet extends \Google\Protobuf\Internal\Message
{
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
*/
protected $phy_payload = '';
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
*/
protected $tx_info = null;
/**
* RX meta-data set.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
*/
private $rx_info;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $phy_payload
* PHYPayload.
* @type \Chirpstack\Gateway\UplinkTxInfo $tx_info
* TX meta-data.
* @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info
* RX meta-data set.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
* @return string
*/
public function getPhyPayload()
{
return $this->phy_payload;
}
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
* @param string $var
* @return $this
*/
public function setPhyPayload($var)
{
GPBUtil::checkString($var, False);
$this->phy_payload = $var;
return $this;
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @return \Chirpstack\Gateway\UplinkTxInfo|null
*/
public function getTxInfo()
{
return $this->tx_info;
}
public function hasTxInfo()
{
return isset($this->tx_info);
}
public function clearTxInfo()
{
unset($this->tx_info);
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @param \Chirpstack\Gateway\UplinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
/**
* RX meta-data set.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRxInfo()
{
return $this->rx_info;
}
/**
* RX meta-data set.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRxInfo($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class);
$this->rx_info = $arr;
return $this;
}
}