mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
120 lines
3.1 KiB
PHP
Vendored
120 lines
3.1 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/gateway.proto
|
|
|
|
namespace Chirpstack\Api;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>api.GetGatewayDutyCycleMetricsResponse</code>
|
|
*/
|
|
class GetGatewayDutyCycleMetricsResponse extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Percentage relative to max load.
|
|
*
|
|
* Generated from protobuf field <code>.common.Metric max_load_percentage = 1;</code>
|
|
*/
|
|
protected $max_load_percentage = null;
|
|
/**
|
|
* Percentage relative to tracking window.
|
|
*
|
|
* Generated from protobuf field <code>.common.Metric window_percentage = 2;</code>
|
|
*/
|
|
protected $window_percentage = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Chirpstack\Common\Metric $max_load_percentage
|
|
* Percentage relative to max load.
|
|
* @type \Chirpstack\Common\Metric $window_percentage
|
|
* Percentage relative to tracking window.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Percentage relative to max load.
|
|
*
|
|
* Generated from protobuf field <code>.common.Metric max_load_percentage = 1;</code>
|
|
* @return \Chirpstack\Common\Metric|null
|
|
*/
|
|
public function getMaxLoadPercentage()
|
|
{
|
|
return $this->max_load_percentage;
|
|
}
|
|
|
|
public function hasMaxLoadPercentage()
|
|
{
|
|
return isset($this->max_load_percentage);
|
|
}
|
|
|
|
public function clearMaxLoadPercentage()
|
|
{
|
|
unset($this->max_load_percentage);
|
|
}
|
|
|
|
/**
|
|
* Percentage relative to max load.
|
|
*
|
|
* Generated from protobuf field <code>.common.Metric max_load_percentage = 1;</code>
|
|
* @param \Chirpstack\Common\Metric $var
|
|
* @return $this
|
|
*/
|
|
public function setMaxLoadPercentage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class);
|
|
$this->max_load_percentage = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Percentage relative to tracking window.
|
|
*
|
|
* Generated from protobuf field <code>.common.Metric window_percentage = 2;</code>
|
|
* @return \Chirpstack\Common\Metric|null
|
|
*/
|
|
public function getWindowPercentage()
|
|
{
|
|
return $this->window_percentage;
|
|
}
|
|
|
|
public function hasWindowPercentage()
|
|
{
|
|
return isset($this->window_percentage);
|
|
}
|
|
|
|
public function clearWindowPercentage()
|
|
{
|
|
unset($this->window_percentage);
|
|
}
|
|
|
|
/**
|
|
* Percentage relative to tracking window.
|
|
*
|
|
* Generated from protobuf field <code>.common.Metric window_percentage = 2;</code>
|
|
* @param \Chirpstack\Common\Metric $var
|
|
* @return $this
|
|
*/
|
|
public function setWindowPercentage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class);
|
|
$this->window_percentage = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|