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

namespace Google\Ads\GoogleAds\V23\Services\ProductFilter;

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

/**
 * The list of marketing objectives to generate benchmarks metrics for.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ProductFilter.MarketingObjectiveList</code>
 */
class MarketingObjectiveList extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Marketing objectives to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.BenchmarksMarketingObjectiveEnum.BenchmarksMarketingObjective marketing_objectives = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $marketing_objectives;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $marketing_objectives
     *           Required. Marketing objectives to generate benchmarks metrics for.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Marketing objectives to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.BenchmarksMarketingObjectiveEnum.BenchmarksMarketingObjective marketing_objectives = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMarketingObjectives()
    {
        return $this->marketing_objectives;
    }

    /**
     * Required. Marketing objectives to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.BenchmarksMarketingObjectiveEnum.BenchmarksMarketingObjective marketing_objectives = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMarketingObjectives($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V23\Enums\BenchmarksMarketingObjectiveEnum\BenchmarksMarketingObjective::class);
        $this->marketing_objectives = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MarketingObjectiveList::class, \Google\Ads\GoogleAds\V23\Services\ProductFilter_MarketingObjectiveList::class);

