package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class B20 {
    public U7 a;
    public EnumC2910xZ b;
    public String d;
    public DE e;
    public AbstractC3081zG g;
    public C20 h;
    public C20 i;
    public C20 j;
    public long k;
    public long l;
    public C2398s4 m;
    public int c = -1;
    public KE f = new KE(0);

    public static void b(String str, C20 c20) {
        if (c20 != null) {
            if (c20.r != null) {
                throw new IllegalArgumentException(str.concat(".body != null").toString());
            }
            if (c20.s != null) {
                throw new IllegalArgumentException(str.concat(".networkResponse != null").toString());
            }
            if (c20.t != null) {
                throw new IllegalArgumentException(str.concat(".cacheResponse != null").toString());
            }
            if (c20.u != null) {
                throw new IllegalArgumentException(str.concat(".priorResponse != null").toString());
            }
        }
    }

    public final C20 a() {
        int i = this.c;
        if (i < 0) {
            throw new IllegalStateException(("code < 0: " + this.c).toString());
        }
        U7 u7 = this.a;
        if (u7 == null) {
            throw new IllegalStateException("request == null");
        }
        EnumC2910xZ enumC2910xZ = this.b;
        if (enumC2910xZ == null) {
            throw new IllegalStateException("protocol == null");
        }
        String str = this.d;
        if (str != null) {
            return new C20(u7, enumC2910xZ, str, i, this.e, this.f.d(), this.g, this.h, this.i, this.j, this.k, this.l, this.m);
        }
        throw new IllegalStateException("message == null");
    }
}
