基于C++的protobuf的一个小练习 1.创建.proto文件 首先,在任意目录下创建一个.proto文件,例如my_message.proto,内容如下: syntax = "proto3"; package tutorial; option optimize_for = LITE_RUNTIME; message Person { string name = 1; int32 id = 2; string email = 3;