[protobuf] Re: How to parse a message with extensions?

2012-05-01 Thread Tim Edwards
You cannot use the extension's number as the key (though I agree, that would be nice). Instead, you need to provide the fully-qualified path to the extended field inside square braces, e.g. "[My.Extension.foo]: 'foovalue'". Take a look at the Debug() output of an extended message and you'll see t

[protobuf] Re: How to parse a message with extensions?

2012-04-26 Thread Arkadiy
I was not accurate in describing this. I am using: TextFormat::PrintToString and TextFormat::ParseFromString. I assumed one should be able to parse what another generates. But apparently this is not true for extensions. Still need help. Thanks, Arkadiy On Apr 26, 10:49 am, Arkadiy wrote: >