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

/**
 * Request message for
 * [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksSources].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListBenchmarksSourcesRequest</code>
 */
class ListBenchmarksSourcesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The types of benchmarks sources to be returned (for example,
     * INDUSTRY_VERTICAL).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.BenchmarksSourceTypeEnum.BenchmarksSourceType benchmarks_sources = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $benchmarks_sources;
    /**
     * Additional information on the application issuing the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdditionalApplicationInfo application_info = 2;</code>
     */
    protected $application_info = null;

    /**
     * @param int[] $benchmarksSources Required. The types of benchmarks sources to be returned (for example,
     *                                 INDUSTRY_VERTICAL).
     *                                 For allowed values, use constants defined on {@see \Google\Ads\GoogleAds\V23\Enums\BenchmarksSourceTypeEnum\BenchmarksSourceType}
     *
     * @return \Google\Ads\GoogleAds\V23\Services\ListBenchmarksSourcesRequest
     *
     * @experimental
     */
    public static function build(array $benchmarksSources): self
    {
        return (new self())
            ->setBenchmarksSources($benchmarksSources);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $benchmarks_sources
     *           Required. The types of benchmarks sources to be returned (for example,
     *           INDUSTRY_VERTICAL).
     *     @type \Google\Ads\GoogleAds\V23\Common\AdditionalApplicationInfo $application_info
     *           Additional information on the application issuing the request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The types of benchmarks sources to be returned (for example,
     * INDUSTRY_VERTICAL).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.BenchmarksSourceTypeEnum.BenchmarksSourceType benchmarks_sources = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBenchmarksSources()
    {
        return $this->benchmarks_sources;
    }

    /**
     * Required. The types of benchmarks sources to be returned (for example,
     * INDUSTRY_VERTICAL).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.BenchmarksSourceTypeEnum.BenchmarksSourceType benchmarks_sources = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBenchmarksSources($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V23\Enums\BenchmarksSourceTypeEnum\BenchmarksSourceType::class);
        $this->benchmarks_sources = $arr;

        return $this;
    }

    /**
     * Additional information on the application issuing the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdditionalApplicationInfo application_info = 2;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\AdditionalApplicationInfo|null
     */
    public function getApplicationInfo()
    {
        return $this->application_info;
    }

    public function hasApplicationInfo()
    {
        return isset($this->application_info);
    }

    public function clearApplicationInfo()
    {
        unset($this->application_info);
    }

    /**
     * Additional information on the application issuing the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdditionalApplicationInfo application_info = 2;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\AdditionalApplicationInfo $var
     * @return $this
     */
    public function setApplicationInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\AdditionalApplicationInfo::class);
        $this->application_info = $var;

        return $this;
    }

}

