mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-25 21:40:06 +00:00
172 lines
4.0 KiB
PHP
Vendored
172 lines
4.0 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.LrFhssModulationInfo</code>
|
|
*/
|
|
class LrFhssModulationInfo extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Operating channel width (OCW) in Hz.
|
|
*
|
|
* Generated from protobuf field <code>uint32 operating_channel_width = 1;</code>
|
|
*/
|
|
protected $operating_channel_width = 0;
|
|
/**
|
|
* Code-rate.
|
|
* Deprecated: use code_rate.
|
|
*
|
|
* Generated from protobuf field <code>string code_rate_legacy = 2;</code>
|
|
*/
|
|
protected $code_rate_legacy = '';
|
|
/**
|
|
* Code-rate.
|
|
*
|
|
* Generated from protobuf field <code>.gw.CodeRate code_rate = 4;</code>
|
|
*/
|
|
protected $code_rate = 0;
|
|
/**
|
|
* Hopping grid number of steps.
|
|
*
|
|
* Generated from protobuf field <code>uint32 grid_steps = 3;</code>
|
|
*/
|
|
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 <code>uint32 operating_channel_width = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getOperatingChannelWidth()
|
|
{
|
|
return $this->operating_channel_width;
|
|
}
|
|
|
|
/**
|
|
* Operating channel width (OCW) in Hz.
|
|
*
|
|
* Generated from protobuf field <code>uint32 operating_channel_width = 1;</code>
|
|
* @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 <code>string code_rate_legacy = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getCodeRateLegacy()
|
|
{
|
|
return $this->code_rate_legacy;
|
|
}
|
|
|
|
/**
|
|
* Code-rate.
|
|
* Deprecated: use code_rate.
|
|
*
|
|
* Generated from protobuf field <code>string code_rate_legacy = 2;</code>
|
|
* @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 <code>.gw.CodeRate code_rate = 4;</code>
|
|
* @return int
|
|
*/
|
|
public function getCodeRate()
|
|
{
|
|
return $this->code_rate;
|
|
}
|
|
|
|
/**
|
|
* Code-rate.
|
|
*
|
|
* Generated from protobuf field <code>.gw.CodeRate code_rate = 4;</code>
|
|
* @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 <code>uint32 grid_steps = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getGridSteps()
|
|
{
|
|
return $this->grid_steps;
|
|
}
|
|
|
|
/**
|
|
* Hopping grid number of steps.
|
|
*
|
|
* Generated from protobuf field <code>uint32 grid_steps = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setGridSteps($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->grid_steps = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|