89 lines
3.0 KiB
Java
89 lines
3.0 KiB
Java
package o;
|
|
|
|
/* renamed from: o.tUb, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
final class C17042tUb implements HcW {
|
|
private static final InterfaceC6157cKh e = new InterfaceC6157cKh() { // from class: o.tUb.2
|
|
@Override // o.InterfaceC6157cKh
|
|
public final boolean d(Class<?> cls) {
|
|
return false;
|
|
}
|
|
|
|
@Override // o.InterfaceC6157cKh
|
|
public final InterfaceC16924sSR c(Class<?> cls) {
|
|
throw new IllegalStateException("This should never be called.");
|
|
}
|
|
};
|
|
private final InterfaceC6157cKh b;
|
|
|
|
private C17042tUb(InterfaceC6157cKh interfaceC6157cKh) {
|
|
this.b = (InterfaceC6157cKh) MTP.c(interfaceC6157cKh, "messageInfoFactory");
|
|
}
|
|
|
|
@Override // o.HcW
|
|
public final <T> Wnq<T> e(Class<T> cls) {
|
|
jDR.a((Class<?>) cls);
|
|
InterfaceC16924sSR c = this.b.c(cls);
|
|
if (c.b()) {
|
|
if (KUw.class.isAssignableFrom(cls)) {
|
|
return Ywj.a(jDR.a(), C0341Elp.c(), c.c());
|
|
}
|
|
return Ywj.a(jDR.b(), C0341Elp.e(), c.c());
|
|
}
|
|
if (KUw.class.isAssignableFrom(cls)) {
|
|
if (c.a() == OaP.PROTO2) {
|
|
return C5290bqJ.d(c, C5609bwL.d(), ZQK.d(), jDR.a(), C0341Elp.c(), Jjg.d());
|
|
}
|
|
return C5290bqJ.d(c, C5609bwL.d(), ZQK.d(), jDR.a(), (SSy<?>) null, Jjg.d());
|
|
}
|
|
if (c.a() == OaP.PROTO2) {
|
|
return C5290bqJ.d(c, C5609bwL.c(), ZQK.b(), jDR.b(), C0341Elp.e(), Jjg.c());
|
|
}
|
|
return C5290bqJ.d(c, C5609bwL.c(), ZQK.b(), jDR.c(), (SSy<?>) null, Jjg.c());
|
|
}
|
|
|
|
/* renamed from: o.tUb$RVV */
|
|
/* loaded from: classes2.dex */
|
|
static class RVV implements InterfaceC6157cKh {
|
|
private InterfaceC6157cKh[] d;
|
|
|
|
RVV(InterfaceC6157cKh... interfaceC6157cKhArr) {
|
|
this.d = interfaceC6157cKhArr;
|
|
}
|
|
|
|
@Override // o.InterfaceC6157cKh
|
|
public final boolean d(Class<?> cls) {
|
|
for (InterfaceC6157cKh interfaceC6157cKh : this.d) {
|
|
if (interfaceC6157cKh.d(cls)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // o.InterfaceC6157cKh
|
|
public final InterfaceC16924sSR c(Class<?> cls) {
|
|
for (InterfaceC6157cKh interfaceC6157cKh : this.d) {
|
|
if (interfaceC6157cKh.d(cls)) {
|
|
return interfaceC6157cKh.c(cls);
|
|
}
|
|
}
|
|
StringBuilder sb = new StringBuilder("No factory is available for message type: ");
|
|
sb.append(cls.getName());
|
|
throw new UnsupportedOperationException(sb.toString());
|
|
}
|
|
}
|
|
|
|
private static InterfaceC6157cKh b() {
|
|
try {
|
|
return (InterfaceC6157cKh) Class.forName("com.google.protobuf.DescriptorMessageInfoFactory").getDeclaredMethod("getInstance", new Class[0]).invoke(null, new Object[0]);
|
|
} catch (Exception unused) {
|
|
return e;
|
|
}
|
|
}
|
|
|
|
public C17042tUb() {
|
|
this(new RVV(C11041eWl.d(), b()));
|
|
}
|
|
}
|