api.GetGatewayDutyCycleMetricsResponse */ class GetGatewayDutyCycleMetricsResponse extends \Google\Protobuf\Internal\Message { /** * Percentage relative to max load. * * Generated from protobuf field .common.Metric max_load_percentage = 1; */ protected $max_load_percentage = null; /** * Percentage relative to tracking window. * * Generated from protobuf field .common.Metric window_percentage = 2; */ 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 .common.Metric max_load_percentage = 1; * @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 .common.Metric max_load_percentage = 1; * @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 .common.Metric window_percentage = 2; * @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 .common.Metric window_percentage = 2; * @param \Chirpstack\Common\Metric $var * @return $this */ public function setWindowPercentage($var) { GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); $this->window_percentage = $var; return $this; } }