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

import android.os.Bundle;
import defpackage.fi7;
import defpackage.rq6;
import defpackage.vo6;

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

    @vo6
    public String zza;

    @vo6
    public String zzb;

    @vo6
    public Bundle zzc;
    private long zzd;

    public zzgs(@vo6 String str, @vo6 String str2, @rq6 Bundle bundle, long j) {
        this.zza = str;
        this.zzb = str2;
        this.zzc = bundle == null ? new Bundle() : bundle;
        this.zzd = j;
    }

    public final String toString() {
        String str = this.zzb;
        String str2 = this.zza;
        String strValueOf = String.valueOf(this.zzc);
        StringBuilder sbM = fi7.m("origin=", str, ",name=", str2, ",params=");
        sbM.append(strValueOf);
        return sbM.toString();
    }

    public final zzbf zza() {
        return new zzbf(this.zza, new zzbe(new Bundle(this.zzc)), this.zzb, this.zzd);
    }

    public static zzgs zza(zzbf zzbfVar) {
        return new zzgs(zzbfVar.zza, zzbfVar.zzc, zzbfVar.zzb.zzb(), zzbfVar.zzd);
    }
}
