What is the recommended way to include some documentation within the
proto file ?
Something like this perhaps.
/**
* a person
*/
message Person {
/** identifier */
required int32 id = 1;
/** Name of the person. first name and last name */
required string name = 2;
/** email address */
optional string email = 3;
}
I realize there are no API to grab these from the FooDescriptor objects,
but maybe something is planned ?
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos
It would be pretty nice to have the parser parse some form of doc
comments. Then the language backends could output them appropriately:
javadoc for Java, docstrings for Python, etc. Not that I'm
volunteering to do the work though. :)
Evan
--
Evan Jones
http://evanjones.ca/