blob: fc1a10fbdb37837b8d85f5a4fd46f0e8280386ea [file] [log] [blame]
Khen Nursimulud7688092016-11-17 00:08:57 -05001// See README.txt for information and build instructions.
2
3syntax = "proto3";
4
5package tutorial;
6
7option java_package = "com.example.tutorial";
8option java_outer_classname = "AddressBookProtos";
9option csharp_namespace = "Google.Protobuf.Examples.AddressBook";
10
11message Person {
12 string name = 1;
13 int32 id = 2; // Unique ID number for this person.
14 string email = 3;
15
16 enum PhoneType {
17 MOBILE = 0;
18 HOME = 1;
19 WORK = 2;
20 }
21
22 message PhoneNumber {
23 string number = 1;
24 PhoneType type = 2;
25 }
26
27 repeated PhoneNumber phones = 4;
Khen Nursimulu95b919d2016-11-18 16:20:20 -050028 repeated string khen = 5;
Khen Nursimulud7688092016-11-17 00:08:57 -050029}
30
31// Our address book file is just one of these.
32message AddressBook {
33 repeated Person people = 1;
34}