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

namespace Google\Cloud\Compute\V1;

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

/**
 * HttpRouteRuleMatch criteria for field values that must stay within the specified integer range.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.Int64RangeMatch</code>
 */
class Int64RangeMatch extends \Google\Protobuf\Internal\Message
{
    /**
     * The end of the range (exclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>string range_end = 322439897;</code>
     */
    private $range_end = null;
    /**
     * The start of the range (inclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>string range_start = 103333600;</code>
     */
    private $range_start = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $range_end
     *           The end of the range (exclusive) in signed long integer format.
     *     @type string $range_start
     *           The start of the range (inclusive) in signed long integer format.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The end of the range (exclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>string range_end = 322439897;</code>
     * @return string
     */
    public function getRangeEnd()
    {
        return isset($this->range_end) ? $this->range_end : '';
    }

    public function hasRangeEnd()
    {
        return isset($this->range_end);
    }

    public function clearRangeEnd()
    {
        unset($this->range_end);
    }

    /**
     * The end of the range (exclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>string range_end = 322439897;</code>
     * @param string $var
     * @return $this
     */
    public function setRangeEnd($var)
    {
        GPBUtil::checkString($var, True);
        $this->range_end = $var;

        return $this;
    }

    /**
     * The start of the range (inclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>string range_start = 103333600;</code>
     * @return string
     */
    public function getRangeStart()
    {
        return isset($this->range_start) ? $this->range_start : '';
    }

    public function hasRangeStart()
    {
        return isset($this->range_start);
    }

    public function clearRangeStart()
    {
        unset($this->range_start);
    }

    /**
     * The start of the range (inclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>string range_start = 103333600;</code>
     * @param string $var
     * @return $this
     */
    public function setRangeStart($var)
    {
        GPBUtil::checkString($var, True);
        $this->range_start = $var;

        return $this;
    }

}

