public Map<TopicPartition, EpochEndOffset> endOffsets() {
            return endOffsets;
        }
Utility methods for preparing requests to the OffsetsForLeaderEpoch API and handling responses.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetsForLeaderEpochUtils.java