gw.LrFhssModulationInfo
*/
class LrFhssModulationInfo extends \Google\Protobuf\Internal\Message
{
/**
* Operating channel width (OCW) in Hz.
*
* Generated from protobuf field uint32 operating_channel_width = 1;
*/
protected $operating_channel_width = 0;
/**
* Code-rate.
* Deprecated: use code_rate.
*
* Generated from protobuf field string code_rate_legacy = 2;
*/
protected $code_rate_legacy = '';
/**
* Code-rate.
*
* Generated from protobuf field .gw.CodeRate code_rate = 4;
*/
protected $code_rate = 0;
/**
* Hopping grid number of steps.
*
* Generated from protobuf field uint32 grid_steps = 3;
*/
protected $grid_steps = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $operating_channel_width
* Operating channel width (OCW) in Hz.
* @type string $code_rate_legacy
* Code-rate.
* Deprecated: use code_rate.
* @type int $code_rate
* Code-rate.
* @type int $grid_steps
* Hopping grid number of steps.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Operating channel width (OCW) in Hz.
*
* Generated from protobuf field uint32 operating_channel_width = 1;
* @return int
*/
public function getOperatingChannelWidth()
{
return $this->operating_channel_width;
}
/**
* Operating channel width (OCW) in Hz.
*
* Generated from protobuf field uint32 operating_channel_width = 1;
* @param int $var
* @return $this
*/
public function setOperatingChannelWidth($var)
{
GPBUtil::checkUint32($var);
$this->operating_channel_width = $var;
return $this;
}
/**
* Code-rate.
* Deprecated: use code_rate.
*
* Generated from protobuf field string code_rate_legacy = 2;
* @return string
*/
public function getCodeRateLegacy()
{
return $this->code_rate_legacy;
}
/**
* Code-rate.
* Deprecated: use code_rate.
*
* Generated from protobuf field string code_rate_legacy = 2;
* @param string $var
* @return $this
*/
public function setCodeRateLegacy($var)
{
GPBUtil::checkString($var, True);
$this->code_rate_legacy = $var;
return $this;
}
/**
* Code-rate.
*
* Generated from protobuf field .gw.CodeRate code_rate = 4;
* @return int
*/
public function getCodeRate()
{
return $this->code_rate;
}
/**
* Code-rate.
*
* Generated from protobuf field .gw.CodeRate code_rate = 4;
* @param int $var
* @return $this
*/
public function setCodeRate($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Gateway\CodeRate::class);
$this->code_rate = $var;
return $this;
}
/**
* Hopping grid number of steps.
*
* Generated from protobuf field uint32 grid_steps = 3;
* @return int
*/
public function getGridSteps()
{
return $this->grid_steps;
}
/**
* Hopping grid number of steps.
*
* Generated from protobuf field uint32 grid_steps = 3;
* @param int $var
* @return $this
*/
public function setGridSteps($var)
{
GPBUtil::checkUint32($var);
$this->grid_steps = $var;
return $this;
}
}