@Override
    public LeaveGroupRequestData data() {
        return data;
    }
Based on the request version to choose fields.
clients/src/main/java/org/apache/kafka/common/requests/LeaveGroupRequest.java