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

namespace Google\Analytics\Data\V1beta;

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

/**
 * Report data for each row.
 * For example if RunReportRequest contains:
 * ```none
 * "dimensions": [
 *   {
 *     "name": "eventName"
 *   },
 *   {
 *     "name": "countryId"
 *   }
 * ],
 * "metrics": [
 *   {
 *     "name": "eventCount"
 *   }
 * ]
 * ```
 * One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and
 * 15 as the eventCount, would be:
 * ```none
 * "dimensionValues": [
 *   {
 *     "value": "in_app_purchase"
 *   },
 *   {
 *     "value": "JP"
 *   }
 * ],
 * "metricValues": [
 *   {
 *     "value": "15"
 *   }
 * ]
 * ```
 *
 * Generated from protobuf message <code>google.analytics.data.v1beta.Row</code>
 */
class Row extends \Google\Protobuf\Internal\Message
{
    /**
     * List of requested dimension values. In a PivotReport, dimension_values
     * are only listed for dimensions included in a pivot.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1;</code>
     */
    private $dimension_values;
    /**
     * List of requested visible metric values.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.MetricValue metric_values = 2;</code>
     */
    private $metric_values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Analytics\Data\V1beta\DimensionValue[] $dimension_values
     *           List of requested dimension values. In a PivotReport, dimension_values
     *           are only listed for dimensions included in a pivot.
     *     @type \Google\Analytics\Data\V1beta\MetricValue[] $metric_values
     *           List of requested visible metric values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * List of requested dimension values. In a PivotReport, dimension_values
     * are only listed for dimensions included in a pivot.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1;</code>
     * @return RepeatedField<\Google\Analytics\Data\V1beta\DimensionValue>
     */
    public function getDimensionValues()
    {
        return $this->dimension_values;
    }

    /**
     * List of requested dimension values. In a PivotReport, dimension_values
     * are only listed for dimensions included in a pivot.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1;</code>
     * @param \Google\Analytics\Data\V1beta\DimensionValue[] $var
     * @return $this
     */
    public function setDimensionValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class);
        $this->dimension_values = $arr;

        return $this;
    }

    /**
     * List of requested visible metric values.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.MetricValue metric_values = 2;</code>
     * @return RepeatedField<\Google\Analytics\Data\V1beta\MetricValue>
     */
    public function getMetricValues()
    {
        return $this->metric_values;
    }

    /**
     * List of requested visible metric values.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.MetricValue metric_values = 2;</code>
     * @param \Google\Analytics\Data\V1beta\MetricValue[] $var
     * @return $this
     */
    public function setMetricValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricValue::class);
        $this->metric_values = $arr;

        return $this;
    }

}

