package com.google.firebase.firestore.local;

import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import com.google.firebase.firestore.local.MemoryIndexManager;
import com.google.firebase.firestore.model.ResourcePath;
import com.google.firebase.firestore.util.Consumer;
import java.util.HashMap;

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

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

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

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

    public /* synthetic */ y(int i6, Object obj, Object obj2) {
        this.f14089a = i6;
        this.f14090b = obj;
        this.f14091c = obj2;
    }

    @Override // com.google.firebase.firestore.util.Consumer
    public final void accept(Object obj) {
        switch (this.f14089a) {
            case 0:
                ((SQLiteIndexManager) this.f14090b).lambda$start$2((HashMap) this.f14091c, (Cursor) obj);
                break;
            case 1:
                SQLiteSchema.lambda$ensurePathLength$14((boolean[]) this.f14090b, (SQLiteStatement) this.f14091c, (Cursor) obj);
                break;
            case 2:
                SQLiteSchema.lambda$createV8CollectionParentsIndex$10((MemoryIndexManager.MemoryCollectionParentIndex) this.f14090b, (SQLiteStatement) this.f14091c, (ResourcePath) obj);
                break;
            case 3:
                ((SQLiteSchema) this.f14090b).lambda$removeAcknowledgedMutations$1((String) this.f14091c, (Cursor) obj);
                break;
            default:
                ((SQLiteTargetCache) this.f14090b).lambda$forEachTarget$1((Consumer) this.f14091c, (Cursor) obj);
                break;
        }
    }
}
