Create a DescriptorGenerator for testing and maybe other purposes
quote from #16873 (moved):
I pondered adding a DescriptorGenerator
a while ago, where one would construct a new instance of a Descriptor
, call its setters to give it some values, and then have the generator generate a text representation of that descriptor. This would be useful for testing and maybe other things. Now, would the Javadoc of these setters copy the Javadoc of the getters or simply link to them? Or would we use some smarter pattern for building these instances? (And is there a smarter pattern for parsed descriptors than a huge interface with dozens of getters?)