/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Topic/StreamReadMessage/CommitOffsetRequest/PartitionCommitOffset.php
103 строки
3 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: protos/ydb_topic.proto namespace Ydb\Topic\StreamReadMessage\CommitOffsetRequest; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Message that is used for describing commit. * * Generated from protobuf message <code>Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset</code> */ class PartitionCommitOffset extends \Google\Protobuf\Internal\Message { /** * Identifier of partition session with data to commit. * * Generated from protobuf field <code>int64 partition_session_id = 1;</code> */ protected $partition_session_id = 0; /** * Processed offsets ranges, repeated in case of disjoint ranges. * * Generated from protobuf field <code>repeated .Ydb.Topic.OffsetsRange offsets = 2;</code> */ private $offsets; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $partition_session_id * Identifier of partition session with data to commit. * @type array<\Ydb\Topic\OffsetsRange>|\Google\Protobuf\Internal\RepeatedField $offsets * Processed offsets ranges, repeated in case of disjoint ranges. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Identifier of partition session with data to commit. * * Generated from protobuf field <code>int64 partition_session_id = 1;</code> * @return int|string */ public function getPartitionSessionId() { return $this->partition_session_id; } /** * Identifier of partition session with data to commit. * * Generated from protobuf field <code>int64 partition_session_id = 1;</code> * @param int|string $var * @return $this */ public function setPartitionSessionId($var) { GPBUtil::checkInt64($var); $this->partition_session_id = $var; return $this; } /** * Processed offsets ranges, repeated in case of disjoint ranges. * * Generated from protobuf field <code>repeated .Ydb.Topic.OffsetsRange offsets = 2;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getOffsets() { return $this->offsets; } /** * Processed offsets ranges, repeated in case of disjoint ranges. * * Generated from protobuf field <code>repeated .Ydb.Topic.OffsetsRange offsets = 2;</code> * @param array<\Ydb\Topic\OffsetsRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setOffsets($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Topic\OffsetsRange::class); $this->offsets = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PartitionCommitOffset::class, \Ydb\Topic\StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset::class);