mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-25 21:40:06 +00:00
243 lines
5.9 KiB
PHP
Vendored
243 lines
5.9 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.ChannelConfiguration</code>
|
|
*/
|
|
class ChannelConfiguration extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Frequency (Hz).
|
|
*
|
|
* Generated from protobuf field <code>uint32 frequency = 1;</code>
|
|
*/
|
|
protected $frequency = 0;
|
|
/**
|
|
* Modulation (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.common.Modulation modulation_legacy = 2;</code>
|
|
*/
|
|
protected $modulation_legacy = 0;
|
|
/**
|
|
* Board index.
|
|
*
|
|
* Generated from protobuf field <code>uint32 board = 5;</code>
|
|
*/
|
|
protected $board = 0;
|
|
/**
|
|
* Demodulator index (of the given board).
|
|
*
|
|
* Generated from protobuf field <code>uint32 demodulator = 6;</code>
|
|
*/
|
|
protected $demodulator = 0;
|
|
protected $modulation_config;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $frequency
|
|
* Frequency (Hz).
|
|
* @type int $modulation_legacy
|
|
* Modulation (deprecated).
|
|
* @type \Chirpstack\Gateway\LoraModulationConfig $lora_modulation_config
|
|
* LoRa modulation config.
|
|
* @type \Chirpstack\Gateway\FskModulationConfig $fsk_modulation_config
|
|
* FSK modulation config.
|
|
* @type int $board
|
|
* Board index.
|
|
* @type int $demodulator
|
|
* Demodulator index (of the given board).
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Frequency (Hz).
|
|
*
|
|
* Generated from protobuf field <code>uint32 frequency = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getFrequency()
|
|
{
|
|
return $this->frequency;
|
|
}
|
|
|
|
/**
|
|
* Frequency (Hz).
|
|
*
|
|
* Generated from protobuf field <code>uint32 frequency = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setFrequency($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->frequency = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Modulation (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.common.Modulation modulation_legacy = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getModulationLegacy()
|
|
{
|
|
return $this->modulation_legacy;
|
|
}
|
|
|
|
/**
|
|
* Modulation (deprecated).
|
|
*
|
|
* Generated from protobuf field <code>.common.Modulation modulation_legacy = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setModulationLegacy($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Common\Modulation::class);
|
|
$this->modulation_legacy = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* LoRa modulation config.
|
|
*
|
|
* Generated from protobuf field <code>.gw.LoraModulationConfig lora_modulation_config = 3;</code>
|
|
* @return \Chirpstack\Gateway\LoraModulationConfig|null
|
|
*/
|
|
public function getLoraModulationConfig()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasLoraModulationConfig()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* LoRa modulation config.
|
|
*
|
|
* Generated from protobuf field <code>.gw.LoraModulationConfig lora_modulation_config = 3;</code>
|
|
* @param \Chirpstack\Gateway\LoraModulationConfig $var
|
|
* @return $this
|
|
*/
|
|
public function setLoraModulationConfig($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\LoraModulationConfig::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* FSK modulation config.
|
|
*
|
|
* Generated from protobuf field <code>.gw.FskModulationConfig fsk_modulation_config = 4;</code>
|
|
* @return \Chirpstack\Gateway\FskModulationConfig|null
|
|
*/
|
|
public function getFskModulationConfig()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasFskModulationConfig()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* FSK modulation config.
|
|
*
|
|
* Generated from protobuf field <code>.gw.FskModulationConfig fsk_modulation_config = 4;</code>
|
|
* @param \Chirpstack\Gateway\FskModulationConfig $var
|
|
* @return $this
|
|
*/
|
|
public function setFskModulationConfig($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\FskModulationConfig::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Board index.
|
|
*
|
|
* Generated from protobuf field <code>uint32 board = 5;</code>
|
|
* @return int
|
|
*/
|
|
public function getBoard()
|
|
{
|
|
return $this->board;
|
|
}
|
|
|
|
/**
|
|
* Board index.
|
|
*
|
|
* Generated from protobuf field <code>uint32 board = 5;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setBoard($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->board = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Demodulator index (of the given board).
|
|
*
|
|
* Generated from protobuf field <code>uint32 demodulator = 6;</code>
|
|
* @return int
|
|
*/
|
|
public function getDemodulator()
|
|
{
|
|
return $this->demodulator;
|
|
}
|
|
|
|
/**
|
|
* Demodulator index (of the given board).
|
|
*
|
|
* Generated from protobuf field <code>uint32 demodulator = 6;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setDemodulator($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->demodulator = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getModulationConfig()
|
|
{
|
|
return $this->whichOneof("modulation_config");
|
|
}
|
|
|
|
}
|
|
|