what-the-bank/sources/o/psj.java

50 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.UninitializedMessageException;
import o.InterfaceC16581pUl;
/* loaded from: classes2.dex */
public abstract class psj<MessageType extends InterfaceC16581pUl> implements XgX<MessageType> {
private static MessageType b(MessageType messagetype) throws InvalidProtocolBufferException {
UninitializedMessageException uninitializedMessageException;
if (messagetype == null || messagetype.isInitialized()) {
return messagetype;
}
if (messagetype instanceof AbstractC5573bvc) {
uninitializedMessageException = ((AbstractC5573bvc) messagetype).newUninitializedMessageException();
} else {
uninitializedMessageException = new UninitializedMessageException();
}
InvalidProtocolBufferException invalidProtocolBufferException = new InvalidProtocolBufferException(uninitializedMessageException.getMessage());
invalidProtocolBufferException.b = messagetype;
throw invalidProtocolBufferException;
}
static {
ZjA.e();
}
public MessageType c(byte[] bArr, int i, ZjA zjA) throws InvalidProtocolBufferException {
cKE a = cKE.a(bArr, 0, i);
MessageType messagetype = (MessageType) c(a, zjA);
try {
a.e();
return messagetype;
} catch (InvalidProtocolBufferException e) {
e.b = messagetype;
throw e;
}
}
@Override // o.XgX
public final /* synthetic */ Object d(cKE cke, ZjA zjA) throws InvalidProtocolBufferException {
return b((InterfaceC16581pUl) c(cke, zjA));
}
@Override // o.XgX
public final /* synthetic */ Object a(byte[] bArr, ZjA zjA) throws InvalidProtocolBufferException {
return b(c(bArr, bArr.length, zjA));
}
}