public static GroupProtocol of(final String name) {
        return GroupProtocol.valueOf(name.toUpperCase(Locale.ROOT));
    }
Case-insensitive group protocol lookup by string name.
clients/src/main/java/org/apache/kafka/clients/consumer/GroupProtocol.java