public function setMetricCosts($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64);
        $this->metric_costs = $arr;

        return $this;
    }
public function setMetricCosts($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64);
        $this->metric_costs = $arr;

        return $this;
    }
public function setMetricCosts ( $ var ) { $ arr = GPBUtil :: checkMapField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING , \ Google \ Protobuf \ Internal \ GPBType :: INT64 ) ; $ this -> metric_costs = $ arr ; return $ this ; }
Metrics to update when the selected methods are called, and the associated
cost applied to each metric.
The key of the map is the metric name, and the values are the amount
increased for the metric against which the quota limits are defined.
The value must not be negative.

Generated from protobuf field <code>map<string, int64> metric_costs = 2;</code>
@param array|\Google\Protobuf\Internal\MapField $var
@return $this
Metrics to update when the selected methods are called and the associated cost applied to each metric . The key of the map is the metric name and the values are the amount increased for the metric against which the quota limits are defined . The value must not be negative .