<?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.ListBenchmarksSources][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksSources].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListBenchmarksSourcesResponse</code>
 */
class ListBenchmarksSourcesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of available source used to generate benchmarks data for.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.BenchmarksSourceMetadata benchmarks_sources = 1;</code>
     */
    private $benchmarks_sources;

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

    /**
     * The list of available source used to generate benchmarks data for.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.BenchmarksSourceMetadata benchmarks_sources = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBenchmarksSources()
    {
        return $this->benchmarks_sources;
    }

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

        return $this;
    }

}

