A very common situation for me is when i get handed a Message
prototype plus a byte[] data, and then i am supposed to create the
Message object from it.
Since my prototype is just a Message i cannot use parseFrom(), and i
have to resort to:
try {
message =
Yep, that's the best thing to do right now.
We're thinking of introducing a separate Parser interface, which would
allow you to do:
message = prototype.getParserForType().parse(data);
On Tue, Jan 18, 2011 at 7:34 AM, koert koertkuip...@gmail.com wrote:
A very common situation for me is when