<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/optimization/v1/fleet_routing.proto

namespace Google\Cloud\Optimization\V1;

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

/**
 * Deprecated: Use
 * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
 * instead.
 *
 * Generated from protobuf message <code>google.cloud.optimization.v1.CapacityQuantityInterval</code>
 */
class CapacityQuantityInterval extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string type = 1;</code>
     */
    private $type = '';
    /**
     * Generated from protobuf field <code>optional int64 min_value = 2;</code>
     */
    private $min_value = null;
    /**
     * Generated from protobuf field <code>optional int64 max_value = 3;</code>
     */
    private $max_value = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $type
     *     @type int|string $min_value
     *     @type int|string $max_value
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Optimization\V1\FleetRouting::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string type = 1;</code>
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Generated from protobuf field <code>string type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkString($var, True);
        $this->type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 min_value = 2;</code>
     * @return int|string
     */
    public function getMinValue()
    {
        return isset($this->min_value) ? $this->min_value : 0;
    }

    public function hasMinValue()
    {
        return isset($this->min_value);
    }

    public function clearMinValue()
    {
        unset($this->min_value);
    }

    /**
     * Generated from protobuf field <code>optional int64 min_value = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMinValue($var)
    {
        GPBUtil::checkInt64($var);
        $this->min_value = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 max_value = 3;</code>
     * @return int|string
     */
    public function getMaxValue()
    {
        return isset($this->max_value) ? $this->max_value : 0;
    }

    public function hasMaxValue()
    {
        return isset($this->max_value);
    }

    public function clearMaxValue()
    {
        unset($this->max_value);
    }

    /**
     * Generated from protobuf field <code>optional int64 max_value = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaxValue($var)
    {
        GPBUtil::checkInt64($var);
        $this->max_value = $var;

        return $this;
    }

}

