AcquireSemaphorePending.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 when an acquire operation is added to the waiters queue
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionResponse.AcquireSemaphorePending</code>
  13. */
  14. class AcquireSemaphorePending 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. * Constructor.
  22. *
  23. * @param array $data {
  24. * Optional. Data for populating the Message object.
  25. *
  26. * @type int|string $req_id
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbCoordination::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  35. * @return int|string
  36. */
  37. public function getReqId()
  38. {
  39. return $this->req_id;
  40. }
  41. /**
  42. * Generated from protobuf field <code>uint64 req_id = 1;</code>
  43. * @param int|string $var
  44. * @return $this
  45. */
  46. public function setReqId($var)
  47. {
  48. GPBUtil::checkUint64($var);
  49. $this->req_id = $var;
  50. return $this;
  51. }
  52. }
  53. // Adding a class alias for backwards compatibility with the previous class name.
  54. class_alias(AcquireSemaphorePending::class, \Ydb\Coordination\SessionResponse_AcquireSemaphorePending::class);