package okhttp3.internal.http2;

import androidx.media3.container.NalUnitUtil;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import defpackage.cr4;
import defpackage.kp6;
import defpackage.m15;
import defpackage.pq6;
import defpackage.zo0;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\b\u0086\b\u0018\u0000 \u001b2\u00020\u0001:\u0001\u001bB\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002¢\u0006\u0004\b\u0005\u0010\u0006B\u0019\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0007\u0012\u0006\u0010\u0004\u001a\u00020\u0007¢\u0006\u0004\b\u0005\u0010\bB\u0019\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0007¢\u0006\u0004\b\u0005\u0010\tJ\u000f\u0010\n\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\f\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\f\u0010\rJ\u0010\u0010\u000e\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u000e\u0010\rJ$\u0010\u000f\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00022\b\b\u0002\u0010\u0004\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\u000f\u0010\u0010J\u0010\u0010\u0012\u001a\u00020\u0011HÖ\u0001¢\u0006\u0004\b\u0012\u0010\u0013J\u001a\u0010\u0016\u001a\u00020\u00152\b\u0010\u0014\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\u0016\u0010\u0017R\u0014\u0010\u0003\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0018R\u0014\u0010\u0004\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\u00118\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u0019\u0010\u001a¨\u0006\u001c"}, d2 = {"Lokhttp3/internal/http2/Header;", "", "Lzo0;", AppMeasurementSdk.ConditionalUserProperty.NAME, AppMeasurementSdk.ConditionalUserProperty.VALUE, "<init>", "(Lzo0;Lzo0;)V", "", "(Ljava/lang/String;Ljava/lang/String;)V", "(Lzo0;Ljava/lang/String;)V", "toString", "()Ljava/lang/String;", "component1", "()Lzo0;", "component2", "copy", "(Lzo0;Lzo0;)Lokhttp3/internal/http2/Header;", "", "hashCode", "()I", "other", "", "equals", "(Ljava/lang/Object;)Z", "Lzo0;", "hpackSize", "I", "Companion", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final /* data */ class Header {

    @kp6
    @m15
    public static final zo0 PSEUDO_PREFIX;

    @kp6
    @m15
    public static final zo0 RESPONSE_STATUS;

    @kp6
    public static final String RESPONSE_STATUS_UTF8 = ":status";

    @kp6
    @m15
    public static final zo0 TARGET_AUTHORITY;

    @kp6
    public static final String TARGET_AUTHORITY_UTF8 = ":authority";

    @kp6
    @m15
    public static final zo0 TARGET_METHOD;

    @kp6
    public static final String TARGET_METHOD_UTF8 = ":method";

    @kp6
    @m15
    public static final zo0 TARGET_PATH;

    @kp6
    public static final String TARGET_PATH_UTF8 = ":path";

    @kp6
    @m15
    public static final zo0 TARGET_SCHEME;

    @kp6
    public static final String TARGET_SCHEME_UTF8 = ":scheme";

    @m15
    public final int hpackSize;

    @kp6
    @m15
    public final zo0 name;

    @kp6
    @m15
    public final zo0 value;

    static {
        zo0 zo0Var = zo0.d;
        PSEUDO_PREFIX = zo0.a.c(":");
        RESPONSE_STATUS = zo0.a.c(RESPONSE_STATUS_UTF8);
        TARGET_METHOD = zo0.a.c(TARGET_METHOD_UTF8);
        TARGET_PATH = zo0.a.c(TARGET_PATH_UTF8);
        TARGET_SCHEME = zo0.a.c(TARGET_SCHEME_UTF8);
        TARGET_AUTHORITY = zo0.a.c(TARGET_AUTHORITY_UTF8);
    }

    public Header(@kp6 zo0 zo0Var, @kp6 zo0 zo0Var2) {
        cr4.g(zo0Var, AppMeasurementSdk.ConditionalUserProperty.NAME);
        cr4.g(zo0Var2, AppMeasurementSdk.ConditionalUserProperty.VALUE);
        this.name = zo0Var;
        this.value = zo0Var2;
        this.hpackSize = zo0Var2.e() + zo0Var.e() + 32;
    }

    public static /* synthetic */ Header copy$default(Header header, zo0 zo0Var, zo0 zo0Var2, int i, Object obj) {
        if ((i & 1) != 0) {
            zo0Var = header.name;
        }
        if ((i & 2) != 0) {
            zo0Var2 = header.value;
        }
        return header.copy(zo0Var, zo0Var2);
    }

    @kp6
    /* JADX INFO: renamed from: component1, reason: from getter */
    public final zo0 getName() {
        return this.name;
    }

    @kp6
    /* JADX INFO: renamed from: component2, reason: from getter */
    public final zo0 getValue() {
        return this.value;
    }

    @kp6
    public final Header copy(@kp6 zo0 name, @kp6 zo0 value) {
        cr4.g(name, AppMeasurementSdk.ConditionalUserProperty.NAME);
        cr4.g(value, AppMeasurementSdk.ConditionalUserProperty.VALUE);
        return new Header(name, value);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof Header)) {
            return false;
        }
        Header header = (Header) other;
        return cr4.b(this.name, header.name) && cr4.b(this.value, header.value);
    }

    public int hashCode() {
        return this.value.hashCode() + (this.name.hashCode() * 31);
    }

    @kp6
    public String toString() {
        return this.name.t() + ": " + this.value.t();
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public Header(@kp6 String str, @kp6 String str2) {
        this(zo0.a.c(str), zo0.a.c(str2));
        cr4.g(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        cr4.g(str2, AppMeasurementSdk.ConditionalUserProperty.VALUE);
        zo0 zo0Var = zo0.d;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public Header(@kp6 zo0 zo0Var, @kp6 String str) {
        this(zo0Var, zo0.a.c(str));
        cr4.g(zo0Var, AppMeasurementSdk.ConditionalUserProperty.NAME);
        cr4.g(str, AppMeasurementSdk.ConditionalUserProperty.VALUE);
        zo0 zo0Var2 = zo0.d;
    }
}
