package com.google.android.gms.internal.location; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.Objects; import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import com.google.android.gms.location.LocationRequest; import java.util.Collections; import java.util.List; /* loaded from: classes2.dex */ public final class zzbf extends AbstractSafeParcelable { final LocationRequest zzb; final List zzc; final String zzd; final boolean zze; final boolean zzf; final boolean zzg; final String zzh; final boolean zzi; boolean zzj; final String zzk; long zzl; static final List zza = Collections.emptyList(); public static final Parcelable.Creator CREATOR = new zzbg(); /* JADX INFO: Access modifiers changed from: package-private */ public zzbf(LocationRequest locationRequest, List list, String str, boolean z, boolean z2, boolean z3, String str2, boolean z4, boolean z5, String str3, long j) { this.zzb = locationRequest; this.zzc = list; this.zzd = str; this.zze = z; this.zzf = z2; this.zzg = z3; this.zzh = str2; this.zzi = z4; this.zzj = z5; this.zzk = str3; this.zzl = j; } public static zzbf zzc(String str, LocationRequest locationRequest) { return new zzbf(locationRequest, zzbx.zzk(), null, false, false, false, null, false, false, null, Long.MAX_VALUE); } public final boolean equals(Object obj) { if (!(obj instanceof zzbf)) { return false; } zzbf zzbfVar = (zzbf) obj; return Objects.equal(this.zzb, zzbfVar.zzb) && Objects.equal(this.zzc, zzbfVar.zzc) && Objects.equal(this.zzd, zzbfVar.zzd) && this.zze == zzbfVar.zze && this.zzf == zzbfVar.zzf && this.zzg == zzbfVar.zzg && Objects.equal(this.zzh, zzbfVar.zzh) && this.zzi == zzbfVar.zzi && this.zzj == zzbfVar.zzj && Objects.equal(this.zzk, zzbfVar.zzk); } public final int hashCode() { return this.zzb.hashCode(); } public final String toString() { StringBuilder sb = new StringBuilder(); sb.append(this.zzb); if (this.zzd != null) { sb.append(" tag="); sb.append(this.zzd); } if (this.zzh != null) { sb.append(" moduleId="); sb.append(this.zzh); } if (this.zzk != null) { sb.append(" contextAttributionTag="); sb.append(this.zzk); } sb.append(" hideAppOps="); sb.append(this.zze); sb.append(" clients="); sb.append(this.zzc); sb.append(" forceCoarseLocation="); sb.append(this.zzf); if (this.zzg) { sb.append(" exemptFromBackgroundThrottle"); } if (this.zzi) { sb.append(" locationSettingsIgnored"); } if (this.zzj) { sb.append(" inaccurateLocationsDelayed"); } return sb.toString(); } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeParcelable(parcel, 1, this.zzb, i, false); SafeParcelWriter.writeTypedList(parcel, 5, this.zzc, false); SafeParcelWriter.writeString(parcel, 6, this.zzd, false); SafeParcelWriter.writeBoolean(parcel, 7, this.zze); SafeParcelWriter.writeBoolean(parcel, 8, this.zzf); SafeParcelWriter.writeBoolean(parcel, 9, this.zzg); SafeParcelWriter.writeString(parcel, 10, this.zzh, false); SafeParcelWriter.writeBoolean(parcel, 11, this.zzi); SafeParcelWriter.writeBoolean(parcel, 12, this.zzj); SafeParcelWriter.writeString(parcel, 13, this.zzk, false); SafeParcelWriter.writeLong(parcel, 14, this.zzl); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } public final zzbf zze(long j) { if (this.zzb.getMaxWaitTime() <= this.zzb.getInterval()) { this.zzl = j; return this; } long interval = this.zzb.getInterval(); long maxWaitTime = this.zzb.getMaxWaitTime(); StringBuilder sb = new StringBuilder(120); sb.append("could not set max age when location batching is requested, interval="); sb.append(interval); sb.append("maxWaitTime="); sb.append(maxWaitTime); throw new IllegalArgumentException(sb.toString()); } public final boolean zzg() { return this.zzi; } public final List zzf() { return this.zzc; } @Deprecated public final zzbf zzd(boolean z) { this.zzj = true; return this; } public final LocationRequest zzb() { return this.zzb; } public final long zza() { return this.zzl; } }