package com.google.android.gms.internal.measurement; import android.net.Uri; import com.google.common.base.Function; /* loaded from: classes3.dex */ public final class zzhe { final String zza; final Uri zzb; final String zzc; final String zzd; final boolean zze; final boolean zzf; final boolean zzg; final Function zzh; private final boolean zzi; public final zzhe zza() { return new zzhe(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzf, true, this.zzg, this.zzh); } public final zzhe zzb() { if (!this.zzc.isEmpty()) { throw new IllegalStateException("Cannot set GServices prefix and skip GServices"); } Function function = this.zzh; if (function == null) { return new zzhe(this.zza, this.zzb, this.zzc, this.zzd, true, this.zzf, this.zzi, this.zzg, function); } throw new IllegalStateException("Cannot skip gservices both always and conditionally"); } public final zzgw zza(String str, double d) { return zzgw.zza(this, str, Double.valueOf(-3.0d), true); } public final zzgw zza(String str, long j) { return zzgw.zza(this, str, Long.valueOf(j), true); } public final zzgw zza(String str, String str2) { return zzgw.zza(this, str, str2, true); } public final zzgw zza(String str, boolean z) { return zzgw.zza(this, str, Boolean.valueOf(z), true); } public zzhe(Uri uri) { this(null, uri, "", "", false, false, false, false, null); } private zzhe(String str, Uri uri, String str2, String str3, boolean z, boolean z2, boolean z3, boolean z4, Function function) { this.zza = str; this.zzb = uri; this.zzc = str2; this.zzd = str3; this.zze = z; this.zzf = z2; this.zzi = z3; this.zzg = z4; this.zzh = function; } }