@Override
        public String toString() {
            StringBuilder b = new StringBuilder();
            b.append('{');
            b.append("error: ");
            b.append(error);
            b.append(",offset: ");
            b.append(baseOffset);
            b.append(",lastOffset: ");
            b.append(lastOffset);
            b.append(",logAppendTime: ");
            b.append(logAppendTime);
            b.append(", logStartOffset: ");
            b.append(logStartOffset);
            b.append(", recordErrors: ");
            b.append(recordErrors);
            b.append(", currentLeader: ");
            b.append(currentLeader);
            b.append(", errorMessage: ");
            if (errorMessage != null) {
                b.append(errorMessage);
            } else {
                b.append("null");
            }
            b.append('}');
            return b.toString();
        }
Constructor for the latest version
This is deprecated in favor of using the ProduceResponseData constructor, KafkaApis should switch to that
in KAFKA-10730
@param responses Produced data grouped by topic-partition
@param throttleTimeMs Time in milliseconds the response was throttled
@param nodeEndpoints List of node endpoints
clients/src/main/java/org/apache/kafka/common/requests/ProduceResponse.java