<?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 products to generate benchmarks metrics for.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ProductFilter.ProductList</code>
 */
class ProductList extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Products to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>repeated string product_codes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $product_codes;

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

    /**
     * Required. Products to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>repeated string product_codes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getProductCodes()
    {
        return $this->product_codes;
    }

    /**
     * Required. Products to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>repeated string product_codes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setProductCodes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->product_codes = $arr;

        return $this;
    }

}

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

