[TOC]
google protobuf 谷歌开发者网站
proto
示例
syntax = "proto2"; //使用proto2语法编写
package protobuf;
message Object {
required int32 class = 1;
required float xmin = 2;
required float ymin = 3;
required float xmax = 4;
required float ymax = 5;
optional bool diffcult = 6 [default=false]; //设置默认值
}
message Label {
optional string filename = 1 [default=""];
optional int32 width = 2 [default=1];
optional int32 height = 3 [default=1];
enum Format {
option al