.proto文件例子

.proto文件例子

// Filename: tables.proto
//optional required

syntax="proto2";
package tables;

message Goods {
optional string goodsid = 1;
optional string goodsname = 2;
}

message Units {
optional string unitid = 1;
optional string unitname = 2;
}

message Tables {
repeated Goods GoodsArr = 1;
repeated Units UnitsArr = 2;
}

message UpFile {
optional string filename = 1;
optional bytes filecontent = 2;
}

  

原文地址:https://www.cnblogs.com/hnxxcxg/p/15102194.html