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

Side by Side Diff: third_party/protobuf/js/test2.proto

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (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
« no previous file with comments | « third_party/protobuf/js/test.proto ('k') | third_party/protobuf/js/testbinary.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 17 matching lines...) Expand all
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 syntax = "proto2"; 31 syntax = "proto2";
32 32
33 option java_package = "com.google.apps.jspb.proto"; 33 option java_package = "com.google.apps.jspb.proto";
34 option java_multiple_files = true; 34 option java_multiple_files = true;
35 35
36 package jspb.test; 36 package jspb.test;
37 37
38 import "test.proto";
39
40 message TestExtensionsMessage { 38 message TestExtensionsMessage {
41 optional int32 intfield = 1; 39 optional int32 intfield = 1;
42 extensions 100 to max; 40 extensions 100 to max;
43 } 41 }
44 42
45 message ExtensionMessage { 43 message ExtensionMessage {
46 extend TestExtensionsMessage { 44 extend TestExtensionsMessage {
47 optional ExtensionMessage ext_field = 100; 45 optional ExtensionMessage ext_field = 100;
48 } 46 }
49 optional string ext1 = 1; 47 optional string ext1 = 1;
50 } 48 }
51 49
52 // Floating extensions are only supported when generating a _lib.js library. 50 // Floating extensions are only supported when generating a _lib.js library.
53 extend TestExtensionsMessage { 51 extend TestExtensionsMessage {
54 optional ExtensionMessage floating_msg_field = 101; 52 optional ExtensionMessage floating_msg_field = 101;
55 optional string floating_str_field = 102; 53 optional string floating_str_field = 102;
56 } 54 }
57
58 message ForeignNestedFieldMessage {
59 optional Deeply.Nested.Message deeply_nested_message = 1;
60 }
OLDNEW
« no previous file with comments | « third_party/protobuf/js/test.proto ('k') | third_party/protobuf/js/testbinary.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698