BeginTransactionResult.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. * Generated from protobuf message <code>Ydb.Table.BeginTransactionResult</code>
  10. */
  11. class BeginTransactionResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Table.TransactionMeta tx_meta = 1;</code>
  15. */
  16. protected $tx_meta = null;
  17. /**
  18. * Constructor.
  19. *
  20. * @param array $data {
  21. * Optional. Data for populating the Message object.
  22. *
  23. * @type \Ydb\Table\TransactionMeta $tx_meta
  24. * }
  25. */
  26. public function __construct($data = NULL) {
  27. \GPBMetadata\Protos\YdbTable::initOnce();
  28. parent::__construct($data);
  29. }
  30. /**
  31. * Generated from protobuf field <code>.Ydb.Table.TransactionMeta tx_meta = 1;</code>
  32. * @return \Ydb\Table\TransactionMeta|null
  33. */
  34. public function getTxMeta()
  35. {
  36. return $this->tx_meta;
  37. }
  38. public function hasTxMeta()
  39. {
  40. return isset($this->tx_meta);
  41. }
  42. public function clearTxMeta()
  43. {
  44. unset($this->tx_meta);
  45. }
  46. /**
  47. * Generated from protobuf field <code>.Ydb.Table.TransactionMeta tx_meta = 1;</code>
  48. * @param \Ydb\Table\TransactionMeta $var
  49. * @return $this
  50. */
  51. public function setTxMeta($var)
  52. {
  53. GPBUtil::checkMessage($var, \Ydb\Table\TransactionMeta::class);
  54. $this->tx_meta = $var;
  55. return $this;
  56. }
  57. }