Shouldn't it be possible to extract the descriptor from the java class
and then use reflection to emit a proto-file ?
So it would be a matter of either re-implementing the DebugString in
Java or dumping out the descriptor from the Java code (after all, it
is just a proto buffer), re-read that and DebugString it.
(maybe protoc could have a
'read-binary-descriptor-and-dump-it-as-protofile' option ;) ).