package com.google.android.gms.analytics.ecommerce; import com.google.android.gms.analytics.zzi; import com.google.android.gms.common.internal.Preconditions; import java.util.HashMap; import java.util.Map; import org.simpleframework.xml.strategy.Name; /* loaded from: classes.dex */ public class Promotion { public static final String ACTION_CLICK = "click"; public static final String ACTION_VIEW = "view"; private Map zzvn = new HashMap(); private final void put(String str, String str2) { Preconditions.checkNotNull(str, "Name should be non-null"); this.zzvn.put(str, str2); } public Promotion setId(String str) { put(Name.MARK, str); return this; } public Promotion setName(String str) { put("nm", str); return this; } public Promotion setCreative(String str) { put("cr", str); return this; } public Promotion setPosition(String str) { put("ps", str); return this; } public final Map zzn(String str) { HashMap hashMap = new HashMap(); for (Map.Entry entry : this.zzvn.entrySet()) { String valueOf = String.valueOf(str); String valueOf2 = String.valueOf(entry.getKey()); hashMap.put(valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf), entry.getValue()); } return hashMap; } public String toString() { return zzi.zza((Map) this.zzvn); } }