what-the-bank/sources/com/google/android/gms/measurement/internal/zzkv.java

92 lines
2.6 KiB
Java

package com.google.android.gms.measurement.internal;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
/* loaded from: classes.dex */
public final class zzkv extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzkv> CREATOR = new zzkw();
public final int zza;
public final String zzb;
public final long zzc;
public final Long zzd;
public final String zze;
public final String zzf;
public final Double zzg;
/* JADX INFO: Access modifiers changed from: package-private */
public zzkv(int i, String str, long j, Long l, Float f, String str2, String str3, Double d) {
this.zza = i;
this.zzb = str;
this.zzc = j;
this.zzd = l;
if (i == 1) {
this.zzg = f != null ? Double.valueOf(f.doubleValue()) : null;
} else {
this.zzg = d;
}
this.zze = str2;
this.zzf = str3;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
zzkw.zza(this, parcel, i);
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzkv(zzkx zzkxVar) {
this(zzkxVar.zzc, zzkxVar.zzd, zzkxVar.zze, zzkxVar.zzb);
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzkv(String str, long j, Object obj, String str2) {
Preconditions.checkNotEmpty(str);
this.zza = 2;
this.zzb = str;
this.zzc = j;
this.zzf = str2;
if (obj == null) {
this.zzd = null;
this.zzg = null;
this.zze = null;
return;
}
if (obj instanceof Long) {
this.zzd = (Long) obj;
this.zzg = null;
this.zze = null;
} else if (obj instanceof String) {
this.zzd = null;
this.zzg = null;
this.zze = (String) obj;
} else {
if (obj instanceof Double) {
this.zzd = null;
this.zzg = (Double) obj;
this.zze = null;
return;
}
throw new IllegalArgumentException("User attribute given of un-supported type");
}
}
public final Object zza() {
Long l = this.zzd;
if (l != null) {
return l;
}
Double d = this.zzg;
if (d != null) {
return d;
}
String str = this.zze;
if (str != null) {
return str;
}
return null;
}
}