VirtualTimestamp.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_common.proto
  4. namespace Ydb;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Specifies a point in database time
  10. *
  11. * Generated from protobuf message <code>Ydb.VirtualTimestamp</code>
  12. */
  13. class VirtualTimestamp extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>uint64 plan_step = 1;</code>
  17. */
  18. protected $plan_step = 0;
  19. /**
  20. * Generated from protobuf field <code>uint64 tx_id = 2;</code>
  21. */
  22. protected $tx_id = 0;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type int|string $plan_step
  30. * @type int|string $tx_id
  31. * }
  32. */
  33. public function __construct($data = NULL) {
  34. \GPBMetadata\Protos\YdbCommon::initOnce();
  35. parent::__construct($data);
  36. }
  37. /**
  38. * Generated from protobuf field <code>uint64 plan_step = 1;</code>
  39. * @return int|string
  40. */
  41. public function getPlanStep()
  42. {
  43. return $this->plan_step;
  44. }
  45. /**
  46. * Generated from protobuf field <code>uint64 plan_step = 1;</code>
  47. * @param int|string $var
  48. * @return $this
  49. */
  50. public function setPlanStep($var)
  51. {
  52. GPBUtil::checkUint64($var);
  53. $this->plan_step = $var;
  54. return $this;
  55. }
  56. /**
  57. * Generated from protobuf field <code>uint64 tx_id = 2;</code>
  58. * @return int|string
  59. */
  60. public function getTxId()
  61. {
  62. return $this->tx_id;
  63. }
  64. /**
  65. * Generated from protobuf field <code>uint64 tx_id = 2;</code>
  66. * @param int|string $var
  67. * @return $this
  68. */
  69. public function setTxId($var)
  70. {
  71. GPBUtil::checkUint64($var);
  72. $this->tx_id = $var;
  73. return $this;
  74. }
  75. }