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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * The aggregate metrics specification of the request.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.KeywordPlanAggregateMetrics</code>
 */
class KeywordPlanAggregateMetrics extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of aggregate metrics to fetch data.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;</code>
     */
    private $aggregate_metric_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int[] $aggregate_metric_types
     *           The list of aggregate metrics to fetch data.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\KeywordPlanCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of aggregate metrics to fetch data.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;</code>
     *
     * @return RepeatedField<int>
     */
    public function getAggregateMetricTypes()
    {
        return $this->aggregate_metric_types;
    }

    /**
     * The list of aggregate metrics to fetch data.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;</code>
     *
     * @param  int[] $var
     * @return $this
     */
    public function setAggregateMetricTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V23\Enums\KeywordPlanAggregateMetricTypeEnum\KeywordPlanAggregateMetricType::class);
        $this->aggregate_metric_types = $arr;

        return $this;
    }

}

