Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData */ class PartitionData extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int64 partition_session_id = 1; */ protected $partition_session_id = 0; /** * Client messages, divided by write sessions. * * Generated from protobuf field repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ private $batches; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $partition_session_id * @type array<\Ydb\Topic\StreamReadMessage\ReadResponse\Batch>|\Google\Protobuf\Internal\RepeatedField $batches * Client messages, divided by write sessions. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int64 partition_session_id = 1; * @return int|string */ public function getPartitionSessionId() { return $this->partition_session_id; } /** * Generated from protobuf field int64 partition_session_id = 1; * @param int|string $var * @return $this */ public function setPartitionSessionId($var) { GPBUtil::checkInt64($var); $this->partition_session_id = $var; return $this; } /** * Client messages, divided by write sessions. * * Generated from protobuf field repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBatches() { return $this->batches; } /** * Client messages, divided by write sessions. * * Generated from protobuf field repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; * @param array<\Ydb\Topic\StreamReadMessage\ReadResponse\Batch>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBatches($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Topic\StreamReadMessage\ReadResponse\Batch::class); $this->batches = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PartitionData::class, \Ydb\Topic\StreamReadMessage_ReadResponse_PartitionData::class);