Logging/src/V2/ListLogMetricsResponse.php
public function setMetrics($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Logging\V2\LogMetric::class);
        $this->metrics = $arr;

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

        return $this;
    }
public function setMetrics ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Logging \ V2 \ LogMetric :: class ) ; $ this -> metrics = $ arr ; return $ this ; }
A list of logs-based metrics.

Generated from protobuf field <code>repeated .google.logging.v2.LogMetric metrics = 1;</code>
@param \Google\Cloud\Logging\V2\LogMetric[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
A list of logs - based metrics .