mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
144 lines
3.5 KiB
PHP
Vendored
144 lines
3.5 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.DutyCycleStats</code>
|
|
*/
|
|
class DutyCycleStats extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Implemented regulation.
|
|
*
|
|
* Generated from protobuf field <code>.common.Regulation regulation = 1;</code>
|
|
*/
|
|
protected $regulation = 0;
|
|
/**
|
|
* Tracking window.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Duration window = 2;</code>
|
|
*/
|
|
protected $window = null;
|
|
/**
|
|
* Bands.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.DutyCycleBand bands = 3;</code>
|
|
*/
|
|
private $bands;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $regulation
|
|
* Implemented regulation.
|
|
* @type \Google\Protobuf\Duration $window
|
|
* Tracking window.
|
|
* @type array<\Chirpstack\Gateway\DutyCycleBand>|\Google\Protobuf\Internal\RepeatedField $bands
|
|
* Bands.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Implemented regulation.
|
|
*
|
|
* Generated from protobuf field <code>.common.Regulation regulation = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getRegulation()
|
|
{
|
|
return $this->regulation;
|
|
}
|
|
|
|
/**
|
|
* Implemented regulation.
|
|
*
|
|
* Generated from protobuf field <code>.common.Regulation regulation = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setRegulation($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Common\Regulation::class);
|
|
$this->regulation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tracking window.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Duration window = 2;</code>
|
|
* @return \Google\Protobuf\Duration|null
|
|
*/
|
|
public function getWindow()
|
|
{
|
|
return $this->window;
|
|
}
|
|
|
|
public function hasWindow()
|
|
{
|
|
return isset($this->window);
|
|
}
|
|
|
|
public function clearWindow()
|
|
{
|
|
unset($this->window);
|
|
}
|
|
|
|
/**
|
|
* Tracking window.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Duration window = 2;</code>
|
|
* @param \Google\Protobuf\Duration $var
|
|
* @return $this
|
|
*/
|
|
public function setWindow($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
|
|
$this->window = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Bands.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.DutyCycleBand bands = 3;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getBands()
|
|
{
|
|
return $this->bands;
|
|
}
|
|
|
|
/**
|
|
* Bands.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.DutyCycleBand bands = 3;</code>
|
|
* @param array<\Chirpstack\Gateway\DutyCycleBand>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setBands($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DutyCycleBand::class);
|
|
$this->bands = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|