gw.LoraModulationConfig
*/
class LoraModulationConfig extends \Google\Protobuf\Internal\Message
{
/**
* Bandwidth (kHz).
* Deprecated: use bandwidth.
*
* Generated from protobuf field uint32 bandwidth_legacy = 1;
*/
protected $bandwidth_legacy = 0;
/**
* Bandwidth (Hz).
*
* Generated from protobuf field uint32 bandwidth = 3;
*/
protected $bandwidth = 0;
/**
* Spreading-factors.
*
* Generated from protobuf field repeated uint32 spreading_factors = 2;
*/
private $spreading_factors;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $bandwidth_legacy
* Bandwidth (kHz).
* Deprecated: use bandwidth.
* @type int $bandwidth
* Bandwidth (Hz).
* @type array|\Google\Protobuf\Internal\RepeatedField $spreading_factors
* Spreading-factors.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Bandwidth (kHz).
* Deprecated: use bandwidth.
*
* Generated from protobuf field uint32 bandwidth_legacy = 1;
* @return int
*/
public function getBandwidthLegacy()
{
return $this->bandwidth_legacy;
}
/**
* Bandwidth (kHz).
* Deprecated: use bandwidth.
*
* Generated from protobuf field uint32 bandwidth_legacy = 1;
* @param int $var
* @return $this
*/
public function setBandwidthLegacy($var)
{
GPBUtil::checkUint32($var);
$this->bandwidth_legacy = $var;
return $this;
}
/**
* Bandwidth (Hz).
*
* Generated from protobuf field uint32 bandwidth = 3;
* @return int
*/
public function getBandwidth()
{
return $this->bandwidth;
}
/**
* Bandwidth (Hz).
*
* Generated from protobuf field uint32 bandwidth = 3;
* @param int $var
* @return $this
*/
public function setBandwidth($var)
{
GPBUtil::checkUint32($var);
$this->bandwidth = $var;
return $this;
}
/**
* Spreading-factors.
*
* Generated from protobuf field repeated uint32 spreading_factors = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getSpreadingFactors()
{
return $this->spreading_factors;
}
/**
* Spreading-factors.
*
* Generated from protobuf field repeated uint32 spreading_factors = 2;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setSpreadingFactors($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
$this->spreading_factors = $arr;
return $this;
}
}