Google Analytics Data V1alpha Client - Class SchemaRestrictionResponse (0.20.0)

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

The schema restrictions actively enforced in creating this report. To learn more, see Access and data-restriction management.

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

Namespace

Google \ Analytics \ Data \ V1alpha \ ResponseMetaData

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ active_metric_restrictions array<Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>

All restrictions actively enforced in creating the report. For example, purchaseRevenue always has the restriction type REVENUE_DATA. However, this active response restriction is only populated if the user's custom role disallows access to REVENUE_DATA.

getActiveMetricRestrictions

All restrictions actively enforced in creating the report. For example, purchaseRevenue always has the restriction type REVENUE_DATA.

However, this active response restriction is only populated if the user's custom role disallows access to REVENUE_DATA.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setActiveMetricRestrictions

All restrictions actively enforced in creating the report. For example, purchaseRevenue always has the restriction type REVENUE_DATA.

However, this active response restriction is only populated if the user's custom role disallows access to REVENUE_DATA.

Parameter
Name Description
var array<Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>
Returns
Type Description
$this