Logging/src/V2/LogMetric.php
public function setVersion($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Logging\V2\LogMetric_ApiVersion::class);
        $this->version = $var;

        return $this;
    }
public function setVersion($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Logging\V2\LogMetric_ApiVersion::class);
        $this->version = $var;

        return $this;
    }
public function setVersion ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Logging \ V2 \ LogMetric_ApiVersion :: class ) ; $ this -> version = $ var ; return $ this ; }
Deprecated. The API version that created or updated this metric.
The v2 format is used by default and cannot be changed.

Generated from protobuf field <code>.google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true];</code>
@param int $var
@return $this
Deprecated . The API version that created or updated this metric . The v2 format is used by default and cannot be changed .