DescribeSemaphoreChanged.php 2.8 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. * Used to report a change in the watched semaphore
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged</code>
  13. */
  14. class DescribeSemaphoreChanged 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>bool data_changed = 2;</code>
  22. */
  23. protected $data_changed = false;
  24. /**
  25. * Generated from protobuf field <code>bool owners_changed = 3;</code>
  26. */
  27. protected $owners_changed = false;
  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 bool $data_changed
  36. * @type bool $owners_changed
  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>bool data_changed = 2;</code>
  64. * @return bool
  65. */
  66. public function getDataChanged()
  67. {
  68. return $this->data_changed;
  69. }
  70. /**
  71. * Generated from protobuf field <code>bool data_changed = 2;</code>
  72. * @param bool $var
  73. * @return $this
  74. */
  75. public function setDataChanged($var)
  76. {
  77. GPBUtil::checkBool($var);
  78. $this->data_changed = $var;
  79. return $this;
  80. }
  81. /**
  82. * Generated from protobuf field <code>bool owners_changed = 3;</code>
  83. * @return bool
  84. */
  85. public function getOwnersChanged()
  86. {
  87. return $this->owners_changed;
  88. }
  89. /**
  90. * Generated from protobuf field <code>bool owners_changed = 3;</code>
  91. * @param bool $var
  92. * @return $this
  93. */
  94. public function setOwnersChanged($var)
  95. {
  96. GPBUtil::checkBool($var);
  97. $this->owners_changed = $var;
  98. return $this;
  99. }
  100. }
  101. // Adding a class alias for backwards compatibility with the previous class name.
  102. class_alias(DescribeSemaphoreChanged::class, \Ydb\Coordination\SessionResponse_DescribeSemaphoreChanged::class);