Package com.google.protobuf
Class ProtobufToStringOutput
java.lang.Object
com.google.protobuf.ProtobufToStringOutput
ProtobufToStringOutput controls the output format of
Message.toString(). Specifically, for
the Runnable object passed to `callWithDebugFormat` and `callWithTextFormat`, Message.toString()
will always output the specified format unless ProtobufToStringOutput is used again to change the
output format.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcallWithDebugFormat(Runnable impl) static voidcallWithTextFormat(Runnable impl) static boolean
-
Method Details
-
callWithDebugFormat
-
callWithTextFormat
-
shouldOutputDebugFormat
public static boolean shouldOutputDebugFormat()
-