2021-06-27 20:44:35 +00:00
|
|
|
package f0;
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.m;
|
2021-06-27 20:44:35 +00:00
|
|
|
import java.io.IOException;
|
2021-11-08 18:25:28 +00:00
|
|
|
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");
|
|
|
|
|
2021-12-17 22:03:14 +00:00
|
|
|
public static final a q = new a(null);
|
2021-11-08 18:25:28 +00:00
|
|
|
private final String protocol;
|
|
|
|
|
|
|
|
/* compiled from: Protocol.kt */
|
|
|
|
public static final class a {
|
|
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
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.v("Unexpected protocol: ", str));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return yVar;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
public y(String str) {
|
|
|
|
this.protocol = str;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
public static final /* synthetic */ String f(y yVar) {
|
|
|
|
return yVar.protocol;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // java.lang.Enum, java.lang.Object
|
|
|
|
public String toString() {
|
|
|
|
return this.protocol;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|