mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
110 lines
2.4 KiB
PHP
Vendored
110 lines
2.4 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.UplinkTxInfo</code>
|
|
*/
|
|
class UplinkTxInfo extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Frequency (Hz).
|
|
*
|
|
* Generated from protobuf field <code>uint32 frequency = 1;</code>
|
|
*/
|
|
protected $frequency = 0;
|
|
/**
|
|
* Modulation.
|
|
*
|
|
* Generated from protobuf field <code>.gw.Modulation modulation = 2;</code>
|
|
*/
|
|
protected $modulation = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $frequency
|
|
* Frequency (Hz).
|
|
* @type \Chirpstack\Gateway\Modulation $modulation
|
|
* Modulation.
|
|
* }
|
|
*/
|
|
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.
|
|
*
|
|
* Generated from protobuf field <code>.gw.Modulation modulation = 2;</code>
|
|
* @return \Chirpstack\Gateway\Modulation|null
|
|
*/
|
|
public function getModulation()
|
|
{
|
|
return $this->modulation;
|
|
}
|
|
|
|
public function hasModulation()
|
|
{
|
|
return isset($this->modulation);
|
|
}
|
|
|
|
public function clearModulation()
|
|
{
|
|
unset($this->modulation);
|
|
}
|
|
|
|
/**
|
|
* Modulation.
|
|
*
|
|
* Generated from protobuf field <code>.gw.Modulation modulation = 2;</code>
|
|
* @param \Chirpstack\Gateway\Modulation $var
|
|
* @return $this
|
|
*/
|
|
public function setModulation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Gateway\Modulation::class);
|
|
$this->modulation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|