discord-jadx/app/src/main/java/f0/y.java

61 lines
1.8 KiB
Java

package f0;
import d0.z.d.m;
import java.io.IOException;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: Protocol.kt */
public enum y {
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");
public static final a p = new a(null);
private final String protocol;
/* compiled from: Protocol.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final y a(String str) throws IOException {
m.checkParameterIsNotNull(str, "protocol");
y yVar = y.HTTP_1_0;
if (!m.areEqual(str, y.f(yVar))) {
yVar = y.HTTP_1_1;
if (!m.areEqual(str, y.f(yVar))) {
yVar = y.H2_PRIOR_KNOWLEDGE;
if (!m.areEqual(str, y.f(yVar))) {
yVar = y.HTTP_2;
if (!m.areEqual(str, y.f(yVar))) {
yVar = y.SPDY_3;
if (!m.areEqual(str, y.f(yVar))) {
yVar = y.QUIC;
if (!m.areEqual(str, y.f(yVar))) {
throw new IOException(c.d.b.a.a.s("Unexpected protocol: ", str));
}
}
}
}
}
}
return yVar;
}
}
public y(String str) {
this.protocol = str;
}
public static final /* synthetic */ String f(y yVar) {
return yVar.protocol;
}
@Override // java.lang.Enum, java.lang.Object
public String toString() {
return this.protocol;
}
}