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

import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f21905c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Bundle f21906d;

    public t0(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle, long j10) {
        this.f21903a = str;
        this.f21904b = str2;
        this.f21906d = bundle == null ? new Bundle() : bundle;
        this.f21905c = j10;
    }

    public static t0 b(y yVar) {
        return new t0(yVar.f21981a, yVar.f21983c, yVar.f21982b.x(), yVar.f21984d);
    }

    public final y a() {
        return new y(this.f21903a, new x(new Bundle(this.f21906d)), this.f21904b, this.f21905c);
    }

    public final String toString() {
        String strValueOf = String.valueOf(this.f21906d);
        StringBuilder sb = new StringBuilder("origin=");
        sb.append(this.f21904b);
        sb.append(",name=");
        return defpackage.e.p(sb, this.f21903a, ",params=", strValueOf);
    }
}
