@Override
    int responseSize(LinkedHashMap<TopicIdPartition, ShareFetchResponseData.PartitionData> updates, short version) {
        return ShareFetchResponse.sizeOf(version, updates.entrySet().iterator());
    }
The share fetch context for a final share fetch request.
core/src/main/java/kafka/server/share/FinalContext.java