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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 repeated fixed64 extend_packed_repeated_fixed64 = 68 [packed=true]; | 176 repeated fixed64 extend_packed_repeated_fixed64 = 68 [packed=true]; |
177 repeated sfixed32 extend_packed_repeated_sfixed32 = 69 [packed=true]; | 177 repeated sfixed32 extend_packed_repeated_sfixed32 = 69 [packed=true]; |
178 repeated sfixed64 extend_packed_repeated_sfixed64 = 70 [packed=true]; | 178 repeated sfixed64 extend_packed_repeated_sfixed64 = 70 [packed=true]; |
179 repeated float extend_packed_repeated_float = 71 [packed=true]; | 179 repeated float extend_packed_repeated_float = 71 [packed=true]; |
180 repeated double extend_packed_repeated_double = 72 [packed=true]; | 180 repeated double extend_packed_repeated_double = 72 [packed=true]; |
181 repeated bool extend_packed_repeated_bool = 73 [packed=true]; | 181 repeated bool extend_packed_repeated_bool = 73 [packed=true]; |
182 repeated ForeignEnum extend_packed_repeated_foreign_enum = 82 | 182 repeated ForeignEnum extend_packed_repeated_foreign_enum = 82 |
183 [packed=true]; | 183 [packed=true]; |
184 | 184 |
185 } | 185 } |
186 | |
187 message TestMapFields { | |
188 map<string, string> map_string_string = 1; | |
189 map<string, int32> map_string_int32 = 2; | |
190 map<string, int64> map_string_int64 = 3; | |
191 map<string, bool> map_string_bool = 4; | |
192 map<string, double> map_string_double = 5; | |
193 map<string, MapValueEnum> map_string_enum = 6; | |
194 map<string, MapValueMessage> map_string_msg = 7; | |
195 | |
196 map<int32, string> map_int32_string = 8; | |
197 map<int64, string> map_int64_string = 9; | |
198 map<bool, string> map_bool_string = 10; | |
199 | |
200 optional TestMapFields test_map_fields = 11; | |
201 map<string, TestMapFields> map_string_testmapfields = 12; | |
202 } | |
203 | |
204 enum MapValueEnum { | |
205 MAP_VALUE_FOO = 0; | |
206 MAP_VALUE_BAR = 1; | |
207 MAP_VALUE_BAZ = 2; | |
208 } | |
209 | |
210 message MapValueMessage { | |
211 optional int32 foo = 1; | |
212 } | |
OLD | NEW |