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

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.PerModulationCount</code>
*/
class PerModulationCount extends \Google\Protobuf\Internal\Message
{
/**
* Modulation.
*
* Generated from protobuf field <code>.gw.Modulation modulation = 1;</code>
*/
protected $modulation = null;
/**
* Count.
*
* Generated from protobuf field <code>uint32 count = 2;</code>
*/
protected $count = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Gateway\Modulation $modulation
* Modulation.
* @type int $count
* Count.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Modulation.
*
* Generated from protobuf field <code>.gw.Modulation modulation = 1;</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 = 1;</code>
* @param \Chirpstack\Gateway\Modulation $var
* @return $this
*/
public function setModulation($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\Modulation::class);
$this->modulation = $var;
return $this;
}
/**
* Count.
*
* Generated from protobuf field <code>uint32 count = 2;</code>
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Count.
*
* Generated from protobuf field <code>uint32 count = 2;</code>
* @param int $var
* @return $this
*/
public function setCount($var)
{
GPBUtil::checkUint32($var);
$this->count = $var;
return $this;
}
}