<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/v2/data.proto

namespace Google\Cloud\Bigtable\V2;

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

/**
 * Specified a contiguous range of microsecond timestamps.
 *
 * Generated from protobuf message <code>google.bigtable.v2.TimestampRange</code>
 */
class TimestampRange extends \Google\Protobuf\Internal\Message
{
    /**
     * Inclusive lower bound. If left empty, interpreted as 0.
     *
     * Generated from protobuf field <code>int64 start_timestamp_micros = 1;</code>
     */
    private $start_timestamp_micros = 0;
    /**
     * Exclusive upper bound. If left empty, interpreted as infinity.
     *
     * Generated from protobuf field <code>int64 end_timestamp_micros = 2;</code>
     */
    private $end_timestamp_micros = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $start_timestamp_micros
     *           Inclusive lower bound. If left empty, interpreted as 0.
     *     @type int|string $end_timestamp_micros
     *           Exclusive upper bound. If left empty, interpreted as infinity.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * Inclusive lower bound. If left empty, interpreted as 0.
     *
     * Generated from protobuf field <code>int64 start_timestamp_micros = 1;</code>
     * @return int|string
     */
    public function getStartTimestampMicros()
    {
        return $this->start_timestamp_micros;
    }

    /**
     * Inclusive lower bound. If left empty, interpreted as 0.
     *
     * Generated from protobuf field <code>int64 start_timestamp_micros = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setStartTimestampMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->start_timestamp_micros = $var;

        return $this;
    }

    /**
     * Exclusive upper bound. If left empty, interpreted as infinity.
     *
     * Generated from protobuf field <code>int64 end_timestamp_micros = 2;</code>
     * @return int|string
     */
    public function getEndTimestampMicros()
    {
        return $this->end_timestamp_micros;
    }

    /**
     * Exclusive upper bound. If left empty, interpreted as infinity.
     *
     * Generated from protobuf field <code>int64 end_timestamp_micros = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setEndTimestampMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->end_timestamp_micros = $var;

        return $this;
    }

}

