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

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

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 8 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 // Note: START and END tags are used in comments to define sections used in
4 // tutorials. They are not part of the syntax for Protocol Buffers.
5 //
6 // To get an in-depth walkthrough of this file and the related examples, see:
7 // https://developers.google.com/protocol-buffers/docs/tutorials
8
9 // [START declaration]
10 syntax = "proto3";
11 package tutorial;
12 // [END declaration]
13
14 // [START java_declaration]
15 option java_package = "com.example.tutorial";
16 option java_outer_classname = "AddressBookProtos";
17 // [END java_declaration]
18
19 // [START csharp_declaration]
20 option csharp_namespace = "Google.Protobuf.Examples.AddressBook";
21 // [END csharp_declaration]
22
23 // [START messages]
24 message Person {
25 string name = 1;
26 int32 id = 2; // Unique ID number for this person.
27 string email = 3;
28
29 enum PhoneType {
30 MOBILE = 0;
31 HOME = 1;
32 WORK = 2;
33 }
34
35 message PhoneNumber {
36 string number = 1;
37 PhoneType type = 2;
38 }
39
40 repeated PhoneNumber phones = 4;
41 }
42
43 // Our address book file is just one of these.
44 message AddressBook {
45 repeated Person people = 1;
46 }
47 // [END messages]
OLDNEW
« no previous file with comments | « third_party/protobuf/examples/add_person_test.go ('k') | third_party/protobuf/examples/list_people.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698