<?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;

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

/**
 * Response message for
 * [BenchmarksService.ListBenchmarksProducts][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksProducts].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListBenchmarksProductsResponse</code>
 */
class ListBenchmarksProductsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of products available for benchmarks data.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.BenchmarksProductMetadata benchmarks_products = 1;</code>
     */
    private $benchmarks_products;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V23\Services\BenchmarksProductMetadata>|\Google\Protobuf\Internal\RepeatedField $benchmarks_products
     *           The list of products available for benchmarks data.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of products available for benchmarks data.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.BenchmarksProductMetadata benchmarks_products = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBenchmarksProducts()
    {
        return $this->benchmarks_products;
    }

    /**
     * The list of products available for benchmarks data.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.BenchmarksProductMetadata benchmarks_products = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Services\BenchmarksProductMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBenchmarksProducts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Services\BenchmarksProductMetadata::class);
        $this->benchmarks_products = $arr;

        return $this;
    }

}

