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

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class zzmq {
    private static final zzmq zza = new zzmq();
    private final ConcurrentMap zzc = new ConcurrentHashMap();
    private final zzmu zzb = new zzma();

    private zzmq() {
    }

    public static zzmq zza() {
        return zza;
    }

    public final zzmt zzb(Class cls) {
        zzlj.zzc(cls, "messageType");
        zzmt zzmtVar = (zzmt) this.zzc.get(cls);
        if (zzmtVar != null) {
            return zzmtVar;
        }
        zzmt zza2 = this.zzb.zza(cls);
        zzlj.zzc(cls, "messageType");
        zzlj.zzc(zza2, "schema");
        zzmt zzmtVar2 = (zzmt) this.zzc.putIfAbsent(cls, zza2);
        return zzmtVar2 == null ? zza2 : zzmtVar2;
    }
}
