package com.google.firebase.firestore;

import com.google.firebase.firestore.util.AsyncQueue;
import com.google.firebase.firestore.util.Function;
import java.util.concurrent.Executor;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class l implements Function {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f13987a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ FirebaseFirestore f13988b;

    public /* synthetic */ l(FirebaseFirestore firebaseFirestore, int i6) {
        this.f13987a = i6;
        this.f13988b = firebaseFirestore;
    }

    @Override // com.google.firebase.firestore.util.Function
    public final Object apply(Object obj) {
        switch (this.f13987a) {
            case 0:
                return this.f13988b.newClient((AsyncQueue) obj);
            default:
                return this.f13988b.clearPersistence((Executor) obj);
        }
    }
}
