Tekkaman

导航

 

protobuffer

 1、扩展名为.proto。

 2、定义一个协议:

  

 3、定义一个Service:

  

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

  

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

  1)message中的字段小写。

  2)enum中的字段大写。

  3)services中的字段CamelCase。

 

posted on 2013-09-05 15:09  Tekkaman  阅读(2070)  评论(0)    收藏  举报