/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Topic/StreamReadMessage/ReadResponse.php
107 строк
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; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Data read. * * Generated from protobuf message <code>Ydb.Topic.StreamReadMessage.ReadResponse</code> */ class ReadResponse extends \Google\Protobuf\Internal\Message { /** * Client messages, divided by partitions. * * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1;</code> */ private $partition_data; /** * Total size in bytes of this response as calculated by server. * See ReadRequest comment above. * * Generated from protobuf field <code>int64 bytes_size = 2;</code> */ protected $bytes_size = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Ydb\Topic\StreamReadMessage\ReadResponse\PartitionData>|\Google\Protobuf\Internal\RepeatedField $partition_data * Client messages, divided by partitions. * @type int|string $bytes_size * Total size in bytes of this response as calculated by server. * See ReadRequest comment above. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Client messages, divided by partitions. * * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getPartitionData() { return $this->partition_data; } /** * Client messages, divided by partitions. * * Generated from protobuf field <code>repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1;</code> * @param array<\Ydb\Topic\StreamReadMessage\ReadResponse\PartitionData>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPartitionData($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Topic\StreamReadMessage\ReadResponse\PartitionData::class); $this->partition_data = $arr; return $this; } /** * Total size in bytes of this response as calculated by server. * See ReadRequest comment above. * * Generated from protobuf field <code>int64 bytes_size = 2;</code> * @return int|string */ public function getBytesSize() { return $this->bytes_size; } /** * Total size in bytes of this response as calculated by server. * See ReadRequest comment above. * * Generated from protobuf field <code>int64 bytes_size = 2;</code> * @param int|string $var * @return $this */ public function setBytesSize($var) { GPBUtil::checkInt64($var); $this->bytes_size = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ReadResponse::class, \Ydb\Topic\StreamReadMessage_ReadResponse::class);