protobuffer

protobuffer

 1、扩展名为.proto。

 2、定义一个协议:

  

 3、定义一个Service:

  

 4、编译器为protoc,使用protoc:

  

 5、style:所有的类型名均CamelCase,此外:

  1)message中的字段小写。

  2)enum中的字段大写。

  3)services中的字段CamelCase。

原文地址:https://www.cnblogs.com/tekkaman/p/3303339.html