<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/report_service.proto

namespace Google\Ads\AdManager\V1\Report\DateRange;

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

/**
 * A date range between two fixed dates (inclusive of end date).
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.Report.DateRange.FixedDateRange</code>
 */
class FixedDateRange extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The start date of this date range.
     *
     * Generated from protobuf field <code>.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $start_date = null;
    /**
     * Required. The end date (inclusive) of this date range.
     *
     * Generated from protobuf field <code>.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $end_date = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Type\Date $start_date
     *           Required. The start date of this date range.
     *     @type \Google\Type\Date $end_date
     *           Required. The end date (inclusive) of this date range.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The start date of this date range.
     *
     * Generated from protobuf field <code>.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Type\Date|null
     */
    public function getStartDate()
    {
        return $this->start_date;
    }

    public function hasStartDate()
    {
        return isset($this->start_date);
    }

    public function clearStartDate()
    {
        unset($this->start_date);
    }

    /**
     * Required. The start date of this date range.
     *
     * Generated from protobuf field <code>.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Type\Date $var
     * @return $this
     */
    public function setStartDate($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Date::class);
        $this->start_date = $var;

        return $this;
    }

    /**
     * Required. The end date (inclusive) of this date range.
     *
     * Generated from protobuf field <code>.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Type\Date|null
     */
    public function getEndDate()
    {
        return $this->end_date;
    }

    public function hasEndDate()
    {
        return isset($this->end_date);
    }

    public function clearEndDate()
    {
        unset($this->end_date);
    }

    /**
     * Required. The end date (inclusive) of this date range.
     *
     * Generated from protobuf field <code>.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Type\Date $var
     * @return $this
     */
    public function setEndDate($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Date::class);
        $this->end_date = $var;

        return $this;
    }

}


