<?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.GenerateBenchmarksMetrics][google.ads.googleads.v23.services.BenchmarksService.GenerateBenchmarksMetrics].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.GenerateBenchmarksMetricsRequest</code>
 */
class GenerateBenchmarksMetricsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ID of the customer. Supply a client customer ID to generate
     * metrics for the customer. A manager account customer ID will not return
     * customer metrics since it does not have any associated direct ad campaigns.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $customer_id = '';
    /**
     * The date range to aggregate metrics over. If unset, data will be returned
     * for the most recent quarter for which data is available. Dates can be
     * retrieved using
     * [BenchmarksService.ListBenchmarksAvailableDates][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksAvailableDates].
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.DateRange date_range = 2;</code>
     */
    protected $date_range = null;
    /**
     * Required. The location to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.LocationInfo location = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $location = null;
    /**
     * Required. The source used to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.BenchmarksSource benchmarks_source = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $benchmarks_source = null;
    /**
     * Required. The products to aggregate metrics over. Product filter settings
     * support a list of product IDs or a list of marketing objectives.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.ProductFilter product_filter = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $product_filter = null;
    /**
     * Optional. The three-character ISO 4217 currency code. If unspecified, the
     * default currency for monetary values is USD.
     *
     * Generated from protobuf field <code>string currency_code = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $currency_code = '';
    /**
     * The name of the customer being planned for. This is a user-defined value.
     *
     * Generated from protobuf field <code>string customer_benchmarks_group = 7;</code>
     */
    protected $customer_benchmarks_group = '';
    /**
     * Additional information on the application issuing the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdditionalApplicationInfo application_info = 8;</code>
     */
    protected $application_info = null;

    /**
     * @param string                                              $customerId       Required. The ID of the customer. Supply a client customer ID to generate
     *                                                                              metrics for the customer. A manager account customer ID will not return
     *                                                                              customer metrics since it does not have any associated direct ad campaigns.
     * @param \Google\Ads\GoogleAds\V23\Common\LocationInfo       $location         Required. The location to generate benchmarks metrics for.
     * @param \Google\Ads\GoogleAds\V23\Services\BenchmarksSource $benchmarksSource Required. The source used to generate benchmarks metrics for.
     * @param \Google\Ads\GoogleAds\V23\Services\ProductFilter    $productFilter    Required. The products to aggregate metrics over. Product filter settings
     *                                                                              support a list of product IDs or a list of marketing objectives.
     *
     * @return \Google\Ads\GoogleAds\V23\Services\GenerateBenchmarksMetricsRequest
     *
     * @experimental
     */
    public static function build(string $customerId, \Google\Ads\GoogleAds\V23\Common\LocationInfo $location, \Google\Ads\GoogleAds\V23\Services\BenchmarksSource $benchmarksSource, \Google\Ads\GoogleAds\V23\Services\ProductFilter $productFilter): self
    {
        return (new self())
            ->setCustomerId($customerId)
            ->setLocation($location)
            ->setBenchmarksSource($benchmarksSource)
            ->setProductFilter($productFilter);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $customer_id
     *           Required. The ID of the customer. Supply a client customer ID to generate
     *           metrics for the customer. A manager account customer ID will not return
     *           customer metrics since it does not have any associated direct ad campaigns.
     *     @type \Google\Ads\GoogleAds\V23\Common\DateRange $date_range
     *           The date range to aggregate metrics over. If unset, data will be returned
     *           for the most recent quarter for which data is available. Dates can be
     *           retrieved using
     *           [BenchmarksService.ListBenchmarksAvailableDates][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksAvailableDates].
     *     @type \Google\Ads\GoogleAds\V23\Common\LocationInfo $location
     *           Required. The location to generate benchmarks metrics for.
     *     @type \Google\Ads\GoogleAds\V23\Services\BenchmarksSource $benchmarks_source
     *           Required. The source used to generate benchmarks metrics for.
     *     @type \Google\Ads\GoogleAds\V23\Services\ProductFilter $product_filter
     *           Required. The products to aggregate metrics over. Product filter settings
     *           support a list of product IDs or a list of marketing objectives.
     *     @type string $currency_code
     *           Optional. The three-character ISO 4217 currency code. If unspecified, the
     *           default currency for monetary values is USD.
     *     @type string $customer_benchmarks_group
     *           The name of the customer being planned for. This is a user-defined value.
     *     @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 ID of the customer. Supply a client customer ID to generate
     * metrics for the customer. A manager account customer ID will not return
     * customer metrics since it does not have any associated direct ad campaigns.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCustomerId()
    {
        return $this->customer_id;
    }

    /**
     * Required. The ID of the customer. Supply a client customer ID to generate
     * metrics for the customer. A manager account customer ID will not return
     * customer metrics since it does not have any associated direct ad campaigns.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCustomerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->customer_id = $var;

        return $this;
    }

    /**
     * The date range to aggregate metrics over. If unset, data will be returned
     * for the most recent quarter for which data is available. Dates can be
     * retrieved using
     * [BenchmarksService.ListBenchmarksAvailableDates][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksAvailableDates].
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.DateRange date_range = 2;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\DateRange|null
     */
    public function getDateRange()
    {
        return $this->date_range;
    }

    public function hasDateRange()
    {
        return isset($this->date_range);
    }

    public function clearDateRange()
    {
        unset($this->date_range);
    }

    /**
     * The date range to aggregate metrics over. If unset, data will be returned
     * for the most recent quarter for which data is available. Dates can be
     * retrieved using
     * [BenchmarksService.ListBenchmarksAvailableDates][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksAvailableDates].
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.DateRange date_range = 2;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\DateRange $var
     * @return $this
     */
    public function setDateRange($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\DateRange::class);
        $this->date_range = $var;

        return $this;
    }

    /**
     * Required. The location to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.LocationInfo location = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Common\LocationInfo|null
     */
    public function getLocation()
    {
        return $this->location;
    }

    public function hasLocation()
    {
        return isset($this->location);
    }

    public function clearLocation()
    {
        unset($this->location);
    }

    /**
     * Required. The location to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.LocationInfo location = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Common\LocationInfo $var
     * @return $this
     */
    public function setLocation($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\LocationInfo::class);
        $this->location = $var;

        return $this;
    }

    /**
     * Required. The source used to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.BenchmarksSource benchmarks_source = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\BenchmarksSource|null
     */
    public function getBenchmarksSource()
    {
        return $this->benchmarks_source;
    }

    public function hasBenchmarksSource()
    {
        return isset($this->benchmarks_source);
    }

    public function clearBenchmarksSource()
    {
        unset($this->benchmarks_source);
    }

    /**
     * Required. The source used to generate benchmarks metrics for.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.BenchmarksSource benchmarks_source = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\BenchmarksSource $var
     * @return $this
     */
    public function setBenchmarksSource($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\BenchmarksSource::class);
        $this->benchmarks_source = $var;

        return $this;
    }

    /**
     * Required. The products to aggregate metrics over. Product filter settings
     * support a list of product IDs or a list of marketing objectives.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.ProductFilter product_filter = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\ProductFilter|null
     */
    public function getProductFilter()
    {
        return $this->product_filter;
    }

    public function hasProductFilter()
    {
        return isset($this->product_filter);
    }

    public function clearProductFilter()
    {
        unset($this->product_filter);
    }

    /**
     * Required. The products to aggregate metrics over. Product filter settings
     * support a list of product IDs or a list of marketing objectives.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.ProductFilter product_filter = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\ProductFilter $var
     * @return $this
     */
    public function setProductFilter($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\ProductFilter::class);
        $this->product_filter = $var;

        return $this;
    }

    /**
     * Optional. The three-character ISO 4217 currency code. If unspecified, the
     * default currency for monetary values is USD.
     *
     * Generated from protobuf field <code>string currency_code = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getCurrencyCode()
    {
        return $this->currency_code;
    }

    /**
     * Optional. The three-character ISO 4217 currency code. If unspecified, the
     * default currency for monetary values is USD.
     *
     * Generated from protobuf field <code>string currency_code = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setCurrencyCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->currency_code = $var;

        return $this;
    }

    /**
     * The name of the customer being planned for. This is a user-defined value.
     *
     * Generated from protobuf field <code>string customer_benchmarks_group = 7;</code>
     * @return string
     */
    public function getCustomerBenchmarksGroup()
    {
        return $this->customer_benchmarks_group;
    }

    /**
     * The name of the customer being planned for. This is a user-defined value.
     *
     * Generated from protobuf field <code>string customer_benchmarks_group = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setCustomerBenchmarksGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->customer_benchmarks_group = $var;

        return $this;
    }

    /**
     * Additional information on the application issuing the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdditionalApplicationInfo application_info = 8;</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 = 8;</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;
    }

}

