![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
protocol buffer
宜向华
这个作者很懒,什么都没留下…
展开
-
protoBuff入门教程
注:本文使用proto3.7版本做测试proto文件及编译1、写一个proto文件:syntax = "proto3";package tutorial;message Person { string name = 1; int32 id = 2; string email = 3; enum PhoneType { MOBILE = 0; HOME = 1; WORK = 2; }message PhoneNumber {原创 2022-02-17 17:29:40 · 1682 阅读 · 0 评论 -
protocol buffer编译错误
1、Required fields are not allowed in proto3原因:proto2和proto3的语法不同,proto3”仅仅支持repeated字段修饰,如果使用不支required,optional。针对不同版本要对应不同语法:proto2语法:syntax = "proto2";message Person{ required string name = 1; required int32 id = 2; required strin...原创 2021-12-08 11:39:46 · 1815 阅读 · 1 评论 -
protocol buffer入门教程
在C++中使用Protocol Buffer_——-CSDN博客_c++ protobuffer针对C++这篇文章不错转载 2021-12-07 17:22:16 · 80 阅读 · 0 评论