package z2;

import java.util.Arrays;
import java.util.HashMap;

/* JADX INFO: loaded from: classes.dex */
public final class h {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f19251a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Integer f19252b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final k f19253c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f19254d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final long f19255e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final HashMap f19256f;

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final String f19258h;
    public final byte[] i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final byte[] f19259j;

    public h(String str, Integer num, k kVar, long j8, long j9, HashMap map, Integer num2, String str2, byte[] bArr, byte[] bArr2) {
        this.f19251a = str;
        this.f19252b = num;
        this.f19253c = kVar;
        this.f19254d = j8;
        this.f19255e = j9;
        this.f19256f = map;
        this.f19257g = num2;
        this.f19258h = str2;
        this.i = bArr;
        this.f19259j = bArr2;
    }

    public final String a(String str) {
        String str2 = (String) this.f19256f.get(str);
        return str2 == null ? "" : str2;
    }

    public final int b(String str) {
        String str2 = (String) this.f19256f.get(str);
        if (str2 == null) {
            return 0;
        }
        return Integer.valueOf(str2).intValue();
    }

    public final h6.c c() {
        h6.c cVar = new h6.c();
        String str = this.f19251a;
        if (str == null) {
            throw new NullPointerException("Null transportName");
        }
        cVar.f13432a = str;
        cVar.f13433b = this.f19252b;
        cVar.f13438g = this.f19257g;
        cVar.f13439h = this.f19258h;
        cVar.i = this.i;
        cVar.f13440j = this.f19259j;
        k kVar = this.f19253c;
        if (kVar == null) {
            throw new NullPointerException("Null encodedPayload");
        }
        cVar.f13434c = kVar;
        cVar.f13435d = Long.valueOf(this.f19254d);
        cVar.f13436e = Long.valueOf(this.f19255e);
        cVar.f13437f = new HashMap(this.f19256f);
        return cVar;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        if (!this.f19251a.equals(hVar.f19251a)) {
            return false;
        }
        Integer num = hVar.f19252b;
        Integer num2 = this.f19252b;
        if (num2 == null) {
            if (num != null) {
                return false;
            }
        } else if (!num2.equals(num)) {
            return false;
        }
        if (!this.f19253c.equals(hVar.f19253c) || this.f19254d != hVar.f19254d || this.f19255e != hVar.f19255e || !this.f19256f.equals(hVar.f19256f)) {
            return false;
        }
        Integer num3 = hVar.f19257g;
        Integer num4 = this.f19257g;
        if (num4 == null) {
            if (num3 != null) {
                return false;
            }
        } else if (!num4.equals(num3)) {
            return false;
        }
        String str = hVar.f19258h;
        String str2 = this.f19258h;
        if (str2 == null) {
            if (str != null) {
                return false;
            }
        } else if (!str2.equals(str)) {
            return false;
        }
        return Arrays.equals(this.i, hVar.i) && Arrays.equals(this.f19259j, hVar.f19259j);
    }

    public final int hashCode() {
        int iHashCode = (this.f19251a.hashCode() ^ 1000003) * 1000003;
        Integer num = this.f19252b;
        int iHashCode2 = (((iHashCode ^ (num == null ? 0 : num.hashCode())) * 1000003) ^ this.f19253c.hashCode()) * 1000003;
        long j8 = this.f19254d;
        int i = (iHashCode2 ^ ((int) (j8 ^ (j8 >>> 32)))) * 1000003;
        long j9 = this.f19255e;
        int iHashCode3 = (((i ^ ((int) (j9 ^ (j9 >>> 32)))) * 1000003) ^ this.f19256f.hashCode()) * 1000003;
        Integer num2 = this.f19257g;
        int iHashCode4 = (iHashCode3 ^ (num2 == null ? 0 : num2.hashCode())) * 1000003;
        String str = this.f19258h;
        return ((((iHashCode4 ^ (str != null ? str.hashCode() : 0)) * 1000003) ^ Arrays.hashCode(this.i)) * 1000003) ^ Arrays.hashCode(this.f19259j);
    }

    public final String toString() {
        return "EventInternal{transportName=" + this.f19251a + ", code=" + this.f19252b + ", encodedPayload=" + this.f19253c + ", eventMillis=" + this.f19254d + ", uptimeMillis=" + this.f19255e + ", autoMetadata=" + this.f19256f + ", productId=" + this.f19257g + ", pseudonymousId=" + this.f19258h + ", experimentIdsClear=" + Arrays.toString(this.i) + ", experimentIdsEncrypted=" + Arrays.toString(this.f19259j) + "}";
    }
}
