Google Analytics Data V1alpha Client - Class ActiveMetricRestriction (0.18.0)

Reference documentation and code samples for the Google Analytics Data V1alpha Client class ActiveMetricRestriction.

A metric actively restricted in creating the report.

Generated from protobuf message google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

Namespace

Google \ Analytics \ Data \ V1alpha \ ResponseMetaData \ SchemaRestrictionResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_name string

The name of the restricted metric.

↳ restricted_metric_types array

The reason for this metric's restriction.

getMetricName

The name of the restricted metric.

Returns
Type Description
string

hasMetricName

clearMetricName

setMetricName

The name of the restricted metric.

Parameter
Name Description
var string
Returns
Type Description
$this

getRestrictedMetricTypes

The reason for this metric's restriction.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRestrictedMetricTypes

The reason for this metric's restriction.

Parameter
Name Description
var int[]
Returns
Type Description
$this