class ConnectSchema implements Schema {

    @Override
    public List<Field> fields() {
        if (type != Type.STRUCT)
            throw new DataException("Cannot list fields on non-struct type");
        return fields;
    }

    public  ConnectSchema(Type type, boolean optional, Object defaultValue, String name, Integer version, String doc, Map<String, String> parameters, List<Field> fields, Schema keySchema, Schema valueSchema);
    public  ConnectSchema(Type type, boolean optional, Object defaultValue, String name, Integer version, String doc);
    public  ConnectSchema(Type type);

}