12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_topic.proto
- namespace Ydb\Topic\StreamReadMessage;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Acknowledgement for commits.
- *
- * Generated from protobuf message <code>Ydb.Topic.StreamReadMessage.CommitOffsetResponse</code>
- */
- class CommitOffsetResponse extends \Google\Protobuf\Internal\Message
- {
- /**
- * Partitions with progress.
- *
- * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1;</code>
- */
- private $partitions_committed_offsets;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Ydb\Topic\StreamReadMessage\CommitOffsetResponse\PartitionCommittedOffset>|\Google\Protobuf\Internal\RepeatedField $partitions_committed_offsets
- * Partitions with progress.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTopic::initOnce();
- parent::__construct($data);
- }
- /**
- * Partitions with progress.
- *
- * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPartitionsCommittedOffsets()
- {
- return $this->partitions_committed_offsets;
- }
- /**
- * Partitions with progress.
- *
- * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1;</code>
- * @param array<\Ydb\Topic\StreamReadMessage\CommitOffsetResponse\PartitionCommittedOffset>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPartitionsCommittedOffsets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Topic\StreamReadMessage\CommitOffsetResponse\PartitionCommittedOffset::class);
- $this->partitions_committed_offsets = $arr;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(CommitOffsetResponse::class, \Ydb\Topic\StreamReadMessage_CommitOffsetResponse::class);
|