Monitoring/src/V3/ListMetricDescriptorsResponse.php
public function setMetricDescriptors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricDescriptor::class);
        $this->metric_descriptors = $arr;

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

        return $this;
    }
public function setMetricDescriptors ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Api \ MetricDescriptor :: class ) ; $ this -> metric_descriptors = $ arr ; return $ this ; }
The metric descriptors that are available to the project
and that match the value of `filter`, if present.

Generated from protobuf field <code>repeated .google.api.MetricDescriptor metric_descriptors = 1;</code>
@param \Google\Api\MetricDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The metric descriptors that are available to the project and that match the value of filter if present .