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

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

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 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
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
38 syntax = "proto2"; 34 syntax = "proto2";
39 35
40 package google.protobuf.testing; 36 package google.protobuf.testing;
41 37
42 // A book 38 // A book
43 message Book { 39 message Book {
44 optional string title = 1; 40 optional string title = 1;
45 optional Author author = 2; 41 optional Author author = 2;
46 optional uint32 length = 3; 42 optional uint32 length = 3;
47 optional int64 published = 4; 43 optional int64 published = 4;
48 optional bytes content = 5; 44 optional bytes content = 5;
49 45
50 optional group Data = 6 { 46 optional group Data = 6 {
51 optional uint32 year = 7; 47 optional uint32 year = 7;
52 optional string copyright = 8; 48 optional string copyright = 8;
53 } 49 }
54 50
55 message Label { 51 message Label {
56 optional string key = 1; 52 optional string key = 1;
57 optional string value = 2; 53 optional string value = 2;
58 } 54 }
59 55
60 optional Publisher publisher = 9; 56 optional Publisher publisher = 9;
61 repeated Label labels = 10; 57 repeated Label labels = 10;
62 58
63 enum Type { 59 enum Type {
64 FICTION = 1; 60 FICTION = 1;
65 KIDS = 2; 61 KIDS = 2;
66 ACTION_AND_ADVENTURE = 3; 62 ACTION_AND_ADVENTURE = 3;
67 arts_and_photography = 4;
68 } 63 }
69 optional Type type = 11; 64 optional Type type = 11;
70 65
71 extensions 200 to 499; 66 extensions 200 to 499;
72 } 67 }
73 68
74 // A publisher of a book, tests required fields. 69 // A publisher of a book, tests required fields.
75 message Publisher { 70 message Publisher {
76 required string name = 1; 71 required string name = 1;
77 } 72 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 178 }
184 179
185 // A recursively defined message. 180 // A recursively defined message.
186 message Cyclic { 181 message Cyclic {
187 optional int32 m_int = 1; 182 optional int32 m_int = 1;
188 optional string m_str = 2; 183 optional string m_str = 2;
189 optional Book m_book = 3; 184 optional Book m_book = 3;
190 repeated Author m_author = 5; 185 repeated Author m_author = 5;
191 optional Cyclic m_cyclic = 4; 186 optional Cyclic m_cyclic = 4;
192 } 187 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698