package XnFJ5_9;

import XnFJ5_9.SI64pbG_23;
import java.io.Closeable;
import javax.annotation.Nullable;
/* compiled from: Response.java */
/* loaded from: classes.dex */
public final class WkDTNqU_32 implements Closeable {
    public final int KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final long f1723KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final EANXC_30 f1724KQgRr5e_0;
    @Nullable

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final XnFJ5_9.Ft6VRog_36.FSaI4_7.Mqv2r_3 f1725KQgRr5e_0;
    @Nullable

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final H5YG8fq_22 f1726KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final SI64pbG_23 f1727KQgRr5e_0;
    @Nullable

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final ViqFd_33 f1728KQgRr5e_0;
    @Nullable

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final WkDTNqU_32 f1729KQgRr5e_0;
    @Nullable

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public volatile Xgtqvk_8 f1730KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final XuVgy_28 f1731KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final String f1732KQgRr5e_0;
    @Nullable
    public final WkDTNqU_32 PGPF6hQ_2;
    public final long QxJ9d_1;
    @Nullable

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public final WkDTNqU_32 f1733QxJ9d_1;

    /* compiled from: Response.java */
    /* loaded from: classes.dex */
    public static class KQgRr5e_0 {
        public int KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public long f1734KQgRr5e_0;
        @Nullable

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public EANXC_30 f1735KQgRr5e_0;
        @Nullable

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public XnFJ5_9.Ft6VRog_36.FSaI4_7.Mqv2r_3 f1736KQgRr5e_0;
        @Nullable

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public H5YG8fq_22 f1737KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public SI64pbG_23.KQgRr5e_0 f1738KQgRr5e_0;
        @Nullable

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public ViqFd_33 f1739KQgRr5e_0;
        @Nullable

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public WkDTNqU_32 f1740KQgRr5e_0;
        @Nullable

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public XuVgy_28 f1741KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public String f1742KQgRr5e_0;
        @Nullable
        public WkDTNqU_32 PGPF6hQ_2;
        public long QxJ9d_1;
        @Nullable

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public WkDTNqU_32 f1743QxJ9d_1;

        public KQgRr5e_0() {
            this.KQgRr5e_0 = -1;
            this.f1738KQgRr5e_0 = new SI64pbG_23.KQgRr5e_0();
        }

        public KQgRr5e_0 KQgRr5e_0(EANXC_30 eanxc_30) {
            this.f1735KQgRr5e_0 = eanxc_30;
            return this;
        }

        public KQgRr5e_0 PGPF6hQ_2(@Nullable WkDTNqU_32 wkDTNqU_32) {
            if (wkDTNqU_32 != null) {
                m802KQgRr5e_0(wkDTNqU_32);
            }
            this.PGPF6hQ_2 = wkDTNqU_32;
            return this;
        }

        public KQgRr5e_0 QxJ9d_1(String str, String str2) {
            this.f1738KQgRr5e_0.PGPF6hQ_2(str, str2);
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(XuVgy_28 xuVgy_28) {
            this.f1741KQgRr5e_0 = xuVgy_28;
            return this;
        }

        public KQgRr5e_0 QxJ9d_1(@Nullable WkDTNqU_32 wkDTNqU_32) {
            if (wkDTNqU_32 != null) {
                KQgRr5e_0("networkResponse", wkDTNqU_32);
            }
            this.f1740KQgRr5e_0 = wkDTNqU_32;
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(int i) {
            this.KQgRr5e_0 = i;
            return this;
        }

        public KQgRr5e_0(WkDTNqU_32 wkDTNqU_32) {
            this.KQgRr5e_0 = -1;
            this.f1735KQgRr5e_0 = wkDTNqU_32.f1724KQgRr5e_0;
            this.f1741KQgRr5e_0 = wkDTNqU_32.f1731KQgRr5e_0;
            this.KQgRr5e_0 = wkDTNqU_32.KQgRr5e_0;
            this.f1742KQgRr5e_0 = wkDTNqU_32.f1732KQgRr5e_0;
            this.f1737KQgRr5e_0 = wkDTNqU_32.f1726KQgRr5e_0;
            this.f1738KQgRr5e_0 = wkDTNqU_32.f1727KQgRr5e_0.m768KQgRr5e_0();
            this.f1739KQgRr5e_0 = wkDTNqU_32.f1728KQgRr5e_0;
            this.f1740KQgRr5e_0 = wkDTNqU_32.f1729KQgRr5e_0;
            this.f1743QxJ9d_1 = wkDTNqU_32.f1733QxJ9d_1;
            this.PGPF6hQ_2 = wkDTNqU_32.PGPF6hQ_2;
            this.f1734KQgRr5e_0 = wkDTNqU_32.f1723KQgRr5e_0;
            this.QxJ9d_1 = wkDTNqU_32.QxJ9d_1;
            this.f1736KQgRr5e_0 = wkDTNqU_32.f1725KQgRr5e_0;
        }

        public KQgRr5e_0 KQgRr5e_0(String str) {
            this.f1742KQgRr5e_0 = str;
            return this;
        }

        public KQgRr5e_0 QxJ9d_1(long j) {
            this.f1734KQgRr5e_0 = j;
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(@Nullable H5YG8fq_22 h5YG8fq_22) {
            this.f1737KQgRr5e_0 = h5YG8fq_22;
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(String str, String str2) {
            this.f1738KQgRr5e_0.KQgRr5e_0(str, str2);
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(SI64pbG_23 sI64pbG_23) {
            this.f1738KQgRr5e_0 = sI64pbG_23.m768KQgRr5e_0();
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(@Nullable ViqFd_33 viqFd_33) {
            this.f1739KQgRr5e_0 = viqFd_33;
            return this;
        }

        public KQgRr5e_0 KQgRr5e_0(@Nullable WkDTNqU_32 wkDTNqU_32) {
            if (wkDTNqU_32 != null) {
                KQgRr5e_0("cacheResponse", wkDTNqU_32);
            }
            this.f1743QxJ9d_1 = wkDTNqU_32;
            return this;
        }

        public final void KQgRr5e_0(String str, WkDTNqU_32 wkDTNqU_32) {
            if (wkDTNqU_32.f1728KQgRr5e_0 == null) {
                if (wkDTNqU_32.f1729KQgRr5e_0 == null) {
                    if (wkDTNqU_32.f1733QxJ9d_1 == null) {
                        if (wkDTNqU_32.PGPF6hQ_2 == null) {
                            return;
                        }
                        throw new IllegalArgumentException(str + ".priorResponse != null");
                    }
                    throw new IllegalArgumentException(str + ".cacheResponse != null");
                }
                throw new IllegalArgumentException(str + ".networkResponse != null");
            }
            throw new IllegalArgumentException(str + ".body != null");
        }

        /* renamed from: KQgRr5e_0  reason: collision with other method in class */
        public final void m802KQgRr5e_0(WkDTNqU_32 wkDTNqU_32) {
            if (wkDTNqU_32.f1728KQgRr5e_0 != null) {
                throw new IllegalArgumentException("priorResponse.body != null");
            }
        }

        public KQgRr5e_0 KQgRr5e_0(long j) {
            this.QxJ9d_1 = j;
            return this;
        }

        public void KQgRr5e_0(XnFJ5_9.Ft6VRog_36.FSaI4_7.Mqv2r_3 mqv2r_3) {
            this.f1736KQgRr5e_0 = mqv2r_3;
        }

        public WkDTNqU_32 KQgRr5e_0() {
            if (this.f1735KQgRr5e_0 != null) {
                if (this.f1741KQgRr5e_0 != null) {
                    if (this.KQgRr5e_0 >= 0) {
                        if (this.f1742KQgRr5e_0 != null) {
                            return new WkDTNqU_32(this);
                        }
                        throw new IllegalStateException("message == null");
                    }
                    throw new IllegalStateException("code < 0: " + this.KQgRr5e_0);
                }
                throw new IllegalStateException("protocol == null");
            }
            throw new IllegalStateException("request == null");
        }
    }

    public WkDTNqU_32(KQgRr5e_0 kQgRr5e_0) {
        this.f1724KQgRr5e_0 = kQgRr5e_0.f1735KQgRr5e_0;
        this.f1731KQgRr5e_0 = kQgRr5e_0.f1741KQgRr5e_0;
        this.KQgRr5e_0 = kQgRr5e_0.KQgRr5e_0;
        this.f1732KQgRr5e_0 = kQgRr5e_0.f1742KQgRr5e_0;
        this.f1726KQgRr5e_0 = kQgRr5e_0.f1737KQgRr5e_0;
        this.f1727KQgRr5e_0 = kQgRr5e_0.f1738KQgRr5e_0.KQgRr5e_0();
        this.f1728KQgRr5e_0 = kQgRr5e_0.f1739KQgRr5e_0;
        this.f1729KQgRr5e_0 = kQgRr5e_0.f1740KQgRr5e_0;
        this.f1733QxJ9d_1 = kQgRr5e_0.f1743QxJ9d_1;
        this.PGPF6hQ_2 = kQgRr5e_0.PGPF6hQ_2;
        this.f1723KQgRr5e_0 = kQgRr5e_0.f1734KQgRr5e_0;
        this.QxJ9d_1 = kQgRr5e_0.QxJ9d_1;
        this.f1725KQgRr5e_0 = kQgRr5e_0.f1736KQgRr5e_0;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public EANXC_30 m794KQgRr5e_0() {
        return this.f1724KQgRr5e_0;
    }

    public long PGPF6hQ_2() {
        return this.f1723KQgRr5e_0;
    }

    /* renamed from: QxJ9d_1  reason: collision with other method in class */
    public boolean m801QxJ9d_1() {
        int i = this.KQgRr5e_0;
        return i >= 200 && i < 300;
    }

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

    public String toString() {
        return "Response{protocol=" + this.f1731KQgRr5e_0 + ", code=" + this.KQgRr5e_0 + ", message=" + this.f1732KQgRr5e_0 + ", url=" + this.f1724KQgRr5e_0.m661KQgRr5e_0() + '}';
    }

    public int KQgRr5e_0() {
        return this.KQgRr5e_0;
    }

    public long QxJ9d_1() {
        return this.QxJ9d_1;
    }

    @Nullable
    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public H5YG8fq_22 m795KQgRr5e_0() {
        return this.f1726KQgRr5e_0;
    }

    @Nullable
    public String KQgRr5e_0(String str) {
        return KQgRr5e_0(str, null);
    }

    @Nullable
    public String KQgRr5e_0(String str, @Nullable String str2) {
        String m769KQgRr5e_0 = this.f1727KQgRr5e_0.m769KQgRr5e_0(str);
        return m769KQgRr5e_0 != null ? m769KQgRr5e_0 : str2;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public SI64pbG_23 m796KQgRr5e_0() {
        return this.f1727KQgRr5e_0;
    }

    @Nullable
    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public ViqFd_33 m797KQgRr5e_0() {
        return this.f1728KQgRr5e_0;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public KQgRr5e_0 m798KQgRr5e_0() {
        return new KQgRr5e_0(this);
    }

    @Nullable
    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public WkDTNqU_32 m799KQgRr5e_0() {
        return this.PGPF6hQ_2;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public Xgtqvk_8 m800KQgRr5e_0() {
        Xgtqvk_8 xgtqvk_8 = this.f1730KQgRr5e_0;
        if (xgtqvk_8 != null) {
            return xgtqvk_8;
        }
        Xgtqvk_8 KQgRr5e_02 = Xgtqvk_8.KQgRr5e_0(this.f1727KQgRr5e_0);
        this.f1730KQgRr5e_0 = KQgRr5e_02;
        return KQgRr5e_02;
    }
}
