Re: [protobuf] Parse a .proto file

2014-11-05 Thread Pradeep Gollakota
(fieldDescriptor.toProto()); } } } On Saturday, November 1, 2014 4:26:35 AM UTC-7, Oliver wrote: On 1 November 2014 02:24, Pradeep Gollakota prade...@gmail.com javascript: wrote: Confirmed... When I replaced the md variable with the compiled Descriptor

Re: [protobuf] Parse a .proto file

2014-10-31 Thread Pradeep Gollakota
, October 30, 2014 2:41:19 PM UTC-7, Oliver wrote: On 30 October 2014 02:53, Pradeep Gollakota prade...@gmail.com javascript: wrote: I have a use case where I need to parse messages without having the corresponding precompiled classes in Java. So the DynamicMessage seems

Re: [protobuf] Parse a .proto file

2014-10-31 Thread Pradeep Gollakota
, then I'd go with using the parsed descriptors as your format description, not the text .proto file. Oliver On 31 October 2014 17:56, Pradeep Gollakota prade...@gmail.com javascript: wrote: Hi Oliver, Thanks for the response! I guess my question wasn't quite clear. In my java

Re: [protobuf] Parse a .proto file

2014-10-31 Thread Pradeep Gollakota
on this? Thanks again all! On Friday, October 31, 2014 2:18:44 PM UTC-7, Ilia Mirkin wrote: At no point are you specifying that you want to use the MessagePublish descriptor, so you must still be using the API incorrectly... On Fri, Oct 31, 2014 at 5:10 PM, Pradeep Gollakota prade...@gmail.com

Re: [protobuf] Parse a .proto file

2014-10-31 Thread Pradeep Gollakota
been annotated with the (isPii = true) option. On Friday, October 31, 2014 3:25:51 PM UTC-7, Ilia Mirkin wrote: On Fri, Oct 31, 2014 at 6:18 PM, Pradeep Gollakota prade...@gmail.com javascript: wrote: Boolean extension = fieldDescriptor.getOptions().getExtension(Messages.isPii

Re: [protobuf] Parse a .proto file

2014-10-31 Thread Pradeep Gollakota
try to mix pregenerated code dynamically loaded descriptors, all sorts of things break. Oliver On 1 November 2014 00:48, Pradeep Gollakota pradeep...@gmail.com wrote: Not really... one of the use cases I'm trying to solve for is an anonymization use case. We will have several app's writing

[protobuf] Parse a .proto file

2014-10-30 Thread Pradeep Gollakota
Hi Protobuf gurus, I'm trying to parse a .proto file in Java to use with DynamicMessages. Is this possible or does it have to be compiled to a descriptor set file first before this can be done? I have a use case where I need to parse messages without having the corresponding precompiled