CommitOffsetResponse.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * Acknowledgement for commits.
  10. *
  11. * Generated from protobuf message <code>Ydb.Topic.StreamReadMessage.CommitOffsetResponse</code>
  12. */
  13. class CommitOffsetResponse extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Partitions with progress.
  17. *
  18. * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1;</code>
  19. */
  20. private $partitions_committed_offsets;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type array<\Ydb\Topic\StreamReadMessage\CommitOffsetResponse\PartitionCommittedOffset>|\Google\Protobuf\Internal\RepeatedField $partitions_committed_offsets
  28. * Partitions with progress.
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbTopic::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Partitions with progress.
  37. *
  38. * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1;</code>
  39. * @return \Google\Protobuf\Internal\RepeatedField
  40. */
  41. public function getPartitionsCommittedOffsets()
  42. {
  43. return $this->partitions_committed_offsets;
  44. }
  45. /**
  46. * Partitions with progress.
  47. *
  48. * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1;</code>
  49. * @param array<\Ydb\Topic\StreamReadMessage\CommitOffsetResponse\PartitionCommittedOffset>|\Google\Protobuf\Internal\RepeatedField $var
  50. * @return $this
  51. */
  52. public function setPartitionsCommittedOffsets($var)
  53. {
  54. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Topic\StreamReadMessage\CommitOffsetResponse\PartitionCommittedOffset::class);
  55. $this->partitions_committed_offsets = $arr;
  56. return $this;
  57. }
  58. }
  59. // Adding a class alias for backwards compatibility with the previous class name.
  60. class_alias(CommitOffsetResponse::class, \Ydb\Topic\StreamReadMessage_CommitOffsetResponse::class);