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