<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v23/services/audience_insights_service.proto

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * A collection of dimensions to be used for generating insights.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.AudienceInsightsDimensions</code>
 */
class AudienceInsightsDimensions extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A list of dimensions.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $dimensions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $dimensions
     *           Required. A list of dimensions.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A list of dimensions.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDimensions()
    {
        return $this->dimensions;
    }

    /**
     * Required. A list of dimensions.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDimensions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V23\Enums\AudienceInsightsDimensionEnum\AudienceInsightsDimension::class);
        $this->dimensions = $arr;

        return $this;
    }

}

