给段官方介绍:

Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. You can even update your data structure without breaking deployed programs that are compiled against the "old" format.

简单来说就是为程序员提供了通讯时候将对象序列化和反序列化的解决方案。

官方代码托管:https://code.google.com/p/protobuf/

官方文档:https://developers.google.com/protocol-buffers/docs/overview

C++的Tutorial:https://developers.google.com/protocol-buffers/docs/cpptutorial

Java的Tutorial:https://developers.google.com/protocol-buffers/docs/javatutorial

具体的使用细节我就不详细在这篇guide里写了,google官方的文档写得实在是太好了,基本上任何你需要的资料在官方文档中都有写,大家仔细查找文档就好了。