Re: [protobuf] deserializing unknown protobuf message?

2013-08-20 Thread Tom Ward
I thought as much, just wanted to make sure I wasn't missing anything :) So after much playing about, I've managed to get something working, but I had to use a deprecated function (DynamicMessageFactory(const DescriptorPool* pool); ) I also had to pass the fullname() of the message type to be

Re: [protobuf] deserializing unknown protobuf message?

2013-08-19 Thread Ilia Mirkin
Something like protoc --decode_raw? As for manipulating these in code, there's nothing too great available if you don't have a descriptor at all. You could create a dummy message (no fields) and then get them via unknown fields in the message's reflection object, but they're not easy to

Re: [protobuf] deserializing unknown protobuf message?

2013-08-19 Thread Oliver Jowett
On Mon, Aug 19, 2013 at 8:37 PM, Tom Ward tw...@thefoundry.co.uk wrote: Basically I'm trying to work out how to deserialize a protobuf message without using the generated headers, as we're likely to get messages that weren't generated at compile time. I've looked through the documentation,