OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 package proto3; | 33 package proto3; |
34 | 34 |
35 | 35 |
36 import "google/protobuf/duration.proto"; | 36 import "google/protobuf/duration.proto"; |
37 import "google/protobuf/timestamp.proto"; | 37 import "google/protobuf/timestamp.proto"; |
38 import "google/protobuf/wrappers.proto"; | 38 import "google/protobuf/wrappers.proto"; |
39 import "google/protobuf/struct.proto"; | 39 import "google/protobuf/struct.proto"; |
40 import "google/protobuf/any.proto"; | 40 import "google/protobuf/any.proto"; |
41 import "google/protobuf/field_mask.proto"; | 41 import "google/protobuf/field_mask.proto"; |
42 import "google/protobuf/unittest.proto"; | |
43 | 42 |
44 enum EnumType { | 43 enum EnumType { |
45 FOO = 0; | 44 FOO = 0; |
46 BAR = 1; | 45 BAR = 1; |
47 } | 46 } |
48 | 47 |
49 message MessageType { | 48 message MessageType { |
50 int32 value = 1; | 49 int32 value = 1; |
51 } | 50 } |
52 | 51 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } | 167 } |
169 | 168 |
170 message TestBoolValue { | 169 message TestBoolValue { |
171 bool bool_value = 1; | 170 bool bool_value = 1; |
172 map<bool, int32> bool_map = 2; | 171 map<bool, int32> bool_map = 2; |
173 } | 172 } |
174 | 173 |
175 message TestCustomJsonName { | 174 message TestCustomJsonName { |
176 int32 value = 1 [json_name = "@value"]; | 175 int32 value = 1 [json_name = "@value"]; |
177 } | 176 } |
178 | |
179 message TestExtensions { | |
180 .protobuf_unittest.TestAllExtensions extensions = 1; | |
181 } | |
OLD | NEW |