<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/monitoring/v3/service.proto

namespace Google\Cloud\Monitoring\V3;

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

/**
 * Range of numerical values, inclusive of `min` and exclusive of `max`. If the
 * open range "< range.max" is desired, set `range.min = -infinity`. If the open
 * range ">= range.min" is desired, set `range.max = infinity`.
 *
 * Generated from protobuf message <code>google.monitoring.v3.Range</code>
 */
class Range extends \Google\Protobuf\Internal\Message
{
    /**
     * Range minimum.
     *
     * Generated from protobuf field <code>double min = 1;</code>
     */
    private $min = 0.0;
    /**
     * Range maximum.
     *
     * Generated from protobuf field <code>double max = 2;</code>
     */
    private $max = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $min
     *           Range minimum.
     *     @type float $max
     *           Range maximum.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Monitoring\V3\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Range minimum.
     *
     * Generated from protobuf field <code>double min = 1;</code>
     * @return float
     */
    public function getMin()
    {
        return $this->min;
    }

    /**
     * Range minimum.
     *
     * Generated from protobuf field <code>double min = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setMin($var)
    {
        GPBUtil::checkDouble($var);
        $this->min = $var;

        return $this;
    }

    /**
     * Range maximum.
     *
     * Generated from protobuf field <code>double max = 2;</code>
     * @return float
     */
    public function getMax()
    {
        return $this->max;
    }

    /**
     * Range maximum.
     *
     * Generated from protobuf field <code>double max = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setMax($var)
    {
        GPBUtil::checkDouble($var);
        $this->max = $var;

        return $this;
    }

}

