package o;

import java.io.Closeable;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class C20 implements Closeable {
    public final U7 l;
    public final EnumC2910xZ m;
    public final String n;

    /* renamed from: o, reason: collision with root package name */
    public final int f63o;
    public final DE p;
    public final LE q;
    public final AbstractC3081zG r;
    public final C20 s;
    public final C20 t;
    public final C20 u;
    public final long v;
    public final long w;
    public final C2398s4 x;
    public C0239Jf y;

    public C20(U7 u7, EnumC2910xZ enumC2910xZ, String str, int i, DE de, LE le, AbstractC3081zG abstractC3081zG, C20 c20, C20 c202, C20 c203, long j, long j2, C2398s4 c2398s4) {
        this.l = u7;
        this.m = enumC2910xZ;
        this.n = str;
        this.f63o = i;
        this.p = de;
        this.q = le;
        this.r = abstractC3081zG;
        this.s = c20;
        this.t = c202;
        this.u = c203;
        this.v = j;
        this.w = j2;
        this.x = c2398s4;
    }

    public final boolean b() {
        int i = this.f63o;
        return 200 <= i && i < 300;
    }

    public final B20 c() {
        B20 b20 = new B20();
        b20.a = this.l;
        b20.b = this.m;
        b20.c = this.f63o;
        b20.d = this.n;
        b20.e = this.p;
        b20.f = this.q.c();
        b20.g = this.r;
        b20.h = this.s;
        b20.i = this.t;
        b20.j = this.u;
        b20.k = this.v;
        b20.l = this.w;
        b20.m = this.x;
        return b20;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        AbstractC3081zG abstractC3081zG = this.r;
        if (abstractC3081zG == null) {
            throw new IllegalStateException("response is not eligible for a body and must not be closed");
        }
        abstractC3081zG.close();
    }

    public final String toString() {
        return "Response{protocol=" + this.m + ", code=" + this.f63o + ", message=" + this.n + ", url=" + ((ZF) this.l.m) + '}';
    }
}
