PartitionSessionStatusResponse.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic\StreamReadMessage;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Response for status request.
  10. *
  11. * Generated from protobuf message <code>Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse</code>
  12. */
  13. class PartitionSessionStatusResponse extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Identifier of partition session whose status was requested.
  17. *
  18. * Generated from protobuf field <code>int64 partition_session_id = 1;</code>
  19. */
  20. protected $partition_session_id = 0;
  21. /**
  22. * Partition contains messages with offsets in range [start, end).
  23. *
  24. * Generated from protobuf field <code>.Ydb.Topic.OffsetsRange partition_offsets = 2;</code>
  25. */
  26. protected $partition_offsets = null;
  27. /**
  28. * Each offset up to and including (committed_offset - 1) was fully processed.
  29. *
  30. * Generated from protobuf field <code>int64 committed_offset = 3;</code>
  31. */
  32. protected $committed_offset = 0;
  33. /**
  34. * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
  35. *
  36. * Generated from protobuf field <code>.google.protobuf.Timestamp write_time_high_watermark = 4;</code>
  37. */
  38. protected $write_time_high_watermark = null;
  39. /**
  40. * Constructor.
  41. *
  42. * @param array $data {
  43. * Optional. Data for populating the Message object.
  44. *
  45. * @type int|string $partition_session_id
  46. * Identifier of partition session whose status was requested.
  47. * @type \Ydb\Topic\OffsetsRange $partition_offsets
  48. * Partition contains messages with offsets in range [start, end).
  49. * @type int|string $committed_offset
  50. * Each offset up to and including (committed_offset - 1) was fully processed.
  51. * @type \Google\Protobuf\Timestamp $write_time_high_watermark
  52. * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
  53. * }
  54. */
  55. public function __construct($data = NULL) {
  56. \GPBMetadata\Protos\YdbTopic::initOnce();
  57. parent::__construct($data);
  58. }
  59. /**
  60. * Identifier of partition session whose status was requested.
  61. *
  62. * Generated from protobuf field <code>int64 partition_session_id = 1;</code>
  63. * @return int|string
  64. */
  65. public function getPartitionSessionId()
  66. {
  67. return $this->partition_session_id;
  68. }
  69. /**
  70. * Identifier of partition session whose status was requested.
  71. *
  72. * Generated from protobuf field <code>int64 partition_session_id = 1;</code>
  73. * @param int|string $var
  74. * @return $this
  75. */
  76. public function setPartitionSessionId($var)
  77. {
  78. GPBUtil::checkInt64($var);
  79. $this->partition_session_id = $var;
  80. return $this;
  81. }
  82. /**
  83. * Partition contains messages with offsets in range [start, end).
  84. *
  85. * Generated from protobuf field <code>.Ydb.Topic.OffsetsRange partition_offsets = 2;</code>
  86. * @return \Ydb\Topic\OffsetsRange|null
  87. */
  88. public function getPartitionOffsets()
  89. {
  90. return $this->partition_offsets;
  91. }
  92. public function hasPartitionOffsets()
  93. {
  94. return isset($this->partition_offsets);
  95. }
  96. public function clearPartitionOffsets()
  97. {
  98. unset($this->partition_offsets);
  99. }
  100. /**
  101. * Partition contains messages with offsets in range [start, end).
  102. *
  103. * Generated from protobuf field <code>.Ydb.Topic.OffsetsRange partition_offsets = 2;</code>
  104. * @param \Ydb\Topic\OffsetsRange $var
  105. * @return $this
  106. */
  107. public function setPartitionOffsets($var)
  108. {
  109. GPBUtil::checkMessage($var, \Ydb\Topic\OffsetsRange::class);
  110. $this->partition_offsets = $var;
  111. return $this;
  112. }
  113. /**
  114. * Each offset up to and including (committed_offset - 1) was fully processed.
  115. *
  116. * Generated from protobuf field <code>int64 committed_offset = 3;</code>
  117. * @return int|string
  118. */
  119. public function getCommittedOffset()
  120. {
  121. return $this->committed_offset;
  122. }
  123. /**
  124. * Each offset up to and including (committed_offset - 1) was fully processed.
  125. *
  126. * Generated from protobuf field <code>int64 committed_offset = 3;</code>
  127. * @param int|string $var
  128. * @return $this
  129. */
  130. public function setCommittedOffset($var)
  131. {
  132. GPBUtil::checkInt64($var);
  133. $this->committed_offset = $var;
  134. return $this;
  135. }
  136. /**
  137. * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
  138. *
  139. * Generated from protobuf field <code>.google.protobuf.Timestamp write_time_high_watermark = 4;</code>
  140. * @return \Google\Protobuf\Timestamp|null
  141. */
  142. public function getWriteTimeHighWatermark()
  143. {
  144. return $this->write_time_high_watermark;
  145. }
  146. public function hasWriteTimeHighWatermark()
  147. {
  148. return isset($this->write_time_high_watermark);
  149. }
  150. public function clearWriteTimeHighWatermark()
  151. {
  152. unset($this->write_time_high_watermark);
  153. }
  154. /**
  155. * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
  156. *
  157. * Generated from protobuf field <code>.google.protobuf.Timestamp write_time_high_watermark = 4;</code>
  158. * @param \Google\Protobuf\Timestamp $var
  159. * @return $this
  160. */
  161. public function setWriteTimeHighWatermark($var)
  162. {
  163. GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
  164. $this->write_time_high_watermark = $var;
  165. return $this;
  166. }
  167. }
  168. // Adding a class alias for backwards compatibility with the previous class name.
  169. class_alias(PartitionSessionStatusResponse::class, \Ydb\Topic\StreamReadMessage_PartitionSessionStatusResponse::class);