
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 · 1803 阅读 · 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 · 2247 阅读 · 1 评论 -
protocol buffer入门教程
在C++中使用Protocol Buffer_——-优快云博客_c++ protobuffer 针对C++这篇文章不错转载 2021-12-07 17:22:16 · 113 阅读 · 0 评论