package io.grpc.okhttp.internal.framed; import o.C14957gcv; import o.C15155gij; import o.gdP; /* loaded from: classes6.dex */ public final class Header { final int hpackSize; public final C15155gij name; public final C15155gij value; public static final C15155gij RESPONSE_STATUS = C15155gij.a(okhttp3.internal.http2.Header.RESPONSE_STATUS_UTF8); public static final C15155gij TARGET_METHOD = C15155gij.a(okhttp3.internal.http2.Header.TARGET_METHOD_UTF8); public static final C15155gij TARGET_PATH = C15155gij.a(okhttp3.internal.http2.Header.TARGET_PATH_UTF8); public static final C15155gij TARGET_SCHEME = C15155gij.a(okhttp3.internal.http2.Header.TARGET_SCHEME_UTF8); public static final C15155gij TARGET_AUTHORITY = C15155gij.a(okhttp3.internal.http2.Header.TARGET_AUTHORITY_UTF8); public static final C15155gij TARGET_HOST = C15155gij.a(":host"); public static final C15155gij VERSION = C15155gij.a(":version"); public Header(String str, String str2) { this(C15155gij.a(str), C15155gij.a(str2)); } public Header(C15155gij c15155gij, String str) { this(c15155gij, C15155gij.a(str)); } public Header(C15155gij c15155gij, C15155gij c15155gij2) { this.name = c15155gij; this.value = c15155gij2; this.hpackSize = c15155gij.a() + 32 + c15155gij2.a(); } public final boolean equals(Object obj) { if (!(obj instanceof Header)) { return false; } Header header = (Header) obj; return this.name.equals(header.name) && this.value.equals(header.value); } public final int hashCode() { return ((this.name.hashCode() + 527) * 31) + this.value.hashCode(); } public final String toString() { C15155gij c15155gij = this.name; String str = c15155gij.d; if (str == null) { byte[] b = c15155gij.b(); C14957gcv.e(b, ""); String str2 = new String(b, gdP.a); c15155gij.d = str2; str = str2; } C15155gij c15155gij2 = this.value; String str3 = c15155gij2.d; if (str3 == null) { byte[] b2 = c15155gij2.b(); C14957gcv.e(b2, ""); String str4 = new String(b2, gdP.a); c15155gij2.d = str4; str3 = str4; } return String.format("%s: %s", str, str3); } }