@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            PartitionResponse that = (PartitionResponse) o;
            return baseOffset == that.baseOffset &&
                    lastOffset == that.lastOffset &&
                    logAppendTime == that.logAppendTime &&
                    logStartOffset == that.logStartOffset &&
                    error == that.error &&
                    Objects.equals(recordErrors, that.recordErrors) &&
                    Objects.equals(errorMessage, that.errorMessage) &&
                    Objects.equals(currentLeader, that.currentLeader);
        }
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