<?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;
/**
 * Access report data for each row.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.AccessRow</code>
 */
class AccessRow extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * List of dimension values. These values are in the same order as specified
     * in the request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1;</code>
     */
    private $dimension_values;
    /**
     * List of metric values. These values are in the same order as specified
     * in the request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2;</code>
     */
    private $metric_values;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values
     *           List of dimension values. These values are in the same order as specified
     *           in the request.
     *     @type array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values
     *           List of metric values. These values are in the same order as specified
     *           in the request.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce();
        parent::__construct($data);
    }
    /**
     * List of dimension values. These values are in the same order as specified
     * in the request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDimensionValues()
    {
        return $this->dimension_values;
    }
    /**
     * List of dimension values. These values are in the same order as specified
     * in the request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1;</code>
     * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDimensionValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType::MESSAGE, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AccessDimensionValue::class);
        $this->dimension_values = $arr;
        return $this;
    }
    /**
     * List of metric values. These values are in the same order as specified
     * in the request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMetricValues()
    {
        return $this->metric_values;
    }
    /**
     * List of metric values. These values are in the same order as specified
     * in the request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2;</code>
     * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMetricValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType::MESSAGE, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AccessMetricValue::class);
        $this->metric_values = $arr;
        return $this;
    }
}
