Re: Human Readable Export/Import?

2008-11-18 Thread Kenton Varda
Yes, use the TextFormat class to do this from code, or use protoc's --encode or --decode option to do it from the command line. For example: protoc myproto.proto --decode=MyMessageType < encoded_data > human_readable.txt Replace --decode with --encode to convert back from text to binary. You can

Human Readable Export/Import?

2008-11-18 Thread jeungster
I've been reviewing the many benefits of Protocol Buffers and I had a quick question: Is there a way to pretty-print import/export the contents of a protocol buffer? One of the big advantages of XML is that it's human- readable and writable. It would be great if I could do the same thing with