package com.google.firebase.firestore;

import com.google.firebase.firestore.core.AsyncEventListener;
import com.google.firebase.firestore.core.FirestoreClient;
import com.google.firebase.firestore.core.QueryListener;

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

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

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

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

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

    public /* synthetic */ h(AsyncEventListener asyncEventListener, FirestoreClient firestoreClient, QueryListener queryListener, int i6) {
        this.f13974a = i6;
        this.f13975b = asyncEventListener;
        this.f13976c = firestoreClient;
        this.f13977d = queryListener;
    }

    @Override // com.google.firebase.firestore.ListenerRegistration
    public final void remove() {
        switch (this.f13974a) {
            case 0:
                DocumentReference.lambda$addSnapshotListenerInternal$7(this.f13975b, this.f13976c, this.f13977d);
                break;
            default:
                Query.lambda$addSnapshotListenerInternal$4(this.f13975b, this.f13976c, this.f13977d);
                break;
        }
    }
}
