package com.google.android.gms.internal.gtm; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class zzsw { private static final zzsw zzbdr = new zzsw(); private final ConcurrentMap, zzsz> zzbdt = new ConcurrentHashMap(); private final zzta zzbds = new zzrz(); public final zzsz zzi(Class cls) { zzre.zza(cls, "messageType"); zzsz zzszVar = (zzsz) this.zzbdt.get(cls); if (zzszVar != null) { return zzszVar; } zzsz zzh = this.zzbds.zzh(cls); zzre.zza(cls, "messageType"); zzre.zza(zzh, "schema"); zzsz zzszVar2 = (zzsz) this.zzbdt.putIfAbsent(cls, zzh); return zzszVar2 != null ? zzszVar2 : zzh; } public final zzsz zzaf(T t) { return zzi(t.getClass()); } private zzsw() { } public static zzsw zzqs() { return zzbdr; } }