Package com.google.protobuf
Class ProtobufToStringOutput
- java.lang.Object
-
- com.google.protobuf.ProtobufToStringOutput
-
public final class ProtobufToStringOutput extends java.lang.ObjectProtobufToStringOutput controls the output format ofMessage.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcallWithDebugFormat(java.lang.Runnable impl)static voidcallWithTextFormat(java.lang.Runnable impl)static booleanisDefaultFormat()static booleanshouldOutputDebugFormat()
-
-
-
Method Detail
-
callWithDebugFormat
public static void callWithDebugFormat(java.lang.Runnable impl)
-
callWithTextFormat
public static void callWithTextFormat(java.lang.Runnable impl)
-
shouldOutputDebugFormat
public static boolean shouldOutputDebugFormat()
-
isDefaultFormat
public static boolean isDefaultFormat()
-
-