webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Static Public Member Functions | List of all members
com.google.protobuf.nano.MessageNanoPrinter Class Reference

Static Public Member Functions

static< T extends MessageNano > String print (T message)
 

Detailed Description

Static helper methods for printing nano protos.

Author
flynn.nosp@m.@goo.nosp@m.gle.c.nosp@m.om Andrew Flynn

Member Function Documentation

◆ print()

static <T extends MessageNano> String com.google.protobuf.nano.MessageNanoPrinter.print ( T  message)
inlinestatic

Returns an text representation of a MessageNano suitable for debugging. The returned string is mostly compatible with Protocol Buffer's TextFormat (as provided by non-nano protocol buffers) – groups (which are deprecated) are output with an underscore name (e.g. foo_bar instead of FooBar) and will thus not parse.

Employs Java reflection on the given object and recursively prints primitive fields, groups, and messages.


The documentation for this class was generated from the following file: