Get desktop application:
View/edit binary Protocol Buffers messages
AddressBook 类
Person 类,消息结构
Used in:
这里的required 的修饰符表示候name必须赋值(没有默认值)
optional 也就是可不赋值, proto3中已移除该关键字 当然optional string email = 3;[default = 0]默认值是0 required和optional可以有默认值
repeated 表示词字段可以出现多次
结构体、类,统一定义为 message实际上是嵌套类
Used in:
枚举定义
Used in: