Issue 232 has been merged into this issue.
Has anyone done any work on this? We need it. I don't know if we'll have
time to jump in and fork it ourselves.
is there any support of .proto javadoc?
Issue 317 has been merged into this issue.
Without adding any documentation option in .proto files, it would still be
possible to generate javadoc indicating whether a field is optional or
required; this would be a useful enhancement.
I agree, even without a proper protodoc/javadoc solution, just copying the
associated bit of proto definition into the getter's/setter's javadoc would
be an improvement. It's already being done as a line comment, just needs to
be turned into a javadoc.
For example, currently we have in subinterfaces of MessageOrBuilder:
// required string name = 1;
boolean hasName();
String getName();
This can be converted to:
/**
* Checks if field 'name' has beed set.
*
* @see #getName()
*/
boolean hasName();
/**
* Generated property getter for field 'name'.<br/>
* Field definition:
* <pre>required string name = 1;</pre>
*
* @see #hasName()
*/
String getName();
...and in the associated Builder:
/**
* Generated property setter for field 'name'.<br/>
* Field definition:
* <pre>required string name = 1;</pre>
*
* @see #getName()
*/
public Builder setName(String value) {...}