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

Side by Side Diff: third_party/protobuf/src/google/protobuf/util/internal/testdata/books.proto

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years 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
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 13 matching lines...) Expand all
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
31 // Author: sven@google.com (Sven Mawson) 31 // Author: sven@google.com (Sven Mawson)
32 // 32 //
33 // Sample protos for testing. 33 // Sample protos for testing.
34
35 // Some of the older enums don't use CAPITALS_WITH_UNDERSCORES for testing.
36 // LINT: LEGACY_NAMES
37
34 syntax = "proto2"; 38 syntax = "proto2";
35 39
36 package google.protobuf.testing; 40 package google.protobuf.testing;
37 41
38 // A book 42 // A book
39 message Book { 43 message Book {
40 optional string title = 1; 44 optional string title = 1;
41 optional Author author = 2; 45 optional Author author = 2;
42 optional uint32 length = 3; 46 optional uint32 length = 3;
43 optional int64 published = 4; 47 optional int64 published = 4;
44 optional bytes content = 5; 48 optional bytes content = 5;
45 49
46 optional group Data = 6 { 50 optional group Data = 6 {
47 optional uint32 year = 7; 51 optional uint32 year = 7;
48 optional string copyright = 8; 52 optional string copyright = 8;
49 } 53 }
50 54
51 message Label { 55 message Label {
52 optional string key = 1; 56 optional string key = 1;
53 optional string value = 2; 57 optional string value = 2;
54 } 58 }
55 59
56 optional Publisher publisher = 9; 60 optional Publisher publisher = 9;
57 repeated Label labels = 10; 61 repeated Label labels = 10;
58 62
59 enum Type { 63 enum Type {
60 FICTION = 1; 64 FICTION = 1;
61 KIDS = 2; 65 KIDS = 2;
62 ACTION_AND_ADVENTURE = 3; 66 ACTION_AND_ADVENTURE = 3;
67 arts_and_photography = 4;
63 } 68 }
64 optional Type type = 11; 69 optional Type type = 11;
65 70
66 extensions 200 to 499; 71 extensions 200 to 499;
67 } 72 }
68 73
69 // A publisher of a book, tests required fields. 74 // A publisher of a book, tests required fields.
70 message Publisher { 75 message Publisher {
71 required string name = 1; 76 required string name = 1;
72 } 77 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 183 }
179 184
180 // A recursively defined message. 185 // A recursively defined message.
181 message Cyclic { 186 message Cyclic {
182 optional int32 m_int = 1; 187 optional int32 m_int = 1;
183 optional string m_str = 2; 188 optional string m_str = 2;
184 optional Book m_book = 3; 189 optional Book m_book = 3;
185 repeated Author m_author = 5; 190 repeated Author m_author = 5;
186 optional Cyclic m_cyclic = 4; 191 optional Cyclic m_cyclic = 4;
187 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698