if (messageBytes != null) {
BaseMarshaller marshaller = ctx.getMarshaller(descriptorFullName);
ByteArrayInputStream bais2 = new ByteArrayInputStream(messageBytes);
CodedInputStream in2 = CodedInputStream.newInstance(bais2);
if (marshaller instanceof MessageMarshaller) {
ProtoStreamReaderImpl reader = new ProtoStreamReaderImpl(ctx);
return reader.read(in2, (MessageMarshaller) marshaller);
} else {
return ((RawProtobufMarshaller) marshaller).readFrom(ctx, in2);
}
} else {
EnumMarshaller enumMarshaller = (EnumMarshaller) ctx.getMarshaller(descriptorFullName);