<?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>optional int64 range_end = 322439897;</code>
     */
    private $range_end = null;
    /**
     * The start of the range (inclusive) in signed long integer format.
     *
     * Generated from protobuf field <code>optional int64 range_start = 103333600;</code>
     */
    private $range_start = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $range_end
     *           The end of the range (exclusive) in signed long integer format.
     *     @type int|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>optional int64 range_end = 322439897;</code>
     * @return int|string
     */
    public function getRangeEnd()
    {
        return isset($this->range_end) ? $this->range_end : 0;
    }

    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>optional int64 range_end = 322439897;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRangeEnd($var)
    {
        GPBUtil::checkInt64($var);
        $this->range_end = $var;

        return $this;
    }

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

    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>optional int64 range_start = 103333600;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRangeStart($var)
    {
        GPBUtil::checkInt64($var);
        $this->range_start = $var;

        return $this;
    }

}

