TransactionMeta.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_table.proto
  4. namespace Ydb\Table;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Holds transaction id
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.TransactionMeta</code>
  12. */
  13. class TransactionMeta extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Transaction identifier
  17. *
  18. * Generated from protobuf field <code>string id = 1;</code>
  19. */
  20. protected $id = '';
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type string $id
  28. * Transaction identifier
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbTable::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Transaction identifier
  37. *
  38. * Generated from protobuf field <code>string id = 1;</code>
  39. * @return string
  40. */
  41. public function getId()
  42. {
  43. return $this->id;
  44. }
  45. /**
  46. * Transaction identifier
  47. *
  48. * Generated from protobuf field <code>string id = 1;</code>
  49. * @param string $var
  50. * @return $this
  51. */
  52. public function setId($var)
  53. {
  54. GPBUtil::checkString($var, True);
  55. $this->id = $var;
  56. return $this;
  57. }
  58. }