123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?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);
|