Google Analytics Data V1beta Client - Class ActiveMetricRestriction (0.10.1)

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

A metric actively restricted in creating the report.

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

Namespace

Google \ Analytics \ Data \ V1beta \ ResponseMetaData \ SchemaRestrictionResponse

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

hasMetricName

clearMetricName

setMetricName

The name of the restricted metric.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRestrictedMetricTypes

The reason for this metric's restriction.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRestrictedMetricTypes

The reason for this metric's restriction.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this