53 lines
1.9 KiB
Java
53 lines
1.9 KiB
Java
package com.google.android.gms.internal.firebase_ml;
|
|
|
|
import com.google.android.gms.internal.firebase_ml.zzue;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes2.dex */
|
|
public final class zzvd implements zzwf {
|
|
private static final zzvn zzbqk = new zzve();
|
|
private final zzvn zzbqj;
|
|
|
|
public zzvd() {
|
|
this(new zzvf(zzud.zzqw(), zzrz()));
|
|
}
|
|
|
|
private zzvd(zzvn zzvnVar) {
|
|
this.zzbqj = (zzvn) zzug.zza(zzvnVar, "messageInfoFactory");
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.firebase_ml.zzwf
|
|
public final <T> zzwe<T> zzj(Class<T> cls) {
|
|
zzwg.zzl((Class<?>) cls);
|
|
zzvm zzh = this.zzbqj.zzh(cls);
|
|
if (zzh.zzsi()) {
|
|
if (zzue.class.isAssignableFrom(cls)) {
|
|
return zzvu.zza(zzwg.zzsu(), zztv.zzqn(), zzh.zzsj());
|
|
}
|
|
return zzvu.zza(zzwg.zzss(), zztv.zzqo(), zzh.zzsj());
|
|
}
|
|
if (zzue.class.isAssignableFrom(cls)) {
|
|
if (zza(zzh)) {
|
|
return zzvs.zza(cls, zzh, zzvy.zzsm(), zzuy.zzry(), zzwg.zzsu(), zztv.zzqn(), zzvl.zzsf());
|
|
}
|
|
return zzvs.zza(cls, zzh, zzvy.zzsm(), zzuy.zzry(), zzwg.zzsu(), (zztt<?>) null, zzvl.zzsf());
|
|
}
|
|
if (zza(zzh)) {
|
|
return zzvs.zza(cls, zzh, zzvy.zzsl(), zzuy.zzrx(), zzwg.zzss(), zztv.zzqo(), zzvl.zzse());
|
|
}
|
|
return zzvs.zza(cls, zzh, zzvy.zzsl(), zzuy.zzrx(), zzwg.zzst(), (zztt<?>) null, zzvl.zzse());
|
|
}
|
|
|
|
private static boolean zza(zzvm zzvmVar) {
|
|
return zzvmVar.zzsh() == zzue.zzf.zzbow;
|
|
}
|
|
|
|
private static zzvn zzrz() {
|
|
try {
|
|
return (zzvn) Class.forName("com.google.protobuf.DescriptorMessageInfoFactory").getDeclaredMethod("getInstance", new Class[0]).invoke(null, new Object[0]);
|
|
} catch (Exception unused) {
|
|
return zzbqk;
|
|
}
|
|
}
|
|
}
|