88 lines
2.6 KiB
Java
88 lines
2.6 KiB
Java
|
package o;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class pwd implements vct {
|
||
|
private static final Kyc e = new Kyc() { // from class: o.pwd.3
|
||
|
@Override // o.Kyc
|
||
|
public final boolean c(Class<?> cls) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // o.Kyc
|
||
|
public final SqB b(Class<?> cls) {
|
||
|
throw new IllegalStateException("This should never be called.");
|
||
|
}
|
||
|
};
|
||
|
private final Kyc a;
|
||
|
|
||
|
private pwd(Kyc kyc) {
|
||
|
this.a = (Kyc) oZe.a(kyc, "messageInfoFactory");
|
||
|
}
|
||
|
|
||
|
@Override // o.vct
|
||
|
public final <T> CSi<T> c(Class<T> cls) {
|
||
|
C12871fJo.c((Class<?>) cls);
|
||
|
SqB b = this.a.b(cls);
|
||
|
if (b.e()) {
|
||
|
if (AbstractC16345ndh.class.isAssignableFrom(cls)) {
|
||
|
return new C16692qQN(C12871fJo.d(), Jdv.a(), b.a());
|
||
|
}
|
||
|
return new C16692qQN(C12871fJo.b(), Jdv.c(), b.a());
|
||
|
}
|
||
|
if (AbstractC16345ndh.class.isAssignableFrom(cls)) {
|
||
|
if (b.c() == unv.PROTO2) {
|
||
|
return Uon.a(b, nAp.e(), QIp.b(), C12871fJo.d(), Jdv.a(), Tuz.a());
|
||
|
}
|
||
|
return Uon.a(b, nAp.e(), QIp.b(), C12871fJo.d(), null, Tuz.a());
|
||
|
}
|
||
|
if (b.c() == unv.PROTO2) {
|
||
|
return Uon.a(b, nAp.b(), QIp.e(), C12871fJo.b(), Jdv.c(), Tuz.d());
|
||
|
}
|
||
|
return Uon.a(b, nAp.b(), QIp.e(), C12871fJo.e(), null, Tuz.d());
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
static class IeS implements Kyc {
|
||
|
private Kyc[] c;
|
||
|
|
||
|
IeS(Kyc... kycArr) {
|
||
|
this.c = kycArr;
|
||
|
}
|
||
|
|
||
|
@Override // o.Kyc
|
||
|
public final boolean c(Class<?> cls) {
|
||
|
for (Kyc kyc : this.c) {
|
||
|
if (kyc.c(cls)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // o.Kyc
|
||
|
public final SqB b(Class<?> cls) {
|
||
|
for (Kyc kyc : this.c) {
|
||
|
if (kyc.c(cls)) {
|
||
|
return kyc.b(cls);
|
||
|
}
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("No factory is available for message type: ");
|
||
|
sb.append(cls.getName());
|
||
|
throw new UnsupportedOperationException(sb.toString());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static Kyc d() {
|
||
|
try {
|
||
|
return (Kyc) Class.forName("com.google.crypto.tink.shaded.protobuf.DescriptorMessageInfoFactory").getDeclaredMethod("getInstance", new Class[0]).invoke(null, new Object[0]);
|
||
|
} catch (Exception unused) {
|
||
|
return e;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public pwd() {
|
||
|
this(new IeS(Hqj.b(), d()));
|
||
|
}
|
||
|
}
|