package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.util.ArrayList; import java.util.Collections; /* loaded from: classes.dex */ public final class zzop { private ArrayList zza = new ArrayList(); private zzom zzb = zzom.zza; private Integer zzc = null; public final zzop zza(zzbu zzbuVar, int i10, String str, String str2) { ArrayList arrayList = this.zza; if (arrayList == null) { throw new IllegalStateException("addEntry cannot be called after build()"); } arrayList.add(new zzor(zzbuVar, i10, str, str2, null)); return this; } public final zzop zzb(zzom zzomVar) { if (this.zza == null) { throw new IllegalStateException("setAnnotations cannot be called after build()"); } this.zzb = zzomVar; return this; } public final zzop zzc(int i10) { if (this.zza == null) { throw new IllegalStateException("setPrimaryKeyId cannot be called after build()"); } this.zzc = Integer.valueOf(i10); return this; } public final zzot zzd() { if (this.zza == null) { throw new IllegalStateException("cannot call build() twice"); } Integer num = this.zzc; if (num != null) { int intValue = num.intValue(); ArrayList arrayList = this.zza; int size = arrayList.size(); int i10 = 0; while (i10 < size) { int zza = ((zzor) arrayList.get(i10)).zza(); i10++; if (zza == intValue) { } } throw new GeneralSecurityException("primary key ID is not present in entries"); } zzot zzotVar = new zzot(this.zzb, Collections.unmodifiableList(this.zza), this.zzc, null); this.zza = null; return zzotVar; } }