package com.vungle.warren.model; /* loaded from: classes2.dex */ public class r { /* renamed from: d, reason: collision with root package name */ private static final z4.e f8428d = new z4.e(); /* renamed from: a, reason: collision with root package name */ public h8.c f8429a; /* renamed from: b, reason: collision with root package name */ private int f8430b; /* renamed from: c, reason: collision with root package name */ private z4.k f8431c; public static class b { /* renamed from: a, reason: collision with root package name */ z4.k f8432a = new z4.k(); /* renamed from: b, reason: collision with root package name */ h8.c f8433b; public b a(h8.a aVar, String str) { this.f8432a.r(aVar.toString(), str); return this; } public b b(h8.a aVar, boolean z10) { this.f8432a.p(aVar.toString(), Boolean.valueOf(z10)); return this; } public r c() { if (this.f8433b != null) { return new r(this.f8433b, this.f8432a); } throw new IllegalArgumentException("SessionData must have event"); } public b d(h8.c cVar) { this.f8433b = cVar; this.f8432a.r("event", cVar.toString()); return this; } } public void a(h8.a aVar, String str) { this.f8431c.r(aVar.toString(), str); } public String b() { return f8428d.u(this.f8431c); } public String c() { String b10 = com.vungle.warren.utility.l.b(b()); return b10 == null ? String.valueOf(b().hashCode()) : b10; } public int d() { return this.f8430b; } public String e(h8.a aVar) { z4.h u10 = this.f8431c.u(aVar.toString()); if (u10 != null) { return u10.j(); } return null; } public boolean equals(Object obj) { if (obj == null || !(obj instanceof r)) { return false; } r rVar = (r) obj; return this.f8429a.equals(rVar.f8429a) && this.f8431c.equals(rVar.f8431c); } public int f() { int i10 = this.f8430b; this.f8430b = i10 + 1; return i10; } public void g(h8.a aVar) { this.f8431c.z(aVar.toString()); } protected r(String str, int i10) { this.f8431c = (z4.k) f8428d.i(str, z4.k.class); this.f8430b = i10; } private r(h8.c cVar, z4.k kVar) { this.f8429a = cVar; this.f8431c = kVar; kVar.q(h8.a.TIMESTAMP.toString(), Long.valueOf(System.currentTimeMillis())); } }