Package io.grpc.xds

Class MessagePrinter

  • All Implemented Interfaces:
    MessagePrettyPrinter

    final class MessagePrinter
    extends java.lang.Object
    implements MessagePrettyPrinter
    Converts protobuf message to human readable String format. Useful for protobuf messages containing Any fields.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MessagePrinter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String print​(com.google.protobuf.MessageOrBuilder message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessagePrinter

        private MessagePrinter()
    • Method Detail

      • print

        public java.lang.String print​(com.google.protobuf.MessageOrBuilder message)
        Specified by:
        print in interface MessagePrettyPrinter