Ydb.Topic.StreamReadMessage.ReadResponse */ class ReadResponse extends \Google\Protobuf\Internal\Message { /** * Client messages, divided by partitions. * * Generated from protobuf field repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ private $partition_data; /** * Total size in bytes of this response as calculated by server. * See ReadRequest comment above. * * Generated from protobuf field int64 bytes_size = 2; */ 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 repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPartitionData() { return $this->partition_data; } /** * Client messages, divided by partitions. * * Generated from protobuf field repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; * @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 int64 bytes_size = 2; * @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 int64 bytes_size = 2; * @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);