<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: protos/ydb_common.proto

namespace Ydb;

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

/**
 * Specifies a point in database time
 *
 * Generated from protobuf message <code>Ydb.VirtualTimestamp</code>
 */
class VirtualTimestamp extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 plan_step = 1;</code>
     */
    protected $plan_step = 0;
    /**
     * Generated from protobuf field <code>uint64 tx_id = 2;</code>
     */
    protected $tx_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $plan_step
     *     @type int|string $tx_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Protos\YdbCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 plan_step = 1;</code>
     * @return int|string
     */
    public function getPlanStep()
    {
        return $this->plan_step;
    }

    /**
     * Generated from protobuf field <code>uint64 plan_step = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPlanStep($var)
    {
        GPBUtil::checkUint64($var);
        $this->plan_step = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 tx_id = 2;</code>
     * @return int|string
     */
    public function getTxId()
    {
        return $this->tx_id;
    }

    /**
     * Generated from protobuf field <code>uint64 tx_id = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTxId($var)
    {
        GPBUtil::checkUint64($var);
        $this->tx_id = $var;

        return $this;
    }

}