Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/protobuf/examples/addressbook.proto

Issue 1322483002: Revert https://codereview.chromium.org/1291903002 (protobuf roll). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // See README.txt for information and build instructions.
2
3 syntax = "proto3";
4
5 package tutorial;
6
7 option java_package = "com.example.tutorial";
8 option java_outer_classname = "AddressBookProtos";
9 option csharp_namespace = "Google.Protobuf.Examples.AddressBook";
10
11 message 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;
28 }
29
30 // Our address book file is just one of these.
31 message AddressBook {
32 repeated Person people = 1;
33 }
OLDNEW
« no previous file with comments | « third_party/protobuf/examples/add_person.py ('k') | third_party/protobuf/examples/list_people.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698