<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/access_report.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha;

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * Dimensions are attributes of your data. For example, the dimension
 * `userEmail` indicates the email of the user that accessed reporting data.
 * Dimension values in report responses are strings.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.AccessDimension</code>
 */
class AccessDimension extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * The API name of the dimension. See [Data Access
     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
     * for the list of dimensions supported in this API.
     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
     *
     * Generated from protobuf field <code>string dimension_name = 1;</code>
     */
    private $dimension_name = '';
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dimension_name
     *           The API name of the dimension. See [Data Access
     *           Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
     *           for the list of dimensions supported in this API.
     *           Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce();
        parent::__construct($data);
    }
    /**
     * The API name of the dimension. See [Data Access
     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
     * for the list of dimensions supported in this API.
     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
     *
     * Generated from protobuf field <code>string dimension_name = 1;</code>
     * @return string
     */
    public function getDimensionName()
    {
        return $this->dimension_name;
    }
    /**
     * The API name of the dimension. See [Data Access
     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
     * for the list of dimensions supported in this API.
     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
     *
     * Generated from protobuf field <code>string dimension_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDimensionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->dimension_name = $var;
        return $this;
    }
}
