google.api.Quota
*/
class Quota extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* List of QuotaLimit definitions for the service.
*
* Generated from protobuf field repeated .google.api.QuotaLimit limits = 3;
*/
private $limits;
/**
* List of MetricRule definitions, each one mapping a selected method to one
* or more metrics.
*
* Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4;
*/
private $metric_rules;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $limits
* List of QuotaLimit definitions for the service.
* @type array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $metric_rules
* List of MetricRule definitions, each one mapping a selected method to one
* or more metrics.
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Quota::initOnce();
parent::__construct($data);
}
/**
* List of QuotaLimit definitions for the service.
*
* Generated from protobuf field repeated .google.api.QuotaLimit limits = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getLimits()
{
return $this->limits;
}
/**
* List of QuotaLimit definitions for the service.
*
* Generated from protobuf field repeated .google.api.QuotaLimit limits = 3;
* @param array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setLimits($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\QuotaLimit::class);
$this->limits = $arr;
return $this;
}
/**
* List of MetricRule definitions, each one mapping a selected method to one
* or more metrics.
*
* Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMetricRules()
{
return $this->metric_rules;
}
/**
* List of MetricRule definitions, each one mapping a selected method to one
* or more metrics.
*
* Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4;
* @param array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMetricRules($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricRule::class);
$this->metric_rules = $arr;
return $this;
}
}