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

import androidx.annotation.Nullable;
import org.json.JSONException;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class sr0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f16559a;

    @Nullable
    private Long zza;

    @Nullable
    private String zzc;

    @Nullable
    private Integer zzd;

    @Nullable
    private String zze;

    @Nullable
    private Integer zzf;

    public /* synthetic */ sr0(String str) {
        this.f16559a = str;
    }

    public final String a() {
        String str = (String) n7.y.f31093e.f31096c.b(ao.f8922jb);
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.putOpt("objectId", this.zza);
            jSONObject.put("eventCategory", this.f16559a);
            jSONObject.putOpt("event", this.zzc);
            jSONObject.putOpt("errorCode", this.zzd);
            jSONObject.putOpt("rewardType", this.zze);
            jSONObject.putOpt("rewardAmount", this.zzf);
        } catch (JSONException unused) {
            q7.j.d("Could not convert parameters to JSON.");
        }
        String string = jSONObject.toString();
        int length = String.valueOf(str).length();
        return com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.h(new StringBuilder(String.valueOf(string).length() + length + 14 + 2), str, "(\"h5adsEvent\",", string, ");");
    }

    public final /* synthetic */ void b(Long l10) {
        this.zza = l10;
    }

    public final /* synthetic */ void c(String str) {
        this.zzc = str;
    }

    public final /* synthetic */ void d(Integer num) {
        this.zzd = num;
    }

    public final /* synthetic */ void e(String str) {
        this.zze = str;
    }

    public final /* synthetic */ void f(Integer num) {
        this.zzf = num;
    }
}
