package okhttp3.n0.http2;

import kotlin.Metadata;
import kotlin.jvm.internal.o;
import okio.ByteString;

/* JADX INFO: renamed from: y.n0.j.c, reason: from Kotlin metadata */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0005\b\u0086\b\u0018\u0000 \u00132\u00020\u0001:\u0001\u0013B\u0017\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005B\u0017\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0006\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0007B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0006\u0012\u0006\u0010\u0004\u001a\u00020\u0006¢\u0006\u0002\u0010\bJ\t\u0010\u000b\u001a\u00020\u0006HÆ\u0003J\t\u0010\f\u001a\u00020\u0006HÆ\u0003J\u001d\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00062\b\b\u0002\u0010\u0004\u001a\u00020\u0006HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0011\u001a\u00020\nHÖ\u0001J\b\u0010\u0012\u001a\u00020\u0003H\u0016R\u0010\u0010\t\u001a\u00020\n8\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0002\u001a\u00020\u00068\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0004\u001a\u00020\u00068\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lokhttp3/internal/http2/Header;", "", "name", "", "value", "(Ljava/lang/String;Ljava/lang/String;)V", "Lokio/ByteString;", "(Lokio/ByteString;Ljava/lang/String;)V", "(Lokio/ByteString;Lokio/ByteString;)V", "hpackSize", "", "component1", "component2", "copy", "equals", "", "other", "hashCode", "toString", "Companion", "okhttp"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final /* data */ class Header {
    public static final ByteString a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final ByteString f9877b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final ByteString f9878c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final ByteString f9879d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final ByteString f9880e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final ByteString f9881f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final ByteString f9882g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final ByteString f9883h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final int f9884i;

    static {
        ByteString.a aVar = ByteString.f10120f;
        a = aVar.b(":");
        f9877b = aVar.b(":status");
        f9878c = aVar.b(":method");
        f9879d = aVar.b(":path");
        f9880e = aVar.b(":scheme");
        f9881f = aVar.b(":authority");
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public Header(String str, String str2) {
        o.f(str, "name");
        o.f(str2, "value");
        ByteString.a aVar = ByteString.f10120f;
        this(aVar.b(str), aVar.b(str2));
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public Header(ByteString byteString, String str) {
        this(byteString, ByteString.f10120f.b(str));
        o.f(byteString, "name");
        o.f(str, "value");
    }

    public Header(ByteString byteString, ByteString byteString2) {
        o.f(byteString, "name");
        o.f(byteString2, "value");
        this.f9882g = byteString;
        this.f9883h = byteString2;
        this.f9884i = byteString.g() + 32 + byteString2.g();
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof Header)) {
            return false;
        }
        Header header = (Header) other;
        return o.a(this.f9882g, header.f9882g) && o.a(this.f9883h, header.f9883h);
    }

    public int hashCode() {
        return this.f9883h.hashCode() + (this.f9882g.hashCode() * 31);
    }

    public String toString() {
        return this.f9882g.q() + ": " + this.f9883h.q();
    }
}
