public function setMetricRules($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class);
        $this->metric_rules = $arr;

        return $this;
    }
public function setMetricRules($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class);
        $this->metric_rules = $arr;

        return $this;
    }
public function setMetricRules ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Api \ MetricRule :: class ) ; $ this -> metric_rules = $ arr ; return $ this ; }
List of `MetricRule` definitions, each one mapping a selected method to one
or more metrics.
Used by metric-based quotas only.

Generated from protobuf field <code>repeated .google.api.MetricRule metric_rules = 4;</code>
@param \Google\Api\MetricRule[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
List of MetricRule definitions each one mapping a selected method to one or more metrics . Used by metric - based quotas only .