Re: [protobuf] Is there a way to find out the type of a field (repeated/optional/required) programatically

2012-09-17 Thread Jason Hsueh
The various *Descriptor classes provide type-definition information. Check out the API reference for your specific language (for C++ it's in descriptor.h, Java is Descriptors.java, etc) On Sun, Sep 16, 2012 at 12:51 AM, JP wrote: > Hi All, > I searched the documentation and could not find

[protobuf] Is there a way to find out the type of a field (repeated/optional/required) programatically

2012-09-17 Thread JP
Hi All, I searched the documentation and could not find any thing. I want to find out from a program how a field is defined (required/optional/repeated). Is it possible. I understand I can look at the .proto file. But I would like to know if I can do that from the program Thanks JP -- Y