gw.DutyCycleStats */ class DutyCycleStats extends \Google\Protobuf\Internal\Message { /** * Implemented regulation. * * Generated from protobuf field .common.Regulation regulation = 1; */ protected $regulation = 0; /** * Tracking window. * * Generated from protobuf field .google.protobuf.Duration window = 2; */ protected $window = null; /** * Bands. * * Generated from protobuf field repeated .gw.DutyCycleBand bands = 3; */ 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 .common.Regulation regulation = 1; * @return int */ public function getRegulation() { return $this->regulation; } /** * Implemented regulation. * * Generated from protobuf field .common.Regulation regulation = 1; * @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 .google.protobuf.Duration window = 2; * @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 .google.protobuf.Duration window = 2; * @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 repeated .gw.DutyCycleBand bands = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBands() { return $this->bands; } /** * Bands. * * Generated from protobuf field repeated .gw.DutyCycleBand bands = 3; * @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; } }