package com.google.firebase.firestore;

import com.google.android.gms.tasks.TaskCompletionSource;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ TaskCompletionSource f13972c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Source f13973d;

    public /* synthetic */ g(TaskCompletionSource taskCompletionSource, TaskCompletionSource taskCompletionSource2, Source source, int i6) {
        this.f13970a = i6;
        this.f13971b = taskCompletionSource;
        this.f13972c = taskCompletionSource2;
        this.f13973d = source;
    }

    @Override // com.google.firebase.firestore.EventListener
    public final void onEvent(Object obj, FirebaseFirestoreException firebaseFirestoreException) {
        switch (this.f13970a) {
            case 0:
                DocumentReference.lambda$getViaSnapshotListener$5(this.f13971b, this.f13972c, this.f13973d, (DocumentSnapshot) obj, firebaseFirestoreException);
                break;
            default:
                Query.lambda$getViaSnapshotListener$2(this.f13971b, this.f13972c, this.f13973d, (QuerySnapshot) obj, firebaseFirestoreException);
                break;
        }
    }
}
