protobuf
Fighting_mjtao
这个作者很懒,什么都没留下…
展开
-
Protobuf 类型映射
官方scalar value type.proto Type Notes C++ Type Java Type Python Type[2] Go Type Ruby Type C# Type PHP Type Dart Type double double double float float64 ...原创 2019-06-21 11:38:48 · 1031 阅读 · 0 评论 -
Protobuf-import&import public
【转载】https://www.cnblogs.com/letsgollc/p/7423248.html 场景:假如有文件hundredbulls.proto,需要导入另一个文件common.proto,两者在同一个目录中.导入方式 在hundredbulls.proto文件的开头,使用关键字import导入另一个文件,如下↓↓↓↓↓↓↓ ...转载 2019-06-21 11:52:51 · 2503 阅读 · 0 评论 -
Protobuf3语法
官网原文:https://developers.google.cn/protocol-buffers/docs/proto3syntax = "proto3";// 文件首个非空、非注释的行必须表明protobuf的版本,默认是proto2//importimport "google/protobuf/wrappers.proto";import "src/main/proto/o...原创 2019-06-21 15:59:26 · 1698 阅读 · 0 评论