public static ClickHouseProtocol fromUriScheme(String scheme) {
        ClickHouseProtocol protocol = ANY;

        for (ClickHouseProtocol p : values()) {
            for (String s : p.getUriSchemes()) {
                if (s.equalsIgnoreCase(scheme)) {
                    protocol = p;
                    break;
                }
            }
        }

        return protocol;
    }
Gets most suitable protocol according to given URI scheme.

@param scheme case insensitive URI scheme
@return suitable protocol, {@link #ANY} if not found
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseProtocol.java