chirpstack/api/php/generated/Chirpstack/Gateway/FskModulationInfo.php
2024-06-25 12:27:28 +01:00

100 lines
2.2 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.FskModulationInfo</code>
*/
class FskModulationInfo extends \Google\Protobuf\Internal\Message
{
/**
* Frequency deviation.
*
* Generated from protobuf field <code>uint32 frequency_deviation = 1;</code>
*/
protected $frequency_deviation = 0;
/**
* FSK datarate (bits / sec).
*
* Generated from protobuf field <code>uint32 datarate = 2;</code>
*/
protected $datarate = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $frequency_deviation
* Frequency deviation.
* @type int $datarate
* FSK datarate (bits / sec).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Frequency deviation.
*
* Generated from protobuf field <code>uint32 frequency_deviation = 1;</code>
* @return int
*/
public function getFrequencyDeviation()
{
return $this->frequency_deviation;
}
/**
* Frequency deviation.
*
* Generated from protobuf field <code>uint32 frequency_deviation = 1;</code>
* @param int $var
* @return $this
*/
public function setFrequencyDeviation($var)
{
GPBUtil::checkUint32($var);
$this->frequency_deviation = $var;
return $this;
}
/**
* FSK datarate (bits / sec).
*
* Generated from protobuf field <code>uint32 datarate = 2;</code>
* @return int
*/
public function getDatarate()
{
return $this->datarate;
}
/**
* FSK datarate (bits / sec).
*
* Generated from protobuf field <code>uint32 datarate = 2;</code>
* @param int $var
* @return $this
*/
public function setDatarate($var)
{
GPBUtil::checkUint32($var);
$this->datarate = $var;
return $this;
}
}