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

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

        return $this;
    }
public function setMetrics ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Api \ MetricDescriptor :: class ) ; $ this -> metrics = $ arr ; return $ this ; }
Defines the metrics used by this service.

Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
@param \Google\Api\MetricDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Defines the metrics used by this service .