public static PatternType fromString(String name) {
        return NAME_TO_VALUE.getOrDefault(name, UNKNOWN);
    }
Return the PatternType with the provided name or {@link #UNKNOWN} if one cannot be found.
clients/src/main/java/org/apache/kafka/common/resource/PatternType.java