package XnFJ5_9;

import java.io.IOException;
/* compiled from: Protocol.java */
/* loaded from: classes.dex */
public enum XuVgy_28 {
    HTTP_1_0("http/1.0"),
    HTTP_1_1("http/1.1"),
    SPDY_3("spdy/3.1"),
    HTTP_2("h2"),
    H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
    QUIC("quic");
    

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final String f1762KQgRr5e_0;

    XuVgy_28(String str) {
        this.f1762KQgRr5e_0 = str;
    }

    public static XuVgy_28 KQgRr5e_0(String str) throws IOException {
        if (str.equals(HTTP_1_0.f1762KQgRr5e_0)) {
            return HTTP_1_0;
        }
        if (str.equals(HTTP_1_1.f1762KQgRr5e_0)) {
            return HTTP_1_1;
        }
        if (str.equals(H2_PRIOR_KNOWLEDGE.f1762KQgRr5e_0)) {
            return H2_PRIOR_KNOWLEDGE;
        }
        if (str.equals(HTTP_2.f1762KQgRr5e_0)) {
            return HTTP_2;
        }
        if (str.equals(SPDY_3.f1762KQgRr5e_0)) {
            return SPDY_3;
        }
        if (str.equals(QUIC.f1762KQgRr5e_0)) {
            return QUIC;
        }
        throw new IOException("Unexpected protocol: " + str);
    }

    @Override // java.lang.Enum
    public String toString() {
        return this.f1762KQgRr5e_0;
    }
}
