Update benchmark *.proto definitions to specify proto2 syntax, and add a missing field in addressbook.proto

This commit is contained in:
Ivor Blockley
2017-07-18 15:03:33 +10:00
parent 98b5ed837b
commit e389772f6f
4 changed files with 10 additions and 1 deletions

View File

@@ -1,8 +1,11 @@
syntax = "proto2";
package tutorial;
message Person {
required string name = 1;
required int32 id = 2;
required string email = 3;
enum PhoneType {
MOBILE = 0;
@@ -15,7 +18,7 @@ message Person {
optional PhoneType type = 2 [default = HOME];
}
repeated PhoneNumber phone = 3;
repeated PhoneNumber phone = 4;
}
message AddressBook {