Added a Google Protobuf mode
This commit is contained in:
parent
3cd5ea654e
commit
7c8d81333f
6 changed files with 159 additions and 2 deletions
16
demo/kitchen-sink/docs/protobuf.proto
Normal file
16
demo/kitchen-sink/docs/protobuf.proto
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
message Point {
|
||||
required int32 x = 1;
|
||||
required int32 y = 2;
|
||||
optional string label = 3;
|
||||
}
|
||||
|
||||
message Line {
|
||||
required Point start = 1;
|
||||
required Point end = 2;
|
||||
optional string label = 3;
|
||||
}
|
||||
|
||||
message Polyline {
|
||||
repeated Point point = 1;
|
||||
optional string label = 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue