@Override
        public String toString() {
            return "(type=LeaveGroupRequest" +
                       ", groupId=" + groupId +
                       ", members=" + MessageUtil.deepToString(members.iterator()) +
                       ")";
        }
Based on the request version to choose fields.
clients/src/main/java/org/apache/kafka/common/requests/LeaveGroupRequest.java