package com.google.android.datatransport.runtime;

import com.google.android.datatransport.runtime.e;
import defpackage.vw2;
import defpackage.zk2;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
final class a extends e {
    public final String a;
    public final Integer b;
    public final zk2 c;
    public final long d;
    public final long e;
    public final Map f;
    public final Integer g;
    public final String h;
    public final byte[] i;
    public final byte[] j;

    public static final class b extends e.a {
        public String a;
        public Integer b;
        public zk2 c;
        public Long d;
        public Long e;
        public HashMap f;
        public Integer g;
        public String h;
        public byte[] i;
        public byte[] j;

        @Override // com.google.android.datatransport.runtime.e.a
        public final e b() {
            String strK = this.a == null ? " transportName" : "";
            if (this.c == null) {
                strK = strK.concat(" encodedPayload");
            }
            if (this.d == null) {
                strK = vw2.k(strK, " eventMillis");
            }
            if (this.e == null) {
                strK = vw2.k(strK, " uptimeMillis");
            }
            if (this.f == null) {
                strK = vw2.k(strK, " autoMetadata");
            }
            if (strK.isEmpty()) {
                return new a(this.a, this.b, this.c, this.d.longValue(), this.e.longValue(), this.f, this.g, this.h, this.i, this.j);
            }
            throw new IllegalStateException("Missing required properties:".concat(strK));
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final Map c() {
            HashMap map = this.f;
            if (map != null) {
                return map;
            }
            throw new IllegalStateException("Property \"autoMetadata\" has not been set");
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a d(Integer num) {
            this.b = num;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a e(zk2 zk2Var) {
            if (zk2Var == null) {
                throw new NullPointerException("Null encodedPayload");
            }
            this.c = zk2Var;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a f(long j) {
            this.d = Long.valueOf(j);
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a g(byte[] bArr) {
            this.i = bArr;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a h(byte[] bArr) {
            this.j = bArr;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a i(Integer num) {
            this.g = num;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a j(String str) {
            this.h = str;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a k(String str) {
            if (str == null) {
                throw new NullPointerException("Null transportName");
            }
            this.a = str;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.e.a
        public final e.a l(long j) {
            this.e = Long.valueOf(j);
            return this;
        }
    }

    public a(String str, Integer num, zk2 zk2Var, long j, long j2, HashMap map, Integer num2, String str2, byte[] bArr, byte[] bArr2) {
        this.a = str;
        this.b = num;
        this.c = zk2Var;
        this.d = j;
        this.e = j2;
        this.f = map;
        this.g = num2;
        this.h = str2;
        this.i = bArr;
        this.j = bArr2;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final Map c() {
        return this.f;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final Integer d() {
        return this.b;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final zk2 e() {
        return this.c;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof e)) {
            return false;
        }
        e eVar = (e) obj;
        if (!this.a.equals(eVar.l())) {
            return false;
        }
        Integer num = this.b;
        if (num == null) {
            if (eVar.d() != null) {
                return false;
            }
        } else if (!num.equals(eVar.d())) {
            return false;
        }
        if (!this.c.equals(eVar.e()) || this.d != eVar.f() || this.e != eVar.m() || !this.f.equals(eVar.c())) {
            return false;
        }
        Integer num2 = this.g;
        if (num2 == null) {
            if (eVar.j() != null) {
                return false;
            }
        } else if (!num2.equals(eVar.j())) {
            return false;
        }
        String str = this.h;
        if (str == null) {
            if (eVar.k() != null) {
                return false;
            }
        } else if (!str.equals(eVar.k())) {
            return false;
        }
        boolean z = eVar instanceof a;
        if (Arrays.equals(this.i, z ? ((a) eVar).i : eVar.g())) {
            return Arrays.equals(this.j, z ? ((a) eVar).j : eVar.h());
        }
        return false;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final long f() {
        return this.d;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final byte[] g() {
        return this.i;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final byte[] h() {
        return this.j;
    }

    public final int hashCode() {
        int iHashCode = (this.a.hashCode() ^ 1000003) * 1000003;
        Integer num = this.b;
        int iHashCode2 = (((iHashCode ^ (num == null ? 0 : num.hashCode())) * 1000003) ^ this.c.hashCode()) * 1000003;
        long j = this.d;
        int i = (iHashCode2 ^ ((int) (j ^ (j >>> 32)))) * 1000003;
        long j2 = this.e;
        int iHashCode3 = (((i ^ ((int) (j2 ^ (j2 >>> 32)))) * 1000003) ^ this.f.hashCode()) * 1000003;
        Integer num2 = this.g;
        int iHashCode4 = (iHashCode3 ^ (num2 == null ? 0 : num2.hashCode())) * 1000003;
        String str = this.h;
        return ((((iHashCode4 ^ (str != null ? str.hashCode() : 0)) * 1000003) ^ Arrays.hashCode(this.i)) * 1000003) ^ Arrays.hashCode(this.j);
    }

    @Override // com.google.android.datatransport.runtime.e
    public final Integer j() {
        return this.g;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final String k() {
        return this.h;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final String l() {
        return this.a;
    }

    @Override // com.google.android.datatransport.runtime.e
    public final long m() {
        return this.e;
    }

    public final String toString() {
        return "EventInternal{transportName=" + this.a + ", code=" + this.b + ", encodedPayload=" + this.c + ", eventMillis=" + this.d + ", uptimeMillis=" + this.e + ", autoMetadata=" + this.f + ", productId=" + this.g + ", pseudonymousId=" + this.h + ", experimentIdsClear=" + Arrays.toString(this.i) + ", experimentIdsEncrypted=" + Arrays.toString(this.j) + "}";
    }
}
