package com.google.android.gms.internal.measurement;

import android.os.Bundle;

/* JADX INFO: loaded from: classes.dex */
public final class X extends AbstractRunnableC0642h0 {

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ C0662l0 f9778v;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ X(C0662l0 c0662l0, Object obj, int i) {
        super(c0662l0, true);
        this.f9777u = i;
        this.f9779w = obj;
        this.f9778v = c0662l0;
    }

    @Override // com.google.android.gms.internal.measurement.AbstractRunnableC0642h0
    public final void a() {
        switch (this.f9777u) {
            case n4.u0.f15495q /* 0 */:
                J j8 = this.f9778v.f9907h;
                P2.w.f(j8);
                j8.setConditionalUserProperty((Bundle) this.f9779w, this.f9864q);
                break;
            case 1:
                J j9 = this.f9778v.f9907h;
                P2.w.f(j9);
                j9.retrieveAndUploadBatches(new BinderC0617c0((G3.b) this.f9779w));
                break;
            case 2:
                J j10 = this.f9778v.f9907h;
                P2.w.f(j10);
                j10.logHealthData(5, "Error with data collection. Data lost.", new V2.b((Exception) this.f9779w), new V2.b(null), new V2.b(null));
                break;
            default:
                J j11 = this.f9778v.f9907h;
                P2.w.f(j11);
                j11.registerOnMeasurementEventListener((BinderC0647i0) this.f9779w);
                break;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public X(C0662l0 c0662l0, Exception exc) {
        super(c0662l0, false);
        this.f9777u = 2;
        this.f9779w = exc;
        this.f9778v = c0662l0;
    }
}
