public static Protocol forName(String name) {
        switch (name) {
            case "SSLv3":
                return SSLv3;
            case "TLSv1":
                return TLSv1;
            case "TLSv1.1":
                return TLSv1_1;
            case "TLSv1.2":
                return TLSv1_2;
            case "TLSv1.3":
                return TLSv1_3;
            case "TLS_PROTO_FAILED":
                return TLS_PROTO_FAILED;
            default:
                return UNKNOWN_PROTO;
        }
    }
Protocols to metric mapping for metrics instrumentation.

Must be in sync with frameworks/base/cmds/statsd/src/atoms.proto
common/src/main/java/org/conscrypt/metrics/Protocol.java