Logging/src/V2/UpdateLogMetricRequest.php
public function setMetric($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogMetric::class);
        $this->metric = $var;

        return $this;
    }
public function setMetric($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogMetric::class);
        $this->metric = $var;

        return $this;
    }
public function setMetric ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Logging \ V2 \ LogMetric :: class ) ; $ this -> metric = $ var ; return $ this ; }
The updated metric.

Generated from protobuf field <code>.google.logging.v2.LogMetric metric = 2;</code>
@param \Google\Cloud\Logging\V2\LogMetric $var
@return $this
The updated metric .