package com.google.android.gms.auth.api.accounttransfer; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import com.google.android.gms.common.server.response.FastJsonResponse; import com.google.android.gms.internal.auth.zzaz; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /* loaded from: classes.dex */ public final class zzl extends zzaz { public static final Parcelable.Creator CREATOR = new zzm(); private static final HashMap> zzaz; private final Set zzba; private ArrayList zzbb; private int zzbc; private zzo zzbd; private final int zzv; /* JADX INFO: Access modifiers changed from: package-private */ public zzl(Set set, int i, ArrayList arrayList, int i2, zzo zzoVar) { this.zzba = set; this.zzv = i; this.zzbb = arrayList; this.zzbc = i2; this.zzbd = zzoVar; } public zzl() { this.zzba = new HashSet(1); this.zzv = 1; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); Set set = this.zzba; if (set.contains(1)) { SafeParcelWriter.writeInt(parcel, 1, this.zzv); } if (set.contains(2)) { SafeParcelWriter.writeTypedList(parcel, 2, this.zzbb, true); } if (set.contains(3)) { SafeParcelWriter.writeInt(parcel, 3, this.zzbc); } if (set.contains(4)) { SafeParcelWriter.writeParcelable(parcel, 4, this.zzbd, i, true); } SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } @Override // com.google.android.gms.common.server.response.FastJsonResponse public final boolean isFieldSet(FastJsonResponse.Field field) { return this.zzba.contains(Integer.valueOf(field.getSafeParcelableFieldId())); } @Override // com.google.android.gms.common.server.response.FastJsonResponse public final Object getFieldValue(FastJsonResponse.Field field) { int safeParcelableFieldId = field.getSafeParcelableFieldId(); if (safeParcelableFieldId == 1) { return Integer.valueOf(this.zzv); } if (safeParcelableFieldId == 2) { return this.zzbb; } if (safeParcelableFieldId == 4) { return this.zzbd; } int safeParcelableFieldId2 = field.getSafeParcelableFieldId(); StringBuilder sb = new StringBuilder(37); sb.append("Unknown SafeParcelable id="); sb.append(safeParcelableFieldId2); throw new IllegalStateException(sb.toString()); } /* JADX WARN: Multi-variable type inference failed */ @Override // com.google.android.gms.common.server.response.FastJsonResponse public final void addConcreteTypeArrayInternal(FastJsonResponse.Field field, String str, ArrayList arrayList) { int safeParcelableFieldId = field.getSafeParcelableFieldId(); if (safeParcelableFieldId != 2) { throw new IllegalArgumentException(String.format("Field with id=%d is not a known ConcreteTypeArray type. Found %s", Integer.valueOf(safeParcelableFieldId), arrayList.getClass().getCanonicalName())); } this.zzbb = arrayList; this.zzba.add(Integer.valueOf(safeParcelableFieldId)); } @Override // com.google.android.gms.common.server.response.FastJsonResponse public final void addConcreteTypeInternal(FastJsonResponse.Field field, String str, T t) { int safeParcelableFieldId = field.getSafeParcelableFieldId(); if (safeParcelableFieldId == 4) { this.zzbd = (zzo) t; this.zzba.add(Integer.valueOf(safeParcelableFieldId)); } else { throw new IllegalArgumentException(String.format("Field with id=%d is not a known custom type. Found %s", Integer.valueOf(safeParcelableFieldId), t.getClass().getCanonicalName())); } } static { HashMap> hashMap = new HashMap<>(); zzaz = hashMap; hashMap.put("authenticatorData", FastJsonResponse.Field.forConcreteTypeArray("authenticatorData", 2, zzr.class)); hashMap.put("progress", FastJsonResponse.Field.forConcreteType("progress", 4, zzo.class)); } @Override // com.google.android.gms.common.server.response.FastJsonResponse public final /* synthetic */ Map getFieldMappings() { return zzaz; } }