Appreciate your answer!

I've no deep insights into protobuf. What happens if i parse a binary as 
EmptyMessage? Is it less costly than parsing as a concrete message (e.g. 
Test3 from the example)?

BR
Rainer

On Tuesday, May 26, 2020 at 5:53:10 PM UTC+2, Adam Cozzette wrote:
>
> Why not just parse the entire parent message? But if you really want to 
> avoid that for some reason, probably the easiest approach is to parse the 
> binary as an EmptyMessage, then look through the unknown fields for your 
> submessage field and parse the submessage from there.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/cd50ad82-f438-46c8-babf-736ca2498c84%40googlegroups.com.

Reply via email to