package r3;

import I0.C0290e0;
import java.util.Arrays;
import java.util.HashMap;

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

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

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

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

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

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

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

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

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

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

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

    public i(String str, Integer num, l lVar, long j4, long j6, HashMap map, Integer num2, String str2, byte[] bArr, byte[] bArr2) {
        this.f23962a = str;
        this.f23963b = num;
        this.f23964c = lVar;
        this.f23965d = j4;
        this.f23966e = j6;
        this.f23967f = map;
        this.f23968g = num2;
        this.f23969h = str2;
        this.f23970i = bArr;
        this.f23971j = bArr2;
    }

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

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

    public final C0290e0 c() {
        C0290e0 c0290e0 = new C0290e0();
        String str = this.f23962a;
        if (str == null) {
            throw new NullPointerException("Null transportName");
        }
        c0290e0.f2360b = str;
        c0290e0.f2361c = this.f23963b;
        c0290e0.f2366h = this.f23968g;
        c0290e0.f2367i = this.f23969h;
        c0290e0.f2368j = this.f23970i;
        c0290e0.f2369k = this.f23971j;
        l lVar = this.f23964c;
        if (lVar == null) {
            throw new NullPointerException("Null encodedPayload");
        }
        c0290e0.f2362d = lVar;
        c0290e0.f2363e = Long.valueOf(this.f23965d);
        c0290e0.f2364f = Long.valueOf(this.f23966e);
        c0290e0.f2365g = new HashMap(this.f23967f);
        return c0290e0;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof i)) {
            return false;
        }
        i iVar = (i) obj;
        if (!this.f23962a.equals(iVar.f23962a)) {
            return false;
        }
        Integer num = iVar.f23963b;
        Integer num2 = this.f23963b;
        if (num2 == null) {
            if (num != null) {
                return false;
            }
        } else if (!num2.equals(num)) {
            return false;
        }
        if (!this.f23964c.equals(iVar.f23964c) || this.f23965d != iVar.f23965d || this.f23966e != iVar.f23966e || !this.f23967f.equals(iVar.f23967f)) {
            return false;
        }
        Integer num3 = iVar.f23968g;
        Integer num4 = this.f23968g;
        if (num4 == null) {
            if (num3 != null) {
                return false;
            }
        } else if (!num4.equals(num3)) {
            return false;
        }
        String str = iVar.f23969h;
        String str2 = this.f23969h;
        if (str2 == null) {
            if (str != null) {
                return false;
            }
        } else if (!str2.equals(str)) {
            return false;
        }
        return Arrays.equals(this.f23970i, iVar.f23970i) && Arrays.equals(this.f23971j, iVar.f23971j);
    }

    public final int hashCode() {
        int iHashCode = (this.f23962a.hashCode() ^ 1000003) * 1000003;
        Integer num = this.f23963b;
        int iHashCode2 = (((iHashCode ^ (num == null ? 0 : num.hashCode())) * 1000003) ^ this.f23964c.hashCode()) * 1000003;
        long j4 = this.f23965d;
        int i6 = (iHashCode2 ^ ((int) (j4 ^ (j4 >>> 32)))) * 1000003;
        long j6 = this.f23966e;
        int iHashCode3 = (((i6 ^ ((int) (j6 ^ (j6 >>> 32)))) * 1000003) ^ this.f23967f.hashCode()) * 1000003;
        Integer num2 = this.f23968g;
        int iHashCode4 = (iHashCode3 ^ (num2 == null ? 0 : num2.hashCode())) * 1000003;
        String str = this.f23969h;
        return ((((iHashCode4 ^ (str != null ? str.hashCode() : 0)) * 1000003) ^ Arrays.hashCode(this.f23970i)) * 1000003) ^ Arrays.hashCode(this.f23971j);
    }

    public final String toString() {
        return "EventInternal{transportName=" + this.f23962a + ", code=" + this.f23963b + ", encodedPayload=" + this.f23964c + ", eventMillis=" + this.f23965d + ", uptimeMillis=" + this.f23966e + ", autoMetadata=" + this.f23967f + ", productId=" + this.f23968g + ", pseudonymousId=" + this.f23969h + ", experimentIdsClear=" + Arrays.toString(this.f23970i) + ", experimentIdsEncrypted=" + Arrays.toString(this.f23971j) + "}";
    }
}
