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

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

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

/**
 * 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.v24.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\V24\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;
    }

}

