package com.google.firebase.firestore;

import com.google.firebase.firestore.core.FirestoreClient;
import com.google.firebase.firestore.util.Function;
import java.util.List;

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

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

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

    public /* synthetic */ d(List list, int i6) {
        this.f13960a = i6;
        this.f13961b = list;
    }

    @Override // com.google.firebase.firestore.util.Function
    public final Object apply(Object obj) {
        switch (this.f13960a) {
            case 0:
                return DocumentReference.lambda$delete$2(this.f13961b, (FirestoreClient) obj);
            case 1:
                return DocumentReference.lambda$set$0(this.f13961b, (FirestoreClient) obj);
            default:
                return DocumentReference.lambda$update$1(this.f13961b, (FirestoreClient) obj);
        }
    }
}
