package 㿎;

import java.io.Closeable;
import okhttp3.Protocol;
import ඓ.K.K.K.C1293;
import 㿎.C2667;

/* renamed from: 㿎.䃖  reason: contains not printable characters */
/* compiled from: Response */
public final class C2671 implements Closeable {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final Protocol f9083;

    /* renamed from: ඓ  reason: contains not printable characters */
    public final String f9084;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public final C2671 f9085;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public final C2671 f9086;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final C2644 f9087;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final C2667 f9088;

    /* renamed from: 㑃  reason: contains not printable characters */
    public final long f9089;

    /* renamed from: 㳳  reason: contains not printable characters */
    public final C2671 f9090;

    /* renamed from: 㴹  reason: contains not printable characters */
    public final C2536 f9091;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final int f9092;

    /* renamed from: 㿎  reason: contains not printable characters */
    public final AbstractC2632 f9093;

    /* renamed from: 䁗  reason: contains not printable characters */
    public final long f9094;

    /* renamed from: 㿎.䃖$K  reason: contains not printable characters */
    /* compiled from: Response */
    public static class C2672 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public int f9095;

        /* renamed from: ඓ  reason: contains not printable characters */
        public C2536 f9096;

        /* renamed from: ᕣ  reason: contains not printable characters */
        public long f9097;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public C2671 f9098;

        /* renamed from: ῲ  reason: contains not printable characters */
        public Protocol f9099;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public AbstractC2632 f9100;

        /* renamed from: K  reason: contains not printable characters */
        public C2644 f9101;

        /* renamed from: 㑃  reason: contains not printable characters */
        public long f9102;

        /* renamed from: 㳳  reason: contains not printable characters */
        public C2671 f9103;

        /* renamed from: 㴹  reason: contains not printable characters */
        public C2667.C2668 f9104;

        /* renamed from: 㸾  reason: contains not printable characters */
        public String f9105;

        /* renamed from: 㿎  reason: contains not printable characters */
        public C2671 f9106;

        public C2672() {
            this.f9095 = -1;
            this.f9104 = new C2667.C2668();
        }

        /* renamed from: K  reason: contains not printable characters */
        public C2672 m7008(C2667 r1) {
            this.f9104 = r1.m6997();
            return this;
        }

        /* renamed from: K  reason: contains not printable characters */
        public C2672 m7009(C2671 r2) {
            if (r2 != null) {
                m7011("cacheResponse", r2);
            }
            this.f9098 = r2;
            return this;
        }

        public C2672(C2671 r3) {
            this.f9095 = -1;
            this.f9101 = r3.f9087;
            this.f9099 = r3.f9083;
            this.f9095 = r3.f9092;
            this.f9105 = r3.f9084;
            this.f9096 = r3.f9091;
            this.f9104 = r3.f9088.m6997();
            this.f9100 = r3.f9093;
            this.f9106 = r3.f9086;
            this.f9098 = r3.f9090;
            this.f9103 = r3.f9085;
            this.f9097 = r3.f9089;
            this.f9102 = r3.f9094;
        }

        /* renamed from: K  reason: contains not printable characters */
        public final void m7011(String str, C2671 r3) {
            if (r3.f9093 != null) {
                throw new IllegalArgumentException(C1293.m3412(str, ".body != null"));
            } else if (r3.f9086 != null) {
                throw new IllegalArgumentException(C1293.m3412(str, ".networkResponse != null"));
            } else if (r3.f9090 != null) {
                throw new IllegalArgumentException(C1293.m3412(str, ".cacheResponse != null"));
            } else if (r3.f9085 != null) {
                throw new IllegalArgumentException(C1293.m3412(str, ".priorResponse != null"));
            }
        }

        /* renamed from: K  reason: contains not printable characters */
        public C2671 m7010() {
            if (this.f9101 == null) {
                throw new IllegalStateException("request == null");
            } else if (this.f9099 == null) {
                throw new IllegalStateException("protocol == null");
            } else if (this.f9095 < 0) {
                StringBuilder r1 = C1293.m3416("code < 0: ");
                r1.append(this.f9095);
                throw new IllegalStateException(r1.toString());
            } else if (this.f9105 != null) {
                return new C2671(this);
            } else {
                throw new IllegalStateException("message == null");
            }
        }
    }

    public C2671(C2672 k) {
        this.f9087 = k.f9101;
        this.f9083 = k.f9099;
        this.f9092 = k.f9095;
        this.f9084 = k.f9105;
        this.f9091 = k.f9096;
        this.f9088 = k.f9104.m7003();
        this.f9093 = k.f9100;
        this.f9086 = k.f9106;
        this.f9090 = k.f9098;
        this.f9085 = k.f9103;
        this.f9089 = k.f9097;
        this.f9094 = k.f9102;
    }

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

    public String toString() {
        StringBuilder r0 = C1293.m3416("Response{protocol=");
        r0.append(this.f9083);
        r0.append(", code=");
        r0.append(this.f9092);
        r0.append(", message=");
        r0.append(this.f9084);
        r0.append(", url=");
        r0.append(this.f9087.f8985);
        r0.append('}');
        return r0.toString();
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public boolean m7006() {
        int i = this.f9092;
        return i >= 200 && i < 300;
    }

    /* renamed from: 㳳  reason: contains not printable characters */
    public C2672 m7007() {
        return new C2672(this);
    }
}
