ReleaseSemaphoreResult.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_coordination.proto
  4. namespace Ydb\Coordination\SessionResponse;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. **
  10. * Used by the server to report the result of a release operation
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult</code>
  13. */
  14. class ReleaseSemaphoreResult extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  18. */
  19. protected $req_id = 0;
  20. /**
  21. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 2;</code>
  22. */
  23. protected $status = 0;
  24. /**
  25. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 3;</code>
  26. */
  27. private $issues;
  28. /**
  29. * True if semaphore was released, false if there was no active acquire operation
  30. *
  31. * Generated from protobuf field <code>bool released = 4;</code>
  32. */
  33. protected $released = false;
  34. /**
  35. * Constructor.
  36. *
  37. * @param array $data {
  38. * Optional. Data for populating the Message object.
  39. *
  40. * @type int|string $req_id
  41. * @type int $status
  42. * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues
  43. * @type bool $released
  44. * True if semaphore was released, false if there was no active acquire operation
  45. * }
  46. */
  47. public function __construct($data = NULL) {
  48. \GPBMetadata\Protos\YdbCoordination::initOnce();
  49. parent::__construct($data);
  50. }
  51. /**
  52. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  53. * @return int|string
  54. */
  55. public function getReqId()
  56. {
  57. return $this->req_id;
  58. }
  59. /**
  60. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  61. * @param int|string $var
  62. * @return $this
  63. */
  64. public function setReqId($var)
  65. {
  66. GPBUtil::checkUint64($var);
  67. $this->req_id = $var;
  68. return $this;
  69. }
  70. /**
  71. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 2;</code>
  72. * @return int
  73. */
  74. public function getStatus()
  75. {
  76. return $this->status;
  77. }
  78. /**
  79. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 2;</code>
  80. * @param int $var
  81. * @return $this
  82. */
  83. public function setStatus($var)
  84. {
  85. GPBUtil::checkEnum($var, \Ydb\StatusIds\StatusCode::class);
  86. $this->status = $var;
  87. return $this;
  88. }
  89. /**
  90. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 3;</code>
  91. * @return \Google\Protobuf\Internal\RepeatedField
  92. */
  93. public function getIssues()
  94. {
  95. return $this->issues;
  96. }
  97. /**
  98. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 3;</code>
  99. * @param array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $var
  100. * @return $this
  101. */
  102. public function setIssues($var)
  103. {
  104. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Issue\IssueMessage::class);
  105. $this->issues = $arr;
  106. return $this;
  107. }
  108. /**
  109. * True if semaphore was released, false if there was no active acquire operation
  110. *
  111. * Generated from protobuf field <code>bool released = 4;</code>
  112. * @return bool
  113. */
  114. public function getReleased()
  115. {
  116. return $this->released;
  117. }
  118. /**
  119. * True if semaphore was released, false if there was no active acquire operation
  120. *
  121. * Generated from protobuf field <code>bool released = 4;</code>
  122. * @param bool $var
  123. * @return $this
  124. */
  125. public function setReleased($var)
  126. {
  127. GPBUtil::checkBool($var);
  128. $this->released = $var;
  129. return $this;
  130. }
  131. }
  132. // Adding a class alias for backwards compatibility with the previous class name.
  133. class_alias(ReleaseSemaphoreResult::class, \Ydb\Coordination\SessionResponse_ReleaseSemaphoreResult::class);