UpdateSemaphoreResult.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. * The result of semaphore update
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionResponse.UpdateSemaphoreResult</code>
  13. */
  14. class UpdateSemaphoreResult 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. * Constructor.
  30. *
  31. * @param array $data {
  32. * Optional. Data for populating the Message object.
  33. *
  34. * @type int|string $req_id
  35. * @type int $status
  36. * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Protos\YdbCoordination::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  45. * @return int|string
  46. */
  47. public function getReqId()
  48. {
  49. return $this->req_id;
  50. }
  51. /**
  52. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  53. * @param int|string $var
  54. * @return $this
  55. */
  56. public function setReqId($var)
  57. {
  58. GPBUtil::checkUint64($var);
  59. $this->req_id = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 2;</code>
  64. * @return int
  65. */
  66. public function getStatus()
  67. {
  68. return $this->status;
  69. }
  70. /**
  71. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 2;</code>
  72. * @param int $var
  73. * @return $this
  74. */
  75. public function setStatus($var)
  76. {
  77. GPBUtil::checkEnum($var, \Ydb\StatusIds\StatusCode::class);
  78. $this->status = $var;
  79. return $this;
  80. }
  81. /**
  82. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 3;</code>
  83. * @return \Google\Protobuf\Internal\RepeatedField
  84. */
  85. public function getIssues()
  86. {
  87. return $this->issues;
  88. }
  89. /**
  90. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 3;</code>
  91. * @param array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $var
  92. * @return $this
  93. */
  94. public function setIssues($var)
  95. {
  96. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Issue\IssueMessage::class);
  97. $this->issues = $arr;
  98. return $this;
  99. }
  100. }
  101. // Adding a class alias for backwards compatibility with the previous class name.
  102. class_alias(UpdateSemaphoreResult::class, \Ydb\Coordination\SessionResponse_UpdateSemaphoreResult::class);