<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/automl/v1beta1/ranges.proto

namespace Google\Cloud\AutoMl\V1beta1;

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

/**
 * A range between two double numbers.
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.DoubleRange</code>
 */
class DoubleRange extends \Google\Protobuf\Internal\Message
{
    /**
     * Start of the range, inclusive.
     *
     * Generated from protobuf field <code>double start = 1;</code>
     */
    private $start = 0.0;
    /**
     * End of the range, exclusive.
     *
     * Generated from protobuf field <code>double end = 2;</code>
     */
    private $end = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $start
     *           Start of the range, inclusive.
     *     @type float $end
     *           End of the range, exclusive.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\Ranges::initOnce();
        parent::__construct($data);
    }

    /**
     * Start of the range, inclusive.
     *
     * Generated from protobuf field <code>double start = 1;</code>
     * @return float
     */
    public function getStart()
    {
        return $this->start;
    }

    /**
     * Start of the range, inclusive.
     *
     * Generated from protobuf field <code>double start = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setStart($var)
    {
        GPBUtil::checkDouble($var);
        $this->start = $var;

        return $this;
    }

    /**
     * End of the range, exclusive.
     *
     * Generated from protobuf field <code>double end = 2;</code>
     * @return float
     */
    public function getEnd()
    {
        return $this->end;
    }

    /**
     * End of the range, exclusive.
     *
     * Generated from protobuf field <code>double end = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setEnd($var)
    {
        GPBUtil::checkDouble($var);
        $this->end = $var;

        return $this;
    }

}

