Google Analytics Data V1beta Client - Class MetricCompatibility (0.16.3)

Reference documentation and code samples for the Google Analytics Data V1beta Client class MetricCompatibility.

The compatibility for a single metric.

Generated from protobuf message google.analytics.data.v1beta.MetricCompatibility

Namespace

Google \ Analytics \ Data \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_metadata Google\Analytics\Data\V1beta\MetricMetadata

The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.

↳ compatibility int

The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.

getMetricMetadata

The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.

Returns
Type Description
Google\Analytics\Data\V1beta\MetricMetadata|null

hasMetricMetadata

clearMetricMetadata

setMetricMetadata

The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.

Parameter
Name Description
var Google\Analytics\Data\V1beta\MetricMetadata
Returns
Type Description
$this

getCompatibility

The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.

Returns
Type Description
int

hasCompatibility

clearCompatibility

setCompatibility

The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.

Parameter
Name Description
var int
Returns
Type Description
$this