gw.GatewayStats */ class GatewayStats extends \Google\Protobuf\Internal\Message { /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; */ protected $gateway_id_legacy = ''; /** * Gateway ID. * * Generated from protobuf field string gateway_id = 17; */ protected $gateway_id = ''; /** * Gateway time. * * Generated from protobuf field .google.protobuf.Timestamp time = 2; */ protected $time = null; /** * Gateway location. * * Generated from protobuf field .common.Location location = 3; */ protected $location = null; /** * Gateway configuration version (this maps to the config_version sent * by ChirpStack to the gateway). * * Generated from protobuf field string config_version = 4; */ protected $config_version = ''; /** * Number of radio packets received. * * Generated from protobuf field uint32 rx_packets_received = 5; */ protected $rx_packets_received = 0; /** * Number of radio packets received with valid PHY CRC. * * Generated from protobuf field uint32 rx_packets_received_ok = 6; */ protected $rx_packets_received_ok = 0; /** * Number of downlink packets received for transmission. * * Generated from protobuf field uint32 tx_packets_received = 7; */ protected $tx_packets_received = 0; /** * Number of downlink packets emitted. * * Generated from protobuf field uint32 tx_packets_emitted = 8; */ protected $tx_packets_emitted = 0; /** * Additional gateway meta-data. * * Generated from protobuf field map metadata = 10; */ private $metadata; /** * Tx packets per frequency. * * Generated from protobuf field map tx_packets_per_frequency = 12; */ private $tx_packets_per_frequency; /** * Rx packets per frequency. * * Generated from protobuf field map rx_packets_per_frequency = 13; */ private $rx_packets_per_frequency; /** * Tx packets per modulation parameters. * * Generated from protobuf field repeated .gw.PerModulationCount tx_packets_per_modulation = 14; */ private $tx_packets_per_modulation; /** * Rx packets per modulation parameters. * * Generated from protobuf field repeated .gw.PerModulationCount rx_packets_per_modulation = 15; */ private $rx_packets_per_modulation; /** * Tx packets per status. * * Generated from protobuf field map tx_packets_per_status = 16; */ private $tx_packets_per_status; /** * Duty-cycle statistics (Concentratord only). * * Generated from protobuf field .gw.DutyCycleStats duty_cycle_stats = 18; */ 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 bytes gateway_id_legacy = 1; * @return string */ public function getGatewayIdLegacy() { return $this->gateway_id_legacy; } /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; * @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 string gateway_id = 17; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway ID. * * Generated from protobuf field string gateway_id = 17; * @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 .google.protobuf.Timestamp time = 2; * @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 .google.protobuf.Timestamp time = 2; * @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 .common.Location location = 3; * @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 .common.Location location = 3; * @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 string config_version = 4; * @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 string config_version = 4; * @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 uint32 rx_packets_received = 5; * @return int */ public function getRxPacketsReceived() { return $this->rx_packets_received; } /** * Number of radio packets received. * * Generated from protobuf field uint32 rx_packets_received = 5; * @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 uint32 rx_packets_received_ok = 6; * @return int */ public function getRxPacketsReceivedOk() { return $this->rx_packets_received_ok; } /** * Number of radio packets received with valid PHY CRC. * * Generated from protobuf field uint32 rx_packets_received_ok = 6; * @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 uint32 tx_packets_received = 7; * @return int */ public function getTxPacketsReceived() { return $this->tx_packets_received; } /** * Number of downlink packets received for transmission. * * Generated from protobuf field uint32 tx_packets_received = 7; * @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 uint32 tx_packets_emitted = 8; * @return int */ public function getTxPacketsEmitted() { return $this->tx_packets_emitted; } /** * Number of downlink packets emitted. * * Generated from protobuf field uint32 tx_packets_emitted = 8; * @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 map metadata = 10; * @return \Google\Protobuf\Internal\MapField */ public function getMetadata() { return $this->metadata; } /** * Additional gateway meta-data. * * Generated from protobuf field map metadata = 10; * @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 map tx_packets_per_frequency = 12; * @return \Google\Protobuf\Internal\MapField */ public function getTxPacketsPerFrequency() { return $this->tx_packets_per_frequency; } /** * Tx packets per frequency. * * Generated from protobuf field map tx_packets_per_frequency = 12; * @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 map rx_packets_per_frequency = 13; * @return \Google\Protobuf\Internal\MapField */ public function getRxPacketsPerFrequency() { return $this->rx_packets_per_frequency; } /** * Rx packets per frequency. * * Generated from protobuf field map rx_packets_per_frequency = 13; * @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 repeated .gw.PerModulationCount tx_packets_per_modulation = 14; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTxPacketsPerModulation() { return $this->tx_packets_per_modulation; } /** * Tx packets per modulation parameters. * * Generated from protobuf field repeated .gw.PerModulationCount tx_packets_per_modulation = 14; * @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 repeated .gw.PerModulationCount rx_packets_per_modulation = 15; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRxPacketsPerModulation() { return $this->rx_packets_per_modulation; } /** * Rx packets per modulation parameters. * * Generated from protobuf field repeated .gw.PerModulationCount rx_packets_per_modulation = 15; * @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 map tx_packets_per_status = 16; * @return \Google\Protobuf\Internal\MapField */ public function getTxPacketsPerStatus() { return $this->tx_packets_per_status; } /** * Tx packets per status. * * Generated from protobuf field map tx_packets_per_status = 16; * @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 .gw.DutyCycleStats duty_cycle_stats = 18; * @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 .gw.DutyCycleStats duty_cycle_stats = 18; * @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; } }