2024-06-25 12:27:28 +01:00

140 lines
3.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.Modulation</code>
*/
class Modulation extends \Google\Protobuf\Internal\Message
{
protected $parameters;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Gateway\LoraModulationInfo $lora
* LoRa modulation information.
* @type \Chirpstack\Gateway\FskModulationInfo $fsk
* FSK modulation information.
* @type \Chirpstack\Gateway\LrFhssModulationInfo $lr_fhss
* LR-FHSS modulation information.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* LoRa modulation information.
*
* Generated from protobuf field <code>.gw.LoraModulationInfo lora = 3;</code>
* @return \Chirpstack\Gateway\LoraModulationInfo|null
*/
public function getLora()
{
return $this->readOneof(3);
}
public function hasLora()
{
return $this->hasOneof(3);
}
/**
* LoRa modulation information.
*
* Generated from protobuf field <code>.gw.LoraModulationInfo lora = 3;</code>
* @param \Chirpstack\Gateway\LoraModulationInfo $var
* @return $this
*/
public function setLora($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\LoraModulationInfo::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* FSK modulation information.
*
* Generated from protobuf field <code>.gw.FskModulationInfo fsk = 4;</code>
* @return \Chirpstack\Gateway\FskModulationInfo|null
*/
public function getFsk()
{
return $this->readOneof(4);
}
public function hasFsk()
{
return $this->hasOneof(4);
}
/**
* FSK modulation information.
*
* Generated from protobuf field <code>.gw.FskModulationInfo fsk = 4;</code>
* @param \Chirpstack\Gateway\FskModulationInfo $var
* @return $this
*/
public function setFsk($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\FskModulationInfo::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* LR-FHSS modulation information.
*
* Generated from protobuf field <code>.gw.LrFhssModulationInfo lr_fhss = 5;</code>
* @return \Chirpstack\Gateway\LrFhssModulationInfo|null
*/
public function getLrFhss()
{
return $this->readOneof(5);
}
public function hasLrFhss()
{
return $this->hasOneof(5);
}
/**
* LR-FHSS modulation information.
*
* Generated from protobuf field <code>.gw.LrFhssModulationInfo lr_fhss = 5;</code>
* @param \Chirpstack\Gateway\LrFhssModulationInfo $var
* @return $this
*/
public function setLrFhss($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\LrFhssModulationInfo::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* @return string
*/
public function getParameters()
{
return $this->whichOneof("parameters");
}
}