code: public static void print(final MessageOrBuilder message, final Appendable output)
                             throws IOException {
      DEFAULT_PRINTER.print(message, new TextGenerator(output));
    }
docs: Outputs a textual representation of the Protocol Message supplied into
  the parameter output. (This representation is the new version of the
  classic "ProtocolPrinter" output from the original Protocol Buffer system)