<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v20/resources/conversion_value_rule.proto

namespace Google\Ads\GoogleAds\V20\Resources\ConversionValueRule;

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

/**
 * Range for the number of days between the date of the booking and the
 * start of the itinerary.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow</code>
 */
class ValueRuleItineraryAdvanceBookingWindow extends \Google\Protobuf\Internal\Message
{
    /**
     * Minimum number of days between the date of the booking the start date.
     *
     * Generated from protobuf field <code>optional int32 min_days = 3;</code>
     */
    protected $min_days = null;
    /**
     * Maximum number of days between the date of the booking the start date.
     *
     * Generated from protobuf field <code>optional int32 max_days = 4;</code>
     */
    protected $max_days = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $min_days
     *           Minimum number of days between the date of the booking the start date.
     *     @type int $max_days
     *           Maximum number of days between the date of the booking the start date.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Resources\ConversionValueRule::initOnce();
        parent::__construct($data);
    }

    /**
     * Minimum number of days between the date of the booking the start date.
     *
     * Generated from protobuf field <code>optional int32 min_days = 3;</code>
     * @return int
     */
    public function getMinDays()
    {
        return isset($this->min_days) ? $this->min_days : 0;
    }

    public function hasMinDays()
    {
        return isset($this->min_days);
    }

    public function clearMinDays()
    {
        unset($this->min_days);
    }

    /**
     * Minimum number of days between the date of the booking the start date.
     *
     * Generated from protobuf field <code>optional int32 min_days = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setMinDays($var)
    {
        GPBUtil::checkInt32($var);
        $this->min_days = $var;

        return $this;
    }

    /**
     * Maximum number of days between the date of the booking the start date.
     *
     * Generated from protobuf field <code>optional int32 max_days = 4;</code>
     * @return int
     */
    public function getMaxDays()
    {
        return isset($this->max_days) ? $this->max_days : 0;
    }

    public function hasMaxDays()
    {
        return isset($this->max_days);
    }

    public function clearMaxDays()
    {
        unset($this->max_days);
    }

    /**
     * Maximum number of days between the date of the booking the start date.
     *
     * Generated from protobuf field <code>optional int32 max_days = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxDays($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_days = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValueRuleItineraryAdvanceBookingWindow::class, \Google\Ads\GoogleAds\V20\Resources\ConversionValueRule_ValueRuleItineraryAdvanceBookingWindow::class);

