DescriptionHeuristically detect and print embedded messages within messages whose .proto file is unknown.
Patch attached.
The PrintUnknownFields() in this patch attempts to display embedded messages, by default. In some cases, it wrongly displays fields intended to be regular strings as embedded messages. Maybe we should have a flag to indicate whether we want to attempt sub-message detection? Another option is to first print the embedded message value as a regular length-delimited string and then expand it on the next line, explicitly indicating that the expansion is a guess.
I am not sure which option is better. I can submit an updated patch if we decide on any of the options above.
Dilip
Patch Set 1 #Patch Set 2 : Heuristically print messages with unknown .proto (revised) #
MessagesTotal messages: 5
|