gw.Modulation */ 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 .gw.LoraModulationInfo lora = 3; * @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 .gw.LoraModulationInfo lora = 3; * @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 .gw.FskModulationInfo fsk = 4; * @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 .gw.FskModulationInfo fsk = 4; * @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 .gw.LrFhssModulationInfo lr_fhss = 5; * @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 .gw.LrFhssModulationInfo lr_fhss = 5; * @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"); } }