Class ProtobufToStringOutput


  • public final class ProtobufToStringOutput
    extends java.lang.Object
    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 Detail

      • callWithDebugFormat

        public static void callWithDebugFormat​(java.lang.Runnable impl)
      • callWithTextFormat

        public static void callWithTextFormat​(java.lang.Runnable impl)
      • shouldOutputDebugFormat

        public static boolean shouldOutputDebugFormat()