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 <[email protected]> wrote: > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/protobuf/-/3DGw6rftso0J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
