BeginTransactionResponse.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.BeginTransactionResponse</code>
  10. */
  11. class BeginTransactionResponse extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Holds BeginTransactionResult in case of successful call
  15. *
  16. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  17. */
  18. protected $operation = null;
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type \Ydb\Operations\Operation $operation
  26. * Holds BeginTransactionResult in case of successful call
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbTable::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Holds BeginTransactionResult in case of successful call
  35. *
  36. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  37. * @return \Ydb\Operations\Operation|null
  38. */
  39. public function getOperation()
  40. {
  41. return $this->operation;
  42. }
  43. public function hasOperation()
  44. {
  45. return isset($this->operation);
  46. }
  47. public function clearOperation()
  48. {
  49. unset($this->operation);
  50. }
  51. /**
  52. * Holds BeginTransactionResult in case of successful call
  53. *
  54. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  55. * @param \Ydb\Operations\Operation $var
  56. * @return $this
  57. */
  58. public function setOperation($var)
  59. {
  60. GPBUtil::checkMessage($var, \Ydb\Operations\Operation::class);
  61. $this->operation = $var;
  62. return $this;
  63. }
  64. }