mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
614 lines
17 KiB
PHP
Vendored
614 lines
17 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.GatewayStats</code>
|
|
*/
|
|
class GatewayStats extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
*
|
|
* 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 = 17;</code>
|
|
*/
|
|
protected $gateway_id = '';
|
|
/**
|
|
* Gateway time.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
|
*/
|
|
protected $time = null;
|
|
/**
|
|
* Gateway location.
|
|
*
|
|
* Generated from protobuf field <code>.common.Location location = 3;</code>
|
|
*/
|
|
protected $location = null;
|
|
/**
|
|
* Gateway configuration version (this maps to the config_version sent
|
|
* by ChirpStack to the gateway).
|
|
*
|
|
* Generated from protobuf field <code>string config_version = 4;</code>
|
|
*/
|
|
protected $config_version = '';
|
|
/**
|
|
* Number of radio packets received.
|
|
*
|
|
* Generated from protobuf field <code>uint32 rx_packets_received = 5;</code>
|
|
*/
|
|
protected $rx_packets_received = 0;
|
|
/**
|
|
* Number of radio packets received with valid PHY CRC.
|
|
*
|
|
* Generated from protobuf field <code>uint32 rx_packets_received_ok = 6;</code>
|
|
*/
|
|
protected $rx_packets_received_ok = 0;
|
|
/**
|
|
* Number of downlink packets received for transmission.
|
|
*
|
|
* Generated from protobuf field <code>uint32 tx_packets_received = 7;</code>
|
|
*/
|
|
protected $tx_packets_received = 0;
|
|
/**
|
|
* Number of downlink packets emitted.
|
|
*
|
|
* Generated from protobuf field <code>uint32 tx_packets_emitted = 8;</code>
|
|
*/
|
|
protected $tx_packets_emitted = 0;
|
|
/**
|
|
* Additional gateway meta-data.
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> metadata = 10;</code>
|
|
*/
|
|
private $metadata;
|
|
/**
|
|
* Tx packets per frequency.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> tx_packets_per_frequency = 12;</code>
|
|
*/
|
|
private $tx_packets_per_frequency;
|
|
/**
|
|
* Rx packets per frequency.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> rx_packets_per_frequency = 13;</code>
|
|
*/
|
|
private $rx_packets_per_frequency;
|
|
/**
|
|
* Tx packets per modulation parameters.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.PerModulationCount tx_packets_per_modulation = 14;</code>
|
|
*/
|
|
private $tx_packets_per_modulation;
|
|
/**
|
|
* Rx packets per modulation parameters.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.PerModulationCount rx_packets_per_modulation = 15;</code>
|
|
*/
|
|
private $rx_packets_per_modulation;
|
|
/**
|
|
* Tx packets per status.
|
|
*
|
|
* Generated from protobuf field <code>map<string, uint32> tx_packets_per_status = 16;</code>
|
|
*/
|
|
private $tx_packets_per_status;
|
|
/**
|
|
* Duty-cycle statistics (Concentratord only).
|
|
*
|
|
* Generated from protobuf field <code>.gw.DutyCycleStats duty_cycle_stats = 18;</code>
|
|
*/
|
|
protected $duty_cycle_stats = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $gateway_id_legacy
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
* @type string $gateway_id
|
|
* Gateway ID.
|
|
* @type \Google\Protobuf\Timestamp $time
|
|
* Gateway time.
|
|
* @type \Chirpstack\Common\Location $location
|
|
* Gateway location.
|
|
* @type string $config_version
|
|
* Gateway configuration version (this maps to the config_version sent
|
|
* by ChirpStack to the gateway).
|
|
* @type int $rx_packets_received
|
|
* Number of radio packets received.
|
|
* @type int $rx_packets_received_ok
|
|
* Number of radio packets received with valid PHY CRC.
|
|
* @type int $tx_packets_received
|
|
* Number of downlink packets received for transmission.
|
|
* @type int $tx_packets_emitted
|
|
* Number of downlink packets emitted.
|
|
* @type array|\Google\Protobuf\Internal\MapField $metadata
|
|
* Additional gateway meta-data.
|
|
* @type array|\Google\Protobuf\Internal\MapField $tx_packets_per_frequency
|
|
* Tx packets per frequency.
|
|
* @type array|\Google\Protobuf\Internal\MapField $rx_packets_per_frequency
|
|
* Rx packets per frequency.
|
|
* @type array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $tx_packets_per_modulation
|
|
* Tx packets per modulation parameters.
|
|
* @type array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $rx_packets_per_modulation
|
|
* Rx packets per modulation parameters.
|
|
* @type array|\Google\Protobuf\Internal\MapField $tx_packets_per_status
|
|
* Tx packets per status.
|
|
* @type \Chirpstack\Gateway\DutyCycleStats $duty_cycle_stats
|
|
* Duty-cycle statistics (Concentratord only).
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayIdLegacy()
|
|
{
|
|
return $this->gateway_id_legacy;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
*
|
|
* 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 = 17;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayId()
|
|
{
|
|
return $this->gateway_id;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 17;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setGatewayId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->gateway_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway time.
|
|
*
|
|
* 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);
|
|
}
|
|
|
|
/**
|
|
* Gateway time.
|
|
*
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* Gateway location.
|
|
*
|
|
* Generated from protobuf field <code>.common.Location location = 3;</code>
|
|
* @return \Chirpstack\Common\Location|null
|
|
*/
|
|
public function getLocation()
|
|
{
|
|
return $this->location;
|
|
}
|
|
|
|
public function hasLocation()
|
|
{
|
|
return isset($this->location);
|
|
}
|
|
|
|
public function clearLocation()
|
|
{
|
|
unset($this->location);
|
|
}
|
|
|
|
/**
|
|
* Gateway location.
|
|
*
|
|
* Generated from protobuf field <code>.common.Location location = 3;</code>
|
|
* @param \Chirpstack\Common\Location $var
|
|
* @return $this
|
|
*/
|
|
public function setLocation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class);
|
|
$this->location = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway configuration version (this maps to the config_version sent
|
|
* by ChirpStack to the gateway).
|
|
*
|
|
* Generated from protobuf field <code>string config_version = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getConfigVersion()
|
|
{
|
|
return $this->config_version;
|
|
}
|
|
|
|
/**
|
|
* Gateway configuration version (this maps to the config_version sent
|
|
* by ChirpStack to the gateway).
|
|
*
|
|
* Generated from protobuf field <code>string config_version = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setConfigVersion($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->config_version = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Number of radio packets received.
|
|
*
|
|
* Generated from protobuf field <code>uint32 rx_packets_received = 5;</code>
|
|
* @return int
|
|
*/
|
|
public function getRxPacketsReceived()
|
|
{
|
|
return $this->rx_packets_received;
|
|
}
|
|
|
|
/**
|
|
* Number of radio packets received.
|
|
*
|
|
* Generated from protobuf field <code>uint32 rx_packets_received = 5;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setRxPacketsReceived($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->rx_packets_received = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Number of radio packets received with valid PHY CRC.
|
|
*
|
|
* Generated from protobuf field <code>uint32 rx_packets_received_ok = 6;</code>
|
|
* @return int
|
|
*/
|
|
public function getRxPacketsReceivedOk()
|
|
{
|
|
return $this->rx_packets_received_ok;
|
|
}
|
|
|
|
/**
|
|
* Number of radio packets received with valid PHY CRC.
|
|
*
|
|
* Generated from protobuf field <code>uint32 rx_packets_received_ok = 6;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setRxPacketsReceivedOk($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->rx_packets_received_ok = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Number of downlink packets received for transmission.
|
|
*
|
|
* Generated from protobuf field <code>uint32 tx_packets_received = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getTxPacketsReceived()
|
|
{
|
|
return $this->tx_packets_received;
|
|
}
|
|
|
|
/**
|
|
* Number of downlink packets received for transmission.
|
|
*
|
|
* Generated from protobuf field <code>uint32 tx_packets_received = 7;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setTxPacketsReceived($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->tx_packets_received = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Number of downlink packets emitted.
|
|
*
|
|
* Generated from protobuf field <code>uint32 tx_packets_emitted = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getTxPacketsEmitted()
|
|
{
|
|
return $this->tx_packets_emitted;
|
|
}
|
|
|
|
/**
|
|
* Number of downlink packets emitted.
|
|
*
|
|
* Generated from protobuf field <code>uint32 tx_packets_emitted = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setTxPacketsEmitted($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->tx_packets_emitted = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Additional gateway meta-data.
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> metadata = 10;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getMetadata()
|
|
{
|
|
return $this->metadata;
|
|
}
|
|
|
|
/**
|
|
* Additional gateway meta-data.
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> metadata = 10;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setMetadata($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
|
|
$this->metadata = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tx packets per frequency.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> tx_packets_per_frequency = 12;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getTxPacketsPerFrequency()
|
|
{
|
|
return $this->tx_packets_per_frequency;
|
|
}
|
|
|
|
/**
|
|
* Tx packets per frequency.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> tx_packets_per_frequency = 12;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setTxPacketsPerFrequency($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::UINT32);
|
|
$this->tx_packets_per_frequency = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Rx packets per frequency.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> rx_packets_per_frequency = 13;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getRxPacketsPerFrequency()
|
|
{
|
|
return $this->rx_packets_per_frequency;
|
|
}
|
|
|
|
/**
|
|
* Rx packets per frequency.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> rx_packets_per_frequency = 13;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setRxPacketsPerFrequency($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::UINT32);
|
|
$this->rx_packets_per_frequency = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tx packets per modulation parameters.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.PerModulationCount tx_packets_per_modulation = 14;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getTxPacketsPerModulation()
|
|
{
|
|
return $this->tx_packets_per_modulation;
|
|
}
|
|
|
|
/**
|
|
* Tx packets per modulation parameters.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.PerModulationCount tx_packets_per_modulation = 14;</code>
|
|
* @param array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setTxPacketsPerModulation($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\PerModulationCount::class);
|
|
$this->tx_packets_per_modulation = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Rx packets per modulation parameters.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.PerModulationCount rx_packets_per_modulation = 15;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getRxPacketsPerModulation()
|
|
{
|
|
return $this->rx_packets_per_modulation;
|
|
}
|
|
|
|
/**
|
|
* Rx packets per modulation parameters.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.PerModulationCount rx_packets_per_modulation = 15;</code>
|
|
* @param array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setRxPacketsPerModulation($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\PerModulationCount::class);
|
|
$this->rx_packets_per_modulation = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tx packets per status.
|
|
*
|
|
* Generated from protobuf field <code>map<string, uint32> tx_packets_per_status = 16;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getTxPacketsPerStatus()
|
|
{
|
|
return $this->tx_packets_per_status;
|
|
}
|
|
|
|
/**
|
|
* Tx packets per status.
|
|
*
|
|
* Generated from protobuf field <code>map<string, uint32> tx_packets_per_status = 16;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setTxPacketsPerStatus($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::UINT32);
|
|
$this->tx_packets_per_status = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Duty-cycle statistics (Concentratord only).
|
|
*
|
|
* Generated from protobuf field <code>.gw.DutyCycleStats duty_cycle_stats = 18;</code>
|
|
* @return \Chirpstack\Gateway\DutyCycleStats|null
|
|
*/
|
|
public function getDutyCycleStats()
|
|
{
|
|
return $this->duty_cycle_stats;
|
|
}
|
|
|
|
public function hasDutyCycleStats()
|
|
{
|
|
return isset($this->duty_cycle_stats);
|
|
}
|
|
|
|
public function clearDutyCycleStats()
|
|
{
|
|
unset($this->duty_cycle_stats);
|
|
}
|
|
|
|
/**
|
|
* Duty-cycle statistics (Concentratord only).
|
|
*
|
|
* Generated from protobuf field <code>.gw.DutyCycleStats duty_cycle_stats = 18;</code>
|
|
* @param \Chirpstack\Gateway\DutyCycleStats $var
|
|
* @return $this
|
|
*/
|
|
public function setDutyCycleStats($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\DutyCycleStats::class);
|
|
$this->duty_cycle_stats = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|