<?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.ListBenchmarksAvailableDates][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksAvailableDates].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListBenchmarksAvailableDatesResponse</code>
 */
class ListBenchmarksAvailableDatesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The dates that support benchmarks metrics. Data is supported for any dates
     * within this date range inclusive.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.DateRange supported_dates = 1;</code>
     */
    protected $supported_dates = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Common\DateRange $supported_dates
     *           The dates that support benchmarks metrics. Data is supported for any dates
     *           within this date range inclusive.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * The dates that support benchmarks metrics. Data is supported for any dates
     * within this date range inclusive.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.DateRange supported_dates = 1;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\DateRange|null
     */
    public function getSupportedDates()
    {
        return $this->supported_dates;
    }

    public function hasSupportedDates()
    {
        return isset($this->supported_dates);
    }

    public function clearSupportedDates()
    {
        unset($this->supported_dates);
    }

    /**
     * The dates that support benchmarks metrics. Data is supported for any dates
     * within this date range inclusive.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.DateRange supported_dates = 1;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\DateRange $var
     * @return $this
     */
    public function setSupportedDates($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\DateRange::class);
        $this->supported_dates = $var;

        return $this;
    }

}

