package com.google.android.gms.measurement.internal; import android.os.Bundle; import android.text.TextUtils; import com.google.android.gms.common.internal.Preconditions; import java.util.Iterator; /* loaded from: classes.dex */ public final class zzab { final String a; final String b; private final String c; final long d; final long e; final zzad f; private zzab(zzbw zzbwVar, String str, String str2, String str3, long j, long j2, zzad zzadVar) { Preconditions.b(str2); Preconditions.b(str3); Preconditions.a(zzadVar); this.a = str2; this.b = str3; this.c = TextUtils.isEmpty(str) ? null : str; this.d = j; this.e = j2; long j3 = this.e; if (j3 != 0 && j3 > this.d) { zzbwVar.e().w().a("Event created with reverse previous/current timestamps. appId, name", zzas.a(str2), zzas.a(str3)); } this.f = zzadVar; } final zzab a(zzbw zzbwVar, long j) { return new zzab(zzbwVar, this.c, this.a, this.b, this.d, j, this.f); } public final String toString() { String str = this.a; String str2 = this.b; String valueOf = String.valueOf(this.f); StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 33 + String.valueOf(str2).length() + String.valueOf(valueOf).length()); sb.append("Event{appId='"); sb.append(str); sb.append("', name='"); sb.append(str2); sb.append("', params="); sb.append(valueOf); sb.append('}'); return sb.toString(); } zzab(zzbw zzbwVar, String str, String str2, String str3, long j, long j2, Bundle bundle) { zzad zzadVar; Preconditions.b(str2); Preconditions.b(str3); this.a = str2; this.b = str3; this.c = TextUtils.isEmpty(str) ? null : str; this.d = j; this.e = j2; long j3 = this.e; if (j3 != 0 && j3 > this.d) { zzbwVar.e().w().a("Event created with reverse previous/current timestamps. appId", zzas.a(str2)); } if (bundle != null && !bundle.isEmpty()) { Bundle bundle2 = new Bundle(bundle); Iterator it = bundle2.keySet().iterator(); while (it.hasNext()) { String next = it.next(); if (next == null) { zzbwVar.e().t().a("Param name can't be null"); it.remove(); } else { Object a = zzbwVar.s().a(next, bundle2.get(next)); if (a == null) { zzbwVar.e().w().a("Param value can't be null", zzbwVar.r().b(next)); it.remove(); } else { zzbwVar.s().a(bundle2, next, a); } } } zzadVar = new zzad(bundle2); } else { zzadVar = new zzad(new Bundle()); } this.f = zzadVar; } }