mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
242 lines
5.8 KiB
PHP
Vendored
242 lines
5.8 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.UplinkFrame</code>
|
|
*/
|
|
class UplinkFrame extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* PHYPayload.
|
|
*
|
|
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
|
|
*/
|
|
protected $phy_payload = '';
|
|
/**
|
|
* TX meta-data (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkTxInfoLegacy tx_info_legacy = 2;</code>
|
|
*/
|
|
protected $tx_info_legacy = null;
|
|
/**
|
|
* RX meta-data (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkRxInfoLegacy rx_info_legacy = 3;</code>
|
|
*/
|
|
protected $rx_info_legacy = null;
|
|
/**
|
|
* Tx meta-data.
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 4;</code>
|
|
*/
|
|
protected $tx_info = null;
|
|
/**
|
|
* Rx meta-data.
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkRxInfo rx_info = 5;</code>
|
|
*/
|
|
protected $rx_info = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $phy_payload
|
|
* PHYPayload.
|
|
* @type \Chirpstack\Gateway\UplinkTxInfoLegacy $tx_info_legacy
|
|
* TX meta-data (deprecated).
|
|
* @type \Chirpstack\Gateway\UplinkRxInfoLegacy $rx_info_legacy
|
|
* RX meta-data (deprecated).
|
|
* @type \Chirpstack\Gateway\UplinkTxInfo $tx_info
|
|
* Tx meta-data.
|
|
* @type \Chirpstack\Gateway\UplinkRxInfo $rx_info
|
|
* Rx meta-data.
|
|
* }
|
|
*/
|
|
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 (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkTxInfoLegacy tx_info_legacy = 2;</code>
|
|
* @return \Chirpstack\Gateway\UplinkTxInfoLegacy|null
|
|
*/
|
|
public function getTxInfoLegacy()
|
|
{
|
|
return $this->tx_info_legacy;
|
|
}
|
|
|
|
public function hasTxInfoLegacy()
|
|
{
|
|
return isset($this->tx_info_legacy);
|
|
}
|
|
|
|
public function clearTxInfoLegacy()
|
|
{
|
|
unset($this->tx_info_legacy);
|
|
}
|
|
|
|
/**
|
|
* TX meta-data (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkTxInfoLegacy tx_info_legacy = 2;</code>
|
|
* @param \Chirpstack\Gateway\UplinkTxInfoLegacy $var
|
|
* @return $this
|
|
*/
|
|
public function setTxInfoLegacy($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfoLegacy::class);
|
|
$this->tx_info_legacy = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* RX meta-data (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkRxInfoLegacy rx_info_legacy = 3;</code>
|
|
* @return \Chirpstack\Gateway\UplinkRxInfoLegacy|null
|
|
*/
|
|
public function getRxInfoLegacy()
|
|
{
|
|
return $this->rx_info_legacy;
|
|
}
|
|
|
|
public function hasRxInfoLegacy()
|
|
{
|
|
return isset($this->rx_info_legacy);
|
|
}
|
|
|
|
public function clearRxInfoLegacy()
|
|
{
|
|
unset($this->rx_info_legacy);
|
|
}
|
|
|
|
/**
|
|
* RX meta-data (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkRxInfoLegacy rx_info_legacy = 3;</code>
|
|
* @param \Chirpstack\Gateway\UplinkRxInfoLegacy $var
|
|
* @return $this
|
|
*/
|
|
public function setRxInfoLegacy($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkRxInfoLegacy::class);
|
|
$this->rx_info_legacy = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tx meta-data.
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 4;</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 = 4;</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.
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkRxInfo rx_info = 5;</code>
|
|
* @return \Chirpstack\Gateway\UplinkRxInfo|null
|
|
*/
|
|
public function getRxInfo()
|
|
{
|
|
return $this->rx_info;
|
|
}
|
|
|
|
public function hasRxInfo()
|
|
{
|
|
return isset($this->rx_info);
|
|
}
|
|
|
|
public function clearRxInfo()
|
|
{
|
|
unset($this->rx_info);
|
|
}
|
|
|
|
/**
|
|
* Rx meta-data.
|
|
*
|
|
* Generated from protobuf field <code>.gw.UplinkRxInfo rx_info = 5;</code>
|
|
* @param \Chirpstack\Gateway\UplinkRxInfo $var
|
|
* @return $this
|
|
*/
|
|
public function setRxInfo($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkRxInfo::class);
|
|
$this->rx_info = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|