diff options
Diffstat (limited to 'example/fruit.proto')
| -rw-r--r-- | example/fruit.proto | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/example/fruit.proto b/example/fruit.proto index 362c59b..3924026 100644 --- a/example/fruit.proto +++ b/example/fruit.proto @@ -54,7 +54,6 @@ message Basket { // `autogenpb:nomutex` repeated Pear pears = 5; repeated Apple stacks = 6; } - // "Fruit" must exist. you can put anything in it message Fruit { string brand = 1; // `autogenpb:unique` `autogenpb:sort` @@ -67,7 +66,6 @@ message Fruit { repeated Basket gifts = 8; int64 price = 9; // `autogenpb:sort` } - // "Fruits" MUST EXIST and start exactly this way // It must be "Fruit" + 's' and must match the name of this file: "fruit.proto" message Fruits { // `autogenpb:marshal` `autogenpb:mutex` `autogenpb:gui` @@ -77,3 +75,4 @@ message Fruits { // `autogenpb:marshal` ` int64 cost = 4; // you can add additional things here but the three lines above must conform to the standard above map<string, string> junk = 5; } +// footer was empty |
