package com.google.firebase.firestore;

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

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

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

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

    public /* synthetic */ a(Object obj, int i6) {
        this.f13943a = i6;
        this.f13944b = obj;
    }

    @Override // com.google.firebase.firestore.util.Function
    public final Object apply(Object obj) {
        switch (this.f13943a) {
            case 0:
                return ((AggregateQuery) this.f13944b).lambda$get$0((FirestoreClient) obj);
            case 1:
                return ((DocumentReference) this.f13944b).lambda$get$3((FirestoreClient) obj);
            case 2:
                return FirebaseFirestore.lambda$getNamedQuery$7((String) this.f13944b, (FirestoreClient) obj);
            case 3:
                return FirebaseFirestore.lambda$setIndexConfiguration$0((ArrayList) this.f13944b, (FirestoreClient) obj);
            case 4:
                return ((Query) this.f13944b).lambda$get$0((FirestoreClient) obj);
            default:
                return ((WriteBatch) this.f13944b).lambda$commit$0((FirestoreClient) obj);
        }
    }
}
