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

Side by Side Diff: third_party/protobuf/conformance/conformance.proto

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Created 4 years, 1 month 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 map < string, NestedMessage> map_string_nested_message = 71; 203 map < string, NestedMessage> map_string_nested_message = 71;
204 map < string, ForeignMessage> map_string_foreign_message = 72; 204 map < string, ForeignMessage> map_string_foreign_message = 72;
205 map < string, NestedEnum> map_string_nested_enum = 73; 205 map < string, NestedEnum> map_string_nested_enum = 73;
206 map < string, ForeignEnum> map_string_foreign_enum = 74; 206 map < string, ForeignEnum> map_string_foreign_enum = 74;
207 207
208 oneof oneof_field { 208 oneof oneof_field {
209 uint32 oneof_uint32 = 111; 209 uint32 oneof_uint32 = 111;
210 NestedMessage oneof_nested_message = 112; 210 NestedMessage oneof_nested_message = 112;
211 string oneof_string = 113; 211 string oneof_string = 113;
212 bytes oneof_bytes = 114; 212 bytes oneof_bytes = 114;
213 bool oneof_bool = 115;
214 uint64 oneof_uint64 = 116;
215 float oneof_float = 117;
216 double oneof_double = 118;
217 NestedEnum oneof_enum = 119;
213 } 218 }
214 219
215 // Well-known types 220 // Well-known types
216 google.protobuf.BoolValue optional_bool_wrapper = 201; 221 google.protobuf.BoolValue optional_bool_wrapper = 201;
217 google.protobuf.Int32Value optional_int32_wrapper = 202; 222 google.protobuf.Int32Value optional_int32_wrapper = 202;
218 google.protobuf.Int64Value optional_int64_wrapper = 203; 223 google.protobuf.Int64Value optional_int64_wrapper = 203;
219 google.protobuf.UInt32Value optional_uint32_wrapper = 204; 224 google.protobuf.UInt32Value optional_uint32_wrapper = 204;
220 google.protobuf.UInt64Value optional_uint64_wrapper = 205; 225 google.protobuf.UInt64Value optional_uint64_wrapper = 205;
221 google.protobuf.FloatValue optional_float_wrapper = 206; 226 google.protobuf.FloatValue optional_float_wrapper = 206;
222 google.protobuf.DoubleValue optional_double_wrapper = 207; 227 google.protobuf.DoubleValue optional_double_wrapper = 207;
(...skipping 18 matching lines...) Expand all
241 google.protobuf.Value optional_value = 306; 246 google.protobuf.Value optional_value = 306;
242 247
243 repeated google.protobuf.Duration repeated_duration = 311; 248 repeated google.protobuf.Duration repeated_duration = 311;
244 repeated google.protobuf.Timestamp repeated_timestamp = 312; 249 repeated google.protobuf.Timestamp repeated_timestamp = 312;
245 repeated google.protobuf.FieldMask repeated_fieldmask = 313; 250 repeated google.protobuf.FieldMask repeated_fieldmask = 313;
246 repeated google.protobuf.Struct repeated_struct = 324; 251 repeated google.protobuf.Struct repeated_struct = 324;
247 repeated google.protobuf.Any repeated_any = 315; 252 repeated google.protobuf.Any repeated_any = 315;
248 repeated google.protobuf.Value repeated_value = 316; 253 repeated google.protobuf.Value repeated_value = 316;
249 254
250 // Test field-name-to-JSON-name convention. 255 // Test field-name-to-JSON-name convention.
256 // (protobuf says names can be any valid C/C++ identifier.)
251 int32 fieldname1 = 401; 257 int32 fieldname1 = 401;
252 int32 field_name2 = 402; 258 int32 field_name2 = 402;
253 int32 _field_name3 = 403; 259 int32 _field_name3 = 403;
254 int32 field__name4_ = 404; 260 int32 field__name4_ = 404;
255 int32 field0name5 = 405; 261 int32 field0name5 = 405;
256 int32 field_0_name6 = 406; 262 int32 field_0_name6 = 406;
257 int32 fieldName7 = 407; 263 int32 fieldName7 = 407;
258 int32 FieldName8 = 408; 264 int32 FieldName8 = 408;
259 int32 field_Name9 = 409; 265 int32 field_Name9 = 409;
260 int32 Field_Name10 = 410; 266 int32 Field_Name10 = 410;
261 int32 FIELD_NAME11 = 411; 267 int32 FIELD_NAME11 = 411;
262 int32 FIELD_name12 = 412; 268 int32 FIELD_name12 = 412;
269 int32 __field_name13 = 413;
270 int32 __Field_name14 = 414;
271 int32 field__name15 = 415;
272 int32 field__Name16 = 416;
273 int32 field_name17__ = 417;
274 int32 Field_name18__ = 418;
263 } 275 }
264 276
265 message ForeignMessage { 277 message ForeignMessage {
266 int32 c = 1; 278 int32 c = 1;
267 } 279 }
268 280
269 enum ForeignEnum { 281 enum ForeignEnum {
270 FOREIGN_FOO = 0; 282 FOREIGN_FOO = 0;
271 FOREIGN_BAR = 1; 283 FOREIGN_BAR = 1;
272 FOREIGN_BAZ = 2; 284 FOREIGN_BAZ = 2;
273 } 285 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698