public static ShareFetchResponseData.PartitionData partitionResponse(TopicIdPartition topicIdPartition, Errors error) {
        return partitionResponse(topicIdPartition.topicPartition().partition(), error);
    }
@return The size in bytes of the records. 0 is returned if records of input partition is null.
clients/src/main/java/org/apache/kafka/common/requests/ShareFetchResponse.java