<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1beta/data.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1beta\ResponseMetaData;

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * The schema restrictions actively enforced in creating this report. To learn
 * more, see [Access and data-restriction
 * management](https://support.google.com/analytics/answer/10851388).
 *
 * Generated from protobuf message <code>google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse</code>
 */
class SchemaRestrictionResponse extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * 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`.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1;</code>
     */
    private $active_metric_restrictions;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $active_metric_restrictions
     *           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`.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce();
        parent::__construct($data);
    }
    /**
     * 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`.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getActiveMetricRestrictions()
    {
        return $this->active_metric_restrictions;
    }
    /**
     * 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`.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1;</code>
     * @param array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setActiveMetricRestrictions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType::MESSAGE, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction::class);
        $this->active_metric_restrictions = $arr;
        return $this;
    }
}
