package ii;

import ii.i;
import java.util.Arrays;
import java.util.Map;

/* loaded from: classes.dex */
final class b extends i {

    /* renamed from: a, reason: collision with root package name */
    private final String f23246a;

    /* renamed from: b, reason: collision with root package name */
    private final Integer f23247b;

    /* renamed from: c, reason: collision with root package name */
    private final h f23248c;

    /* renamed from: d, reason: collision with root package name */
    private final long f23249d;

    /* renamed from: e, reason: collision with root package name */
    private final long f23250e;

    /* renamed from: f, reason: collision with root package name */
    private final Map f23251f;

    /* renamed from: g, reason: collision with root package name */
    private final Integer f23252g;

    /* renamed from: h, reason: collision with root package name */
    private final String f23253h;

    /* renamed from: i, reason: collision with root package name */
    private final byte[] f23254i;

    /* renamed from: j, reason: collision with root package name */
    private final byte[] f23255j;

    /* JADX INFO: Access modifiers changed from: package-private */
    /* renamed from: ii.b$b, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static final class C0493b extends i.a {

        /* renamed from: a, reason: collision with root package name */
        private String f23256a;

        /* renamed from: b, reason: collision with root package name */
        private Integer f23257b;

        /* renamed from: c, reason: collision with root package name */
        private h f23258c;

        /* renamed from: d, reason: collision with root package name */
        private Long f23259d;

        /* renamed from: e, reason: collision with root package name */
        private Long f23260e;

        /* renamed from: f, reason: collision with root package name */
        private Map f23261f;

        /* renamed from: g, reason: collision with root package name */
        private Integer f23262g;

        /* renamed from: h, reason: collision with root package name */
        private String f23263h;

        /* renamed from: i, reason: collision with root package name */
        private byte[] f23264i;

        /* renamed from: j, reason: collision with root package name */
        private byte[] f23265j;

        @Override // ii.i.a
        public i d() {
            String str = "";
            if (this.f23256a == null) {
                str = " transportName";
            }
            if (this.f23258c == null) {
                str = str + " encodedPayload";
            }
            if (this.f23259d == null) {
                str = str + " eventMillis";
            }
            if (this.f23260e == null) {
                str = str + " uptimeMillis";
            }
            if (this.f23261f == null) {
                str = str + " autoMetadata";
            }
            if (str.isEmpty()) {
                return new b(this.f23256a, this.f23257b, this.f23258c, this.f23259d.longValue(), this.f23260e.longValue(), this.f23261f, this.f23262g, this.f23263h, this.f23264i, this.f23265j);
            }
            throw new IllegalStateException("Missing required properties:" + str);
        }

        @Override // ii.i.a
        protected Map e() {
            Map map = this.f23261f;
            if (map != null) {
                return map;
            }
            throw new IllegalStateException("Property \"autoMetadata\" has not been set");
        }

        /* JADX INFO: Access modifiers changed from: protected */
        @Override // ii.i.a
        public i.a f(Map map) {
            if (map == null) {
                throw new NullPointerException("Null autoMetadata");
            }
            this.f23261f = map;
            return this;
        }

        @Override // ii.i.a
        public i.a g(Integer num) {
            this.f23257b = num;
            return this;
        }

        @Override // ii.i.a
        public i.a h(h hVar) {
            if (hVar == null) {
                throw new NullPointerException("Null encodedPayload");
            }
            this.f23258c = hVar;
            return this;
        }

        @Override // ii.i.a
        public i.a i(long j10) {
            this.f23259d = Long.valueOf(j10);
            return this;
        }

        @Override // ii.i.a
        public i.a j(byte[] bArr) {
            this.f23264i = bArr;
            return this;
        }

        @Override // ii.i.a
        public i.a k(byte[] bArr) {
            this.f23265j = bArr;
            return this;
        }

        @Override // ii.i.a
        public i.a l(Integer num) {
            this.f23262g = num;
            return this;
        }

        @Override // ii.i.a
        public i.a m(String str) {
            this.f23263h = str;
            return this;
        }

        @Override // ii.i.a
        public i.a n(String str) {
            if (str == null) {
                throw new NullPointerException("Null transportName");
            }
            this.f23256a = str;
            return this;
        }

        @Override // ii.i.a
        public i.a o(long j10) {
            this.f23260e = Long.valueOf(j10);
            return this;
        }
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // ii.i
    public Map c() {
        return this.f23251f;
    }

    @Override // ii.i
    public Integer d() {
        return this.f23247b;
    }

    @Override // ii.i
    public h e() {
        return this.f23248c;
    }

    public boolean equals(Object obj) {
        Integer num;
        Integer num2;
        String str;
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof i)) {
            return false;
        }
        i iVar = (i) obj;
        if (this.f23246a.equals(iVar.n()) && ((num = this.f23247b) != null ? num.equals(iVar.d()) : iVar.d() == null) && this.f23248c.equals(iVar.e()) && this.f23249d == iVar.f() && this.f23250e == iVar.o() && this.f23251f.equals(iVar.c()) && ((num2 = this.f23252g) != null ? num2.equals(iVar.l()) : iVar.l() == null) && ((str = this.f23253h) != null ? str.equals(iVar.m()) : iVar.m() == null)) {
            boolean z10 = iVar instanceof b;
            if (Arrays.equals(this.f23254i, z10 ? ((b) iVar).f23254i : iVar.g())) {
                if (Arrays.equals(this.f23255j, z10 ? ((b) iVar).f23255j : iVar.h())) {
                    return true;
                }
            }
        }
        return false;
    }

    @Override // ii.i
    public long f() {
        return this.f23249d;
    }

    @Override // ii.i
    public byte[] g() {
        return this.f23254i;
    }

    @Override // ii.i
    public byte[] h() {
        return this.f23255j;
    }

    public int hashCode() {
        int hashCode = (this.f23246a.hashCode() ^ 1000003) * 1000003;
        Integer num = this.f23247b;
        int hashCode2 = (((hashCode ^ (num == null ? 0 : num.hashCode())) * 1000003) ^ this.f23248c.hashCode()) * 1000003;
        long j10 = this.f23249d;
        int i10 = (hashCode2 ^ ((int) (j10 ^ (j10 >>> 32)))) * 1000003;
        long j11 = this.f23250e;
        int hashCode3 = (((i10 ^ ((int) (j11 ^ (j11 >>> 32)))) * 1000003) ^ this.f23251f.hashCode()) * 1000003;
        Integer num2 = this.f23252g;
        int hashCode4 = (hashCode3 ^ (num2 == null ? 0 : num2.hashCode())) * 1000003;
        String str = this.f23253h;
        return Arrays.hashCode(this.f23255j) ^ ((((hashCode4 ^ (str != null ? str.hashCode() : 0)) * 1000003) ^ Arrays.hashCode(this.f23254i)) * 1000003);
    }

    @Override // ii.i
    public Integer l() {
        return this.f23252g;
    }

    @Override // ii.i
    public String m() {
        return this.f23253h;
    }

    @Override // ii.i
    public String n() {
        return this.f23246a;
    }

    @Override // ii.i
    public long o() {
        return this.f23250e;
    }

    public String toString() {
        return "EventInternal{transportName=" + this.f23246a + ", code=" + this.f23247b + ", encodedPayload=" + this.f23248c + ", eventMillis=" + this.f23249d + ", uptimeMillis=" + this.f23250e + ", autoMetadata=" + this.f23251f + ", productId=" + this.f23252g + ", pseudonymousId=" + this.f23253h + ", experimentIdsClear=" + Arrays.toString(this.f23254i) + ", experimentIdsEncrypted=" + Arrays.toString(this.f23255j) + "}";
    }

    private b(String str, Integer num, h hVar, long j10, long j11, Map map, Integer num2, String str2, byte[] bArr, byte[] bArr2) {
        this.f23246a = str;
        this.f23247b = num;
        this.f23248c = hVar;
        this.f23249d = j10;
        this.f23250e = j11;
        this.f23251f = map;
        this.f23252g = num2;
        this.f23253h = str2;
        this.f23254i = bArr;
        this.f23255j = bArr2;
    }
}
