<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1beta/access_report.proto

namespace Google\Analytics\Admin\V1beta;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Access report data for each row.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1beta.AccessRow</code>
 */
class AccessRow extends \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.v1beta.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.v1beta.AccessMetricValue metric_values = 2;</code>
     */
    private $metric_values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Analytics\Admin\V1beta\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\V1beta\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) {
        \GPBMetadata\Google\Analytics\Admin\V1Beta\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.v1beta.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.v1beta.AccessDimensionValue dimension_values = 1;</code>
     * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDimensionValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\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.v1beta.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.v1beta.AccessMetricValue metric_values = 2;</code>
     * @param array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMetricValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricValue::class);
        $this->metric_values = $arr;

        return $this;
    }

}

