OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/descriptor.proto |
2 | 3 |
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION | 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
4 #include "google/protobuf/descriptor.pb.h" | 5 #include "google/protobuf/descriptor.pb.h" |
5 | 6 |
6 #include <algorithm> | 7 #include <algorithm> |
7 | 8 |
| 9 #include <google/protobuf/stubs/common.h> |
8 #include <google/protobuf/stubs/once.h> | 10 #include <google/protobuf/stubs/once.h> |
9 #include <google/protobuf/io/coded_stream.h> | 11 #include <google/protobuf/io/coded_stream.h> |
10 #include <google/protobuf/wire_format_lite_inl.h> | 12 #include <google/protobuf/wire_format_lite_inl.h> |
11 #include <google/protobuf/descriptor.h> | 13 #include <google/protobuf/descriptor.h> |
| 14 #include <google/protobuf/generated_message_reflection.h> |
12 #include <google/protobuf/reflection_ops.h> | 15 #include <google/protobuf/reflection_ops.h> |
13 #include <google/protobuf/wire_format.h> | 16 #include <google/protobuf/wire_format.h> |
14 // @@protoc_insertion_point(includes) | 17 // @@protoc_insertion_point(includes) |
15 | 18 |
16 namespace google { | 19 namespace google { |
17 namespace protobuf { | 20 namespace protobuf { |
18 | 21 |
19 namespace { | 22 namespace { |
20 | 23 |
21 const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL; | 24 const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 FileDescriptorSet_descriptor_, | 104 FileDescriptorSet_descriptor_, |
102 FileDescriptorSet::default_instance_, | 105 FileDescriptorSet::default_instance_, |
103 FileDescriptorSet_offsets_, | 106 FileDescriptorSet_offsets_, |
104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bit
s_[0]), | 107 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bit
s_[0]), |
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown
_fields_), | 108 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown
_fields_), |
106 -1, | 109 -1, |
107 ::google::protobuf::DescriptorPool::generated_pool(), | 110 ::google::protobuf::DescriptorPool::generated_pool(), |
108 ::google::protobuf::MessageFactory::generated_factory(), | 111 ::google::protobuf::MessageFactory::generated_factory(), |
109 sizeof(FileDescriptorSet)); | 112 sizeof(FileDescriptorSet)); |
110 FileDescriptorProto_descriptor_ = file->message_type(1); | 113 FileDescriptorProto_descriptor_ = file->message_type(1); |
111 static const int FileDescriptorProto_offsets_[9] = { | 114 static const int FileDescriptorProto_offsets_[11] = { |
112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), | 115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), |
113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_
), | 116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_
), |
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependen
cy_), | 117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependen
cy_), |
| 118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_d
ependency_), |
| 119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dep
endency_), |
115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_
type_), | 120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_
type_), |
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_typ
e_), | 121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_typ
e_), |
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_
), | 122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_
), |
118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extensio
n_), | 123 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extensio
n_), |
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_
), | 124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_
), |
120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_c
ode_info_), | 125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_c
ode_info_), |
121 }; | 126 }; |
122 FileDescriptorProto_reflection_ = | 127 FileDescriptorProto_reflection_ = |
123 new ::google::protobuf::internal::GeneratedMessageReflection( | 128 new ::google::protobuf::internal::GeneratedMessageReflection( |
124 FileDescriptorProto_descriptor_, | 129 FileDescriptorProto_descriptor_, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 MethodDescriptorProto_descriptor_, | 259 MethodDescriptorProto_descriptor_, |
255 MethodDescriptorProto::default_instance_, | 260 MethodDescriptorProto::default_instance_, |
256 MethodDescriptorProto_offsets_, | 261 MethodDescriptorProto_offsets_, |
257 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has
_bits_[0]), | 262 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has
_bits_[0]), |
258 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unk
nown_fields_), | 263 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unk
nown_fields_), |
259 -1, | 264 -1, |
260 ::google::protobuf::DescriptorPool::generated_pool(), | 265 ::google::protobuf::DescriptorPool::generated_pool(), |
261 ::google::protobuf::MessageFactory::generated_factory(), | 266 ::google::protobuf::MessageFactory::generated_factory(), |
262 sizeof(MethodDescriptorProto)); | 267 sizeof(MethodDescriptorProto)); |
263 FileOptions_descriptor_ = file->message_type(8); | 268 FileOptions_descriptor_ = file->message_type(8); |
264 static const int FileOptions_offsets_[10] = { | 269 static const int FileOptions_offsets_[11] = { |
265 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), | 270 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), |
266 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_class
name_), | 271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_class
name_), |
267 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_fi
les_), | 272 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_fi
les_), |
268 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, retain_unknown_f
ields_), | 273 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, retain_unknown_f
ields_), |
269 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_eq
uals_and_hash_), | 274 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_eq
uals_and_hash_), |
270 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), | 275 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), |
| 276 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_), |
271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_servi
ces_), | 277 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_servi
ces_), |
272 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_ser
vices_), | 278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_ser
vices_), |
273 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_servi
ces_), | 279 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_servi
ces_), |
274 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_op
tion_), | 280 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_op
tion_), |
275 }; | 281 }; |
276 FileOptions_reflection_ = | 282 FileOptions_reflection_ = |
277 new ::google::protobuf::internal::GeneratedMessageReflection( | 283 new ::google::protobuf::internal::GeneratedMessageReflection( |
278 FileOptions_descriptor_, | 284 FileOptions_descriptor_, |
279 FileOptions::default_instance_, | 285 FileOptions::default_instance_, |
280 FileOptions_offsets_, | 286 FileOptions_offsets_, |
(...skipping 15 matching lines...) Expand all Loading... |
296 MessageOptions_descriptor_, | 302 MessageOptions_descriptor_, |
297 MessageOptions::default_instance_, | 303 MessageOptions::default_instance_, |
298 MessageOptions_offsets_, | 304 MessageOptions_offsets_, |
299 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[
0]), | 305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[
0]), |
300 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fi
elds_), | 306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fi
elds_), |
301 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions
_), | 307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions
_), |
302 ::google::protobuf::DescriptorPool::generated_pool(), | 308 ::google::protobuf::DescriptorPool::generated_pool(), |
303 ::google::protobuf::MessageFactory::generated_factory(), | 309 ::google::protobuf::MessageFactory::generated_factory(), |
304 sizeof(MessageOptions)); | 310 sizeof(MessageOptions)); |
305 FieldOptions_descriptor_ = file->message_type(10); | 311 FieldOptions_descriptor_ = file->message_type(10); |
306 static const int FieldOptions_offsets_[5] = { | 312 static const int FieldOptions_offsets_[7] = { |
307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), | 313 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), |
308 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), | 314 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), |
| 315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_), |
309 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), | 316 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), |
310 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_ma
p_key_), | 317 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_ma
p_key_), |
| 318 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_), |
311 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_o
ption_), | 319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_o
ption_), |
312 }; | 320 }; |
313 FieldOptions_reflection_ = | 321 FieldOptions_reflection_ = |
314 new ::google::protobuf::internal::GeneratedMessageReflection( | 322 new ::google::protobuf::internal::GeneratedMessageReflection( |
315 FieldOptions_descriptor_, | 323 FieldOptions_descriptor_, |
316 FieldOptions::default_instance_, | 324 FieldOptions::default_instance_, |
317 FieldOptions_offsets_, | 325 FieldOptions_offsets_, |
318 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]
), | 326 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]
), |
319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fiel
ds_), | 327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fiel
ds_), |
320 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_)
, | 328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_)
, |
321 ::google::protobuf::DescriptorPool::generated_pool(), | 329 ::google::protobuf::DescriptorPool::generated_pool(), |
322 ::google::protobuf::MessageFactory::generated_factory(), | 330 ::google::protobuf::MessageFactory::generated_factory(), |
323 sizeof(FieldOptions)); | 331 sizeof(FieldOptions)); |
324 FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0); | 332 FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0); |
325 EnumOptions_descriptor_ = file->message_type(11); | 333 EnumOptions_descriptor_ = file->message_type(11); |
326 static const int EnumOptions_offsets_[1] = { | 334 static const int EnumOptions_offsets_[2] = { |
| 335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), |
327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_op
tion_), | 336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_op
tion_), |
328 }; | 337 }; |
329 EnumOptions_reflection_ = | 338 EnumOptions_reflection_ = |
330 new ::google::protobuf::internal::GeneratedMessageReflection( | 339 new ::google::protobuf::internal::GeneratedMessageReflection( |
331 EnumOptions_descriptor_, | 340 EnumOptions_descriptor_, |
332 EnumOptions::default_instance_, | 341 EnumOptions::default_instance_, |
333 EnumOptions_offsets_, | 342 EnumOptions_offsets_, |
334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0])
, | 343 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0])
, |
335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_field
s_), | 344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_field
s_), |
336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), | 345 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 SourceCodeInfo_descriptor_, | 437 SourceCodeInfo_descriptor_, |
429 SourceCodeInfo::default_instance_, | 438 SourceCodeInfo::default_instance_, |
430 SourceCodeInfo_offsets_, | 439 SourceCodeInfo_offsets_, |
431 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[
0]), | 440 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[
0]), |
432 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _unknown_fi
elds_), | 441 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _unknown_fi
elds_), |
433 -1, | 442 -1, |
434 ::google::protobuf::DescriptorPool::generated_pool(), | 443 ::google::protobuf::DescriptorPool::generated_pool(), |
435 ::google::protobuf::MessageFactory::generated_factory(), | 444 ::google::protobuf::MessageFactory::generated_factory(), |
436 sizeof(SourceCodeInfo)); | 445 sizeof(SourceCodeInfo)); |
437 SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(
0); | 446 SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(
0); |
438 static const int SourceCodeInfo_Location_offsets_[2] = { | 447 static const int SourceCodeInfo_Location_offsets_[4] = { |
439 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path
_), | 448 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path
_), |
440 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span
_), | 449 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span
_), |
| 450 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead
ing_comments_), |
| 451 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trai
ling_comments_), |
441 }; | 452 }; |
442 SourceCodeInfo_Location_reflection_ = | 453 SourceCodeInfo_Location_reflection_ = |
443 new ::google::protobuf::internal::GeneratedMessageReflection( | 454 new ::google::protobuf::internal::GeneratedMessageReflection( |
444 SourceCodeInfo_Location_descriptor_, | 455 SourceCodeInfo_Location_descriptor_, |
445 SourceCodeInfo_Location::default_instance_, | 456 SourceCodeInfo_Location::default_instance_, |
446 SourceCodeInfo_Location_offsets_, | 457 SourceCodeInfo_Location_offsets_, |
447 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _h
as_bits_[0]), | 458 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _h
as_bits_[0]), |
448 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _u
nknown_fields_), | 459 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _u
nknown_fields_), |
449 -1, | 460 -1, |
450 ::google::protobuf::DescriptorPool::generated_pool(), | 461 ::google::protobuf::DescriptorPool::generated_pool(), |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 delete SourceCodeInfo_reflection_; | 558 delete SourceCodeInfo_reflection_; |
548 delete SourceCodeInfo_Location::default_instance_; | 559 delete SourceCodeInfo_Location::default_instance_; |
549 delete SourceCodeInfo_Location_reflection_; | 560 delete SourceCodeInfo_Location_reflection_; |
550 } | 561 } |
551 | 562 |
552 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { | 563 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
553 static bool already_here = false; | 564 static bool already_here = false; |
554 if (already_here) return; | 565 if (already_here) return; |
555 already_here = true; | 566 already_here = true; |
556 GOOGLE_PROTOBUF_VERIFY_VERSION; | 567 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 568 |
557 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 569 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
558 "\n google/protobuf/descriptor.proto\022\017goog" | 570 "\n google/protobuf/descriptor.proto\022\017goog" |
559 "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" | 571 "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" |
560 "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" | 572 "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" |
561 "roto\"\227\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" | 573 "roto\"\313\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" |
562 "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003
(\t\022" | 574 "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003
(\t\022" |
563 "6\n\014message_type\030\004 \003(\0132 .google.protobuf." | 575 "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" |
564 "DescriptorProto\0227\n\tenum_type\030\005 \003(\0132$.goo" | 576 "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" |
565 "gle.protobuf.EnumDescriptorProto\0228\n\007serv" | 577 "le.protobuf.DescriptorProto\0227\n\tenum_type" |
566 "ice\030\006 \003(\0132\'.google.protobuf.ServiceDescr" | 578 "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" |
567 "iptorProto\0228\n\textension\030\007 \003(\0132%.google.p" | 579 "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf." |
568 "rotobuf.FieldDescriptorProto\022-\n\007options\030" | 580 "ServiceDescriptorProto\0228\n\textension\030\007 \003(" |
569 "\010 \001(\0132\034.google.protobuf.FileOptions\0229\n\020s" | |
570 "ource_code_info\030\t \001(\0132\037.google.protobuf." | |
571 "SourceCodeInfo\"\251\003\n\017DescriptorProto\022\014\n\004na" | |
572 "me\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.google.protobu" | |
573 "f.FieldDescriptorProto\0228\n\textension\030\006 \003(" | |
574 "\0132%.google.protobuf.FieldDescriptorProto" | 581 "\0132%.google.protobuf.FieldDescriptorProto" |
575 "\0225\n\013nested_type\030\003 \003(\0132 .google.protobuf." | 582 "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" |
576 "DescriptorProto\0227\n\tenum_type\030\004 \003(\0132$.goo" | 583 "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" |
577 "gle.protobuf.EnumDescriptorProto\022H\n\017exte" | 584 "le.protobuf.SourceCodeInfo\"\251\003\n\017Descripto" |
578 "nsion_range\030\005 \003(\0132/.google.protobuf.Desc" | 585 "rProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132
%.go" |
579 "riptorProto.ExtensionRange\0220\n\007options\030\007 " | 586 "ogle.protobuf.FieldDescriptorProto\0228\n\tex" |
580 "\001(\0132\037.google.protobuf.MessageOptions\032,\n\016" | 587 "tension\030\006 \003(\0132%.google.protobuf.FieldDes" |
581 "ExtensionRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002
\001" | 588 "criptorProto\0225\n\013nested_type\030\003 \003(\0132 .goog" |
582 "(\005\"\224\005\n\024FieldDescriptorProto\022\014\n\004name\030\001 \001(" | 589 "le.protobuf.DescriptorProto\0227\n\tenum_type" |
583 "\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030\004 \001(\0162
+.googl" | 590 "\030\004 \003(\0132$.google.protobuf.EnumDescriptorP" |
584 "e.protobuf.FieldDescriptorProto.Label\0228\n" | 591 "roto\022H\n\017extension_range\030\005 \003(\0132/.google.p" |
585 "\004type\030\005 \001(\0162*.google.protobuf.FieldDescr" | 592 "rotobuf.DescriptorProto.ExtensionRange\0220" |
586 "iptorProto.Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010ex" | 593 "\n\007options\030\007 \001(\0132\037.google.protobuf.Messag" |
587 "tendee\030\002 \001(\t\022\025\n\rdefault_value\030\007 \001(\t\022.\n\007o
" | 594 "eOptions\032,\n\016ExtensionRange\022\r\n\005start\030\001 \001(" |
588 "ptions\030\010 \001(\0132\035.google.protobuf.FieldOpti" | 595 "\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescriptorProto
\022" |
589 "ons\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FL
" | 596 "\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n
\005label\030\004" |
590 "OAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\
022\016" | 597 " \001(\0162+.google.protobuf.FieldDescriptorPr" |
591 "\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE" | 598 "oto.Label\0228\n\004type\030\005 \001(\0162*.google.protobu" |
592 "_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING" | 599 "f.FieldDescriptorProto.Type\022\021\n\ttype_name" |
593 "\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\01
6\n\n" | 600 "\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdefault_v
alu" |
594 "TYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_EN" | 601 "e\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.google.protob" |
595 "UM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64" | 602 "uf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020" |
596 "\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\
"C\n\005" | 603 "\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\
013TYP" |
597 "Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUI" | 604 "E_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED" |
598 "RED\020\002\022\022\n\016LABEL_REPEATED\020\003\"\214\001\n\023EnumDescri" | 605 "64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022
\017\n" |
599 "ptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0
132)" | 606 "\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_M" |
600 ".google.protobuf.EnumValueDescriptorProt" | 607 "ESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020" |
601 "o\022-\n\007options\030\003 \001(\0132\034.google.protobuf.Enu" | 608 "\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rT
" |
602 "mOptions\"l\n\030EnumValueDescriptorProto\022\014\n\004" | 609 "YPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_" |
603 "name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007option
s\030\003 " | 610 "SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n" |
604 "\001(\0132!.google.protobuf.EnumValueOptions\"\220" | 611 "\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"\214\001" |
605 "\001\n\026ServiceDescriptorProto\022\014\n\004name\030\001 \001(\t\022" | 612 "\n\023EnumDescriptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005v" |
606 "6\n\006method\030\002 \003(\0132&.google.protobuf.Method" | 613 "alue\030\002 \003(\0132).google.protobuf.EnumValueDe" |
607 "DescriptorProto\0220\n\007options\030\003 \001(\0132\037.googl" | 614 "scriptorProto\022-\n\007options\030\003 \001(\0132\034.google." |
608 "e.protobuf.ServiceOptions\"\177\n\025MethodDescr" | 615 "protobuf.EnumOptions\"l\n\030EnumValueDescrip" |
609 "iptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002" | 616 "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001
(\005\0222" |
610 " \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n\007options\030\004
\001" | 617 "\n\007options\030\003 \001(\0132!.google.protobuf.EnumVa" |
611 "(\0132\036.google.protobuf.MethodOptions\"\373\003\n\013F" | 618 "lueOptions\"\220\001\n\026ServiceDescriptorProto\022\014\n" |
612 "ileOptions\022\024\n\014java_package\030\001 \001(\t\022\034\n\024java" | 619 "\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.pro" |
613 "_outer_classname\030\010 \001(\t\022\"\n\023java_multiple_" | 620 "tobuf.MethodDescriptorProto\0220\n\007options\030\003" |
614 "files\030\n \001(\010:\005false\022$\n\025retain_unknown_fie" | 621 " \001(\0132\037.google.protobuf.ServiceOptions\"\177\n" |
615 "lds\030\013 \001(\010:\005false\022,\n\035java_generate_equals" | 622 "\025MethodDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\n" |
616 "_and_hash\030\024 \001(\010:\005false\022F\n\014optimize_for\030\t" | 623 "input_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n" |
617 " \001(\0162).google.protobuf.FileOptions.Optim" | 624 "\007options\030\004 \001(\0132\036.google.protobuf.MethodO" |
618 "izeMode:\005SPEED\022\"\n\023cc_generic_services\030\020 " | 625 "ptions\"\217\004\n\013FileOptions\022\024\n\014java_package\030\001" |
619 "\001(\010:\005false\022$\n\025java_generic_services\030\021 \001(" | 626 " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja" |
620 "\010:\005false\022\"\n\023py_generic_services\030\022 \001(\010:\005f" | 627 "va_multiple_files\030\n \001(\010:\005false\022$\n\025retain" |
621 "alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go" | 628 "_unknown_fields\030\014 \001(\010:\005false\022,\n\035java_gen" |
622 "ogle.protobuf.UninterpretedOption\":\n\014Opt" | 629 "erate_equals_and_hash\030\024 \001(\010:\005false\022F\n\014op" |
623 "imizeMode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014
L" | 630 "timize_for\030\t \001(\0162).google.protobuf.FileO" |
624 "ITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270\001\n\016M
essageOpti" | 631 "ptions.OptimizeMode:\005SPEED\022\022\n\ngo_package" |
625 "ons\022&\n\027message_set_wire_format\030\001 \001(\010:\005fa" | 632 "\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fal" |
626 "lse\022.\n\037no_standard_descriptor_accessor\030\002" | 633 "se\022$\n\025java_generic_services\030\021 \001(\010:\005false" |
627 " \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003" | 634 "\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022C\n\024" |
628 "(\0132$.google.protobuf.UninterpretedOption" | 635 "uninterpreted_option\030\347\007 \003(\0132$.google.pro" |
629 "*\t\010\350\007\020\200\200\200\200\002\"\224\002\n\014FieldOptions\022:\n\
005ctype\030\001 " | 636 "tobuf.UninterpretedOption\":\n\014OptimizeMod" |
630 "\001(\0162#.google.protobuf.FieldOptions.CType" | 637 "e\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUN
T" |
631 ":\006STRING\022\016\n\006packed\030\002 \001(\010\022\031\n\ndeprecated\030
\003" | 638 "IME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270\001\n\016MessageOp
tions\022&\n\027m" |
632 " \001(\010:\005false\022\034\n\024experimental_map_key\030\t \001(" | 639 "essage_set_wire_format\030\001 \001(\010:\005false\022.\n\037n" |
633 "\t\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.googl" | 640 "o_standard_descriptor_accessor\030\002 \001(\010:\005fa" |
634 "e.protobuf.UninterpretedOption\"/\n\005CType\022" | 641 "lse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goo" |
635 "\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\
020\002*" | 642 "gle.protobuf.UninterpretedOption*\t\010\350\007\020\200\200" |
636 "\t\010\350\007\020\200\200\200\200\002\"]\n\013EnumOptions\022C\n\024uninte
rpret" | 643 "\200\200\002\"\276\002\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162
#.go" |
637 "ed_option\030\347\007 \003(\0132$.google.protobuf.Unint" | 644 "ogle.protobuf.FieldOptions.CType:\006STRING" |
638 "erpretedOption*\t\010\350\007\020\200\200\200\200\002\"b\n\020EnumValueOp" | 645 "\022\016\n\006packed\030\002 \001(\010\022\023\n\004lazy\030\005 \001(\010:
\005false\022\031\n" |
639 "tions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.g" | 646 "\ndeprecated\030\003 \001(\010:\005false\022\034\n\024experimental" |
640 "oogle.protobuf.UninterpretedOption*\t\010\350\007\020" | 647 "_map_key\030\t \001(\t\022\023\n\004weak\030\n \001(\010:\005false\022C\n\0
24u" |
641 "\200\200\200\200\002\"`\n\016ServiceOptions\022C\n\024uninterpreted" | 648 "ninterpreted_option\030\347\007 \003(\0132$.google.prot" |
642 "_option\030\347\007 \003(\0132$.google.protobuf.Uninter" | 649 "obuf.UninterpretedOption\"/\n\005CType\022\n\n\006STR" |
643 "pretedOption*\t\010\350\007\020\200\200\200\200\002\"_\n\rMethodOptions" | 650 "ING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002*\t\
010\350\007\020\200" |
644 "\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.google" | 651 "\200\200\200\002\"x\n\013EnumOptions\022\031\n\013allow_alias\030\002 \001(
\010" |
645 ".protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002" | 652 ":\004true\022C\n\024uninterpreted_option\030\347\007 \003(\0132$." |
646 "\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\0132-" | 653 "google.protobuf.UninterpretedOption*\t\010\350\007" |
647 ".google.protobuf.UninterpretedOption.Nam" | 654 "\020\200\200\200\200\002\"b\n\020EnumValueOptions\022C\n\024uninterpre" |
648 "ePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022posit" | 655 "ted_option\030\347\007 \003(\0132$.google.protobuf.Unin" |
649 "ive_int_value\030\004 \001(\004\022\032\n\022negative_int_valu" | 656 "terpretedOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceOpt" |
650 "e\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\0
14string_" | 657 "ions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go" |
651 "value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n
\010" | 658 "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200" |
652 "NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_extens" | 659 "\200\200\200\002\"_\n\rMethodOptions\022C\n\024uninterpreted_o" |
653 "ion\030\002 \002(\010\"|\n\016SourceCodeInfo\022:\n\010location\030" | 660 "ption\030\347\007 \003(\0132$.google.protobuf.Uninterpr" |
654 "\001 \003(\0132(.google.protobuf.SourceCodeInfo.L" | 661 "etedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Uninterpre
tedO" |
655 "ocation\032.\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001
\022\020\n" | 662 "ption\022;\n\004name\030\002 \003(\0132-.google.protobuf.Un" |
656 "\004span\030\002 \003(\005B\002\020\001B)\n\023com.google.protobufB\020" | 663 "interpretedOption.NamePart\022\030\n\020identifier" |
657 "DescriptorProtosH\001", 3978); | 664 "_value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004" |
| 665 "\022\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_v" |
| 666 "alue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\
n\017aggr" |
| 667 "egate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_pa" |
| 668 "rt\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\261\001\n\
016Sourc" |
| 669 "eCodeInfo\022:\n\010location\030\001 \003(\0132(.google.pro" |
| 670 "tobuf.SourceCodeInfo.Location\032c\n\010Locatio" |
| 671 "n\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\00
2 \003(\005B\002\020\001\022\030\n" |
| 672 "\020leading_comments\030\003 \001(\t\022\031\n\021trailing_comm" |
| 673 "ents\030\004 \001(\tB)\n\023com.google.protobufB\020Descr" |
| 674 "iptorProtosH\001", 4173); |
658 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 675 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
659 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); | 676 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); |
660 FileDescriptorSet::default_instance_ = new FileDescriptorSet(); | 677 FileDescriptorSet::default_instance_ = new FileDescriptorSet(); |
661 FileDescriptorProto::default_instance_ = new FileDescriptorProto(); | 678 FileDescriptorProto::default_instance_ = new FileDescriptorProto(); |
662 DescriptorProto::default_instance_ = new DescriptorProto(); | 679 DescriptorProto::default_instance_ = new DescriptorProto(); |
663 DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_Extens
ionRange(); | 680 DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_Extens
ionRange(); |
664 FieldDescriptorProto::default_instance_ = new FieldDescriptorProto(); | 681 FieldDescriptorProto::default_instance_ = new FieldDescriptorProto(); |
665 EnumDescriptorProto::default_instance_ = new EnumDescriptorProto(); | 682 EnumDescriptorProto::default_instance_ = new EnumDescriptorProto(); |
666 EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto(); | 683 EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto(); |
667 ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto(); | 684 ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 parse_file: | 798 parse_file: |
782 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 799 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
783 input, add_file())); | 800 input, add_file())); |
784 } else { | 801 } else { |
785 goto handle_uninterpreted; | 802 goto handle_uninterpreted; |
786 } | 803 } |
787 if (input->ExpectTag(10)) goto parse_file; | 804 if (input->ExpectTag(10)) goto parse_file; |
788 if (input->ExpectAtEnd()) return true; | 805 if (input->ExpectAtEnd()) return true; |
789 break; | 806 break; |
790 } | 807 } |
791 | 808 |
792 default: { | 809 default: { |
793 handle_uninterpreted: | 810 handle_uninterpreted: |
794 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 811 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
795 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 812 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
796 return true; | 813 return true; |
797 } | 814 } |
798 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 815 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 816 input, tag, mutable_unknown_fields())); |
799 break; | 817 break; |
800 } | 818 } |
801 } | 819 } |
802 } | 820 } |
803 return true; | 821 return true; |
804 #undef DO_ | 822 #undef DO_ |
805 } | 823 } |
806 | 824 |
807 void FileDescriptorSet::SerializeWithCachedSizes( | 825 void FileDescriptorSet::SerializeWithCachedSizes( |
808 ::google::protobuf::io::CodedOutputStream* output) const { | 826 ::google::protobuf::io::CodedOutputStream* output) const { |
809 // repeated .google.protobuf.FileDescriptorProto file = 1; | 827 // repeated .google.protobuf.FileDescriptorProto file = 1; |
810 for (int i = 0; i < this->file_size(); i++) { | 828 for (int i = 0; i < this->file_size(); i++) { |
811 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 829 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
812 1, this->file(i), output); | 830 1, this->file(i), output); |
813 } | 831 } |
814 | 832 |
815 if (!unknown_fields().empty()) { | 833 if (!unknown_fields().empty()) { |
816 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 834 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
817 unknown_fields(), output); | 835 unknown_fields(), output); |
818 } | 836 } |
819 } | 837 } |
820 | 838 |
821 ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray( | 839 ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray( |
822 ::google::protobuf::uint8* target) const { | 840 ::google::protobuf::uint8* target) const { |
823 // repeated .google.protobuf.FileDescriptorProto file = 1; | 841 // repeated .google.protobuf.FileDescriptorProto file = 1; |
824 for (int i = 0; i < this->file_size(); i++) { | 842 for (int i = 0; i < this->file_size(); i++) { |
825 target = ::google::protobuf::internal::WireFormatLite:: | 843 target = ::google::protobuf::internal::WireFormatLite:: |
826 WriteMessageNoVirtualToArray( | 844 WriteMessageNoVirtualToArray( |
827 1, this->file(i), target); | 845 1, this->file(i), target); |
828 } | 846 } |
829 | 847 |
830 if (!unknown_fields().empty()) { | 848 if (!unknown_fields().empty()) { |
831 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 849 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
832 unknown_fields(), target); | 850 unknown_fields(), target); |
833 } | 851 } |
834 return target; | 852 return target; |
835 } | 853 } |
836 | 854 |
837 int FileDescriptorSet::ByteSize() const { | 855 int FileDescriptorSet::ByteSize() const { |
838 int total_size = 0; | 856 int total_size = 0; |
839 | 857 |
840 // repeated .google.protobuf.FileDescriptorProto file = 1; | 858 // repeated .google.protobuf.FileDescriptorProto file = 1; |
841 total_size += 1 * this->file_size(); | 859 total_size += 1 * this->file_size(); |
842 for (int i = 0; i < this->file_size(); i++) { | 860 for (int i = 0; i < this->file_size(); i++) { |
843 total_size += | 861 total_size += |
844 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 862 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
845 this->file(i)); | 863 this->file(i)); |
846 } | 864 } |
847 | 865 |
848 if (!unknown_fields().empty()) { | 866 if (!unknown_fields().empty()) { |
849 total_size += | 867 total_size += |
850 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 868 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
851 unknown_fields()); | 869 unknown_fields()); |
852 } | 870 } |
853 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 871 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
854 _cached_size_ = total_size; | 872 _cached_size_ = total_size; |
855 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 873 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
856 return total_size; | 874 return total_size; |
857 } | 875 } |
(...skipping 22 matching lines...) Expand all Loading... |
880 MergeFrom(from); | 898 MergeFrom(from); |
881 } | 899 } |
882 | 900 |
883 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { | 901 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { |
884 if (&from == this) return; | 902 if (&from == this) return; |
885 Clear(); | 903 Clear(); |
886 MergeFrom(from); | 904 MergeFrom(from); |
887 } | 905 } |
888 | 906 |
889 bool FileDescriptorSet::IsInitialized() const { | 907 bool FileDescriptorSet::IsInitialized() const { |
890 | 908 |
891 for (int i = 0; i < file_size(); i++) { | 909 for (int i = 0; i < file_size(); i++) { |
892 if (!this->file(i).IsInitialized()) return false; | 910 if (!this->file(i).IsInitialized()) return false; |
893 } | 911 } |
894 return true; | 912 return true; |
895 } | 913 } |
896 | 914 |
897 void FileDescriptorSet::Swap(FileDescriptorSet* other) { | 915 void FileDescriptorSet::Swap(FileDescriptorSet* other) { |
898 if (other != this) { | 916 if (other != this) { |
899 file_.Swap(&other->file_); | 917 file_.Swap(&other->file_); |
900 std::swap(_has_bits_[0], other->_has_bits_[0]); | 918 std::swap(_has_bits_[0], other->_has_bits_[0]); |
(...skipping 10 matching lines...) Expand all Loading... |
911 return metadata; | 929 return metadata; |
912 } | 930 } |
913 | 931 |
914 | 932 |
915 // =================================================================== | 933 // =================================================================== |
916 | 934 |
917 #ifndef _MSC_VER | 935 #ifndef _MSC_VER |
918 const int FileDescriptorProto::kNameFieldNumber; | 936 const int FileDescriptorProto::kNameFieldNumber; |
919 const int FileDescriptorProto::kPackageFieldNumber; | 937 const int FileDescriptorProto::kPackageFieldNumber; |
920 const int FileDescriptorProto::kDependencyFieldNumber; | 938 const int FileDescriptorProto::kDependencyFieldNumber; |
| 939 const int FileDescriptorProto::kPublicDependencyFieldNumber; |
| 940 const int FileDescriptorProto::kWeakDependencyFieldNumber; |
921 const int FileDescriptorProto::kMessageTypeFieldNumber; | 941 const int FileDescriptorProto::kMessageTypeFieldNumber; |
922 const int FileDescriptorProto::kEnumTypeFieldNumber; | 942 const int FileDescriptorProto::kEnumTypeFieldNumber; |
923 const int FileDescriptorProto::kServiceFieldNumber; | 943 const int FileDescriptorProto::kServiceFieldNumber; |
924 const int FileDescriptorProto::kExtensionFieldNumber; | 944 const int FileDescriptorProto::kExtensionFieldNumber; |
925 const int FileDescriptorProto::kOptionsFieldNumber; | 945 const int FileDescriptorProto::kOptionsFieldNumber; |
926 const int FileDescriptorProto::kSourceCodeInfoFieldNumber; | 946 const int FileDescriptorProto::kSourceCodeInfoFieldNumber; |
927 #endif // !_MSC_VER | 947 #endif // !_MSC_VER |
928 | 948 |
929 FileDescriptorProto::FileDescriptorProto() | 949 FileDescriptorProto::FileDescriptorProto() |
930 : ::google::protobuf::Message() { | 950 : ::google::protobuf::Message() { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 if (has_name()) { | 1014 if (has_name()) { |
995 if (name_ != &::google::protobuf::internal::kEmptyString) { | 1015 if (name_ != &::google::protobuf::internal::kEmptyString) { |
996 name_->clear(); | 1016 name_->clear(); |
997 } | 1017 } |
998 } | 1018 } |
999 if (has_package()) { | 1019 if (has_package()) { |
1000 if (package_ != &::google::protobuf::internal::kEmptyString) { | 1020 if (package_ != &::google::protobuf::internal::kEmptyString) { |
1001 package_->clear(); | 1021 package_->clear(); |
1002 } | 1022 } |
1003 } | 1023 } |
| 1024 } |
| 1025 if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) { |
1004 if (has_options()) { | 1026 if (has_options()) { |
1005 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); | 1027 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
1006 } | 1028 } |
1007 } | |
1008 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { | |
1009 if (has_source_code_info()) { | 1029 if (has_source_code_info()) { |
1010 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::Sour
ceCodeInfo::Clear(); | 1030 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::Sour
ceCodeInfo::Clear(); |
1011 } | 1031 } |
1012 } | 1032 } |
1013 dependency_.Clear(); | 1033 dependency_.Clear(); |
| 1034 public_dependency_.Clear(); |
| 1035 weak_dependency_.Clear(); |
1014 message_type_.Clear(); | 1036 message_type_.Clear(); |
1015 enum_type_.Clear(); | 1037 enum_type_.Clear(); |
1016 service_.Clear(); | 1038 service_.Clear(); |
1017 extension_.Clear(); | 1039 extension_.Clear(); |
1018 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 1040 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
1019 mutable_unknown_fields()->Clear(); | 1041 mutable_unknown_fields()->Clear(); |
1020 } | 1042 } |
1021 | 1043 |
1022 bool FileDescriptorProto::MergePartialFromCodedStream( | 1044 bool FileDescriptorProto::MergePartialFromCodedStream( |
1023 ::google::protobuf::io::CodedInputStream* input) { | 1045 ::google::protobuf::io::CodedInputStream* input) { |
1024 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | 1046 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
1025 ::google::protobuf::uint32 tag; | 1047 ::google::protobuf::uint32 tag; |
1026 while ((tag = input->ReadTag()) != 0) { | 1048 while ((tag = input->ReadTag()) != 0) { |
1027 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1049 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
1028 // optional string name = 1; | 1050 // optional string name = 1; |
1029 case 1: { | 1051 case 1: { |
1030 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1052 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1031 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1053 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1032 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1054 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1033 input, this->mutable_name())); | 1055 input, this->mutable_name())); |
1034 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1056 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1035 this->name().data(), this->name().length(), | 1057 this->name().data(), this->name().length(), |
1036 ::google::protobuf::internal::WireFormat::PARSE); | 1058 ::google::protobuf::internal::WireFormat::PARSE); |
1037 } else { | 1059 } else { |
1038 goto handle_uninterpreted; | 1060 goto handle_uninterpreted; |
1039 } | 1061 } |
1040 if (input->ExpectTag(18)) goto parse_package; | 1062 if (input->ExpectTag(18)) goto parse_package; |
1041 break; | 1063 break; |
1042 } | 1064 } |
1043 | 1065 |
1044 // optional string package = 2; | 1066 // optional string package = 2; |
1045 case 2: { | 1067 case 2: { |
1046 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1068 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1047 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1069 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1048 parse_package: | 1070 parse_package: |
1049 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1071 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1050 input, this->mutable_package())); | 1072 input, this->mutable_package())); |
1051 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1073 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1052 this->package().data(), this->package().length(), | 1074 this->package().data(), this->package().length(), |
1053 ::google::protobuf::internal::WireFormat::PARSE); | 1075 ::google::protobuf::internal::WireFormat::PARSE); |
1054 } else { | 1076 } else { |
1055 goto handle_uninterpreted; | 1077 goto handle_uninterpreted; |
1056 } | 1078 } |
1057 if (input->ExpectTag(26)) goto parse_dependency; | 1079 if (input->ExpectTag(26)) goto parse_dependency; |
1058 break; | 1080 break; |
1059 } | 1081 } |
1060 | 1082 |
1061 // repeated string dependency = 3; | 1083 // repeated string dependency = 3; |
1062 case 3: { | 1084 case 3: { |
1063 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1085 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1064 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1086 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1065 parse_dependency: | 1087 parse_dependency: |
1066 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1088 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1067 input, this->add_dependency())); | 1089 input, this->add_dependency())); |
1068 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1090 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1069 this->dependency(this->dependency_size() - 1).data(), | 1091 this->dependency(this->dependency_size() - 1).data(), |
1070 this->dependency(this->dependency_size() - 1).length(), | 1092 this->dependency(this->dependency_size() - 1).length(), |
1071 ::google::protobuf::internal::WireFormat::PARSE); | 1093 ::google::protobuf::internal::WireFormat::PARSE); |
1072 } else { | 1094 } else { |
1073 goto handle_uninterpreted; | 1095 goto handle_uninterpreted; |
1074 } | 1096 } |
1075 if (input->ExpectTag(26)) goto parse_dependency; | 1097 if (input->ExpectTag(26)) goto parse_dependency; |
1076 if (input->ExpectTag(34)) goto parse_message_type; | 1098 if (input->ExpectTag(34)) goto parse_message_type; |
1077 break; | 1099 break; |
1078 } | 1100 } |
1079 | 1101 |
1080 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1102 // repeated .google.protobuf.DescriptorProto message_type = 4; |
1081 case 4: { | 1103 case 4: { |
1082 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1104 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1083 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1105 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1084 parse_message_type: | 1106 parse_message_type: |
1085 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1107 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1086 input, add_message_type())); | 1108 input, add_message_type())); |
1087 } else { | 1109 } else { |
1088 goto handle_uninterpreted; | 1110 goto handle_uninterpreted; |
1089 } | 1111 } |
1090 if (input->ExpectTag(34)) goto parse_message_type; | 1112 if (input->ExpectTag(34)) goto parse_message_type; |
1091 if (input->ExpectTag(42)) goto parse_enum_type; | 1113 if (input->ExpectTag(42)) goto parse_enum_type; |
1092 break; | 1114 break; |
1093 } | 1115 } |
1094 | 1116 |
1095 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1117 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
1096 case 5: { | 1118 case 5: { |
1097 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1119 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1098 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1120 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1099 parse_enum_type: | 1121 parse_enum_type: |
1100 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1122 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1101 input, add_enum_type())); | 1123 input, add_enum_type())); |
1102 } else { | 1124 } else { |
1103 goto handle_uninterpreted; | 1125 goto handle_uninterpreted; |
1104 } | 1126 } |
1105 if (input->ExpectTag(42)) goto parse_enum_type; | 1127 if (input->ExpectTag(42)) goto parse_enum_type; |
1106 if (input->ExpectTag(50)) goto parse_service; | 1128 if (input->ExpectTag(50)) goto parse_service; |
1107 break; | 1129 break; |
1108 } | 1130 } |
1109 | 1131 |
1110 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1132 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
1111 case 6: { | 1133 case 6: { |
1112 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1134 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1113 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1135 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1114 parse_service: | 1136 parse_service: |
1115 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1137 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1116 input, add_service())); | 1138 input, add_service())); |
1117 } else { | 1139 } else { |
1118 goto handle_uninterpreted; | 1140 goto handle_uninterpreted; |
1119 } | 1141 } |
1120 if (input->ExpectTag(50)) goto parse_service; | 1142 if (input->ExpectTag(50)) goto parse_service; |
1121 if (input->ExpectTag(58)) goto parse_extension; | 1143 if (input->ExpectTag(58)) goto parse_extension; |
1122 break; | 1144 break; |
1123 } | 1145 } |
1124 | 1146 |
1125 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1147 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
1126 case 7: { | 1148 case 7: { |
1127 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1149 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1128 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1150 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1129 parse_extension: | 1151 parse_extension: |
1130 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1152 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1131 input, add_extension())); | 1153 input, add_extension())); |
1132 } else { | 1154 } else { |
1133 goto handle_uninterpreted; | 1155 goto handle_uninterpreted; |
1134 } | 1156 } |
1135 if (input->ExpectTag(58)) goto parse_extension; | 1157 if (input->ExpectTag(58)) goto parse_extension; |
1136 if (input->ExpectTag(66)) goto parse_options; | 1158 if (input->ExpectTag(66)) goto parse_options; |
1137 break; | 1159 break; |
1138 } | 1160 } |
1139 | 1161 |
1140 // optional .google.protobuf.FileOptions options = 8; | 1162 // optional .google.protobuf.FileOptions options = 8; |
1141 case 8: { | 1163 case 8: { |
1142 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1164 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1143 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1144 parse_options: | 1166 parse_options: |
1145 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1167 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1146 input, mutable_options())); | 1168 input, mutable_options())); |
1147 } else { | 1169 } else { |
1148 goto handle_uninterpreted; | 1170 goto handle_uninterpreted; |
1149 } | 1171 } |
1150 if (input->ExpectTag(74)) goto parse_source_code_info; | 1172 if (input->ExpectTag(74)) goto parse_source_code_info; |
1151 break; | 1173 break; |
1152 } | 1174 } |
1153 | 1175 |
1154 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 1176 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
1155 case 9: { | 1177 case 9: { |
1156 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1178 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1157 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1179 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1158 parse_source_code_info: | 1180 parse_source_code_info: |
1159 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1181 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1160 input, mutable_source_code_info())); | 1182 input, mutable_source_code_info())); |
1161 } else { | 1183 } else { |
1162 goto handle_uninterpreted; | 1184 goto handle_uninterpreted; |
1163 } | 1185 } |
| 1186 if (input->ExpectTag(80)) goto parse_public_dependency; |
| 1187 break; |
| 1188 } |
| 1189 |
| 1190 // repeated int32 public_dependency = 10; |
| 1191 case 10: { |
| 1192 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1193 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1194 parse_public_dependency: |
| 1195 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
ve< |
| 1196 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1197 1, 80, input, this->mutable_public_dependency()))); |
| 1198 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(
tag) |
| 1199 == ::google::protobuf::internal::WireFormatLite:: |
| 1200 WIRETYPE_LENGTH_DELIMITED) { |
| 1201 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
NoInline< |
| 1202 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1203 input, this->mutable_public_dependency()))); |
| 1204 } else { |
| 1205 goto handle_uninterpreted; |
| 1206 } |
| 1207 if (input->ExpectTag(80)) goto parse_public_dependency; |
| 1208 if (input->ExpectTag(88)) goto parse_weak_dependency; |
| 1209 break; |
| 1210 } |
| 1211 |
| 1212 // repeated int32 weak_dependency = 11; |
| 1213 case 11: { |
| 1214 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1215 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1216 parse_weak_dependency: |
| 1217 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
ve< |
| 1218 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1219 1, 88, input, this->mutable_weak_dependency()))); |
| 1220 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(
tag) |
| 1221 == ::google::protobuf::internal::WireFormatLite:: |
| 1222 WIRETYPE_LENGTH_DELIMITED) { |
| 1223 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
NoInline< |
| 1224 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1225 input, this->mutable_weak_dependency()))); |
| 1226 } else { |
| 1227 goto handle_uninterpreted; |
| 1228 } |
| 1229 if (input->ExpectTag(88)) goto parse_weak_dependency; |
1164 if (input->ExpectAtEnd()) return true; | 1230 if (input->ExpectAtEnd()) return true; |
1165 break; | 1231 break; |
1166 } | 1232 } |
1167 | 1233 |
1168 default: { | 1234 default: { |
1169 handle_uninterpreted: | 1235 handle_uninterpreted: |
1170 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1236 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1171 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1237 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
1172 return true; | 1238 return true; |
1173 } | 1239 } |
1174 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 1240 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 1241 input, tag, mutable_unknown_fields())); |
1175 break; | 1242 break; |
1176 } | 1243 } |
1177 } | 1244 } |
1178 } | 1245 } |
1179 return true; | 1246 return true; |
1180 #undef DO_ | 1247 #undef DO_ |
1181 } | 1248 } |
1182 | 1249 |
1183 void FileDescriptorProto::SerializeWithCachedSizes( | 1250 void FileDescriptorProto::SerializeWithCachedSizes( |
1184 ::google::protobuf::io::CodedOutputStream* output) const { | 1251 ::google::protobuf::io::CodedOutputStream* output) const { |
1185 // optional string name = 1; | 1252 // optional string name = 1; |
1186 if (has_name()) { | 1253 if (has_name()) { |
1187 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1254 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1188 this->name().data(), this->name().length(), | 1255 this->name().data(), this->name().length(), |
1189 ::google::protobuf::internal::WireFormat::SERIALIZE); | 1256 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1190 ::google::protobuf::internal::WireFormatLite::WriteString( | 1257 ::google::protobuf::internal::WireFormatLite::WriteString( |
1191 1, this->name(), output); | 1258 1, this->name(), output); |
1192 } | 1259 } |
1193 | 1260 |
1194 // optional string package = 2; | 1261 // optional string package = 2; |
1195 if (has_package()) { | 1262 if (has_package()) { |
1196 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1263 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1197 this->package().data(), this->package().length(), | 1264 this->package().data(), this->package().length(), |
1198 ::google::protobuf::internal::WireFormat::SERIALIZE); | 1265 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1199 ::google::protobuf::internal::WireFormatLite::WriteString( | 1266 ::google::protobuf::internal::WireFormatLite::WriteString( |
1200 2, this->package(), output); | 1267 2, this->package(), output); |
1201 } | 1268 } |
1202 | 1269 |
1203 // repeated string dependency = 3; | 1270 // repeated string dependency = 3; |
1204 for (int i = 0; i < this->dependency_size(); i++) { | 1271 for (int i = 0; i < this->dependency_size(); i++) { |
1205 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1272 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1206 this->dependency(i).data(), this->dependency(i).length(), | 1273 this->dependency(i).data(), this->dependency(i).length(), |
1207 ::google::protobuf::internal::WireFormat::SERIALIZE); | 1274 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1208 ::google::protobuf::internal::WireFormatLite::WriteString( | 1275 ::google::protobuf::internal::WireFormatLite::WriteString( |
1209 3, this->dependency(i), output); | 1276 3, this->dependency(i), output); |
1210 } | 1277 } |
1211 | 1278 |
1212 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1279 // repeated .google.protobuf.DescriptorProto message_type = 4; |
1213 for (int i = 0; i < this->message_type_size(); i++) { | 1280 for (int i = 0; i < this->message_type_size(); i++) { |
1214 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1281 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1215 4, this->message_type(i), output); | 1282 4, this->message_type(i), output); |
1216 } | 1283 } |
1217 | 1284 |
1218 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1285 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
1219 for (int i = 0; i < this->enum_type_size(); i++) { | 1286 for (int i = 0; i < this->enum_type_size(); i++) { |
1220 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1287 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1221 5, this->enum_type(i), output); | 1288 5, this->enum_type(i), output); |
1222 } | 1289 } |
1223 | 1290 |
1224 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1291 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
1225 for (int i = 0; i < this->service_size(); i++) { | 1292 for (int i = 0; i < this->service_size(); i++) { |
1226 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1293 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1227 6, this->service(i), output); | 1294 6, this->service(i), output); |
1228 } | 1295 } |
1229 | 1296 |
1230 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1297 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
1231 for (int i = 0; i < this->extension_size(); i++) { | 1298 for (int i = 0; i < this->extension_size(); i++) { |
1232 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1299 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1233 7, this->extension(i), output); | 1300 7, this->extension(i), output); |
1234 } | 1301 } |
1235 | 1302 |
1236 // optional .google.protobuf.FileOptions options = 8; | 1303 // optional .google.protobuf.FileOptions options = 8; |
1237 if (has_options()) { | 1304 if (has_options()) { |
1238 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1305 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1239 8, this->options(), output); | 1306 8, this->options(), output); |
1240 } | 1307 } |
1241 | 1308 |
1242 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 1309 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
1243 if (has_source_code_info()) { | 1310 if (has_source_code_info()) { |
1244 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1311 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1245 9, this->source_code_info(), output); | 1312 9, this->source_code_info(), output); |
1246 } | 1313 } |
1247 | 1314 |
| 1315 // repeated int32 public_dependency = 10; |
| 1316 for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1317 ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1318 10, this->public_dependency(i), output); |
| 1319 } |
| 1320 |
| 1321 // repeated int32 weak_dependency = 11; |
| 1322 for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1323 ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1324 11, this->weak_dependency(i), output); |
| 1325 } |
| 1326 |
1248 if (!unknown_fields().empty()) { | 1327 if (!unknown_fields().empty()) { |
1249 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 1328 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
1250 unknown_fields(), output); | 1329 unknown_fields(), output); |
1251 } | 1330 } |
1252 } | 1331 } |
1253 | 1332 |
1254 ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray( | 1333 ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray( |
1255 ::google::protobuf::uint8* target) const { | 1334 ::google::protobuf::uint8* target) const { |
1256 // optional string name = 1; | 1335 // optional string name = 1; |
1257 if (has_name()) { | 1336 if (has_name()) { |
1258 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1337 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1259 this->name().data(), this->name().length(), | 1338 this->name().data(), this->name().length(), |
1260 ::google::protobuf::internal::WireFormat::SERIALIZE); | 1339 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1261 target = | 1340 target = |
1262 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 1341 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1263 1, this->name(), target); | 1342 1, this->name(), target); |
1264 } | 1343 } |
1265 | 1344 |
1266 // optional string package = 2; | 1345 // optional string package = 2; |
1267 if (has_package()) { | 1346 if (has_package()) { |
1268 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1347 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1269 this->package().data(), this->package().length(), | 1348 this->package().data(), this->package().length(), |
1270 ::google::protobuf::internal::WireFormat::SERIALIZE); | 1349 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1271 target = | 1350 target = |
1272 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 1351 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1273 2, this->package(), target); | 1352 2, this->package(), target); |
1274 } | 1353 } |
1275 | 1354 |
1276 // repeated string dependency = 3; | 1355 // repeated string dependency = 3; |
1277 for (int i = 0; i < this->dependency_size(); i++) { | 1356 for (int i = 0; i < this->dependency_size(); i++) { |
1278 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1357 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1279 this->dependency(i).data(), this->dependency(i).length(), | 1358 this->dependency(i).data(), this->dependency(i).length(), |
1280 ::google::protobuf::internal::WireFormat::SERIALIZE); | 1359 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1281 target = ::google::protobuf::internal::WireFormatLite:: | 1360 target = ::google::protobuf::internal::WireFormatLite:: |
1282 WriteStringToArray(3, this->dependency(i), target); | 1361 WriteStringToArray(3, this->dependency(i), target); |
1283 } | 1362 } |
1284 | 1363 |
1285 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1364 // repeated .google.protobuf.DescriptorProto message_type = 4; |
1286 for (int i = 0; i < this->message_type_size(); i++) { | 1365 for (int i = 0; i < this->message_type_size(); i++) { |
1287 target = ::google::protobuf::internal::WireFormatLite:: | 1366 target = ::google::protobuf::internal::WireFormatLite:: |
1288 WriteMessageNoVirtualToArray( | 1367 WriteMessageNoVirtualToArray( |
1289 4, this->message_type(i), target); | 1368 4, this->message_type(i), target); |
1290 } | 1369 } |
1291 | 1370 |
1292 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1371 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
1293 for (int i = 0; i < this->enum_type_size(); i++) { | 1372 for (int i = 0; i < this->enum_type_size(); i++) { |
1294 target = ::google::protobuf::internal::WireFormatLite:: | 1373 target = ::google::protobuf::internal::WireFormatLite:: |
1295 WriteMessageNoVirtualToArray( | 1374 WriteMessageNoVirtualToArray( |
1296 5, this->enum_type(i), target); | 1375 5, this->enum_type(i), target); |
1297 } | 1376 } |
1298 | 1377 |
1299 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1378 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
1300 for (int i = 0; i < this->service_size(); i++) { | 1379 for (int i = 0; i < this->service_size(); i++) { |
1301 target = ::google::protobuf::internal::WireFormatLite:: | 1380 target = ::google::protobuf::internal::WireFormatLite:: |
1302 WriteMessageNoVirtualToArray( | 1381 WriteMessageNoVirtualToArray( |
1303 6, this->service(i), target); | 1382 6, this->service(i), target); |
1304 } | 1383 } |
1305 | 1384 |
1306 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1385 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
1307 for (int i = 0; i < this->extension_size(); i++) { | 1386 for (int i = 0; i < this->extension_size(); i++) { |
1308 target = ::google::protobuf::internal::WireFormatLite:: | 1387 target = ::google::protobuf::internal::WireFormatLite:: |
1309 WriteMessageNoVirtualToArray( | 1388 WriteMessageNoVirtualToArray( |
1310 7, this->extension(i), target); | 1389 7, this->extension(i), target); |
1311 } | 1390 } |
1312 | 1391 |
1313 // optional .google.protobuf.FileOptions options = 8; | 1392 // optional .google.protobuf.FileOptions options = 8; |
1314 if (has_options()) { | 1393 if (has_options()) { |
1315 target = ::google::protobuf::internal::WireFormatLite:: | 1394 target = ::google::protobuf::internal::WireFormatLite:: |
1316 WriteMessageNoVirtualToArray( | 1395 WriteMessageNoVirtualToArray( |
1317 8, this->options(), target); | 1396 8, this->options(), target); |
1318 } | 1397 } |
1319 | 1398 |
1320 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 1399 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
1321 if (has_source_code_info()) { | 1400 if (has_source_code_info()) { |
1322 target = ::google::protobuf::internal::WireFormatLite:: | 1401 target = ::google::protobuf::internal::WireFormatLite:: |
1323 WriteMessageNoVirtualToArray( | 1402 WriteMessageNoVirtualToArray( |
1324 9, this->source_code_info(), target); | 1403 9, this->source_code_info(), target); |
1325 } | 1404 } |
1326 | 1405 |
| 1406 // repeated int32 public_dependency = 10; |
| 1407 for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1408 target = ::google::protobuf::internal::WireFormatLite:: |
| 1409 WriteInt32ToArray(10, this->public_dependency(i), target); |
| 1410 } |
| 1411 |
| 1412 // repeated int32 weak_dependency = 11; |
| 1413 for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1414 target = ::google::protobuf::internal::WireFormatLite:: |
| 1415 WriteInt32ToArray(11, this->weak_dependency(i), target); |
| 1416 } |
| 1417 |
1327 if (!unknown_fields().empty()) { | 1418 if (!unknown_fields().empty()) { |
1328 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 1419 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
1329 unknown_fields(), target); | 1420 unknown_fields(), target); |
1330 } | 1421 } |
1331 return target; | 1422 return target; |
1332 } | 1423 } |
1333 | 1424 |
1334 int FileDescriptorProto::ByteSize() const { | 1425 int FileDescriptorProto::ByteSize() const { |
1335 int total_size = 0; | 1426 int total_size = 0; |
1336 | 1427 |
1337 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 1428 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
1338 // optional string name = 1; | 1429 // optional string name = 1; |
1339 if (has_name()) { | 1430 if (has_name()) { |
1340 total_size += 1 + | 1431 total_size += 1 + |
1341 ::google::protobuf::internal::WireFormatLite::StringSize( | 1432 ::google::protobuf::internal::WireFormatLite::StringSize( |
1342 this->name()); | 1433 this->name()); |
1343 } | 1434 } |
1344 | 1435 |
1345 // optional string package = 2; | 1436 // optional string package = 2; |
1346 if (has_package()) { | 1437 if (has_package()) { |
1347 total_size += 1 + | 1438 total_size += 1 + |
1348 ::google::protobuf::internal::WireFormatLite::StringSize( | 1439 ::google::protobuf::internal::WireFormatLite::StringSize( |
1349 this->package()); | 1440 this->package()); |
1350 } | 1441 } |
1351 | 1442 |
| 1443 } |
| 1444 if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) { |
1352 // optional .google.protobuf.FileOptions options = 8; | 1445 // optional .google.protobuf.FileOptions options = 8; |
1353 if (has_options()) { | 1446 if (has_options()) { |
1354 total_size += 1 + | 1447 total_size += 1 + |
1355 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 1448 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
1356 this->options()); | 1449 this->options()); |
1357 } | 1450 } |
1358 | 1451 |
1359 } | |
1360 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { | |
1361 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 1452 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
1362 if (has_source_code_info()) { | 1453 if (has_source_code_info()) { |
1363 total_size += 1 + | 1454 total_size += 1 + |
1364 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 1455 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
1365 this->source_code_info()); | 1456 this->source_code_info()); |
1366 } | 1457 } |
1367 | 1458 |
1368 } | 1459 } |
1369 // repeated string dependency = 3; | 1460 // repeated string dependency = 3; |
1370 total_size += 1 * this->dependency_size(); | 1461 total_size += 1 * this->dependency_size(); |
1371 for (int i = 0; i < this->dependency_size(); i++) { | 1462 for (int i = 0; i < this->dependency_size(); i++) { |
1372 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | 1463 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
1373 this->dependency(i)); | 1464 this->dependency(i)); |
1374 } | 1465 } |
1375 | 1466 |
| 1467 // repeated int32 public_dependency = 10; |
| 1468 { |
| 1469 int data_size = 0; |
| 1470 for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1471 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1472 Int32Size(this->public_dependency(i)); |
| 1473 } |
| 1474 total_size += 1 * this->public_dependency_size() + data_size; |
| 1475 } |
| 1476 |
| 1477 // repeated int32 weak_dependency = 11; |
| 1478 { |
| 1479 int data_size = 0; |
| 1480 for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1481 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1482 Int32Size(this->weak_dependency(i)); |
| 1483 } |
| 1484 total_size += 1 * this->weak_dependency_size() + data_size; |
| 1485 } |
| 1486 |
1376 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1487 // repeated .google.protobuf.DescriptorProto message_type = 4; |
1377 total_size += 1 * this->message_type_size(); | 1488 total_size += 1 * this->message_type_size(); |
1378 for (int i = 0; i < this->message_type_size(); i++) { | 1489 for (int i = 0; i < this->message_type_size(); i++) { |
1379 total_size += | 1490 total_size += |
1380 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 1491 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
1381 this->message_type(i)); | 1492 this->message_type(i)); |
1382 } | 1493 } |
1383 | 1494 |
1384 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1495 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
1385 total_size += 1 * this->enum_type_size(); | 1496 total_size += 1 * this->enum_type_size(); |
1386 for (int i = 0; i < this->enum_type_size(); i++) { | 1497 for (int i = 0; i < this->enum_type_size(); i++) { |
1387 total_size += | 1498 total_size += |
1388 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 1499 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
1389 this->enum_type(i)); | 1500 this->enum_type(i)); |
1390 } | 1501 } |
1391 | 1502 |
1392 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1503 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
1393 total_size += 1 * this->service_size(); | 1504 total_size += 1 * this->service_size(); |
1394 for (int i = 0; i < this->service_size(); i++) { | 1505 for (int i = 0; i < this->service_size(); i++) { |
1395 total_size += | 1506 total_size += |
1396 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 1507 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
1397 this->service(i)); | 1508 this->service(i)); |
1398 } | 1509 } |
1399 | 1510 |
1400 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1511 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
1401 total_size += 1 * this->extension_size(); | 1512 total_size += 1 * this->extension_size(); |
1402 for (int i = 0; i < this->extension_size(); i++) { | 1513 for (int i = 0; i < this->extension_size(); i++) { |
1403 total_size += | 1514 total_size += |
1404 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 1515 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
1405 this->extension(i)); | 1516 this->extension(i)); |
1406 } | 1517 } |
1407 | 1518 |
1408 if (!unknown_fields().empty()) { | 1519 if (!unknown_fields().empty()) { |
1409 total_size += | 1520 total_size += |
1410 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 1521 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
1411 unknown_fields()); | 1522 unknown_fields()); |
1412 } | 1523 } |
1413 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1524 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1414 _cached_size_ = total_size; | 1525 _cached_size_ = total_size; |
1415 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1526 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1416 return total_size; | 1527 return total_size; |
1417 } | 1528 } |
1418 | 1529 |
1419 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 1530 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
1420 GOOGLE_CHECK_NE(&from, this); | 1531 GOOGLE_CHECK_NE(&from, this); |
1421 const FileDescriptorProto* source = | 1532 const FileDescriptorProto* source = |
1422 ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptor
Proto*>( | 1533 ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptor
Proto*>( |
1423 &from); | 1534 &from); |
1424 if (source == NULL) { | 1535 if (source == NULL) { |
1425 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1536 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1426 } else { | 1537 } else { |
1427 MergeFrom(*source); | 1538 MergeFrom(*source); |
1428 } | 1539 } |
1429 } | 1540 } |
1430 | 1541 |
1431 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { | 1542 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { |
1432 GOOGLE_CHECK_NE(&from, this); | 1543 GOOGLE_CHECK_NE(&from, this); |
1433 dependency_.MergeFrom(from.dependency_); | 1544 dependency_.MergeFrom(from.dependency_); |
| 1545 public_dependency_.MergeFrom(from.public_dependency_); |
| 1546 weak_dependency_.MergeFrom(from.weak_dependency_); |
1434 message_type_.MergeFrom(from.message_type_); | 1547 message_type_.MergeFrom(from.message_type_); |
1435 enum_type_.MergeFrom(from.enum_type_); | 1548 enum_type_.MergeFrom(from.enum_type_); |
1436 service_.MergeFrom(from.service_); | 1549 service_.MergeFrom(from.service_); |
1437 extension_.MergeFrom(from.extension_); | 1550 extension_.MergeFrom(from.extension_); |
1438 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 1551 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
1439 if (from.has_name()) { | 1552 if (from.has_name()) { |
1440 set_name(from.name()); | 1553 set_name(from.name()); |
1441 } | 1554 } |
1442 if (from.has_package()) { | 1555 if (from.has_package()) { |
1443 set_package(from.package()); | 1556 set_package(from.package()); |
1444 } | 1557 } |
| 1558 } |
| 1559 if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) { |
1445 if (from.has_options()) { | 1560 if (from.has_options()) { |
1446 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options
()); | 1561 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options
()); |
1447 } | 1562 } |
1448 } | |
1449 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { | |
1450 if (from.has_source_code_info()) { | 1563 if (from.has_source_code_info()) { |
1451 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(
from.source_code_info()); | 1564 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(
from.source_code_info()); |
1452 } | 1565 } |
1453 } | 1566 } |
1454 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | 1567 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
1455 } | 1568 } |
1456 | 1569 |
1457 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 1570 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
1458 if (&from == this) return; | 1571 if (&from == this) return; |
1459 Clear(); | 1572 Clear(); |
1460 MergeFrom(from); | 1573 MergeFrom(from); |
1461 } | 1574 } |
1462 | 1575 |
1463 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { | 1576 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { |
1464 if (&from == this) return; | 1577 if (&from == this) return; |
1465 Clear(); | 1578 Clear(); |
1466 MergeFrom(from); | 1579 MergeFrom(from); |
1467 } | 1580 } |
1468 | 1581 |
1469 bool FileDescriptorProto::IsInitialized() const { | 1582 bool FileDescriptorProto::IsInitialized() const { |
1470 | 1583 |
1471 for (int i = 0; i < message_type_size(); i++) { | 1584 for (int i = 0; i < message_type_size(); i++) { |
1472 if (!this->message_type(i).IsInitialized()) return false; | 1585 if (!this->message_type(i).IsInitialized()) return false; |
1473 } | 1586 } |
1474 for (int i = 0; i < enum_type_size(); i++) { | 1587 for (int i = 0; i < enum_type_size(); i++) { |
1475 if (!this->enum_type(i).IsInitialized()) return false; | 1588 if (!this->enum_type(i).IsInitialized()) return false; |
1476 } | 1589 } |
1477 for (int i = 0; i < service_size(); i++) { | 1590 for (int i = 0; i < service_size(); i++) { |
1478 if (!this->service(i).IsInitialized()) return false; | 1591 if (!this->service(i).IsInitialized()) return false; |
1479 } | 1592 } |
1480 for (int i = 0; i < extension_size(); i++) { | 1593 for (int i = 0; i < extension_size(); i++) { |
1481 if (!this->extension(i).IsInitialized()) return false; | 1594 if (!this->extension(i).IsInitialized()) return false; |
1482 } | 1595 } |
1483 if (has_options()) { | 1596 if (has_options()) { |
1484 if (!this->options().IsInitialized()) return false; | 1597 if (!this->options().IsInitialized()) return false; |
1485 } | 1598 } |
1486 return true; | 1599 return true; |
1487 } | 1600 } |
1488 | 1601 |
1489 void FileDescriptorProto::Swap(FileDescriptorProto* other) { | 1602 void FileDescriptorProto::Swap(FileDescriptorProto* other) { |
1490 if (other != this) { | 1603 if (other != this) { |
1491 std::swap(name_, other->name_); | 1604 std::swap(name_, other->name_); |
1492 std::swap(package_, other->package_); | 1605 std::swap(package_, other->package_); |
1493 dependency_.Swap(&other->dependency_); | 1606 dependency_.Swap(&other->dependency_); |
| 1607 public_dependency_.Swap(&other->public_dependency_); |
| 1608 weak_dependency_.Swap(&other->weak_dependency_); |
1494 message_type_.Swap(&other->message_type_); | 1609 message_type_.Swap(&other->message_type_); |
1495 enum_type_.Swap(&other->enum_type_); | 1610 enum_type_.Swap(&other->enum_type_); |
1496 service_.Swap(&other->service_); | 1611 service_.Swap(&other->service_); |
1497 extension_.Swap(&other->extension_); | 1612 extension_.Swap(&other->extension_); |
1498 std::swap(options_, other->options_); | 1613 std::swap(options_, other->options_); |
1499 std::swap(source_code_info_, other->source_code_info_); | 1614 std::swap(source_code_info_, other->source_code_info_); |
1500 std::swap(_has_bits_[0], other->_has_bits_[0]); | 1615 std::swap(_has_bits_[0], other->_has_bits_[0]); |
1501 _unknown_fields_.Swap(&other->_unknown_fields_); | 1616 _unknown_fields_.Swap(&other->_unknown_fields_); |
1502 std::swap(_cached_size_, other->_cached_size_); | 1617 std::swap(_cached_size_, other->_cached_size_); |
1503 } | 1618 } |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 1707 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1593 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1708 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
1594 input, &start_))); | 1709 input, &start_))); |
1595 set_has_start(); | 1710 set_has_start(); |
1596 } else { | 1711 } else { |
1597 goto handle_uninterpreted; | 1712 goto handle_uninterpreted; |
1598 } | 1713 } |
1599 if (input->ExpectTag(16)) goto parse_end; | 1714 if (input->ExpectTag(16)) goto parse_end; |
1600 break; | 1715 break; |
1601 } | 1716 } |
1602 | 1717 |
1603 // optional int32 end = 2; | 1718 // optional int32 end = 2; |
1604 case 2: { | 1719 case 2: { |
1605 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1720 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1606 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 1721 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
1607 parse_end: | 1722 parse_end: |
1608 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 1723 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1609 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1724 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
1610 input, &end_))); | 1725 input, &end_))); |
1611 set_has_end(); | 1726 set_has_end(); |
1612 } else { | 1727 } else { |
1613 goto handle_uninterpreted; | 1728 goto handle_uninterpreted; |
1614 } | 1729 } |
1615 if (input->ExpectAtEnd()) return true; | 1730 if (input->ExpectAtEnd()) return true; |
1616 break; | 1731 break; |
1617 } | 1732 } |
1618 | 1733 |
1619 default: { | 1734 default: { |
1620 handle_uninterpreted: | 1735 handle_uninterpreted: |
1621 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1736 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1622 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1737 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
1623 return true; | 1738 return true; |
1624 } | 1739 } |
1625 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 1740 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 1741 input, tag, mutable_unknown_fields())); |
1626 break; | 1742 break; |
1627 } | 1743 } |
1628 } | 1744 } |
1629 } | 1745 } |
1630 return true; | 1746 return true; |
1631 #undef DO_ | 1747 #undef DO_ |
1632 } | 1748 } |
1633 | 1749 |
1634 void DescriptorProto_ExtensionRange::SerializeWithCachedSizes( | 1750 void DescriptorProto_ExtensionRange::SerializeWithCachedSizes( |
1635 ::google::protobuf::io::CodedOutputStream* output) const { | 1751 ::google::protobuf::io::CodedOutputStream* output) const { |
1636 // optional int32 start = 1; | 1752 // optional int32 start = 1; |
1637 if (has_start()) { | 1753 if (has_start()) { |
1638 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), o
utput); | 1754 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), o
utput); |
1639 } | 1755 } |
1640 | 1756 |
1641 // optional int32 end = 2; | 1757 // optional int32 end = 2; |
1642 if (has_end()) { | 1758 if (has_end()) { |
1643 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); | 1759 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); |
1644 } | 1760 } |
1645 | 1761 |
1646 if (!unknown_fields().empty()) { | 1762 if (!unknown_fields().empty()) { |
1647 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 1763 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
1648 unknown_fields(), output); | 1764 unknown_fields(), output); |
1649 } | 1765 } |
1650 } | 1766 } |
1651 | 1767 |
1652 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSi
zesToArray( | 1768 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSi
zesToArray( |
1653 ::google::protobuf::uint8* target) const { | 1769 ::google::protobuf::uint8* target) const { |
1654 // optional int32 start = 1; | 1770 // optional int32 start = 1; |
1655 if (has_start()) { | 1771 if (has_start()) { |
1656 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); | 1772 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); |
1657 } | 1773 } |
1658 | 1774 |
1659 // optional int32 end = 2; | 1775 // optional int32 end = 2; |
1660 if (has_end()) { | 1776 if (has_end()) { |
1661 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); | 1777 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); |
1662 } | 1778 } |
1663 | 1779 |
1664 if (!unknown_fields().empty()) { | 1780 if (!unknown_fields().empty()) { |
1665 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 1781 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
1666 unknown_fields(), target); | 1782 unknown_fields(), target); |
1667 } | 1783 } |
1668 return target; | 1784 return target; |
1669 } | 1785 } |
1670 | 1786 |
1671 int DescriptorProto_ExtensionRange::ByteSize() const { | 1787 int DescriptorProto_ExtensionRange::ByteSize() const { |
1672 int total_size = 0; | 1788 int total_size = 0; |
1673 | 1789 |
1674 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 1790 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
1675 // optional int32 start = 1; | 1791 // optional int32 start = 1; |
1676 if (has_start()) { | 1792 if (has_start()) { |
1677 total_size += 1 + | 1793 total_size += 1 + |
1678 ::google::protobuf::internal::WireFormatLite::Int32Size( | 1794 ::google::protobuf::internal::WireFormatLite::Int32Size( |
1679 this->start()); | 1795 this->start()); |
1680 } | 1796 } |
1681 | 1797 |
1682 // optional int32 end = 2; | 1798 // optional int32 end = 2; |
1683 if (has_end()) { | 1799 if (has_end()) { |
1684 total_size += 1 + | 1800 total_size += 1 + |
1685 ::google::protobuf::internal::WireFormatLite::Int32Size( | 1801 ::google::protobuf::internal::WireFormatLite::Int32Size( |
1686 this->end()); | 1802 this->end()); |
1687 } | 1803 } |
1688 | 1804 |
1689 } | 1805 } |
1690 if (!unknown_fields().empty()) { | 1806 if (!unknown_fields().empty()) { |
1691 total_size += | 1807 total_size += |
1692 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 1808 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
1693 unknown_fields()); | 1809 unknown_fields()); |
1694 } | 1810 } |
1695 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1811 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1696 _cached_size_ = total_size; | 1812 _cached_size_ = total_size; |
1697 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1813 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1698 return total_size; | 1814 return total_size; |
(...skipping 30 matching lines...) Expand all Loading... |
1729 MergeFrom(from); | 1845 MergeFrom(from); |
1730 } | 1846 } |
1731 | 1847 |
1732 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan
ge& from) { | 1848 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan
ge& from) { |
1733 if (&from == this) return; | 1849 if (&from == this) return; |
1734 Clear(); | 1850 Clear(); |
1735 MergeFrom(from); | 1851 MergeFrom(from); |
1736 } | 1852 } |
1737 | 1853 |
1738 bool DescriptorProto_ExtensionRange::IsInitialized() const { | 1854 bool DescriptorProto_ExtensionRange::IsInitialized() const { |
1739 | 1855 |
1740 return true; | 1856 return true; |
1741 } | 1857 } |
1742 | 1858 |
1743 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other)
{ | 1859 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other)
{ |
1744 if (other != this) { | 1860 if (other != this) { |
1745 std::swap(start_, other->start_); | 1861 std::swap(start_, other->start_); |
1746 std::swap(end_, other->end_); | 1862 std::swap(end_, other->end_); |
1747 std::swap(_has_bits_[0], other->_has_bits_[0]); | 1863 std::swap(_has_bits_[0], other->_has_bits_[0]); |
1748 _unknown_fields_.Swap(&other->_unknown_fields_); | 1864 _unknown_fields_.Swap(&other->_unknown_fields_); |
1749 std::swap(_cached_size_, other->_cached_size_); | 1865 std::swap(_cached_size_, other->_cached_size_); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 input, this->mutable_name())); | 1977 input, this->mutable_name())); |
1862 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 1978 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1863 this->name().data(), this->name().length(), | 1979 this->name().data(), this->name().length(), |
1864 ::google::protobuf::internal::WireFormat::PARSE); | 1980 ::google::protobuf::internal::WireFormat::PARSE); |
1865 } else { | 1981 } else { |
1866 goto handle_uninterpreted; | 1982 goto handle_uninterpreted; |
1867 } | 1983 } |
1868 if (input->ExpectTag(18)) goto parse_field; | 1984 if (input->ExpectTag(18)) goto parse_field; |
1869 break; | 1985 break; |
1870 } | 1986 } |
1871 | 1987 |
1872 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 1988 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
1873 case 2: { | 1989 case 2: { |
1874 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1990 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1875 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 1991 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1876 parse_field: | 1992 parse_field: |
1877 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1993 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1878 input, add_field())); | 1994 input, add_field())); |
1879 } else { | 1995 } else { |
1880 goto handle_uninterpreted; | 1996 goto handle_uninterpreted; |
1881 } | 1997 } |
1882 if (input->ExpectTag(18)) goto parse_field; | 1998 if (input->ExpectTag(18)) goto parse_field; |
1883 if (input->ExpectTag(26)) goto parse_nested_type; | 1999 if (input->ExpectTag(26)) goto parse_nested_type; |
1884 break; | 2000 break; |
1885 } | 2001 } |
1886 | 2002 |
1887 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 2003 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
1888 case 3: { | 2004 case 3: { |
1889 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2005 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1890 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2006 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1891 parse_nested_type: | 2007 parse_nested_type: |
1892 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 2008 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1893 input, add_nested_type())); | 2009 input, add_nested_type())); |
1894 } else { | 2010 } else { |
1895 goto handle_uninterpreted; | 2011 goto handle_uninterpreted; |
1896 } | 2012 } |
1897 if (input->ExpectTag(26)) goto parse_nested_type; | 2013 if (input->ExpectTag(26)) goto parse_nested_type; |
1898 if (input->ExpectTag(34)) goto parse_enum_type; | 2014 if (input->ExpectTag(34)) goto parse_enum_type; |
1899 break; | 2015 break; |
1900 } | 2016 } |
1901 | 2017 |
1902 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 2018 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
1903 case 4: { | 2019 case 4: { |
1904 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2020 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1905 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2021 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1906 parse_enum_type: | 2022 parse_enum_type: |
1907 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 2023 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1908 input, add_enum_type())); | 2024 input, add_enum_type())); |
1909 } else { | 2025 } else { |
1910 goto handle_uninterpreted; | 2026 goto handle_uninterpreted; |
1911 } | 2027 } |
1912 if (input->ExpectTag(34)) goto parse_enum_type; | 2028 if (input->ExpectTag(34)) goto parse_enum_type; |
1913 if (input->ExpectTag(42)) goto parse_extension_range; | 2029 if (input->ExpectTag(42)) goto parse_extension_range; |
1914 break; | 2030 break; |
1915 } | 2031 } |
1916 | 2032 |
1917 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang
e = 5; | 2033 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang
e = 5; |
1918 case 5: { | 2034 case 5: { |
1919 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2035 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1920 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2036 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1921 parse_extension_range: | 2037 parse_extension_range: |
1922 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 2038 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1923 input, add_extension_range())); | 2039 input, add_extension_range())); |
1924 } else { | 2040 } else { |
1925 goto handle_uninterpreted; | 2041 goto handle_uninterpreted; |
1926 } | 2042 } |
1927 if (input->ExpectTag(42)) goto parse_extension_range; | 2043 if (input->ExpectTag(42)) goto parse_extension_range; |
1928 if (input->ExpectTag(50)) goto parse_extension; | 2044 if (input->ExpectTag(50)) goto parse_extension; |
1929 break; | 2045 break; |
1930 } | 2046 } |
1931 | 2047 |
1932 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 2048 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
1933 case 6: { | 2049 case 6: { |
1934 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2050 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1935 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2051 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1936 parse_extension: | 2052 parse_extension: |
1937 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 2053 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1938 input, add_extension())); | 2054 input, add_extension())); |
1939 } else { | 2055 } else { |
1940 goto handle_uninterpreted; | 2056 goto handle_uninterpreted; |
1941 } | 2057 } |
1942 if (input->ExpectTag(50)) goto parse_extension; | 2058 if (input->ExpectTag(50)) goto parse_extension; |
1943 if (input->ExpectTag(58)) goto parse_options; | 2059 if (input->ExpectTag(58)) goto parse_options; |
1944 break; | 2060 break; |
1945 } | 2061 } |
1946 | 2062 |
1947 // optional .google.protobuf.MessageOptions options = 7; | 2063 // optional .google.protobuf.MessageOptions options = 7; |
1948 case 7: { | 2064 case 7: { |
1949 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2065 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1950 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2066 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
1951 parse_options: | 2067 parse_options: |
1952 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 2068 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
1953 input, mutable_options())); | 2069 input, mutable_options())); |
1954 } else { | 2070 } else { |
1955 goto handle_uninterpreted; | 2071 goto handle_uninterpreted; |
1956 } | 2072 } |
1957 if (input->ExpectAtEnd()) return true; | 2073 if (input->ExpectAtEnd()) return true; |
1958 break; | 2074 break; |
1959 } | 2075 } |
1960 | 2076 |
1961 default: { | 2077 default: { |
1962 handle_uninterpreted: | 2078 handle_uninterpreted: |
1963 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2079 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1964 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2080 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
1965 return true; | 2081 return true; |
1966 } | 2082 } |
1967 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 2083 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 2084 input, tag, mutable_unknown_fields())); |
1968 break; | 2085 break; |
1969 } | 2086 } |
1970 } | 2087 } |
1971 } | 2088 } |
1972 return true; | 2089 return true; |
1973 #undef DO_ | 2090 #undef DO_ |
1974 } | 2091 } |
1975 | 2092 |
1976 void DescriptorProto::SerializeWithCachedSizes( | 2093 void DescriptorProto::SerializeWithCachedSizes( |
1977 ::google::protobuf::io::CodedOutputStream* output) const { | 2094 ::google::protobuf::io::CodedOutputStream* output) const { |
1978 // optional string name = 1; | 2095 // optional string name = 1; |
1979 if (has_name()) { | 2096 if (has_name()) { |
1980 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2097 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
1981 this->name().data(), this->name().length(), | 2098 this->name().data(), this->name().length(), |
1982 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2099 ::google::protobuf::internal::WireFormat::SERIALIZE); |
1983 ::google::protobuf::internal::WireFormatLite::WriteString( | 2100 ::google::protobuf::internal::WireFormatLite::WriteString( |
1984 1, this->name(), output); | 2101 1, this->name(), output); |
1985 } | 2102 } |
1986 | 2103 |
1987 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 2104 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
1988 for (int i = 0; i < this->field_size(); i++) { | 2105 for (int i = 0; i < this->field_size(); i++) { |
1989 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2106 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1990 2, this->field(i), output); | 2107 2, this->field(i), output); |
1991 } | 2108 } |
1992 | 2109 |
1993 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 2110 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
1994 for (int i = 0; i < this->nested_type_size(); i++) { | 2111 for (int i = 0; i < this->nested_type_size(); i++) { |
1995 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2112 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1996 3, this->nested_type(i), output); | 2113 3, this->nested_type(i), output); |
1997 } | 2114 } |
1998 | 2115 |
1999 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 2116 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
2000 for (int i = 0; i < this->enum_type_size(); i++) { | 2117 for (int i = 0; i < this->enum_type_size(); i++) { |
2001 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2118 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2002 4, this->enum_type(i), output); | 2119 4, this->enum_type(i), output); |
2003 } | 2120 } |
2004 | 2121 |
2005 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | 2122 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; |
2006 for (int i = 0; i < this->extension_range_size(); i++) { | 2123 for (int i = 0; i < this->extension_range_size(); i++) { |
2007 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2124 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2008 5, this->extension_range(i), output); | 2125 5, this->extension_range(i), output); |
2009 } | 2126 } |
2010 | 2127 |
2011 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 2128 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
2012 for (int i = 0; i < this->extension_size(); i++) { | 2129 for (int i = 0; i < this->extension_size(); i++) { |
2013 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2130 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2014 6, this->extension(i), output); | 2131 6, this->extension(i), output); |
2015 } | 2132 } |
2016 | 2133 |
2017 // optional .google.protobuf.MessageOptions options = 7; | 2134 // optional .google.protobuf.MessageOptions options = 7; |
2018 if (has_options()) { | 2135 if (has_options()) { |
2019 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2136 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2020 7, this->options(), output); | 2137 7, this->options(), output); |
2021 } | 2138 } |
2022 | 2139 |
2023 if (!unknown_fields().empty()) { | 2140 if (!unknown_fields().empty()) { |
2024 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 2141 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
2025 unknown_fields(), output); | 2142 unknown_fields(), output); |
2026 } | 2143 } |
2027 } | 2144 } |
2028 | 2145 |
2029 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( | 2146 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( |
2030 ::google::protobuf::uint8* target) const { | 2147 ::google::protobuf::uint8* target) const { |
2031 // optional string name = 1; | 2148 // optional string name = 1; |
2032 if (has_name()) { | 2149 if (has_name()) { |
2033 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2150 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2034 this->name().data(), this->name().length(), | 2151 this->name().data(), this->name().length(), |
2035 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2152 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2036 target = | 2153 target = |
2037 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2154 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2038 1, this->name(), target); | 2155 1, this->name(), target); |
2039 } | 2156 } |
2040 | 2157 |
2041 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 2158 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
2042 for (int i = 0; i < this->field_size(); i++) { | 2159 for (int i = 0; i < this->field_size(); i++) { |
2043 target = ::google::protobuf::internal::WireFormatLite:: | 2160 target = ::google::protobuf::internal::WireFormatLite:: |
2044 WriteMessageNoVirtualToArray( | 2161 WriteMessageNoVirtualToArray( |
2045 2, this->field(i), target); | 2162 2, this->field(i), target); |
2046 } | 2163 } |
2047 | 2164 |
2048 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 2165 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
2049 for (int i = 0; i < this->nested_type_size(); i++) { | 2166 for (int i = 0; i < this->nested_type_size(); i++) { |
2050 target = ::google::protobuf::internal::WireFormatLite:: | 2167 target = ::google::protobuf::internal::WireFormatLite:: |
2051 WriteMessageNoVirtualToArray( | 2168 WriteMessageNoVirtualToArray( |
2052 3, this->nested_type(i), target); | 2169 3, this->nested_type(i), target); |
2053 } | 2170 } |
2054 | 2171 |
2055 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 2172 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
2056 for (int i = 0; i < this->enum_type_size(); i++) { | 2173 for (int i = 0; i < this->enum_type_size(); i++) { |
2057 target = ::google::protobuf::internal::WireFormatLite:: | 2174 target = ::google::protobuf::internal::WireFormatLite:: |
2058 WriteMessageNoVirtualToArray( | 2175 WriteMessageNoVirtualToArray( |
2059 4, this->enum_type(i), target); | 2176 4, this->enum_type(i), target); |
2060 } | 2177 } |
2061 | 2178 |
2062 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | 2179 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; |
2063 for (int i = 0; i < this->extension_range_size(); i++) { | 2180 for (int i = 0; i < this->extension_range_size(); i++) { |
2064 target = ::google::protobuf::internal::WireFormatLite:: | 2181 target = ::google::protobuf::internal::WireFormatLite:: |
2065 WriteMessageNoVirtualToArray( | 2182 WriteMessageNoVirtualToArray( |
2066 5, this->extension_range(i), target); | 2183 5, this->extension_range(i), target); |
2067 } | 2184 } |
2068 | 2185 |
2069 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 2186 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
2070 for (int i = 0; i < this->extension_size(); i++) { | 2187 for (int i = 0; i < this->extension_size(); i++) { |
2071 target = ::google::protobuf::internal::WireFormatLite:: | 2188 target = ::google::protobuf::internal::WireFormatLite:: |
2072 WriteMessageNoVirtualToArray( | 2189 WriteMessageNoVirtualToArray( |
2073 6, this->extension(i), target); | 2190 6, this->extension(i), target); |
2074 } | 2191 } |
2075 | 2192 |
2076 // optional .google.protobuf.MessageOptions options = 7; | 2193 // optional .google.protobuf.MessageOptions options = 7; |
2077 if (has_options()) { | 2194 if (has_options()) { |
2078 target = ::google::protobuf::internal::WireFormatLite:: | 2195 target = ::google::protobuf::internal::WireFormatLite:: |
2079 WriteMessageNoVirtualToArray( | 2196 WriteMessageNoVirtualToArray( |
2080 7, this->options(), target); | 2197 7, this->options(), target); |
2081 } | 2198 } |
2082 | 2199 |
2083 if (!unknown_fields().empty()) { | 2200 if (!unknown_fields().empty()) { |
2084 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 2201 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
2085 unknown_fields(), target); | 2202 unknown_fields(), target); |
2086 } | 2203 } |
2087 return target; | 2204 return target; |
2088 } | 2205 } |
2089 | 2206 |
2090 int DescriptorProto::ByteSize() const { | 2207 int DescriptorProto::ByteSize() const { |
2091 int total_size = 0; | 2208 int total_size = 0; |
2092 | 2209 |
2093 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 2210 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
2094 // optional string name = 1; | 2211 // optional string name = 1; |
2095 if (has_name()) { | 2212 if (has_name()) { |
2096 total_size += 1 + | 2213 total_size += 1 + |
2097 ::google::protobuf::internal::WireFormatLite::StringSize( | 2214 ::google::protobuf::internal::WireFormatLite::StringSize( |
2098 this->name()); | 2215 this->name()); |
2099 } | 2216 } |
2100 | 2217 |
2101 // optional .google.protobuf.MessageOptions options = 7; | 2218 // optional .google.protobuf.MessageOptions options = 7; |
2102 if (has_options()) { | 2219 if (has_options()) { |
2103 total_size += 1 + | 2220 total_size += 1 + |
2104 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2221 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2105 this->options()); | 2222 this->options()); |
2106 } | 2223 } |
2107 | 2224 |
2108 } | 2225 } |
2109 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 2226 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
2110 total_size += 1 * this->field_size(); | 2227 total_size += 1 * this->field_size(); |
2111 for (int i = 0; i < this->field_size(); i++) { | 2228 for (int i = 0; i < this->field_size(); i++) { |
2112 total_size += | 2229 total_size += |
2113 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2230 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2114 this->field(i)); | 2231 this->field(i)); |
2115 } | 2232 } |
2116 | 2233 |
2117 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 2234 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
2118 total_size += 1 * this->extension_size(); | 2235 total_size += 1 * this->extension_size(); |
2119 for (int i = 0; i < this->extension_size(); i++) { | 2236 for (int i = 0; i < this->extension_size(); i++) { |
2120 total_size += | 2237 total_size += |
2121 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2238 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2122 this->extension(i)); | 2239 this->extension(i)); |
2123 } | 2240 } |
2124 | 2241 |
2125 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 2242 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
2126 total_size += 1 * this->nested_type_size(); | 2243 total_size += 1 * this->nested_type_size(); |
2127 for (int i = 0; i < this->nested_type_size(); i++) { | 2244 for (int i = 0; i < this->nested_type_size(); i++) { |
2128 total_size += | 2245 total_size += |
2129 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2246 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2130 this->nested_type(i)); | 2247 this->nested_type(i)); |
2131 } | 2248 } |
2132 | 2249 |
2133 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 2250 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
2134 total_size += 1 * this->enum_type_size(); | 2251 total_size += 1 * this->enum_type_size(); |
2135 for (int i = 0; i < this->enum_type_size(); i++) { | 2252 for (int i = 0; i < this->enum_type_size(); i++) { |
2136 total_size += | 2253 total_size += |
2137 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2254 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2138 this->enum_type(i)); | 2255 this->enum_type(i)); |
2139 } | 2256 } |
2140 | 2257 |
2141 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | 2258 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; |
2142 total_size += 1 * this->extension_range_size(); | 2259 total_size += 1 * this->extension_range_size(); |
2143 for (int i = 0; i < this->extension_range_size(); i++) { | 2260 for (int i = 0; i < this->extension_range_size(); i++) { |
2144 total_size += | 2261 total_size += |
2145 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2262 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2146 this->extension_range(i)); | 2263 this->extension_range(i)); |
2147 } | 2264 } |
2148 | 2265 |
2149 if (!unknown_fields().empty()) { | 2266 if (!unknown_fields().empty()) { |
2150 total_size += | 2267 total_size += |
2151 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 2268 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
2152 unknown_fields()); | 2269 unknown_fields()); |
2153 } | 2270 } |
2154 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2271 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2155 _cached_size_ = total_size; | 2272 _cached_size_ = total_size; |
2156 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2273 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2157 return total_size; | 2274 return total_size; |
2158 } | 2275 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2193 MergeFrom(from); | 2310 MergeFrom(from); |
2194 } | 2311 } |
2195 | 2312 |
2196 void DescriptorProto::CopyFrom(const DescriptorProto& from) { | 2313 void DescriptorProto::CopyFrom(const DescriptorProto& from) { |
2197 if (&from == this) return; | 2314 if (&from == this) return; |
2198 Clear(); | 2315 Clear(); |
2199 MergeFrom(from); | 2316 MergeFrom(from); |
2200 } | 2317 } |
2201 | 2318 |
2202 bool DescriptorProto::IsInitialized() const { | 2319 bool DescriptorProto::IsInitialized() const { |
2203 | 2320 |
2204 for (int i = 0; i < field_size(); i++) { | 2321 for (int i = 0; i < field_size(); i++) { |
2205 if (!this->field(i).IsInitialized()) return false; | 2322 if (!this->field(i).IsInitialized()) return false; |
2206 } | 2323 } |
2207 for (int i = 0; i < extension_size(); i++) { | 2324 for (int i = 0; i < extension_size(); i++) { |
2208 if (!this->extension(i).IsInitialized()) return false; | 2325 if (!this->extension(i).IsInitialized()) return false; |
2209 } | 2326 } |
2210 for (int i = 0; i < nested_type_size(); i++) { | 2327 for (int i = 0; i < nested_type_size(); i++) { |
2211 if (!this->nested_type(i).IsInitialized()) return false; | 2328 if (!this->nested_type(i).IsInitialized()) return false; |
2212 } | 2329 } |
2213 for (int i = 0; i < enum_type_size(); i++) { | 2330 for (int i = 0; i < enum_type_size(); i++) { |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2450 input, this->mutable_name())); | 2567 input, this->mutable_name())); |
2451 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2568 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2452 this->name().data(), this->name().length(), | 2569 this->name().data(), this->name().length(), |
2453 ::google::protobuf::internal::WireFormat::PARSE); | 2570 ::google::protobuf::internal::WireFormat::PARSE); |
2454 } else { | 2571 } else { |
2455 goto handle_uninterpreted; | 2572 goto handle_uninterpreted; |
2456 } | 2573 } |
2457 if (input->ExpectTag(18)) goto parse_extendee; | 2574 if (input->ExpectTag(18)) goto parse_extendee; |
2458 break; | 2575 break; |
2459 } | 2576 } |
2460 | 2577 |
2461 // optional string extendee = 2; | 2578 // optional string extendee = 2; |
2462 case 2: { | 2579 case 2: { |
2463 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2580 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2464 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2581 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
2465 parse_extendee: | 2582 parse_extendee: |
2466 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 2583 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2467 input, this->mutable_extendee())); | 2584 input, this->mutable_extendee())); |
2468 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2585 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2469 this->extendee().data(), this->extendee().length(), | 2586 this->extendee().data(), this->extendee().length(), |
2470 ::google::protobuf::internal::WireFormat::PARSE); | 2587 ::google::protobuf::internal::WireFormat::PARSE); |
2471 } else { | 2588 } else { |
2472 goto handle_uninterpreted; | 2589 goto handle_uninterpreted; |
2473 } | 2590 } |
2474 if (input->ExpectTag(24)) goto parse_number; | 2591 if (input->ExpectTag(24)) goto parse_number; |
2475 break; | 2592 break; |
2476 } | 2593 } |
2477 | 2594 |
2478 // optional int32 number = 3; | 2595 // optional int32 number = 3; |
2479 case 3: { | 2596 case 3: { |
2480 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2597 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2481 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 2598 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
2482 parse_number: | 2599 parse_number: |
2483 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2600 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2484 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2601 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
2485 input, &number_))); | 2602 input, &number_))); |
2486 set_has_number(); | 2603 set_has_number(); |
2487 } else { | 2604 } else { |
2488 goto handle_uninterpreted; | 2605 goto handle_uninterpreted; |
2489 } | 2606 } |
2490 if (input->ExpectTag(32)) goto parse_label; | 2607 if (input->ExpectTag(32)) goto parse_label; |
2491 break; | 2608 break; |
2492 } | 2609 } |
2493 | 2610 |
2494 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 2611 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
2495 case 4: { | 2612 case 4: { |
2496 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2613 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2497 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 2614 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
2498 parse_label: | 2615 parse_label: |
2499 int value; | 2616 int value; |
2500 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2617 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2501 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 2618 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
2502 input, &value))); | 2619 input, &value))); |
2503 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { | 2620 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { |
2504 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe
l >(value)); | 2621 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe
l >(value)); |
2505 } else { | 2622 } else { |
2506 mutable_unknown_fields()->AddVarint(4, value); | 2623 mutable_unknown_fields()->AddVarint(4, value); |
2507 } | 2624 } |
2508 } else { | 2625 } else { |
2509 goto handle_uninterpreted; | 2626 goto handle_uninterpreted; |
2510 } | 2627 } |
2511 if (input->ExpectTag(40)) goto parse_type; | 2628 if (input->ExpectTag(40)) goto parse_type; |
2512 break; | 2629 break; |
2513 } | 2630 } |
2514 | 2631 |
2515 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 2632 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
2516 case 5: { | 2633 case 5: { |
2517 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2634 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2518 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 2635 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
2519 parse_type: | 2636 parse_type: |
2520 int value; | 2637 int value; |
2521 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2638 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2522 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 2639 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
2523 input, &value))); | 2640 input, &value))); |
2524 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { | 2641 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { |
2525 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type
>(value)); | 2642 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type
>(value)); |
2526 } else { | 2643 } else { |
2527 mutable_unknown_fields()->AddVarint(5, value); | 2644 mutable_unknown_fields()->AddVarint(5, value); |
2528 } | 2645 } |
2529 } else { | 2646 } else { |
2530 goto handle_uninterpreted; | 2647 goto handle_uninterpreted; |
2531 } | 2648 } |
2532 if (input->ExpectTag(50)) goto parse_type_name; | 2649 if (input->ExpectTag(50)) goto parse_type_name; |
2533 break; | 2650 break; |
2534 } | 2651 } |
2535 | 2652 |
2536 // optional string type_name = 6; | 2653 // optional string type_name = 6; |
2537 case 6: { | 2654 case 6: { |
2538 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2655 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2539 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2656 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
2540 parse_type_name: | 2657 parse_type_name: |
2541 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 2658 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2542 input, this->mutable_type_name())); | 2659 input, this->mutable_type_name())); |
2543 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2660 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2544 this->type_name().data(), this->type_name().length(), | 2661 this->type_name().data(), this->type_name().length(), |
2545 ::google::protobuf::internal::WireFormat::PARSE); | 2662 ::google::protobuf::internal::WireFormat::PARSE); |
2546 } else { | 2663 } else { |
2547 goto handle_uninterpreted; | 2664 goto handle_uninterpreted; |
2548 } | 2665 } |
2549 if (input->ExpectTag(58)) goto parse_default_value; | 2666 if (input->ExpectTag(58)) goto parse_default_value; |
2550 break; | 2667 break; |
2551 } | 2668 } |
2552 | 2669 |
2553 // optional string default_value = 7; | 2670 // optional string default_value = 7; |
2554 case 7: { | 2671 case 7: { |
2555 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2672 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2556 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2673 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
2557 parse_default_value: | 2674 parse_default_value: |
2558 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 2675 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2559 input, this->mutable_default_value())); | 2676 input, this->mutable_default_value())); |
2560 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2677 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2561 this->default_value().data(), this->default_value().length(), | 2678 this->default_value().data(), this->default_value().length(), |
2562 ::google::protobuf::internal::WireFormat::PARSE); | 2679 ::google::protobuf::internal::WireFormat::PARSE); |
2563 } else { | 2680 } else { |
2564 goto handle_uninterpreted; | 2681 goto handle_uninterpreted; |
2565 } | 2682 } |
2566 if (input->ExpectTag(66)) goto parse_options; | 2683 if (input->ExpectTag(66)) goto parse_options; |
2567 break; | 2684 break; |
2568 } | 2685 } |
2569 | 2686 |
2570 // optional .google.protobuf.FieldOptions options = 8; | 2687 // optional .google.protobuf.FieldOptions options = 8; |
2571 case 8: { | 2688 case 8: { |
2572 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2689 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2573 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 2690 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
2574 parse_options: | 2691 parse_options: |
2575 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 2692 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
2576 input, mutable_options())); | 2693 input, mutable_options())); |
2577 } else { | 2694 } else { |
2578 goto handle_uninterpreted; | 2695 goto handle_uninterpreted; |
2579 } | 2696 } |
2580 if (input->ExpectAtEnd()) return true; | 2697 if (input->ExpectAtEnd()) return true; |
2581 break; | 2698 break; |
2582 } | 2699 } |
2583 | 2700 |
2584 default: { | 2701 default: { |
2585 handle_uninterpreted: | 2702 handle_uninterpreted: |
2586 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2703 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2587 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2704 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
2588 return true; | 2705 return true; |
2589 } | 2706 } |
2590 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 2707 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 2708 input, tag, mutable_unknown_fields())); |
2591 break; | 2709 break; |
2592 } | 2710 } |
2593 } | 2711 } |
2594 } | 2712 } |
2595 return true; | 2713 return true; |
2596 #undef DO_ | 2714 #undef DO_ |
2597 } | 2715 } |
2598 | 2716 |
2599 void FieldDescriptorProto::SerializeWithCachedSizes( | 2717 void FieldDescriptorProto::SerializeWithCachedSizes( |
2600 ::google::protobuf::io::CodedOutputStream* output) const { | 2718 ::google::protobuf::io::CodedOutputStream* output) const { |
2601 // optional string name = 1; | 2719 // optional string name = 1; |
2602 if (has_name()) { | 2720 if (has_name()) { |
2603 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2721 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2604 this->name().data(), this->name().length(), | 2722 this->name().data(), this->name().length(), |
2605 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2723 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2606 ::google::protobuf::internal::WireFormatLite::WriteString( | 2724 ::google::protobuf::internal::WireFormatLite::WriteString( |
2607 1, this->name(), output); | 2725 1, this->name(), output); |
2608 } | 2726 } |
2609 | 2727 |
2610 // optional string extendee = 2; | 2728 // optional string extendee = 2; |
2611 if (has_extendee()) { | 2729 if (has_extendee()) { |
2612 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2730 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2613 this->extendee().data(), this->extendee().length(), | 2731 this->extendee().data(), this->extendee().length(), |
2614 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2732 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2615 ::google::protobuf::internal::WireFormatLite::WriteString( | 2733 ::google::protobuf::internal::WireFormatLite::WriteString( |
2616 2, this->extendee(), output); | 2734 2, this->extendee(), output); |
2617 } | 2735 } |
2618 | 2736 |
2619 // optional int32 number = 3; | 2737 // optional int32 number = 3; |
2620 if (has_number()) { | 2738 if (has_number()) { |
2621 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(),
output); | 2739 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(),
output); |
2622 } | 2740 } |
2623 | 2741 |
2624 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 2742 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
2625 if (has_label()) { | 2743 if (has_label()) { |
2626 ::google::protobuf::internal::WireFormatLite::WriteEnum( | 2744 ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2627 4, this->label(), output); | 2745 4, this->label(), output); |
2628 } | 2746 } |
2629 | 2747 |
2630 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 2748 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
2631 if (has_type()) { | 2749 if (has_type()) { |
2632 ::google::protobuf::internal::WireFormatLite::WriteEnum( | 2750 ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2633 5, this->type(), output); | 2751 5, this->type(), output); |
2634 } | 2752 } |
2635 | 2753 |
2636 // optional string type_name = 6; | 2754 // optional string type_name = 6; |
2637 if (has_type_name()) { | 2755 if (has_type_name()) { |
2638 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2756 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2639 this->type_name().data(), this->type_name().length(), | 2757 this->type_name().data(), this->type_name().length(), |
2640 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2758 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2641 ::google::protobuf::internal::WireFormatLite::WriteString( | 2759 ::google::protobuf::internal::WireFormatLite::WriteString( |
2642 6, this->type_name(), output); | 2760 6, this->type_name(), output); |
2643 } | 2761 } |
2644 | 2762 |
2645 // optional string default_value = 7; | 2763 // optional string default_value = 7; |
2646 if (has_default_value()) { | 2764 if (has_default_value()) { |
2647 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2765 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2648 this->default_value().data(), this->default_value().length(), | 2766 this->default_value().data(), this->default_value().length(), |
2649 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2767 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2650 ::google::protobuf::internal::WireFormatLite::WriteString( | 2768 ::google::protobuf::internal::WireFormatLite::WriteString( |
2651 7, this->default_value(), output); | 2769 7, this->default_value(), output); |
2652 } | 2770 } |
2653 | 2771 |
2654 // optional .google.protobuf.FieldOptions options = 8; | 2772 // optional .google.protobuf.FieldOptions options = 8; |
2655 if (has_options()) { | 2773 if (has_options()) { |
2656 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 2774 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2657 8, this->options(), output); | 2775 8, this->options(), output); |
2658 } | 2776 } |
2659 | 2777 |
2660 if (!unknown_fields().empty()) { | 2778 if (!unknown_fields().empty()) { |
2661 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 2779 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
2662 unknown_fields(), output); | 2780 unknown_fields(), output); |
2663 } | 2781 } |
2664 } | 2782 } |
2665 | 2783 |
2666 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray
( | 2784 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray
( |
2667 ::google::protobuf::uint8* target) const { | 2785 ::google::protobuf::uint8* target) const { |
2668 // optional string name = 1; | 2786 // optional string name = 1; |
2669 if (has_name()) { | 2787 if (has_name()) { |
2670 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2788 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2671 this->name().data(), this->name().length(), | 2789 this->name().data(), this->name().length(), |
2672 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2790 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2673 target = | 2791 target = |
2674 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2792 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2675 1, this->name(), target); | 2793 1, this->name(), target); |
2676 } | 2794 } |
2677 | 2795 |
2678 // optional string extendee = 2; | 2796 // optional string extendee = 2; |
2679 if (has_extendee()) { | 2797 if (has_extendee()) { |
2680 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2798 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2681 this->extendee().data(), this->extendee().length(), | 2799 this->extendee().data(), this->extendee().length(), |
2682 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2800 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2683 target = | 2801 target = |
2684 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2802 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2685 2, this->extendee(), target); | 2803 2, this->extendee(), target); |
2686 } | 2804 } |
2687 | 2805 |
2688 // optional int32 number = 3; | 2806 // optional int32 number = 3; |
2689 if (has_number()) { | 2807 if (has_number()) { |
2690 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3,
this->number(), target); | 2808 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3,
this->number(), target); |
2691 } | 2809 } |
2692 | 2810 |
2693 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 2811 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
2694 if (has_label()) { | 2812 if (has_label()) { |
2695 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 2813 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2696 4, this->label(), target); | 2814 4, this->label(), target); |
2697 } | 2815 } |
2698 | 2816 |
2699 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 2817 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
2700 if (has_type()) { | 2818 if (has_type()) { |
2701 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 2819 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2702 5, this->type(), target); | 2820 5, this->type(), target); |
2703 } | 2821 } |
2704 | 2822 |
2705 // optional string type_name = 6; | 2823 // optional string type_name = 6; |
2706 if (has_type_name()) { | 2824 if (has_type_name()) { |
2707 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2825 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2708 this->type_name().data(), this->type_name().length(), | 2826 this->type_name().data(), this->type_name().length(), |
2709 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2827 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2710 target = | 2828 target = |
2711 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2829 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2712 6, this->type_name(), target); | 2830 6, this->type_name(), target); |
2713 } | 2831 } |
2714 | 2832 |
2715 // optional string default_value = 7; | 2833 // optional string default_value = 7; |
2716 if (has_default_value()) { | 2834 if (has_default_value()) { |
2717 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 2835 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2718 this->default_value().data(), this->default_value().length(), | 2836 this->default_value().data(), this->default_value().length(), |
2719 ::google::protobuf::internal::WireFormat::SERIALIZE); | 2837 ::google::protobuf::internal::WireFormat::SERIALIZE); |
2720 target = | 2838 target = |
2721 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2839 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2722 7, this->default_value(), target); | 2840 7, this->default_value(), target); |
2723 } | 2841 } |
2724 | 2842 |
2725 // optional .google.protobuf.FieldOptions options = 8; | 2843 // optional .google.protobuf.FieldOptions options = 8; |
2726 if (has_options()) { | 2844 if (has_options()) { |
2727 target = ::google::protobuf::internal::WireFormatLite:: | 2845 target = ::google::protobuf::internal::WireFormatLite:: |
2728 WriteMessageNoVirtualToArray( | 2846 WriteMessageNoVirtualToArray( |
2729 8, this->options(), target); | 2847 8, this->options(), target); |
2730 } | 2848 } |
2731 | 2849 |
2732 if (!unknown_fields().empty()) { | 2850 if (!unknown_fields().empty()) { |
2733 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 2851 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
2734 unknown_fields(), target); | 2852 unknown_fields(), target); |
2735 } | 2853 } |
2736 return target; | 2854 return target; |
2737 } | 2855 } |
2738 | 2856 |
2739 int FieldDescriptorProto::ByteSize() const { | 2857 int FieldDescriptorProto::ByteSize() const { |
2740 int total_size = 0; | 2858 int total_size = 0; |
2741 | 2859 |
2742 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 2860 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
2743 // optional string name = 1; | 2861 // optional string name = 1; |
2744 if (has_name()) { | 2862 if (has_name()) { |
2745 total_size += 1 + | 2863 total_size += 1 + |
2746 ::google::protobuf::internal::WireFormatLite::StringSize( | 2864 ::google::protobuf::internal::WireFormatLite::StringSize( |
2747 this->name()); | 2865 this->name()); |
2748 } | 2866 } |
2749 | 2867 |
2750 // optional int32 number = 3; | 2868 // optional int32 number = 3; |
2751 if (has_number()) { | 2869 if (has_number()) { |
2752 total_size += 1 + | 2870 total_size += 1 + |
2753 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2871 ::google::protobuf::internal::WireFormatLite::Int32Size( |
2754 this->number()); | 2872 this->number()); |
2755 } | 2873 } |
2756 | 2874 |
2757 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 2875 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
2758 if (has_label()) { | 2876 if (has_label()) { |
2759 total_size += 1 + | 2877 total_size += 1 + |
2760 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); | 2878 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); |
2761 } | 2879 } |
2762 | 2880 |
2763 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 2881 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
2764 if (has_type()) { | 2882 if (has_type()) { |
2765 total_size += 1 + | 2883 total_size += 1 + |
2766 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); | 2884 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
2767 } | 2885 } |
2768 | 2886 |
2769 // optional string type_name = 6; | 2887 // optional string type_name = 6; |
2770 if (has_type_name()) { | 2888 if (has_type_name()) { |
2771 total_size += 1 + | 2889 total_size += 1 + |
2772 ::google::protobuf::internal::WireFormatLite::StringSize( | 2890 ::google::protobuf::internal::WireFormatLite::StringSize( |
2773 this->type_name()); | 2891 this->type_name()); |
2774 } | 2892 } |
2775 | 2893 |
2776 // optional string extendee = 2; | 2894 // optional string extendee = 2; |
2777 if (has_extendee()) { | 2895 if (has_extendee()) { |
2778 total_size += 1 + | 2896 total_size += 1 + |
2779 ::google::protobuf::internal::WireFormatLite::StringSize( | 2897 ::google::protobuf::internal::WireFormatLite::StringSize( |
2780 this->extendee()); | 2898 this->extendee()); |
2781 } | 2899 } |
2782 | 2900 |
2783 // optional string default_value = 7; | 2901 // optional string default_value = 7; |
2784 if (has_default_value()) { | 2902 if (has_default_value()) { |
2785 total_size += 1 + | 2903 total_size += 1 + |
2786 ::google::protobuf::internal::WireFormatLite::StringSize( | 2904 ::google::protobuf::internal::WireFormatLite::StringSize( |
2787 this->default_value()); | 2905 this->default_value()); |
2788 } | 2906 } |
2789 | 2907 |
2790 // optional .google.protobuf.FieldOptions options = 8; | 2908 // optional .google.protobuf.FieldOptions options = 8; |
2791 if (has_options()) { | 2909 if (has_options()) { |
2792 total_size += 1 + | 2910 total_size += 1 + |
2793 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 2911 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2794 this->options()); | 2912 this->options()); |
2795 } | 2913 } |
2796 | 2914 |
2797 } | 2915 } |
2798 if (!unknown_fields().empty()) { | 2916 if (!unknown_fields().empty()) { |
2799 total_size += | 2917 total_size += |
2800 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 2918 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
2801 unknown_fields()); | 2919 unknown_fields()); |
2802 } | 2920 } |
2803 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2921 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2804 _cached_size_ = total_size; | 2922 _cached_size_ = total_size; |
2805 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2923 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2806 return total_size; | 2924 return total_size; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2855 MergeFrom(from); | 2973 MergeFrom(from); |
2856 } | 2974 } |
2857 | 2975 |
2858 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { | 2976 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { |
2859 if (&from == this) return; | 2977 if (&from == this) return; |
2860 Clear(); | 2978 Clear(); |
2861 MergeFrom(from); | 2979 MergeFrom(from); |
2862 } | 2980 } |
2863 | 2981 |
2864 bool FieldDescriptorProto::IsInitialized() const { | 2982 bool FieldDescriptorProto::IsInitialized() const { |
2865 | 2983 |
2866 if (has_options()) { | 2984 if (has_options()) { |
2867 if (!this->options().IsInitialized()) return false; | 2985 if (!this->options().IsInitialized()) return false; |
2868 } | 2986 } |
2869 return true; | 2987 return true; |
2870 } | 2988 } |
2871 | 2989 |
2872 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { | 2990 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { |
2873 if (other != this) { | 2991 if (other != this) { |
2874 std::swap(name_, other->name_); | 2992 std::swap(name_, other->name_); |
2875 std::swap(number_, other->number_); | 2993 std::swap(number_, other->number_); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2988 input, this->mutable_name())); | 3106 input, this->mutable_name())); |
2989 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3107 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
2990 this->name().data(), this->name().length(), | 3108 this->name().data(), this->name().length(), |
2991 ::google::protobuf::internal::WireFormat::PARSE); | 3109 ::google::protobuf::internal::WireFormat::PARSE); |
2992 } else { | 3110 } else { |
2993 goto handle_uninterpreted; | 3111 goto handle_uninterpreted; |
2994 } | 3112 } |
2995 if (input->ExpectTag(18)) goto parse_value; | 3113 if (input->ExpectTag(18)) goto parse_value; |
2996 break; | 3114 break; |
2997 } | 3115 } |
2998 | 3116 |
2999 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 3117 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
3000 case 2: { | 3118 case 2: { |
3001 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3119 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3002 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 3120 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3003 parse_value: | 3121 parse_value: |
3004 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3122 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3005 input, add_value())); | 3123 input, add_value())); |
3006 } else { | 3124 } else { |
3007 goto handle_uninterpreted; | 3125 goto handle_uninterpreted; |
3008 } | 3126 } |
3009 if (input->ExpectTag(18)) goto parse_value; | 3127 if (input->ExpectTag(18)) goto parse_value; |
3010 if (input->ExpectTag(26)) goto parse_options; | 3128 if (input->ExpectTag(26)) goto parse_options; |
3011 break; | 3129 break; |
3012 } | 3130 } |
3013 | 3131 |
3014 // optional .google.protobuf.EnumOptions options = 3; | 3132 // optional .google.protobuf.EnumOptions options = 3; |
3015 case 3: { | 3133 case 3: { |
3016 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3134 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3017 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 3135 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3018 parse_options: | 3136 parse_options: |
3019 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3137 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3020 input, mutable_options())); | 3138 input, mutable_options())); |
3021 } else { | 3139 } else { |
3022 goto handle_uninterpreted; | 3140 goto handle_uninterpreted; |
3023 } | 3141 } |
3024 if (input->ExpectAtEnd()) return true; | 3142 if (input->ExpectAtEnd()) return true; |
3025 break; | 3143 break; |
3026 } | 3144 } |
3027 | 3145 |
3028 default: { | 3146 default: { |
3029 handle_uninterpreted: | 3147 handle_uninterpreted: |
3030 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3148 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3031 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 3149 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
3032 return true; | 3150 return true; |
3033 } | 3151 } |
3034 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 3152 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 3153 input, tag, mutable_unknown_fields())); |
3035 break; | 3154 break; |
3036 } | 3155 } |
3037 } | 3156 } |
3038 } | 3157 } |
3039 return true; | 3158 return true; |
3040 #undef DO_ | 3159 #undef DO_ |
3041 } | 3160 } |
3042 | 3161 |
3043 void EnumDescriptorProto::SerializeWithCachedSizes( | 3162 void EnumDescriptorProto::SerializeWithCachedSizes( |
3044 ::google::protobuf::io::CodedOutputStream* output) const { | 3163 ::google::protobuf::io::CodedOutputStream* output) const { |
3045 // optional string name = 1; | 3164 // optional string name = 1; |
3046 if (has_name()) { | 3165 if (has_name()) { |
3047 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3166 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3048 this->name().data(), this->name().length(), | 3167 this->name().data(), this->name().length(), |
3049 ::google::protobuf::internal::WireFormat::SERIALIZE); | 3168 ::google::protobuf::internal::WireFormat::SERIALIZE); |
3050 ::google::protobuf::internal::WireFormatLite::WriteString( | 3169 ::google::protobuf::internal::WireFormatLite::WriteString( |
3051 1, this->name(), output); | 3170 1, this->name(), output); |
3052 } | 3171 } |
3053 | 3172 |
3054 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 3173 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
3055 for (int i = 0; i < this->value_size(); i++) { | 3174 for (int i = 0; i < this->value_size(); i++) { |
3056 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 3175 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3057 2, this->value(i), output); | 3176 2, this->value(i), output); |
3058 } | 3177 } |
3059 | 3178 |
3060 // optional .google.protobuf.EnumOptions options = 3; | 3179 // optional .google.protobuf.EnumOptions options = 3; |
3061 if (has_options()) { | 3180 if (has_options()) { |
3062 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 3181 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3063 3, this->options(), output); | 3182 3, this->options(), output); |
3064 } | 3183 } |
3065 | 3184 |
3066 if (!unknown_fields().empty()) { | 3185 if (!unknown_fields().empty()) { |
3067 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 3186 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
3068 unknown_fields(), output); | 3187 unknown_fields(), output); |
3069 } | 3188 } |
3070 } | 3189 } |
3071 | 3190 |
3072 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( | 3191 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( |
3073 ::google::protobuf::uint8* target) const { | 3192 ::google::protobuf::uint8* target) const { |
3074 // optional string name = 1; | 3193 // optional string name = 1; |
3075 if (has_name()) { | 3194 if (has_name()) { |
3076 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3195 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3077 this->name().data(), this->name().length(), | 3196 this->name().data(), this->name().length(), |
3078 ::google::protobuf::internal::WireFormat::SERIALIZE); | 3197 ::google::protobuf::internal::WireFormat::SERIALIZE); |
3079 target = | 3198 target = |
3080 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 3199 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3081 1, this->name(), target); | 3200 1, this->name(), target); |
3082 } | 3201 } |
3083 | 3202 |
3084 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 3203 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
3085 for (int i = 0; i < this->value_size(); i++) { | 3204 for (int i = 0; i < this->value_size(); i++) { |
3086 target = ::google::protobuf::internal::WireFormatLite:: | 3205 target = ::google::protobuf::internal::WireFormatLite:: |
3087 WriteMessageNoVirtualToArray( | 3206 WriteMessageNoVirtualToArray( |
3088 2, this->value(i), target); | 3207 2, this->value(i), target); |
3089 } | 3208 } |
3090 | 3209 |
3091 // optional .google.protobuf.EnumOptions options = 3; | 3210 // optional .google.protobuf.EnumOptions options = 3; |
3092 if (has_options()) { | 3211 if (has_options()) { |
3093 target = ::google::protobuf::internal::WireFormatLite:: | 3212 target = ::google::protobuf::internal::WireFormatLite:: |
3094 WriteMessageNoVirtualToArray( | 3213 WriteMessageNoVirtualToArray( |
3095 3, this->options(), target); | 3214 3, this->options(), target); |
3096 } | 3215 } |
3097 | 3216 |
3098 if (!unknown_fields().empty()) { | 3217 if (!unknown_fields().empty()) { |
3099 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 3218 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
3100 unknown_fields(), target); | 3219 unknown_fields(), target); |
3101 } | 3220 } |
3102 return target; | 3221 return target; |
3103 } | 3222 } |
3104 | 3223 |
3105 int EnumDescriptorProto::ByteSize() const { | 3224 int EnumDescriptorProto::ByteSize() const { |
3106 int total_size = 0; | 3225 int total_size = 0; |
3107 | 3226 |
3108 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 3227 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
3109 // optional string name = 1; | 3228 // optional string name = 1; |
3110 if (has_name()) { | 3229 if (has_name()) { |
3111 total_size += 1 + | 3230 total_size += 1 + |
3112 ::google::protobuf::internal::WireFormatLite::StringSize( | 3231 ::google::protobuf::internal::WireFormatLite::StringSize( |
3113 this->name()); | 3232 this->name()); |
3114 } | 3233 } |
3115 | 3234 |
3116 // optional .google.protobuf.EnumOptions options = 3; | 3235 // optional .google.protobuf.EnumOptions options = 3; |
3117 if (has_options()) { | 3236 if (has_options()) { |
3118 total_size += 1 + | 3237 total_size += 1 + |
3119 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3238 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3120 this->options()); | 3239 this->options()); |
3121 } | 3240 } |
3122 | 3241 |
3123 } | 3242 } |
3124 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 3243 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
3125 total_size += 1 * this->value_size(); | 3244 total_size += 1 * this->value_size(); |
3126 for (int i = 0; i < this->value_size(); i++) { | 3245 for (int i = 0; i < this->value_size(); i++) { |
3127 total_size += | 3246 total_size += |
3128 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3247 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3129 this->value(i)); | 3248 this->value(i)); |
3130 } | 3249 } |
3131 | 3250 |
3132 if (!unknown_fields().empty()) { | 3251 if (!unknown_fields().empty()) { |
3133 total_size += | 3252 total_size += |
3134 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 3253 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
3135 unknown_fields()); | 3254 unknown_fields()); |
3136 } | 3255 } |
3137 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3256 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3138 _cached_size_ = total_size; | 3257 _cached_size_ = total_size; |
3139 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3258 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3140 return total_size; | 3259 return total_size; |
3141 } | 3260 } |
(...skipping 30 matching lines...) Expand all Loading... |
3172 MergeFrom(from); | 3291 MergeFrom(from); |
3173 } | 3292 } |
3174 | 3293 |
3175 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { | 3294 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { |
3176 if (&from == this) return; | 3295 if (&from == this) return; |
3177 Clear(); | 3296 Clear(); |
3178 MergeFrom(from); | 3297 MergeFrom(from); |
3179 } | 3298 } |
3180 | 3299 |
3181 bool EnumDescriptorProto::IsInitialized() const { | 3300 bool EnumDescriptorProto::IsInitialized() const { |
3182 | 3301 |
3183 for (int i = 0; i < value_size(); i++) { | 3302 for (int i = 0; i < value_size(); i++) { |
3184 if (!this->value(i).IsInitialized()) return false; | 3303 if (!this->value(i).IsInitialized()) return false; |
3185 } | 3304 } |
3186 if (has_options()) { | 3305 if (has_options()) { |
3187 if (!this->options().IsInitialized()) return false; | 3306 if (!this->options().IsInitialized()) return false; |
3188 } | 3307 } |
3189 return true; | 3308 return true; |
3190 } | 3309 } |
3191 | 3310 |
3192 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { | 3311 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3304 input, this->mutable_name())); | 3423 input, this->mutable_name())); |
3305 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3424 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3306 this->name().data(), this->name().length(), | 3425 this->name().data(), this->name().length(), |
3307 ::google::protobuf::internal::WireFormat::PARSE); | 3426 ::google::protobuf::internal::WireFormat::PARSE); |
3308 } else { | 3427 } else { |
3309 goto handle_uninterpreted; | 3428 goto handle_uninterpreted; |
3310 } | 3429 } |
3311 if (input->ExpectTag(16)) goto parse_number; | 3430 if (input->ExpectTag(16)) goto parse_number; |
3312 break; | 3431 break; |
3313 } | 3432 } |
3314 | 3433 |
3315 // optional int32 number = 2; | 3434 // optional int32 number = 2; |
3316 case 2: { | 3435 case 2: { |
3317 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3436 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3318 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 3437 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
3319 parse_number: | 3438 parse_number: |
3320 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 3439 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3321 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 3440 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
3322 input, &number_))); | 3441 input, &number_))); |
3323 set_has_number(); | 3442 set_has_number(); |
3324 } else { | 3443 } else { |
3325 goto handle_uninterpreted; | 3444 goto handle_uninterpreted; |
3326 } | 3445 } |
3327 if (input->ExpectTag(26)) goto parse_options; | 3446 if (input->ExpectTag(26)) goto parse_options; |
3328 break; | 3447 break; |
3329 } | 3448 } |
3330 | 3449 |
3331 // optional .google.protobuf.EnumValueOptions options = 3; | 3450 // optional .google.protobuf.EnumValueOptions options = 3; |
3332 case 3: { | 3451 case 3: { |
3333 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3452 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3334 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 3453 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3335 parse_options: | 3454 parse_options: |
3336 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3455 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3337 input, mutable_options())); | 3456 input, mutable_options())); |
3338 } else { | 3457 } else { |
3339 goto handle_uninterpreted; | 3458 goto handle_uninterpreted; |
3340 } | 3459 } |
3341 if (input->ExpectAtEnd()) return true; | 3460 if (input->ExpectAtEnd()) return true; |
3342 break; | 3461 break; |
3343 } | 3462 } |
3344 | 3463 |
3345 default: { | 3464 default: { |
3346 handle_uninterpreted: | 3465 handle_uninterpreted: |
3347 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3466 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3348 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 3467 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
3349 return true; | 3468 return true; |
3350 } | 3469 } |
3351 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 3470 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 3471 input, tag, mutable_unknown_fields())); |
3352 break; | 3472 break; |
3353 } | 3473 } |
3354 } | 3474 } |
3355 } | 3475 } |
3356 return true; | 3476 return true; |
3357 #undef DO_ | 3477 #undef DO_ |
3358 } | 3478 } |
3359 | 3479 |
3360 void EnumValueDescriptorProto::SerializeWithCachedSizes( | 3480 void EnumValueDescriptorProto::SerializeWithCachedSizes( |
3361 ::google::protobuf::io::CodedOutputStream* output) const { | 3481 ::google::protobuf::io::CodedOutputStream* output) const { |
3362 // optional string name = 1; | 3482 // optional string name = 1; |
3363 if (has_name()) { | 3483 if (has_name()) { |
3364 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3484 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3365 this->name().data(), this->name().length(), | 3485 this->name().data(), this->name().length(), |
3366 ::google::protobuf::internal::WireFormat::SERIALIZE); | 3486 ::google::protobuf::internal::WireFormat::SERIALIZE); |
3367 ::google::protobuf::internal::WireFormatLite::WriteString( | 3487 ::google::protobuf::internal::WireFormatLite::WriteString( |
3368 1, this->name(), output); | 3488 1, this->name(), output); |
3369 } | 3489 } |
3370 | 3490 |
3371 // optional int32 number = 2; | 3491 // optional int32 number = 2; |
3372 if (has_number()) { | 3492 if (has_number()) { |
3373 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(),
output); | 3493 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(),
output); |
3374 } | 3494 } |
3375 | 3495 |
3376 // optional .google.protobuf.EnumValueOptions options = 3; | 3496 // optional .google.protobuf.EnumValueOptions options = 3; |
3377 if (has_options()) { | 3497 if (has_options()) { |
3378 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 3498 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3379 3, this->options(), output); | 3499 3, this->options(), output); |
3380 } | 3500 } |
3381 | 3501 |
3382 if (!unknown_fields().empty()) { | 3502 if (!unknown_fields().empty()) { |
3383 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 3503 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
3384 unknown_fields(), output); | 3504 unknown_fields(), output); |
3385 } | 3505 } |
3386 } | 3506 } |
3387 | 3507 |
3388 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToA
rray( | 3508 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToA
rray( |
3389 ::google::protobuf::uint8* target) const { | 3509 ::google::protobuf::uint8* target) const { |
3390 // optional string name = 1; | 3510 // optional string name = 1; |
3391 if (has_name()) { | 3511 if (has_name()) { |
3392 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3512 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3393 this->name().data(), this->name().length(), | 3513 this->name().data(), this->name().length(), |
3394 ::google::protobuf::internal::WireFormat::SERIALIZE); | 3514 ::google::protobuf::internal::WireFormat::SERIALIZE); |
3395 target = | 3515 target = |
3396 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 3516 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3397 1, this->name(), target); | 3517 1, this->name(), target); |
3398 } | 3518 } |
3399 | 3519 |
3400 // optional int32 number = 2; | 3520 // optional int32 number = 2; |
3401 if (has_number()) { | 3521 if (has_number()) { |
3402 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->number(), target); | 3522 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->number(), target); |
3403 } | 3523 } |
3404 | 3524 |
3405 // optional .google.protobuf.EnumValueOptions options = 3; | 3525 // optional .google.protobuf.EnumValueOptions options = 3; |
3406 if (has_options()) { | 3526 if (has_options()) { |
3407 target = ::google::protobuf::internal::WireFormatLite:: | 3527 target = ::google::protobuf::internal::WireFormatLite:: |
3408 WriteMessageNoVirtualToArray( | 3528 WriteMessageNoVirtualToArray( |
3409 3, this->options(), target); | 3529 3, this->options(), target); |
3410 } | 3530 } |
3411 | 3531 |
3412 if (!unknown_fields().empty()) { | 3532 if (!unknown_fields().empty()) { |
3413 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 3533 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
3414 unknown_fields(), target); | 3534 unknown_fields(), target); |
3415 } | 3535 } |
3416 return target; | 3536 return target; |
3417 } | 3537 } |
3418 | 3538 |
3419 int EnumValueDescriptorProto::ByteSize() const { | 3539 int EnumValueDescriptorProto::ByteSize() const { |
3420 int total_size = 0; | 3540 int total_size = 0; |
3421 | 3541 |
3422 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 3542 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
3423 // optional string name = 1; | 3543 // optional string name = 1; |
3424 if (has_name()) { | 3544 if (has_name()) { |
3425 total_size += 1 + | 3545 total_size += 1 + |
3426 ::google::protobuf::internal::WireFormatLite::StringSize( | 3546 ::google::protobuf::internal::WireFormatLite::StringSize( |
3427 this->name()); | 3547 this->name()); |
3428 } | 3548 } |
3429 | 3549 |
3430 // optional int32 number = 2; | 3550 // optional int32 number = 2; |
3431 if (has_number()) { | 3551 if (has_number()) { |
3432 total_size += 1 + | 3552 total_size += 1 + |
3433 ::google::protobuf::internal::WireFormatLite::Int32Size( | 3553 ::google::protobuf::internal::WireFormatLite::Int32Size( |
3434 this->number()); | 3554 this->number()); |
3435 } | 3555 } |
3436 | 3556 |
3437 // optional .google.protobuf.EnumValueOptions options = 3; | 3557 // optional .google.protobuf.EnumValueOptions options = 3; |
3438 if (has_options()) { | 3558 if (has_options()) { |
3439 total_size += 1 + | 3559 total_size += 1 + |
3440 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3560 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3441 this->options()); | 3561 this->options()); |
3442 } | 3562 } |
3443 | 3563 |
3444 } | 3564 } |
3445 if (!unknown_fields().empty()) { | 3565 if (!unknown_fields().empty()) { |
3446 total_size += | 3566 total_size += |
3447 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 3567 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
3448 unknown_fields()); | 3568 unknown_fields()); |
3449 } | 3569 } |
3450 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3570 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3451 _cached_size_ = total_size; | 3571 _cached_size_ = total_size; |
3452 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3572 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3453 return total_size; | 3573 return total_size; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3487 MergeFrom(from); | 3607 MergeFrom(from); |
3488 } | 3608 } |
3489 | 3609 |
3490 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { | 3610 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { |
3491 if (&from == this) return; | 3611 if (&from == this) return; |
3492 Clear(); | 3612 Clear(); |
3493 MergeFrom(from); | 3613 MergeFrom(from); |
3494 } | 3614 } |
3495 | 3615 |
3496 bool EnumValueDescriptorProto::IsInitialized() const { | 3616 bool EnumValueDescriptorProto::IsInitialized() const { |
3497 | 3617 |
3498 if (has_options()) { | 3618 if (has_options()) { |
3499 if (!this->options().IsInitialized()) return false; | 3619 if (!this->options().IsInitialized()) return false; |
3500 } | 3620 } |
3501 return true; | 3621 return true; |
3502 } | 3622 } |
3503 | 3623 |
3504 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { | 3624 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { |
3505 if (other != this) { | 3625 if (other != this) { |
3506 std::swap(name_, other->name_); | 3626 std::swap(name_, other->name_); |
3507 std::swap(number_, other->number_); | 3627 std::swap(number_, other->number_); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3615 input, this->mutable_name())); | 3735 input, this->mutable_name())); |
3616 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3736 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3617 this->name().data(), this->name().length(), | 3737 this->name().data(), this->name().length(), |
3618 ::google::protobuf::internal::WireFormat::PARSE); | 3738 ::google::protobuf::internal::WireFormat::PARSE); |
3619 } else { | 3739 } else { |
3620 goto handle_uninterpreted; | 3740 goto handle_uninterpreted; |
3621 } | 3741 } |
3622 if (input->ExpectTag(18)) goto parse_method; | 3742 if (input->ExpectTag(18)) goto parse_method; |
3623 break; | 3743 break; |
3624 } | 3744 } |
3625 | 3745 |
3626 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 3746 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
3627 case 2: { | 3747 case 2: { |
3628 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3748 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3629 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 3749 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3630 parse_method: | 3750 parse_method: |
3631 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3751 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3632 input, add_method())); | 3752 input, add_method())); |
3633 } else { | 3753 } else { |
3634 goto handle_uninterpreted; | 3754 goto handle_uninterpreted; |
3635 } | 3755 } |
3636 if (input->ExpectTag(18)) goto parse_method; | 3756 if (input->ExpectTag(18)) goto parse_method; |
3637 if (input->ExpectTag(26)) goto parse_options; | 3757 if (input->ExpectTag(26)) goto parse_options; |
3638 break; | 3758 break; |
3639 } | 3759 } |
3640 | 3760 |
3641 // optional .google.protobuf.ServiceOptions options = 3; | 3761 // optional .google.protobuf.ServiceOptions options = 3; |
3642 case 3: { | 3762 case 3: { |
3643 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3763 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3644 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 3764 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3645 parse_options: | 3765 parse_options: |
3646 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3766 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3647 input, mutable_options())); | 3767 input, mutable_options())); |
3648 } else { | 3768 } else { |
3649 goto handle_uninterpreted; | 3769 goto handle_uninterpreted; |
3650 } | 3770 } |
3651 if (input->ExpectAtEnd()) return true; | 3771 if (input->ExpectAtEnd()) return true; |
3652 break; | 3772 break; |
3653 } | 3773 } |
3654 | 3774 |
3655 default: { | 3775 default: { |
3656 handle_uninterpreted: | 3776 handle_uninterpreted: |
3657 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3777 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3658 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 3778 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
3659 return true; | 3779 return true; |
3660 } | 3780 } |
3661 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 3781 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 3782 input, tag, mutable_unknown_fields())); |
3662 break; | 3783 break; |
3663 } | 3784 } |
3664 } | 3785 } |
3665 } | 3786 } |
3666 return true; | 3787 return true; |
3667 #undef DO_ | 3788 #undef DO_ |
3668 } | 3789 } |
3669 | 3790 |
3670 void ServiceDescriptorProto::SerializeWithCachedSizes( | 3791 void ServiceDescriptorProto::SerializeWithCachedSizes( |
3671 ::google::protobuf::io::CodedOutputStream* output) const { | 3792 ::google::protobuf::io::CodedOutputStream* output) const { |
3672 // optional string name = 1; | 3793 // optional string name = 1; |
3673 if (has_name()) { | 3794 if (has_name()) { |
3674 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3795 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3675 this->name().data(), this->name().length(), | 3796 this->name().data(), this->name().length(), |
3676 ::google::protobuf::internal::WireFormat::SERIALIZE); | 3797 ::google::protobuf::internal::WireFormat::SERIALIZE); |
3677 ::google::protobuf::internal::WireFormatLite::WriteString( | 3798 ::google::protobuf::internal::WireFormatLite::WriteString( |
3678 1, this->name(), output); | 3799 1, this->name(), output); |
3679 } | 3800 } |
3680 | 3801 |
3681 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 3802 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
3682 for (int i = 0; i < this->method_size(); i++) { | 3803 for (int i = 0; i < this->method_size(); i++) { |
3683 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 3804 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3684 2, this->method(i), output); | 3805 2, this->method(i), output); |
3685 } | 3806 } |
3686 | 3807 |
3687 // optional .google.protobuf.ServiceOptions options = 3; | 3808 // optional .google.protobuf.ServiceOptions options = 3; |
3688 if (has_options()) { | 3809 if (has_options()) { |
3689 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 3810 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3690 3, this->options(), output); | 3811 3, this->options(), output); |
3691 } | 3812 } |
3692 | 3813 |
3693 if (!unknown_fields().empty()) { | 3814 if (!unknown_fields().empty()) { |
3694 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 3815 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
3695 unknown_fields(), output); | 3816 unknown_fields(), output); |
3696 } | 3817 } |
3697 } | 3818 } |
3698 | 3819 |
3699 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArr
ay( | 3820 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArr
ay( |
3700 ::google::protobuf::uint8* target) const { | 3821 ::google::protobuf::uint8* target) const { |
3701 // optional string name = 1; | 3822 // optional string name = 1; |
3702 if (has_name()) { | 3823 if (has_name()) { |
3703 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 3824 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3704 this->name().data(), this->name().length(), | 3825 this->name().data(), this->name().length(), |
3705 ::google::protobuf::internal::WireFormat::SERIALIZE); | 3826 ::google::protobuf::internal::WireFormat::SERIALIZE); |
3706 target = | 3827 target = |
3707 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 3828 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3708 1, this->name(), target); | 3829 1, this->name(), target); |
3709 } | 3830 } |
3710 | 3831 |
3711 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 3832 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
3712 for (int i = 0; i < this->method_size(); i++) { | 3833 for (int i = 0; i < this->method_size(); i++) { |
3713 target = ::google::protobuf::internal::WireFormatLite:: | 3834 target = ::google::protobuf::internal::WireFormatLite:: |
3714 WriteMessageNoVirtualToArray( | 3835 WriteMessageNoVirtualToArray( |
3715 2, this->method(i), target); | 3836 2, this->method(i), target); |
3716 } | 3837 } |
3717 | 3838 |
3718 // optional .google.protobuf.ServiceOptions options = 3; | 3839 // optional .google.protobuf.ServiceOptions options = 3; |
3719 if (has_options()) { | 3840 if (has_options()) { |
3720 target = ::google::protobuf::internal::WireFormatLite:: | 3841 target = ::google::protobuf::internal::WireFormatLite:: |
3721 WriteMessageNoVirtualToArray( | 3842 WriteMessageNoVirtualToArray( |
3722 3, this->options(), target); | 3843 3, this->options(), target); |
3723 } | 3844 } |
3724 | 3845 |
3725 if (!unknown_fields().empty()) { | 3846 if (!unknown_fields().empty()) { |
3726 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 3847 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
3727 unknown_fields(), target); | 3848 unknown_fields(), target); |
3728 } | 3849 } |
3729 return target; | 3850 return target; |
3730 } | 3851 } |
3731 | 3852 |
3732 int ServiceDescriptorProto::ByteSize() const { | 3853 int ServiceDescriptorProto::ByteSize() const { |
3733 int total_size = 0; | 3854 int total_size = 0; |
3734 | 3855 |
3735 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 3856 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
3736 // optional string name = 1; | 3857 // optional string name = 1; |
3737 if (has_name()) { | 3858 if (has_name()) { |
3738 total_size += 1 + | 3859 total_size += 1 + |
3739 ::google::protobuf::internal::WireFormatLite::StringSize( | 3860 ::google::protobuf::internal::WireFormatLite::StringSize( |
3740 this->name()); | 3861 this->name()); |
3741 } | 3862 } |
3742 | 3863 |
3743 // optional .google.protobuf.ServiceOptions options = 3; | 3864 // optional .google.protobuf.ServiceOptions options = 3; |
3744 if (has_options()) { | 3865 if (has_options()) { |
3745 total_size += 1 + | 3866 total_size += 1 + |
3746 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3867 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3747 this->options()); | 3868 this->options()); |
3748 } | 3869 } |
3749 | 3870 |
3750 } | 3871 } |
3751 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 3872 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
3752 total_size += 1 * this->method_size(); | 3873 total_size += 1 * this->method_size(); |
3753 for (int i = 0; i < this->method_size(); i++) { | 3874 for (int i = 0; i < this->method_size(); i++) { |
3754 total_size += | 3875 total_size += |
3755 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3876 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3756 this->method(i)); | 3877 this->method(i)); |
3757 } | 3878 } |
3758 | 3879 |
3759 if (!unknown_fields().empty()) { | 3880 if (!unknown_fields().empty()) { |
3760 total_size += | 3881 total_size += |
3761 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 3882 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
3762 unknown_fields()); | 3883 unknown_fields()); |
3763 } | 3884 } |
3764 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3885 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3765 _cached_size_ = total_size; | 3886 _cached_size_ = total_size; |
3766 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3887 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3767 return total_size; | 3888 return total_size; |
3768 } | 3889 } |
(...skipping 30 matching lines...) Expand all Loading... |
3799 MergeFrom(from); | 3920 MergeFrom(from); |
3800 } | 3921 } |
3801 | 3922 |
3802 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { | 3923 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { |
3803 if (&from == this) return; | 3924 if (&from == this) return; |
3804 Clear(); | 3925 Clear(); |
3805 MergeFrom(from); | 3926 MergeFrom(from); |
3806 } | 3927 } |
3807 | 3928 |
3808 bool ServiceDescriptorProto::IsInitialized() const { | 3929 bool ServiceDescriptorProto::IsInitialized() const { |
3809 | 3930 |
3810 for (int i = 0; i < method_size(); i++) { | 3931 for (int i = 0; i < method_size(); i++) { |
3811 if (!this->method(i).IsInitialized()) return false; | 3932 if (!this->method(i).IsInitialized()) return false; |
3812 } | 3933 } |
3813 if (has_options()) { | 3934 if (has_options()) { |
3814 if (!this->options().IsInitialized()) return false; | 3935 if (!this->options().IsInitialized()) return false; |
3815 } | 3936 } |
3816 return true; | 3937 return true; |
3817 } | 3938 } |
3818 | 3939 |
3819 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { | 3940 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3948 input, this->mutable_name())); | 4069 input, this->mutable_name())); |
3949 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4070 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3950 this->name().data(), this->name().length(), | 4071 this->name().data(), this->name().length(), |
3951 ::google::protobuf::internal::WireFormat::PARSE); | 4072 ::google::protobuf::internal::WireFormat::PARSE); |
3952 } else { | 4073 } else { |
3953 goto handle_uninterpreted; | 4074 goto handle_uninterpreted; |
3954 } | 4075 } |
3955 if (input->ExpectTag(18)) goto parse_input_type; | 4076 if (input->ExpectTag(18)) goto parse_input_type; |
3956 break; | 4077 break; |
3957 } | 4078 } |
3958 | 4079 |
3959 // optional string input_type = 2; | 4080 // optional string input_type = 2; |
3960 case 2: { | 4081 case 2: { |
3961 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4082 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3962 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 4083 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3963 parse_input_type: | 4084 parse_input_type: |
3964 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4085 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3965 input, this->mutable_input_type())); | 4086 input, this->mutable_input_type())); |
3966 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4087 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3967 this->input_type().data(), this->input_type().length(), | 4088 this->input_type().data(), this->input_type().length(), |
3968 ::google::protobuf::internal::WireFormat::PARSE); | 4089 ::google::protobuf::internal::WireFormat::PARSE); |
3969 } else { | 4090 } else { |
3970 goto handle_uninterpreted; | 4091 goto handle_uninterpreted; |
3971 } | 4092 } |
3972 if (input->ExpectTag(26)) goto parse_output_type; | 4093 if (input->ExpectTag(26)) goto parse_output_type; |
3973 break; | 4094 break; |
3974 } | 4095 } |
3975 | 4096 |
3976 // optional string output_type = 3; | 4097 // optional string output_type = 3; |
3977 case 3: { | 4098 case 3: { |
3978 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4099 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3979 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 4100 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3980 parse_output_type: | 4101 parse_output_type: |
3981 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4102 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3982 input, this->mutable_output_type())); | 4103 input, this->mutable_output_type())); |
3983 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4104 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
3984 this->output_type().data(), this->output_type().length(), | 4105 this->output_type().data(), this->output_type().length(), |
3985 ::google::protobuf::internal::WireFormat::PARSE); | 4106 ::google::protobuf::internal::WireFormat::PARSE); |
3986 } else { | 4107 } else { |
3987 goto handle_uninterpreted; | 4108 goto handle_uninterpreted; |
3988 } | 4109 } |
3989 if (input->ExpectTag(34)) goto parse_options; | 4110 if (input->ExpectTag(34)) goto parse_options; |
3990 break; | 4111 break; |
3991 } | 4112 } |
3992 | 4113 |
3993 // optional .google.protobuf.MethodOptions options = 4; | 4114 // optional .google.protobuf.MethodOptions options = 4; |
3994 case 4: { | 4115 case 4: { |
3995 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4116 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3996 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 4117 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
3997 parse_options: | 4118 parse_options: |
3998 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 4119 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3999 input, mutable_options())); | 4120 input, mutable_options())); |
4000 } else { | 4121 } else { |
4001 goto handle_uninterpreted; | 4122 goto handle_uninterpreted; |
4002 } | 4123 } |
4003 if (input->ExpectAtEnd()) return true; | 4124 if (input->ExpectAtEnd()) return true; |
4004 break; | 4125 break; |
4005 } | 4126 } |
4006 | 4127 |
4007 default: { | 4128 default: { |
4008 handle_uninterpreted: | 4129 handle_uninterpreted: |
4009 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4130 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4010 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 4131 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
4011 return true; | 4132 return true; |
4012 } | 4133 } |
4013 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 4134 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 4135 input, tag, mutable_unknown_fields())); |
4014 break; | 4136 break; |
4015 } | 4137 } |
4016 } | 4138 } |
4017 } | 4139 } |
4018 return true; | 4140 return true; |
4019 #undef DO_ | 4141 #undef DO_ |
4020 } | 4142 } |
4021 | 4143 |
4022 void MethodDescriptorProto::SerializeWithCachedSizes( | 4144 void MethodDescriptorProto::SerializeWithCachedSizes( |
4023 ::google::protobuf::io::CodedOutputStream* output) const { | 4145 ::google::protobuf::io::CodedOutputStream* output) const { |
4024 // optional string name = 1; | 4146 // optional string name = 1; |
4025 if (has_name()) { | 4147 if (has_name()) { |
4026 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4148 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4027 this->name().data(), this->name().length(), | 4149 this->name().data(), this->name().length(), |
4028 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4150 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4029 ::google::protobuf::internal::WireFormatLite::WriteString( | 4151 ::google::protobuf::internal::WireFormatLite::WriteString( |
4030 1, this->name(), output); | 4152 1, this->name(), output); |
4031 } | 4153 } |
4032 | 4154 |
4033 // optional string input_type = 2; | 4155 // optional string input_type = 2; |
4034 if (has_input_type()) { | 4156 if (has_input_type()) { |
4035 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4157 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4036 this->input_type().data(), this->input_type().length(), | 4158 this->input_type().data(), this->input_type().length(), |
4037 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4159 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4038 ::google::protobuf::internal::WireFormatLite::WriteString( | 4160 ::google::protobuf::internal::WireFormatLite::WriteString( |
4039 2, this->input_type(), output); | 4161 2, this->input_type(), output); |
4040 } | 4162 } |
4041 | 4163 |
4042 // optional string output_type = 3; | 4164 // optional string output_type = 3; |
4043 if (has_output_type()) { | 4165 if (has_output_type()) { |
4044 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4166 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4045 this->output_type().data(), this->output_type().length(), | 4167 this->output_type().data(), this->output_type().length(), |
4046 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4168 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4047 ::google::protobuf::internal::WireFormatLite::WriteString( | 4169 ::google::protobuf::internal::WireFormatLite::WriteString( |
4048 3, this->output_type(), output); | 4170 3, this->output_type(), output); |
4049 } | 4171 } |
4050 | 4172 |
4051 // optional .google.protobuf.MethodOptions options = 4; | 4173 // optional .google.protobuf.MethodOptions options = 4; |
4052 if (has_options()) { | 4174 if (has_options()) { |
4053 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 4175 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4054 4, this->options(), output); | 4176 4, this->options(), output); |
4055 } | 4177 } |
4056 | 4178 |
4057 if (!unknown_fields().empty()) { | 4179 if (!unknown_fields().empty()) { |
4058 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 4180 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
4059 unknown_fields(), output); | 4181 unknown_fields(), output); |
4060 } | 4182 } |
4061 } | 4183 } |
4062 | 4184 |
4063 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArra
y( | 4185 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArra
y( |
4064 ::google::protobuf::uint8* target) const { | 4186 ::google::protobuf::uint8* target) const { |
4065 // optional string name = 1; | 4187 // optional string name = 1; |
4066 if (has_name()) { | 4188 if (has_name()) { |
4067 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4189 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4068 this->name().data(), this->name().length(), | 4190 this->name().data(), this->name().length(), |
4069 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4191 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4070 target = | 4192 target = |
4071 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4193 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4072 1, this->name(), target); | 4194 1, this->name(), target); |
4073 } | 4195 } |
4074 | 4196 |
4075 // optional string input_type = 2; | 4197 // optional string input_type = 2; |
4076 if (has_input_type()) { | 4198 if (has_input_type()) { |
4077 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4199 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4078 this->input_type().data(), this->input_type().length(), | 4200 this->input_type().data(), this->input_type().length(), |
4079 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4201 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4080 target = | 4202 target = |
4081 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4203 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4082 2, this->input_type(), target); | 4204 2, this->input_type(), target); |
4083 } | 4205 } |
4084 | 4206 |
4085 // optional string output_type = 3; | 4207 // optional string output_type = 3; |
4086 if (has_output_type()) { | 4208 if (has_output_type()) { |
4087 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4209 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4088 this->output_type().data(), this->output_type().length(), | 4210 this->output_type().data(), this->output_type().length(), |
4089 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4211 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4090 target = | 4212 target = |
4091 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4213 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4092 3, this->output_type(), target); | 4214 3, this->output_type(), target); |
4093 } | 4215 } |
4094 | 4216 |
4095 // optional .google.protobuf.MethodOptions options = 4; | 4217 // optional .google.protobuf.MethodOptions options = 4; |
4096 if (has_options()) { | 4218 if (has_options()) { |
4097 target = ::google::protobuf::internal::WireFormatLite:: | 4219 target = ::google::protobuf::internal::WireFormatLite:: |
4098 WriteMessageNoVirtualToArray( | 4220 WriteMessageNoVirtualToArray( |
4099 4, this->options(), target); | 4221 4, this->options(), target); |
4100 } | 4222 } |
4101 | 4223 |
4102 if (!unknown_fields().empty()) { | 4224 if (!unknown_fields().empty()) { |
4103 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 4225 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
4104 unknown_fields(), target); | 4226 unknown_fields(), target); |
4105 } | 4227 } |
4106 return target; | 4228 return target; |
4107 } | 4229 } |
4108 | 4230 |
4109 int MethodDescriptorProto::ByteSize() const { | 4231 int MethodDescriptorProto::ByteSize() const { |
4110 int total_size = 0; | 4232 int total_size = 0; |
4111 | 4233 |
4112 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 4234 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
4113 // optional string name = 1; | 4235 // optional string name = 1; |
4114 if (has_name()) { | 4236 if (has_name()) { |
4115 total_size += 1 + | 4237 total_size += 1 + |
4116 ::google::protobuf::internal::WireFormatLite::StringSize( | 4238 ::google::protobuf::internal::WireFormatLite::StringSize( |
4117 this->name()); | 4239 this->name()); |
4118 } | 4240 } |
4119 | 4241 |
4120 // optional string input_type = 2; | 4242 // optional string input_type = 2; |
4121 if (has_input_type()) { | 4243 if (has_input_type()) { |
4122 total_size += 1 + | 4244 total_size += 1 + |
4123 ::google::protobuf::internal::WireFormatLite::StringSize( | 4245 ::google::protobuf::internal::WireFormatLite::StringSize( |
4124 this->input_type()); | 4246 this->input_type()); |
4125 } | 4247 } |
4126 | 4248 |
4127 // optional string output_type = 3; | 4249 // optional string output_type = 3; |
4128 if (has_output_type()) { | 4250 if (has_output_type()) { |
4129 total_size += 1 + | 4251 total_size += 1 + |
4130 ::google::protobuf::internal::WireFormatLite::StringSize( | 4252 ::google::protobuf::internal::WireFormatLite::StringSize( |
4131 this->output_type()); | 4253 this->output_type()); |
4132 } | 4254 } |
4133 | 4255 |
4134 // optional .google.protobuf.MethodOptions options = 4; | 4256 // optional .google.protobuf.MethodOptions options = 4; |
4135 if (has_options()) { | 4257 if (has_options()) { |
4136 total_size += 1 + | 4258 total_size += 1 + |
4137 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 4259 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
4138 this->options()); | 4260 this->options()); |
4139 } | 4261 } |
4140 | 4262 |
4141 } | 4263 } |
4142 if (!unknown_fields().empty()) { | 4264 if (!unknown_fields().empty()) { |
4143 total_size += | 4265 total_size += |
4144 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 4266 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
4145 unknown_fields()); | 4267 unknown_fields()); |
4146 } | 4268 } |
4147 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4269 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4148 _cached_size_ = total_size; | 4270 _cached_size_ = total_size; |
4149 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4271 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4150 return total_size; | 4272 return total_size; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4187 MergeFrom(from); | 4309 MergeFrom(from); |
4188 } | 4310 } |
4189 | 4311 |
4190 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { | 4312 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { |
4191 if (&from == this) return; | 4313 if (&from == this) return; |
4192 Clear(); | 4314 Clear(); |
4193 MergeFrom(from); | 4315 MergeFrom(from); |
4194 } | 4316 } |
4195 | 4317 |
4196 bool MethodDescriptorProto::IsInitialized() const { | 4318 bool MethodDescriptorProto::IsInitialized() const { |
4197 | 4319 |
4198 if (has_options()) { | 4320 if (has_options()) { |
4199 if (!this->options().IsInitialized()) return false; | 4321 if (!this->options().IsInitialized()) return false; |
4200 } | 4322 } |
4201 return true; | 4323 return true; |
4202 } | 4324 } |
4203 | 4325 |
4204 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { | 4326 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { |
4205 if (other != this) { | 4327 if (other != this) { |
4206 std::swap(name_, other->name_); | 4328 std::swap(name_, other->name_); |
4207 std::swap(input_type_, other->input_type_); | 4329 std::swap(input_type_, other->input_type_); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4247 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX; | 4369 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX; |
4248 const int FileOptions::OptimizeMode_ARRAYSIZE; | 4370 const int FileOptions::OptimizeMode_ARRAYSIZE; |
4249 #endif // _MSC_VER | 4371 #endif // _MSC_VER |
4250 #ifndef _MSC_VER | 4372 #ifndef _MSC_VER |
4251 const int FileOptions::kJavaPackageFieldNumber; | 4373 const int FileOptions::kJavaPackageFieldNumber; |
4252 const int FileOptions::kJavaOuterClassnameFieldNumber; | 4374 const int FileOptions::kJavaOuterClassnameFieldNumber; |
4253 const int FileOptions::kJavaMultipleFilesFieldNumber; | 4375 const int FileOptions::kJavaMultipleFilesFieldNumber; |
4254 const int FileOptions::kRetainUnknownFieldsFieldNumber; | 4376 const int FileOptions::kRetainUnknownFieldsFieldNumber; |
4255 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; | 4377 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; |
4256 const int FileOptions::kOptimizeForFieldNumber; | 4378 const int FileOptions::kOptimizeForFieldNumber; |
| 4379 const int FileOptions::kGoPackageFieldNumber; |
4257 const int FileOptions::kCcGenericServicesFieldNumber; | 4380 const int FileOptions::kCcGenericServicesFieldNumber; |
4258 const int FileOptions::kJavaGenericServicesFieldNumber; | 4381 const int FileOptions::kJavaGenericServicesFieldNumber; |
4259 const int FileOptions::kPyGenericServicesFieldNumber; | 4382 const int FileOptions::kPyGenericServicesFieldNumber; |
4260 const int FileOptions::kUninterpretedOptionFieldNumber; | 4383 const int FileOptions::kUninterpretedOptionFieldNumber; |
4261 #endif // !_MSC_VER | 4384 #endif // !_MSC_VER |
4262 | 4385 |
4263 FileOptions::FileOptions() | 4386 FileOptions::FileOptions() |
4264 : ::google::protobuf::Message() { | 4387 : ::google::protobuf::Message() { |
4265 SharedCtor(); | 4388 SharedCtor(); |
4266 } | 4389 } |
4267 | 4390 |
4268 void FileOptions::InitAsDefaultInstance() { | 4391 void FileOptions::InitAsDefaultInstance() { |
4269 } | 4392 } |
4270 | 4393 |
4271 FileOptions::FileOptions(const FileOptions& from) | 4394 FileOptions::FileOptions(const FileOptions& from) |
4272 : ::google::protobuf::Message() { | 4395 : ::google::protobuf::Message() { |
4273 SharedCtor(); | 4396 SharedCtor(); |
4274 MergeFrom(from); | 4397 MergeFrom(from); |
4275 } | 4398 } |
4276 | 4399 |
4277 void FileOptions::SharedCtor() { | 4400 void FileOptions::SharedCtor() { |
4278 _cached_size_ = 0; | 4401 _cached_size_ = 0; |
4279 java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEm
ptyString); | 4402 java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEm
ptyString); |
4280 java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::inter
nal::kEmptyString); | 4403 java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::inter
nal::kEmptyString); |
4281 java_multiple_files_ = false; | 4404 java_multiple_files_ = false; |
4282 retain_unknown_fields_ = false; | 4405 retain_unknown_fields_ = false; |
4283 java_generate_equals_and_hash_ = false; | 4406 java_generate_equals_and_hash_ = false; |
4284 optimize_for_ = 1; | 4407 optimize_for_ = 1; |
| 4408 go_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmpt
yString); |
4285 cc_generic_services_ = false; | 4409 cc_generic_services_ = false; |
4286 java_generic_services_ = false; | 4410 java_generic_services_ = false; |
4287 py_generic_services_ = false; | 4411 py_generic_services_ = false; |
4288 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 4412 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
4289 } | 4413 } |
4290 | 4414 |
4291 FileOptions::~FileOptions() { | 4415 FileOptions::~FileOptions() { |
4292 SharedDtor(); | 4416 SharedDtor(); |
4293 } | 4417 } |
4294 | 4418 |
4295 void FileOptions::SharedDtor() { | 4419 void FileOptions::SharedDtor() { |
4296 if (java_package_ != &::google::protobuf::internal::kEmptyString) { | 4420 if (java_package_ != &::google::protobuf::internal::kEmptyString) { |
4297 delete java_package_; | 4421 delete java_package_; |
4298 } | 4422 } |
4299 if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) { | 4423 if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) { |
4300 delete java_outer_classname_; | 4424 delete java_outer_classname_; |
4301 } | 4425 } |
| 4426 if (go_package_ != &::google::protobuf::internal::kEmptyString) { |
| 4427 delete go_package_; |
| 4428 } |
4302 if (this != default_instance_) { | 4429 if (this != default_instance_) { |
4303 } | 4430 } |
4304 } | 4431 } |
4305 | 4432 |
4306 void FileOptions::SetCachedSize(int size) const { | 4433 void FileOptions::SetCachedSize(int size) const { |
4307 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4434 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4308 _cached_size_ = size; | 4435 _cached_size_ = size; |
4309 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4436 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4310 } | 4437 } |
4311 const ::google::protobuf::Descriptor* FileOptions::descriptor() { | 4438 const ::google::protobuf::Descriptor* FileOptions::descriptor() { |
(...skipping 22 matching lines...) Expand all Loading... |
4334 } | 4461 } |
4335 if (has_java_outer_classname()) { | 4462 if (has_java_outer_classname()) { |
4336 if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString)
{ | 4463 if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString)
{ |
4337 java_outer_classname_->clear(); | 4464 java_outer_classname_->clear(); |
4338 } | 4465 } |
4339 } | 4466 } |
4340 java_multiple_files_ = false; | 4467 java_multiple_files_ = false; |
4341 retain_unknown_fields_ = false; | 4468 retain_unknown_fields_ = false; |
4342 java_generate_equals_and_hash_ = false; | 4469 java_generate_equals_and_hash_ = false; |
4343 optimize_for_ = 1; | 4470 optimize_for_ = 1; |
| 4471 if (has_go_package()) { |
| 4472 if (go_package_ != &::google::protobuf::internal::kEmptyString) { |
| 4473 go_package_->clear(); |
| 4474 } |
| 4475 } |
4344 cc_generic_services_ = false; | 4476 cc_generic_services_ = false; |
4345 java_generic_services_ = false; | |
4346 } | 4477 } |
4347 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { | 4478 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
| 4479 java_generic_services_ = false; |
4348 py_generic_services_ = false; | 4480 py_generic_services_ = false; |
4349 } | 4481 } |
4350 uninterpreted_option_.Clear(); | 4482 uninterpreted_option_.Clear(); |
4351 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 4483 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
4352 mutable_unknown_fields()->Clear(); | 4484 mutable_unknown_fields()->Clear(); |
4353 } | 4485 } |
4354 | 4486 |
4355 bool FileOptions::MergePartialFromCodedStream( | 4487 bool FileOptions::MergePartialFromCodedStream( |
4356 ::google::protobuf::io::CodedInputStream* input) { | 4488 ::google::protobuf::io::CodedInputStream* input) { |
4357 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | 4489 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
4358 ::google::protobuf::uint32 tag; | 4490 ::google::protobuf::uint32 tag; |
4359 while ((tag = input->ReadTag()) != 0) { | 4491 while ((tag = input->ReadTag()) != 0) { |
4360 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 4492 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
4361 // optional string java_package = 1; | 4493 // optional string java_package = 1; |
4362 case 1: { | 4494 case 1: { |
4363 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4495 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4364 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 4496 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
4365 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4497 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4366 input, this->mutable_java_package())); | 4498 input, this->mutable_java_package())); |
4367 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4499 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4368 this->java_package().data(), this->java_package().length(), | 4500 this->java_package().data(), this->java_package().length(), |
4369 ::google::protobuf::internal::WireFormat::PARSE); | 4501 ::google::protobuf::internal::WireFormat::PARSE); |
4370 } else { | 4502 } else { |
4371 goto handle_uninterpreted; | 4503 goto handle_uninterpreted; |
4372 } | 4504 } |
4373 if (input->ExpectTag(66)) goto parse_java_outer_classname; | 4505 if (input->ExpectTag(66)) goto parse_java_outer_classname; |
4374 break; | 4506 break; |
4375 } | 4507 } |
4376 | 4508 |
4377 // optional string java_outer_classname = 8; | 4509 // optional string java_outer_classname = 8; |
4378 case 8: { | 4510 case 8: { |
4379 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4511 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4380 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 4512 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
4381 parse_java_outer_classname: | 4513 parse_java_outer_classname: |
4382 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4514 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4383 input, this->mutable_java_outer_classname())); | 4515 input, this->mutable_java_outer_classname())); |
4384 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4516 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4385 this->java_outer_classname().data(), this->java_outer_classname().le
ngth(), | 4517 this->java_outer_classname().data(), this->java_outer_classname().le
ngth(), |
4386 ::google::protobuf::internal::WireFormat::PARSE); | 4518 ::google::protobuf::internal::WireFormat::PARSE); |
4387 } else { | 4519 } else { |
4388 goto handle_uninterpreted; | 4520 goto handle_uninterpreted; |
4389 } | 4521 } |
4390 if (input->ExpectTag(72)) goto parse_optimize_for; | 4522 if (input->ExpectTag(72)) goto parse_optimize_for; |
4391 break; | 4523 break; |
4392 } | 4524 } |
4393 | 4525 |
4394 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de
fault = SPEED]; | 4526 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de
fault = SPEED]; |
4395 case 9: { | 4527 case 9: { |
4396 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4528 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4397 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4529 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4398 parse_optimize_for: | 4530 parse_optimize_for: |
4399 int value; | 4531 int value; |
4400 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4532 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4401 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 4533 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
4402 input, &value))); | 4534 input, &value))); |
4403 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { | 4535 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { |
4404 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi
zeMode >(value)); | 4536 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi
zeMode >(value)); |
4405 } else { | 4537 } else { |
4406 mutable_unknown_fields()->AddVarint(9, value); | 4538 mutable_unknown_fields()->AddVarint(9, value); |
4407 } | 4539 } |
4408 } else { | 4540 } else { |
4409 goto handle_uninterpreted; | 4541 goto handle_uninterpreted; |
4410 } | 4542 } |
4411 if (input->ExpectTag(80)) goto parse_java_multiple_files; | 4543 if (input->ExpectTag(80)) goto parse_java_multiple_files; |
4412 break; | 4544 break; |
4413 } | 4545 } |
4414 | 4546 |
4415 // optional bool java_multiple_files = 10 [default = false]; | 4547 // optional bool java_multiple_files = 10 [default = false]; |
4416 case 10: { | 4548 case 10: { |
4417 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4549 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4418 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4550 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4419 parse_java_multiple_files: | 4551 parse_java_multiple_files: |
4420 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4552 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4421 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 4553 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4422 input, &java_multiple_files_))); | 4554 input, &java_multiple_files_))); |
4423 set_has_java_multiple_files(); | 4555 set_has_java_multiple_files(); |
4424 } else { | 4556 } else { |
4425 goto handle_uninterpreted; | 4557 goto handle_uninterpreted; |
4426 } | 4558 } |
4427 if (input->ExpectTag(88)) goto parse_retain_unknown_fields; | 4559 if (input->ExpectTag(90)) goto parse_go_package; |
4428 break; | 4560 break; |
4429 } | 4561 } |
4430 | 4562 |
4431 // optional bool retain_unknown_fields = 11 [default = false]; | 4563 // optional string go_package = 11; |
4432 case 11: { | 4564 case 11: { |
4433 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4565 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 4566 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
| 4567 parse_go_package: |
| 4568 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4569 input, this->mutable_go_package())); |
| 4570 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 4571 this->go_package().data(), this->go_package().length(), |
| 4572 ::google::protobuf::internal::WireFormat::PARSE); |
| 4573 } else { |
| 4574 goto handle_uninterpreted; |
| 4575 } |
| 4576 if (input->ExpectTag(96)) goto parse_retain_unknown_fields; |
| 4577 break; |
| 4578 } |
| 4579 |
| 4580 // optional bool retain_unknown_fields = 12 [default = false]; |
| 4581 case 12: { |
| 4582 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4434 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4583 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4435 parse_retain_unknown_fields: | 4584 parse_retain_unknown_fields: |
4436 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4585 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4437 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 4586 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4438 input, &retain_unknown_fields_))); | 4587 input, &retain_unknown_fields_))); |
4439 set_has_retain_unknown_fields(); | 4588 set_has_retain_unknown_fields(); |
4440 } else { | 4589 } else { |
4441 goto handle_uninterpreted; | 4590 goto handle_uninterpreted; |
4442 } | 4591 } |
4443 if (input->ExpectTag(128)) goto parse_cc_generic_services; | 4592 if (input->ExpectTag(128)) goto parse_cc_generic_services; |
4444 break; | 4593 break; |
4445 } | 4594 } |
4446 | 4595 |
4447 // optional bool cc_generic_services = 16 [default = false]; | 4596 // optional bool cc_generic_services = 16 [default = false]; |
4448 case 16: { | 4597 case 16: { |
4449 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4598 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4450 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4599 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4451 parse_cc_generic_services: | 4600 parse_cc_generic_services: |
4452 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4601 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4453 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 4602 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4454 input, &cc_generic_services_))); | 4603 input, &cc_generic_services_))); |
4455 set_has_cc_generic_services(); | 4604 set_has_cc_generic_services(); |
4456 } else { | 4605 } else { |
4457 goto handle_uninterpreted; | 4606 goto handle_uninterpreted; |
4458 } | 4607 } |
4459 if (input->ExpectTag(136)) goto parse_java_generic_services; | 4608 if (input->ExpectTag(136)) goto parse_java_generic_services; |
4460 break; | 4609 break; |
4461 } | 4610 } |
4462 | 4611 |
4463 // optional bool java_generic_services = 17 [default = false]; | 4612 // optional bool java_generic_services = 17 [default = false]; |
4464 case 17: { | 4613 case 17: { |
4465 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4614 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4466 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4615 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4467 parse_java_generic_services: | 4616 parse_java_generic_services: |
4468 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4617 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4469 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 4618 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4470 input, &java_generic_services_))); | 4619 input, &java_generic_services_))); |
4471 set_has_java_generic_services(); | 4620 set_has_java_generic_services(); |
4472 } else { | 4621 } else { |
4473 goto handle_uninterpreted; | 4622 goto handle_uninterpreted; |
4474 } | 4623 } |
4475 if (input->ExpectTag(144)) goto parse_py_generic_services; | 4624 if (input->ExpectTag(144)) goto parse_py_generic_services; |
4476 break; | 4625 break; |
4477 } | 4626 } |
4478 | 4627 |
4479 // optional bool py_generic_services = 18 [default = false]; | 4628 // optional bool py_generic_services = 18 [default = false]; |
4480 case 18: { | 4629 case 18: { |
4481 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4630 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4482 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4631 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4483 parse_py_generic_services: | 4632 parse_py_generic_services: |
4484 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4485 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 4634 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4486 input, &py_generic_services_))); | 4635 input, &py_generic_services_))); |
4487 set_has_py_generic_services(); | 4636 set_has_py_generic_services(); |
4488 } else { | 4637 } else { |
4489 goto handle_uninterpreted; | 4638 goto handle_uninterpreted; |
4490 } | 4639 } |
4491 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash; | 4640 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash; |
4492 break; | 4641 break; |
4493 } | 4642 } |
4494 | 4643 |
4495 // optional bool java_generate_equals_and_hash = 20 [default = false]; | 4644 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
4496 case 20: { | 4645 case 20: { |
4497 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4646 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4498 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 4647 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4499 parse_java_generate_equals_and_hash: | 4648 parse_java_generate_equals_and_hash: |
4500 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4649 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4501 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 4650 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4502 input, &java_generate_equals_and_hash_))); | 4651 input, &java_generate_equals_and_hash_))); |
4503 set_has_java_generate_equals_and_hash(); | 4652 set_has_java_generate_equals_and_hash(); |
4504 } else { | 4653 } else { |
4505 goto handle_uninterpreted; | 4654 goto handle_uninterpreted; |
4506 } | 4655 } |
4507 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 4656 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
4508 break; | 4657 break; |
4509 } | 4658 } |
4510 | 4659 |
4511 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 4660 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
4512 case 999: { | 4661 case 999: { |
4513 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4662 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4514 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 4663 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
4515 parse_uninterpreted_option: | 4664 parse_uninterpreted_option: |
4516 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 4665 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
4517 input, add_uninterpreted_option())); | 4666 input, add_uninterpreted_option())); |
4518 } else { | 4667 } else { |
4519 goto handle_uninterpreted; | 4668 goto handle_uninterpreted; |
4520 } | 4669 } |
4521 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 4670 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
4522 if (input->ExpectAtEnd()) return true; | 4671 if (input->ExpectAtEnd()) return true; |
4523 break; | 4672 break; |
4524 } | 4673 } |
4525 | 4674 |
4526 default: { | 4675 default: { |
4527 handle_uninterpreted: | 4676 handle_uninterpreted: |
4528 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4529 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 4678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
4530 return true; | 4679 return true; |
4531 } | 4680 } |
4532 if ((8000u <= tag)) { | 4681 if ((8000u <= tag)) { |
4533 DO_(_extensions_.ParseField(tag, input, default_instance_, | 4682 DO_(_extensions_.ParseField(tag, input, default_instance_, |
4534 mutable_unknown_fields())); | 4683 mutable_unknown_fields())); |
4535 continue; | 4684 continue; |
4536 } | 4685 } |
4537 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 4686 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 4687 input, tag, mutable_unknown_fields())); |
4538 break; | 4688 break; |
4539 } | 4689 } |
4540 } | 4690 } |
4541 } | 4691 } |
4542 return true; | 4692 return true; |
4543 #undef DO_ | 4693 #undef DO_ |
4544 } | 4694 } |
4545 | 4695 |
4546 void FileOptions::SerializeWithCachedSizes( | 4696 void FileOptions::SerializeWithCachedSizes( |
4547 ::google::protobuf::io::CodedOutputStream* output) const { | 4697 ::google::protobuf::io::CodedOutputStream* output) const { |
4548 // optional string java_package = 1; | 4698 // optional string java_package = 1; |
4549 if (has_java_package()) { | 4699 if (has_java_package()) { |
4550 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4700 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4551 this->java_package().data(), this->java_package().length(), | 4701 this->java_package().data(), this->java_package().length(), |
4552 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4702 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4553 ::google::protobuf::internal::WireFormatLite::WriteString( | 4703 ::google::protobuf::internal::WireFormatLite::WriteString( |
4554 1, this->java_package(), output); | 4704 1, this->java_package(), output); |
4555 } | 4705 } |
4556 | 4706 |
4557 // optional string java_outer_classname = 8; | 4707 // optional string java_outer_classname = 8; |
4558 if (has_java_outer_classname()) { | 4708 if (has_java_outer_classname()) { |
4559 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4709 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4560 this->java_outer_classname().data(), this->java_outer_classname().length()
, | 4710 this->java_outer_classname().data(), this->java_outer_classname().length()
, |
4561 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4711 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4562 ::google::protobuf::internal::WireFormatLite::WriteString( | 4712 ::google::protobuf::internal::WireFormatLite::WriteString( |
4563 8, this->java_outer_classname(), output); | 4713 8, this->java_outer_classname(), output); |
4564 } | 4714 } |
4565 | 4715 |
4566 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defaul
t = SPEED]; | 4716 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defaul
t = SPEED]; |
4567 if (has_optimize_for()) { | 4717 if (has_optimize_for()) { |
4568 ::google::protobuf::internal::WireFormatLite::WriteEnum( | 4718 ::google::protobuf::internal::WireFormatLite::WriteEnum( |
4569 9, this->optimize_for(), output); | 4719 9, this->optimize_for(), output); |
4570 } | 4720 } |
4571 | 4721 |
4572 // optional bool java_multiple_files = 10 [default = false]; | 4722 // optional bool java_multiple_files = 10 [default = false]; |
4573 if (has_java_multiple_files()) { | 4723 if (has_java_multiple_files()) { |
4574 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multi
ple_files(), output); | 4724 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multi
ple_files(), output); |
4575 } | 4725 } |
4576 | 4726 |
4577 // optional bool retain_unknown_fields = 11 [default = false]; | 4727 // optional string go_package = 11; |
| 4728 if (has_go_package()) { |
| 4729 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 4730 this->go_package().data(), this->go_package().length(), |
| 4731 ::google::protobuf::internal::WireFormat::SERIALIZE); |
| 4732 ::google::protobuf::internal::WireFormatLite::WriteString( |
| 4733 11, this->go_package(), output); |
| 4734 } |
| 4735 |
| 4736 // optional bool retain_unknown_fields = 12 [default = false]; |
4578 if (has_retain_unknown_fields()) { | 4737 if (has_retain_unknown_fields()) { |
4579 ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->retain_unk
nown_fields(), output); | 4738 ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->retain_unk
nown_fields(), output); |
4580 } | 4739 } |
4581 | 4740 |
4582 // optional bool cc_generic_services = 16 [default = false]; | 4741 // optional bool cc_generic_services = 16 [default = false]; |
4583 if (has_cc_generic_services()) { | 4742 if (has_cc_generic_services()) { |
4584 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic
_services(), output); | 4743 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic
_services(), output); |
4585 } | 4744 } |
4586 | 4745 |
4587 // optional bool java_generic_services = 17 [default = false]; | 4746 // optional bool java_generic_services = 17 [default = false]; |
4588 if (has_java_generic_services()) { | 4747 if (has_java_generic_services()) { |
4589 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener
ic_services(), output); | 4748 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener
ic_services(), output); |
4590 } | 4749 } |
4591 | 4750 |
4592 // optional bool py_generic_services = 18 [default = false]; | 4751 // optional bool py_generic_services = 18 [default = false]; |
4593 if (has_py_generic_services()) { | 4752 if (has_py_generic_services()) { |
4594 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic
_services(), output); | 4753 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic
_services(), output); |
4595 } | 4754 } |
4596 | 4755 |
4597 // optional bool java_generate_equals_and_hash = 20 [default = false]; | 4756 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
4598 if (has_java_generate_equals_and_hash()) { | 4757 if (has_java_generate_equals_and_hash()) { |
4599 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener
ate_equals_and_hash(), output); | 4758 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener
ate_equals_and_hash(), output); |
4600 } | 4759 } |
4601 | 4760 |
4602 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 4761 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
4603 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 4762 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
4604 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 4763 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4605 999, this->uninterpreted_option(i), output); | 4764 999, this->uninterpreted_option(i), output); |
4606 } | 4765 } |
4607 | 4766 |
4608 // Extension range [1000, 536870912) | 4767 // Extension range [1000, 536870912) |
4609 _extensions_.SerializeWithCachedSizes( | 4768 _extensions_.SerializeWithCachedSizes( |
4610 1000, 536870912, output); | 4769 1000, 536870912, output); |
4611 | 4770 |
4612 if (!unknown_fields().empty()) { | 4771 if (!unknown_fields().empty()) { |
4613 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 4772 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
4614 unknown_fields(), output); | 4773 unknown_fields(), output); |
4615 } | 4774 } |
4616 } | 4775 } |
4617 | 4776 |
4618 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( | 4777 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( |
4619 ::google::protobuf::uint8* target) const { | 4778 ::google::protobuf::uint8* target) const { |
4620 // optional string java_package = 1; | 4779 // optional string java_package = 1; |
4621 if (has_java_package()) { | 4780 if (has_java_package()) { |
4622 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4781 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4623 this->java_package().data(), this->java_package().length(), | 4782 this->java_package().data(), this->java_package().length(), |
4624 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4783 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4625 target = | 4784 target = |
4626 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4627 1, this->java_package(), target); | 4786 1, this->java_package(), target); |
4628 } | 4787 } |
4629 | 4788 |
4630 // optional string java_outer_classname = 8; | 4789 // optional string java_outer_classname = 8; |
4631 if (has_java_outer_classname()) { | 4790 if (has_java_outer_classname()) { |
4632 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 4791 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
4633 this->java_outer_classname().data(), this->java_outer_classname().length()
, | 4792 this->java_outer_classname().data(), this->java_outer_classname().length()
, |
4634 ::google::protobuf::internal::WireFormat::SERIALIZE); | 4793 ::google::protobuf::internal::WireFormat::SERIALIZE); |
4635 target = | 4794 target = |
4636 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4795 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4637 8, this->java_outer_classname(), target); | 4796 8, this->java_outer_classname(), target); |
4638 } | 4797 } |
4639 | 4798 |
4640 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defaul
t = SPEED]; | 4799 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defaul
t = SPEED]; |
4641 if (has_optimize_for()) { | 4800 if (has_optimize_for()) { |
4642 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 4801 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
4643 9, this->optimize_for(), target); | 4802 9, this->optimize_for(), target); |
4644 } | 4803 } |
4645 | 4804 |
4646 // optional bool java_multiple_files = 10 [default = false]; | 4805 // optional bool java_multiple_files = 10 [default = false]; |
4647 if (has_java_multiple_files()) { | 4806 if (has_java_multiple_files()) { |
4648 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->java_multiple_files(), target); | 4807 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->java_multiple_files(), target); |
4649 } | 4808 } |
4650 | 4809 |
4651 // optional bool retain_unknown_fields = 11 [default = false]; | 4810 // optional string go_package = 11; |
| 4811 if (has_go_package()) { |
| 4812 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 4813 this->go_package().data(), this->go_package().length(), |
| 4814 ::google::protobuf::internal::WireFormat::SERIALIZE); |
| 4815 target = |
| 4816 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4817 11, this->go_package(), target); |
| 4818 } |
| 4819 |
| 4820 // optional bool retain_unknown_fields = 12 [default = false]; |
4652 if (has_retain_unknown_fields()) { | 4821 if (has_retain_unknown_fields()) { |
4653 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11,
this->retain_unknown_fields(), target); | 4822 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12,
this->retain_unknown_fields(), target); |
4654 } | 4823 } |
4655 | 4824 |
4656 // optional bool cc_generic_services = 16 [default = false]; | 4825 // optional bool cc_generic_services = 16 [default = false]; |
4657 if (has_cc_generic_services()) { | 4826 if (has_cc_generic_services()) { |
4658 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16,
this->cc_generic_services(), target); | 4827 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16,
this->cc_generic_services(), target); |
4659 } | 4828 } |
4660 | 4829 |
4661 // optional bool java_generic_services = 17 [default = false]; | 4830 // optional bool java_generic_services = 17 [default = false]; |
4662 if (has_java_generic_services()) { | 4831 if (has_java_generic_services()) { |
4663 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17,
this->java_generic_services(), target); | 4832 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17,
this->java_generic_services(), target); |
4664 } | 4833 } |
4665 | 4834 |
4666 // optional bool py_generic_services = 18 [default = false]; | 4835 // optional bool py_generic_services = 18 [default = false]; |
4667 if (has_py_generic_services()) { | 4836 if (has_py_generic_services()) { |
4668 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18,
this->py_generic_services(), target); | 4837 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18,
this->py_generic_services(), target); |
4669 } | 4838 } |
4670 | 4839 |
4671 // optional bool java_generate_equals_and_hash = 20 [default = false]; | 4840 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
4672 if (has_java_generate_equals_and_hash()) { | 4841 if (has_java_generate_equals_and_hash()) { |
4673 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20,
this->java_generate_equals_and_hash(), target); | 4842 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20,
this->java_generate_equals_and_hash(), target); |
4674 } | 4843 } |
4675 | 4844 |
4676 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 4845 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
4677 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 4846 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
4678 target = ::google::protobuf::internal::WireFormatLite:: | 4847 target = ::google::protobuf::internal::WireFormatLite:: |
4679 WriteMessageNoVirtualToArray( | 4848 WriteMessageNoVirtualToArray( |
4680 999, this->uninterpreted_option(i), target); | 4849 999, this->uninterpreted_option(i), target); |
4681 } | 4850 } |
4682 | 4851 |
4683 // Extension range [1000, 536870912) | 4852 // Extension range [1000, 536870912) |
4684 target = _extensions_.SerializeWithCachedSizesToArray( | 4853 target = _extensions_.SerializeWithCachedSizesToArray( |
4685 1000, 536870912, target); | 4854 1000, 536870912, target); |
4686 | 4855 |
4687 if (!unknown_fields().empty()) { | 4856 if (!unknown_fields().empty()) { |
4688 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 4857 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
4689 unknown_fields(), target); | 4858 unknown_fields(), target); |
4690 } | 4859 } |
4691 return target; | 4860 return target; |
4692 } | 4861 } |
4693 | 4862 |
4694 int FileOptions::ByteSize() const { | 4863 int FileOptions::ByteSize() const { |
4695 int total_size = 0; | 4864 int total_size = 0; |
4696 | 4865 |
4697 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 4866 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
4698 // optional string java_package = 1; | 4867 // optional string java_package = 1; |
4699 if (has_java_package()) { | 4868 if (has_java_package()) { |
4700 total_size += 1 + | 4869 total_size += 1 + |
4701 ::google::protobuf::internal::WireFormatLite::StringSize( | 4870 ::google::protobuf::internal::WireFormatLite::StringSize( |
4702 this->java_package()); | 4871 this->java_package()); |
4703 } | 4872 } |
4704 | 4873 |
4705 // optional string java_outer_classname = 8; | 4874 // optional string java_outer_classname = 8; |
4706 if (has_java_outer_classname()) { | 4875 if (has_java_outer_classname()) { |
4707 total_size += 1 + | 4876 total_size += 1 + |
4708 ::google::protobuf::internal::WireFormatLite::StringSize( | 4877 ::google::protobuf::internal::WireFormatLite::StringSize( |
4709 this->java_outer_classname()); | 4878 this->java_outer_classname()); |
4710 } | 4879 } |
4711 | 4880 |
4712 // optional bool java_multiple_files = 10 [default = false]; | 4881 // optional bool java_multiple_files = 10 [default = false]; |
4713 if (has_java_multiple_files()) { | 4882 if (has_java_multiple_files()) { |
4714 total_size += 1 + 1; | 4883 total_size += 1 + 1; |
4715 } | 4884 } |
4716 | 4885 |
4717 // optional bool retain_unknown_fields = 11 [default = false]; | 4886 // optional bool retain_unknown_fields = 12 [default = false]; |
4718 if (has_retain_unknown_fields()) { | 4887 if (has_retain_unknown_fields()) { |
4719 total_size += 1 + 1; | 4888 total_size += 1 + 1; |
4720 } | 4889 } |
4721 | 4890 |
4722 // optional bool java_generate_equals_and_hash = 20 [default = false]; | 4891 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
4723 if (has_java_generate_equals_and_hash()) { | 4892 if (has_java_generate_equals_and_hash()) { |
4724 total_size += 2 + 1; | 4893 total_size += 2 + 1; |
4725 } | 4894 } |
4726 | 4895 |
4727 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa
ult = SPEED]; | 4896 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa
ult = SPEED]; |
4728 if (has_optimize_for()) { | 4897 if (has_optimize_for()) { |
4729 total_size += 1 + | 4898 total_size += 1 + |
4730 ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_fo
r()); | 4899 ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_fo
r()); |
4731 } | 4900 } |
4732 | 4901 |
| 4902 // optional string go_package = 11; |
| 4903 if (has_go_package()) { |
| 4904 total_size += 1 + |
| 4905 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4906 this->go_package()); |
| 4907 } |
| 4908 |
4733 // optional bool cc_generic_services = 16 [default = false]; | 4909 // optional bool cc_generic_services = 16 [default = false]; |
4734 if (has_cc_generic_services()) { | 4910 if (has_cc_generic_services()) { |
4735 total_size += 2 + 1; | 4911 total_size += 2 + 1; |
4736 } | 4912 } |
4737 | 4913 |
| 4914 } |
| 4915 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
4738 // optional bool java_generic_services = 17 [default = false]; | 4916 // optional bool java_generic_services = 17 [default = false]; |
4739 if (has_java_generic_services()) { | 4917 if (has_java_generic_services()) { |
4740 total_size += 2 + 1; | 4918 total_size += 2 + 1; |
4741 } | 4919 } |
4742 | 4920 |
4743 } | |
4744 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { | |
4745 // optional bool py_generic_services = 18 [default = false]; | 4921 // optional bool py_generic_services = 18 [default = false]; |
4746 if (has_py_generic_services()) { | 4922 if (has_py_generic_services()) { |
4747 total_size += 2 + 1; | 4923 total_size += 2 + 1; |
4748 } | 4924 } |
4749 | 4925 |
4750 } | 4926 } |
4751 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 4927 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
4752 total_size += 2 * this->uninterpreted_option_size(); | 4928 total_size += 2 * this->uninterpreted_option_size(); |
4753 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 4929 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
4754 total_size += | 4930 total_size += |
4755 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 4931 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
4756 this->uninterpreted_option(i)); | 4932 this->uninterpreted_option(i)); |
4757 } | 4933 } |
4758 | 4934 |
4759 total_size += _extensions_.ByteSize(); | 4935 total_size += _extensions_.ByteSize(); |
4760 | 4936 |
4761 if (!unknown_fields().empty()) { | 4937 if (!unknown_fields().empty()) { |
4762 total_size += | 4938 total_size += |
4763 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 4939 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
4764 unknown_fields()); | 4940 unknown_fields()); |
4765 } | 4941 } |
4766 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4942 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4767 _cached_size_ = total_size; | 4943 _cached_size_ = total_size; |
4768 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4944 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4769 return total_size; | 4945 return total_size; |
4770 } | 4946 } |
(...skipping 25 matching lines...) Expand all Loading... |
4796 } | 4972 } |
4797 if (from.has_retain_unknown_fields()) { | 4973 if (from.has_retain_unknown_fields()) { |
4798 set_retain_unknown_fields(from.retain_unknown_fields()); | 4974 set_retain_unknown_fields(from.retain_unknown_fields()); |
4799 } | 4975 } |
4800 if (from.has_java_generate_equals_and_hash()) { | 4976 if (from.has_java_generate_equals_and_hash()) { |
4801 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); | 4977 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); |
4802 } | 4978 } |
4803 if (from.has_optimize_for()) { | 4979 if (from.has_optimize_for()) { |
4804 set_optimize_for(from.optimize_for()); | 4980 set_optimize_for(from.optimize_for()); |
4805 } | 4981 } |
| 4982 if (from.has_go_package()) { |
| 4983 set_go_package(from.go_package()); |
| 4984 } |
4806 if (from.has_cc_generic_services()) { | 4985 if (from.has_cc_generic_services()) { |
4807 set_cc_generic_services(from.cc_generic_services()); | 4986 set_cc_generic_services(from.cc_generic_services()); |
4808 } | 4987 } |
| 4988 } |
| 4989 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
4809 if (from.has_java_generic_services()) { | 4990 if (from.has_java_generic_services()) { |
4810 set_java_generic_services(from.java_generic_services()); | 4991 set_java_generic_services(from.java_generic_services()); |
4811 } | 4992 } |
4812 } | |
4813 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { | |
4814 if (from.has_py_generic_services()) { | 4993 if (from.has_py_generic_services()) { |
4815 set_py_generic_services(from.py_generic_services()); | 4994 set_py_generic_services(from.py_generic_services()); |
4816 } | 4995 } |
4817 } | 4996 } |
4818 _extensions_.MergeFrom(from._extensions_); | 4997 _extensions_.MergeFrom(from._extensions_); |
4819 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | 4998 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
4820 } | 4999 } |
4821 | 5000 |
4822 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { | 5001 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { |
4823 if (&from == this) return; | 5002 if (&from == this) return; |
4824 Clear(); | 5003 Clear(); |
4825 MergeFrom(from); | 5004 MergeFrom(from); |
4826 } | 5005 } |
4827 | 5006 |
4828 void FileOptions::CopyFrom(const FileOptions& from) { | 5007 void FileOptions::CopyFrom(const FileOptions& from) { |
4829 if (&from == this) return; | 5008 if (&from == this) return; |
4830 Clear(); | 5009 Clear(); |
4831 MergeFrom(from); | 5010 MergeFrom(from); |
4832 } | 5011 } |
4833 | 5012 |
4834 bool FileOptions::IsInitialized() const { | 5013 bool FileOptions::IsInitialized() const { |
4835 | 5014 |
4836 for (int i = 0; i < uninterpreted_option_size(); i++) { | 5015 for (int i = 0; i < uninterpreted_option_size(); i++) { |
4837 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 5016 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
4838 } | 5017 } |
4839 | 5018 |
4840 if (!_extensions_.IsInitialized()) return false; return true; | 5019 if (!_extensions_.IsInitialized()) return false; return true; |
4841 } | 5020 } |
4842 | 5021 |
4843 void FileOptions::Swap(FileOptions* other) { | 5022 void FileOptions::Swap(FileOptions* other) { |
4844 if (other != this) { | 5023 if (other != this) { |
4845 std::swap(java_package_, other->java_package_); | 5024 std::swap(java_package_, other->java_package_); |
4846 std::swap(java_outer_classname_, other->java_outer_classname_); | 5025 std::swap(java_outer_classname_, other->java_outer_classname_); |
4847 std::swap(java_multiple_files_, other->java_multiple_files_); | 5026 std::swap(java_multiple_files_, other->java_multiple_files_); |
4848 std::swap(retain_unknown_fields_, other->retain_unknown_fields_); | 5027 std::swap(retain_unknown_fields_, other->retain_unknown_fields_); |
4849 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_ha
sh_); | 5028 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_ha
sh_); |
4850 std::swap(optimize_for_, other->optimize_for_); | 5029 std::swap(optimize_for_, other->optimize_for_); |
| 5030 std::swap(go_package_, other->go_package_); |
4851 std::swap(cc_generic_services_, other->cc_generic_services_); | 5031 std::swap(cc_generic_services_, other->cc_generic_services_); |
4852 std::swap(java_generic_services_, other->java_generic_services_); | 5032 std::swap(java_generic_services_, other->java_generic_services_); |
4853 std::swap(py_generic_services_, other->py_generic_services_); | 5033 std::swap(py_generic_services_, other->py_generic_services_); |
4854 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 5034 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
4855 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5035 std::swap(_has_bits_[0], other->_has_bits_[0]); |
4856 _unknown_fields_.Swap(&other->_unknown_fields_); | 5036 _unknown_fields_.Swap(&other->_unknown_fields_); |
4857 std::swap(_cached_size_, other->_cached_size_); | 5037 std::swap(_cached_size_, other->_cached_size_); |
4858 _extensions_.Swap(&other->_extensions_); | 5038 _extensions_.Swap(&other->_extensions_); |
4859 } | 5039 } |
4860 } | 5040 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4951 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 5131 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4952 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 5132 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4953 input, &message_set_wire_format_))); | 5133 input, &message_set_wire_format_))); |
4954 set_has_message_set_wire_format(); | 5134 set_has_message_set_wire_format(); |
4955 } else { | 5135 } else { |
4956 goto handle_uninterpreted; | 5136 goto handle_uninterpreted; |
4957 } | 5137 } |
4958 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor; | 5138 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor; |
4959 break; | 5139 break; |
4960 } | 5140 } |
4961 | 5141 |
4962 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 5142 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
4963 case 2: { | 5143 case 2: { |
4964 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5144 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4965 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 5145 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
4966 parse_no_standard_descriptor_accessor: | 5146 parse_no_standard_descriptor_accessor: |
4967 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 5147 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4968 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 5148 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
4969 input, &no_standard_descriptor_accessor_))); | 5149 input, &no_standard_descriptor_accessor_))); |
4970 set_has_no_standard_descriptor_accessor(); | 5150 set_has_no_standard_descriptor_accessor(); |
4971 } else { | 5151 } else { |
4972 goto handle_uninterpreted; | 5152 goto handle_uninterpreted; |
4973 } | 5153 } |
4974 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 5154 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
4975 break; | 5155 break; |
4976 } | 5156 } |
4977 | 5157 |
4978 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 5158 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
4979 case 999: { | 5159 case 999: { |
4980 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5160 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4981 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 5161 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
4982 parse_uninterpreted_option: | 5162 parse_uninterpreted_option: |
4983 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 5163 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
4984 input, add_uninterpreted_option())); | 5164 input, add_uninterpreted_option())); |
4985 } else { | 5165 } else { |
4986 goto handle_uninterpreted; | 5166 goto handle_uninterpreted; |
4987 } | 5167 } |
4988 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 5168 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
4989 if (input->ExpectAtEnd()) return true; | 5169 if (input->ExpectAtEnd()) return true; |
4990 break; | 5170 break; |
4991 } | 5171 } |
4992 | 5172 |
4993 default: { | 5173 default: { |
4994 handle_uninterpreted: | 5174 handle_uninterpreted: |
4995 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5175 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4996 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5176 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
4997 return true; | 5177 return true; |
4998 } | 5178 } |
4999 if ((8000u <= tag)) { | 5179 if ((8000u <= tag)) { |
5000 DO_(_extensions_.ParseField(tag, input, default_instance_, | 5180 DO_(_extensions_.ParseField(tag, input, default_instance_, |
5001 mutable_unknown_fields())); | 5181 mutable_unknown_fields())); |
5002 continue; | 5182 continue; |
5003 } | 5183 } |
5004 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 5184 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 5185 input, tag, mutable_unknown_fields())); |
5005 break; | 5186 break; |
5006 } | 5187 } |
5007 } | 5188 } |
5008 } | 5189 } |
5009 return true; | 5190 return true; |
5010 #undef DO_ | 5191 #undef DO_ |
5011 } | 5192 } |
5012 | 5193 |
5013 void MessageOptions::SerializeWithCachedSizes( | 5194 void MessageOptions::SerializeWithCachedSizes( |
5014 ::google::protobuf::io::CodedOutputStream* output) const { | 5195 ::google::protobuf::io::CodedOutputStream* output) const { |
5015 // optional bool message_set_wire_format = 1 [default = false]; | 5196 // optional bool message_set_wire_format = 1 [default = false]; |
5016 if (has_message_set_wire_format()) { | 5197 if (has_message_set_wire_format()) { |
5017 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set
_wire_format(), output); | 5198 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set
_wire_format(), output); |
5018 } | 5199 } |
5019 | 5200 |
5020 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 5201 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
5021 if (has_no_standard_descriptor_accessor()) { | 5202 if (has_no_standard_descriptor_accessor()) { |
5022 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard
_descriptor_accessor(), output); | 5203 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard
_descriptor_accessor(), output); |
5023 } | 5204 } |
5024 | 5205 |
5025 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5206 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5026 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5207 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5027 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 5208 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5028 999, this->uninterpreted_option(i), output); | 5209 999, this->uninterpreted_option(i), output); |
5029 } | 5210 } |
5030 | 5211 |
5031 // Extension range [1000, 536870912) | 5212 // Extension range [1000, 536870912) |
5032 _extensions_.SerializeWithCachedSizes( | 5213 _extensions_.SerializeWithCachedSizes( |
5033 1000, 536870912, output); | 5214 1000, 536870912, output); |
5034 | 5215 |
5035 if (!unknown_fields().empty()) { | 5216 if (!unknown_fields().empty()) { |
5036 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 5217 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
5037 unknown_fields(), output); | 5218 unknown_fields(), output); |
5038 } | 5219 } |
5039 } | 5220 } |
5040 | 5221 |
5041 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( | 5222 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( |
5042 ::google::protobuf::uint8* target) const { | 5223 ::google::protobuf::uint8* target) const { |
5043 // optional bool message_set_wire_format = 1 [default = false]; | 5224 // optional bool message_set_wire_format = 1 [default = false]; |
5044 if (has_message_set_wire_format()) { | 5225 if (has_message_set_wire_format()) { |
5045 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->message_set_wire_format(), target); | 5226 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->message_set_wire_format(), target); |
5046 } | 5227 } |
5047 | 5228 |
5048 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 5229 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
5049 if (has_no_standard_descriptor_accessor()) { | 5230 if (has_no_standard_descriptor_accessor()) { |
5050 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->no_standard_descriptor_accessor(), target); | 5231 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->no_standard_descriptor_accessor(), target); |
5051 } | 5232 } |
5052 | 5233 |
5053 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5234 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5054 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5235 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5055 target = ::google::protobuf::internal::WireFormatLite:: | 5236 target = ::google::protobuf::internal::WireFormatLite:: |
5056 WriteMessageNoVirtualToArray( | 5237 WriteMessageNoVirtualToArray( |
5057 999, this->uninterpreted_option(i), target); | 5238 999, this->uninterpreted_option(i), target); |
5058 } | 5239 } |
5059 | 5240 |
5060 // Extension range [1000, 536870912) | 5241 // Extension range [1000, 536870912) |
5061 target = _extensions_.SerializeWithCachedSizesToArray( | 5242 target = _extensions_.SerializeWithCachedSizesToArray( |
5062 1000, 536870912, target); | 5243 1000, 536870912, target); |
5063 | 5244 |
5064 if (!unknown_fields().empty()) { | 5245 if (!unknown_fields().empty()) { |
5065 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 5246 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
5066 unknown_fields(), target); | 5247 unknown_fields(), target); |
5067 } | 5248 } |
5068 return target; | 5249 return target; |
5069 } | 5250 } |
5070 | 5251 |
5071 int MessageOptions::ByteSize() const { | 5252 int MessageOptions::ByteSize() const { |
5072 int total_size = 0; | 5253 int total_size = 0; |
5073 | 5254 |
5074 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 5255 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
5075 // optional bool message_set_wire_format = 1 [default = false]; | 5256 // optional bool message_set_wire_format = 1 [default = false]; |
5076 if (has_message_set_wire_format()) { | 5257 if (has_message_set_wire_format()) { |
5077 total_size += 1 + 1; | 5258 total_size += 1 + 1; |
5078 } | 5259 } |
5079 | 5260 |
5080 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 5261 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
5081 if (has_no_standard_descriptor_accessor()) { | 5262 if (has_no_standard_descriptor_accessor()) { |
5082 total_size += 1 + 1; | 5263 total_size += 1 + 1; |
5083 } | 5264 } |
5084 | 5265 |
5085 } | 5266 } |
5086 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5267 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5087 total_size += 2 * this->uninterpreted_option_size(); | 5268 total_size += 2 * this->uninterpreted_option_size(); |
5088 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5269 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5089 total_size += | 5270 total_size += |
5090 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 5271 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5091 this->uninterpreted_option(i)); | 5272 this->uninterpreted_option(i)); |
5092 } | 5273 } |
5093 | 5274 |
5094 total_size += _extensions_.ByteSize(); | 5275 total_size += _extensions_.ByteSize(); |
5095 | 5276 |
5096 if (!unknown_fields().empty()) { | 5277 if (!unknown_fields().empty()) { |
5097 total_size += | 5278 total_size += |
5098 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 5279 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
5099 unknown_fields()); | 5280 unknown_fields()); |
5100 } | 5281 } |
5101 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5282 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5102 _cached_size_ = total_size; | 5283 _cached_size_ = total_size; |
5103 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5284 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5104 return total_size; | 5285 return total_size; |
5105 } | 5286 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5137 MergeFrom(from); | 5318 MergeFrom(from); |
5138 } | 5319 } |
5139 | 5320 |
5140 void MessageOptions::CopyFrom(const MessageOptions& from) { | 5321 void MessageOptions::CopyFrom(const MessageOptions& from) { |
5141 if (&from == this) return; | 5322 if (&from == this) return; |
5142 Clear(); | 5323 Clear(); |
5143 MergeFrom(from); | 5324 MergeFrom(from); |
5144 } | 5325 } |
5145 | 5326 |
5146 bool MessageOptions::IsInitialized() const { | 5327 bool MessageOptions::IsInitialized() const { |
5147 | 5328 |
5148 for (int i = 0; i < uninterpreted_option_size(); i++) { | 5329 for (int i = 0; i < uninterpreted_option_size(); i++) { |
5149 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 5330 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
5150 } | 5331 } |
5151 | 5332 |
5152 if (!_extensions_.IsInitialized()) return false; return true; | 5333 if (!_extensions_.IsInitialized()) return false; return true; |
5153 } | 5334 } |
5154 | 5335 |
5155 void MessageOptions::Swap(MessageOptions* other) { | 5336 void MessageOptions::Swap(MessageOptions* other) { |
5156 if (other != this) { | 5337 if (other != this) { |
5157 std::swap(message_set_wire_format_, other->message_set_wire_format_); | 5338 std::swap(message_set_wire_format_, other->message_set_wire_format_); |
5158 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_ac
cessor_); | 5339 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_ac
cessor_); |
5159 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 5340 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
5160 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5341 std::swap(_has_bits_[0], other->_has_bits_[0]); |
5161 _unknown_fields_.Swap(&other->_unknown_fields_); | 5342 _unknown_fields_.Swap(&other->_unknown_fields_); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5194 const FieldOptions_CType FieldOptions::STRING; | 5375 const FieldOptions_CType FieldOptions::STRING; |
5195 const FieldOptions_CType FieldOptions::CORD; | 5376 const FieldOptions_CType FieldOptions::CORD; |
5196 const FieldOptions_CType FieldOptions::STRING_PIECE; | 5377 const FieldOptions_CType FieldOptions::STRING_PIECE; |
5197 const FieldOptions_CType FieldOptions::CType_MIN; | 5378 const FieldOptions_CType FieldOptions::CType_MIN; |
5198 const FieldOptions_CType FieldOptions::CType_MAX; | 5379 const FieldOptions_CType FieldOptions::CType_MAX; |
5199 const int FieldOptions::CType_ARRAYSIZE; | 5380 const int FieldOptions::CType_ARRAYSIZE; |
5200 #endif // _MSC_VER | 5381 #endif // _MSC_VER |
5201 #ifndef _MSC_VER | 5382 #ifndef _MSC_VER |
5202 const int FieldOptions::kCtypeFieldNumber; | 5383 const int FieldOptions::kCtypeFieldNumber; |
5203 const int FieldOptions::kPackedFieldNumber; | 5384 const int FieldOptions::kPackedFieldNumber; |
| 5385 const int FieldOptions::kLazyFieldNumber; |
5204 const int FieldOptions::kDeprecatedFieldNumber; | 5386 const int FieldOptions::kDeprecatedFieldNumber; |
5205 const int FieldOptions::kExperimentalMapKeyFieldNumber; | 5387 const int FieldOptions::kExperimentalMapKeyFieldNumber; |
| 5388 const int FieldOptions::kWeakFieldNumber; |
5206 const int FieldOptions::kUninterpretedOptionFieldNumber; | 5389 const int FieldOptions::kUninterpretedOptionFieldNumber; |
5207 #endif // !_MSC_VER | 5390 #endif // !_MSC_VER |
5208 | 5391 |
5209 FieldOptions::FieldOptions() | 5392 FieldOptions::FieldOptions() |
5210 : ::google::protobuf::Message() { | 5393 : ::google::protobuf::Message() { |
5211 SharedCtor(); | 5394 SharedCtor(); |
5212 } | 5395 } |
5213 | 5396 |
5214 void FieldOptions::InitAsDefaultInstance() { | 5397 void FieldOptions::InitAsDefaultInstance() { |
5215 } | 5398 } |
5216 | 5399 |
5217 FieldOptions::FieldOptions(const FieldOptions& from) | 5400 FieldOptions::FieldOptions(const FieldOptions& from) |
5218 : ::google::protobuf::Message() { | 5401 : ::google::protobuf::Message() { |
5219 SharedCtor(); | 5402 SharedCtor(); |
5220 MergeFrom(from); | 5403 MergeFrom(from); |
5221 } | 5404 } |
5222 | 5405 |
5223 void FieldOptions::SharedCtor() { | 5406 void FieldOptions::SharedCtor() { |
5224 _cached_size_ = 0; | 5407 _cached_size_ = 0; |
5225 ctype_ = 0; | 5408 ctype_ = 0; |
5226 packed_ = false; | 5409 packed_ = false; |
| 5410 lazy_ = false; |
5227 deprecated_ = false; | 5411 deprecated_ = false; |
5228 experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::inter
nal::kEmptyString); | 5412 experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::inter
nal::kEmptyString); |
| 5413 weak_ = false; |
5229 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 5414 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5230 } | 5415 } |
5231 | 5416 |
5232 FieldOptions::~FieldOptions() { | 5417 FieldOptions::~FieldOptions() { |
5233 SharedDtor(); | 5418 SharedDtor(); |
5234 } | 5419 } |
5235 | 5420 |
5236 void FieldOptions::SharedDtor() { | 5421 void FieldOptions::SharedDtor() { |
5237 if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) { | 5422 if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) { |
5238 delete experimental_map_key_; | 5423 delete experimental_map_key_; |
(...skipping 21 matching lines...) Expand all Loading... |
5260 | 5445 |
5261 FieldOptions* FieldOptions::New() const { | 5446 FieldOptions* FieldOptions::New() const { |
5262 return new FieldOptions; | 5447 return new FieldOptions; |
5263 } | 5448 } |
5264 | 5449 |
5265 void FieldOptions::Clear() { | 5450 void FieldOptions::Clear() { |
5266 _extensions_.Clear(); | 5451 _extensions_.Clear(); |
5267 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 5452 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
5268 ctype_ = 0; | 5453 ctype_ = 0; |
5269 packed_ = false; | 5454 packed_ = false; |
| 5455 lazy_ = false; |
5270 deprecated_ = false; | 5456 deprecated_ = false; |
5271 if (has_experimental_map_key()) { | 5457 if (has_experimental_map_key()) { |
5272 if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString)
{ | 5458 if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString)
{ |
5273 experimental_map_key_->clear(); | 5459 experimental_map_key_->clear(); |
5274 } | 5460 } |
5275 } | 5461 } |
| 5462 weak_ = false; |
5276 } | 5463 } |
5277 uninterpreted_option_.Clear(); | 5464 uninterpreted_option_.Clear(); |
5278 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 5465 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5279 mutable_unknown_fields()->Clear(); | 5466 mutable_unknown_fields()->Clear(); |
5280 } | 5467 } |
5281 | 5468 |
5282 bool FieldOptions::MergePartialFromCodedStream( | 5469 bool FieldOptions::MergePartialFromCodedStream( |
5283 ::google::protobuf::io::CodedInputStream* input) { | 5470 ::google::protobuf::io::CodedInputStream* input) { |
5284 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | 5471 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
5285 ::google::protobuf::uint32 tag; | 5472 ::google::protobuf::uint32 tag; |
(...skipping 11 matching lines...) Expand all Loading... |
5297 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu
e)); | 5484 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu
e)); |
5298 } else { | 5485 } else { |
5299 mutable_unknown_fields()->AddVarint(1, value); | 5486 mutable_unknown_fields()->AddVarint(1, value); |
5300 } | 5487 } |
5301 } else { | 5488 } else { |
5302 goto handle_uninterpreted; | 5489 goto handle_uninterpreted; |
5303 } | 5490 } |
5304 if (input->ExpectTag(16)) goto parse_packed; | 5491 if (input->ExpectTag(16)) goto parse_packed; |
5305 break; | 5492 break; |
5306 } | 5493 } |
5307 | 5494 |
5308 // optional bool packed = 2; | 5495 // optional bool packed = 2; |
5309 case 2: { | 5496 case 2: { |
5310 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5497 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5311 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 5498 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
5312 parse_packed: | 5499 parse_packed: |
5313 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 5500 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5314 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 5501 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
5315 input, &packed_))); | 5502 input, &packed_))); |
5316 set_has_packed(); | 5503 set_has_packed(); |
5317 } else { | 5504 } else { |
5318 goto handle_uninterpreted; | 5505 goto handle_uninterpreted; |
5319 } | 5506 } |
5320 if (input->ExpectTag(24)) goto parse_deprecated; | 5507 if (input->ExpectTag(24)) goto parse_deprecated; |
5321 break; | 5508 break; |
5322 } | 5509 } |
5323 | 5510 |
5324 // optional bool deprecated = 3 [default = false]; | 5511 // optional bool deprecated = 3 [default = false]; |
5325 case 3: { | 5512 case 3: { |
5326 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5513 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5327 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 5514 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
5328 parse_deprecated: | 5515 parse_deprecated: |
5329 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 5516 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5330 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 5517 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
5331 input, &deprecated_))); | 5518 input, &deprecated_))); |
5332 set_has_deprecated(); | 5519 set_has_deprecated(); |
5333 } else { | 5520 } else { |
5334 goto handle_uninterpreted; | 5521 goto handle_uninterpreted; |
5335 } | 5522 } |
| 5523 if (input->ExpectTag(40)) goto parse_lazy; |
| 5524 break; |
| 5525 } |
| 5526 |
| 5527 // optional bool lazy = 5 [default = false]; |
| 5528 case 5: { |
| 5529 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5530 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 5531 parse_lazy: |
| 5532 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5533 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 5534 input, &lazy_))); |
| 5535 set_has_lazy(); |
| 5536 } else { |
| 5537 goto handle_uninterpreted; |
| 5538 } |
5336 if (input->ExpectTag(74)) goto parse_experimental_map_key; | 5539 if (input->ExpectTag(74)) goto parse_experimental_map_key; |
5337 break; | 5540 break; |
5338 } | 5541 } |
5339 | 5542 |
5340 // optional string experimental_map_key = 9; | 5543 // optional string experimental_map_key = 9; |
5341 case 9: { | 5544 case 9: { |
5342 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5545 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5343 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 5546 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
5344 parse_experimental_map_key: | 5547 parse_experimental_map_key: |
5345 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 5548 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5346 input, this->mutable_experimental_map_key())); | 5549 input, this->mutable_experimental_map_key())); |
5347 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 5550 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
5348 this->experimental_map_key().data(), this->experimental_map_key().le
ngth(), | 5551 this->experimental_map_key().data(), this->experimental_map_key().le
ngth(), |
5349 ::google::protobuf::internal::WireFormat::PARSE); | 5552 ::google::protobuf::internal::WireFormat::PARSE); |
5350 } else { | 5553 } else { |
5351 goto handle_uninterpreted; | 5554 goto handle_uninterpreted; |
5352 } | 5555 } |
| 5556 if (input->ExpectTag(80)) goto parse_weak; |
| 5557 break; |
| 5558 } |
| 5559 |
| 5560 // optional bool weak = 10 [default = false]; |
| 5561 case 10: { |
| 5562 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5563 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 5564 parse_weak: |
| 5565 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5566 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 5567 input, &weak_))); |
| 5568 set_has_weak(); |
| 5569 } else { |
| 5570 goto handle_uninterpreted; |
| 5571 } |
5353 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 5572 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
5354 break; | 5573 break; |
5355 } | 5574 } |
5356 | 5575 |
5357 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 5576 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
5358 case 999: { | 5577 case 999: { |
5359 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5578 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5360 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 5579 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
5361 parse_uninterpreted_option: | 5580 parse_uninterpreted_option: |
5362 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 5581 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
5363 input, add_uninterpreted_option())); | 5582 input, add_uninterpreted_option())); |
5364 } else { | 5583 } else { |
5365 goto handle_uninterpreted; | 5584 goto handle_uninterpreted; |
5366 } | 5585 } |
5367 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 5586 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
5368 if (input->ExpectAtEnd()) return true; | 5587 if (input->ExpectAtEnd()) return true; |
5369 break; | 5588 break; |
5370 } | 5589 } |
5371 | 5590 |
5372 default: { | 5591 default: { |
5373 handle_uninterpreted: | 5592 handle_uninterpreted: |
5374 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5593 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5375 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5594 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
5376 return true; | 5595 return true; |
5377 } | 5596 } |
5378 if ((8000u <= tag)) { | 5597 if ((8000u <= tag)) { |
5379 DO_(_extensions_.ParseField(tag, input, default_instance_, | 5598 DO_(_extensions_.ParseField(tag, input, default_instance_, |
5380 mutable_unknown_fields())); | 5599 mutable_unknown_fields())); |
5381 continue; | 5600 continue; |
5382 } | 5601 } |
5383 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 5602 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 5603 input, tag, mutable_unknown_fields())); |
5384 break; | 5604 break; |
5385 } | 5605 } |
5386 } | 5606 } |
5387 } | 5607 } |
5388 return true; | 5608 return true; |
5389 #undef DO_ | 5609 #undef DO_ |
5390 } | 5610 } |
5391 | 5611 |
5392 void FieldOptions::SerializeWithCachedSizes( | 5612 void FieldOptions::SerializeWithCachedSizes( |
5393 ::google::protobuf::io::CodedOutputStream* output) const { | 5613 ::google::protobuf::io::CodedOutputStream* output) const { |
5394 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; | 5614 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
5395 if (has_ctype()) { | 5615 if (has_ctype()) { |
5396 ::google::protobuf::internal::WireFormatLite::WriteEnum( | 5616 ::google::protobuf::internal::WireFormatLite::WriteEnum( |
5397 1, this->ctype(), output); | 5617 1, this->ctype(), output); |
5398 } | 5618 } |
5399 | 5619 |
5400 // optional bool packed = 2; | 5620 // optional bool packed = 2; |
5401 if (has_packed()) { | 5621 if (has_packed()) { |
5402 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), o
utput); | 5622 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), o
utput); |
5403 } | 5623 } |
5404 | 5624 |
5405 // optional bool deprecated = 3 [default = false]; | 5625 // optional bool deprecated = 3 [default = false]; |
5406 if (has_deprecated()) { | 5626 if (has_deprecated()) { |
5407 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(
), output); | 5627 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(
), output); |
5408 } | 5628 } |
5409 | 5629 |
| 5630 // optional bool lazy = 5 [default = false]; |
| 5631 if (has_lazy()) { |
| 5632 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), out
put); |
| 5633 } |
| 5634 |
5410 // optional string experimental_map_key = 9; | 5635 // optional string experimental_map_key = 9; |
5411 if (has_experimental_map_key()) { | 5636 if (has_experimental_map_key()) { |
5412 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 5637 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
5413 this->experimental_map_key().data(), this->experimental_map_key().length()
, | 5638 this->experimental_map_key().data(), this->experimental_map_key().length()
, |
5414 ::google::protobuf::internal::WireFormat::SERIALIZE); | 5639 ::google::protobuf::internal::WireFormat::SERIALIZE); |
5415 ::google::protobuf::internal::WireFormatLite::WriteString( | 5640 ::google::protobuf::internal::WireFormatLite::WriteString( |
5416 9, this->experimental_map_key(), output); | 5641 9, this->experimental_map_key(), output); |
5417 } | 5642 } |
5418 | 5643 |
| 5644 // optional bool weak = 10 [default = false]; |
| 5645 if (has_weak()) { |
| 5646 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), ou
tput); |
| 5647 } |
| 5648 |
5419 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5649 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5420 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5650 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5421 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 5651 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5422 999, this->uninterpreted_option(i), output); | 5652 999, this->uninterpreted_option(i), output); |
5423 } | 5653 } |
5424 | 5654 |
5425 // Extension range [1000, 536870912) | 5655 // Extension range [1000, 536870912) |
5426 _extensions_.SerializeWithCachedSizes( | 5656 _extensions_.SerializeWithCachedSizes( |
5427 1000, 536870912, output); | 5657 1000, 536870912, output); |
5428 | 5658 |
5429 if (!unknown_fields().empty()) { | 5659 if (!unknown_fields().empty()) { |
5430 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 5660 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
5431 unknown_fields(), output); | 5661 unknown_fields(), output); |
5432 } | 5662 } |
5433 } | 5663 } |
5434 | 5664 |
5435 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( | 5665 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( |
5436 ::google::protobuf::uint8* target) const { | 5666 ::google::protobuf::uint8* target) const { |
5437 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; | 5667 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
5438 if (has_ctype()) { | 5668 if (has_ctype()) { |
5439 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 5669 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
5440 1, this->ctype(), target); | 5670 1, this->ctype(), target); |
5441 } | 5671 } |
5442 | 5672 |
5443 // optional bool packed = 2; | 5673 // optional bool packed = 2; |
5444 if (has_packed()) { | 5674 if (has_packed()) { |
5445 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->packed(), target); | 5675 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->packed(), target); |
5446 } | 5676 } |
5447 | 5677 |
5448 // optional bool deprecated = 3 [default = false]; | 5678 // optional bool deprecated = 3 [default = false]; |
5449 if (has_deprecated()) { | 5679 if (has_deprecated()) { |
5450 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); | 5680 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); |
5451 } | 5681 } |
5452 | 5682 |
| 5683 // optional bool lazy = 5 [default = false]; |
| 5684 if (has_lazy()) { |
| 5685 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t
his->lazy(), target); |
| 5686 } |
| 5687 |
5453 // optional string experimental_map_key = 9; | 5688 // optional string experimental_map_key = 9; |
5454 if (has_experimental_map_key()) { | 5689 if (has_experimental_map_key()) { |
5455 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 5690 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
5456 this->experimental_map_key().data(), this->experimental_map_key().length()
, | 5691 this->experimental_map_key().data(), this->experimental_map_key().length()
, |
5457 ::google::protobuf::internal::WireFormat::SERIALIZE); | 5692 ::google::protobuf::internal::WireFormat::SERIALIZE); |
5458 target = | 5693 target = |
5459 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 5694 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5460 9, this->experimental_map_key(), target); | 5695 9, this->experimental_map_key(), target); |
5461 } | 5696 } |
5462 | 5697 |
| 5698 // optional bool weak = 10 [default = false]; |
| 5699 if (has_weak()) { |
| 5700 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->weak(), target); |
| 5701 } |
| 5702 |
5463 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5703 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5464 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5704 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5465 target = ::google::protobuf::internal::WireFormatLite:: | 5705 target = ::google::protobuf::internal::WireFormatLite:: |
5466 WriteMessageNoVirtualToArray( | 5706 WriteMessageNoVirtualToArray( |
5467 999, this->uninterpreted_option(i), target); | 5707 999, this->uninterpreted_option(i), target); |
5468 } | 5708 } |
5469 | 5709 |
5470 // Extension range [1000, 536870912) | 5710 // Extension range [1000, 536870912) |
5471 target = _extensions_.SerializeWithCachedSizesToArray( | 5711 target = _extensions_.SerializeWithCachedSizesToArray( |
5472 1000, 536870912, target); | 5712 1000, 536870912, target); |
5473 | 5713 |
5474 if (!unknown_fields().empty()) { | 5714 if (!unknown_fields().empty()) { |
5475 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 5715 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
5476 unknown_fields(), target); | 5716 unknown_fields(), target); |
5477 } | 5717 } |
5478 return target; | 5718 return target; |
5479 } | 5719 } |
5480 | 5720 |
5481 int FieldOptions::ByteSize() const { | 5721 int FieldOptions::ByteSize() const { |
5482 int total_size = 0; | 5722 int total_size = 0; |
5483 | 5723 |
5484 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 5724 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
5485 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]
; | 5725 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]
; |
5486 if (has_ctype()) { | 5726 if (has_ctype()) { |
5487 total_size += 1 + | 5727 total_size += 1 + |
5488 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); | 5728 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); |
5489 } | 5729 } |
5490 | 5730 |
5491 // optional bool packed = 2; | 5731 // optional bool packed = 2; |
5492 if (has_packed()) { | 5732 if (has_packed()) { |
5493 total_size += 1 + 1; | 5733 total_size += 1 + 1; |
5494 } | 5734 } |
5495 | 5735 |
| 5736 // optional bool lazy = 5 [default = false]; |
| 5737 if (has_lazy()) { |
| 5738 total_size += 1 + 1; |
| 5739 } |
| 5740 |
5496 // optional bool deprecated = 3 [default = false]; | 5741 // optional bool deprecated = 3 [default = false]; |
5497 if (has_deprecated()) { | 5742 if (has_deprecated()) { |
5498 total_size += 1 + 1; | 5743 total_size += 1 + 1; |
5499 } | 5744 } |
5500 | 5745 |
5501 // optional string experimental_map_key = 9; | 5746 // optional string experimental_map_key = 9; |
5502 if (has_experimental_map_key()) { | 5747 if (has_experimental_map_key()) { |
5503 total_size += 1 + | 5748 total_size += 1 + |
5504 ::google::protobuf::internal::WireFormatLite::StringSize( | 5749 ::google::protobuf::internal::WireFormatLite::StringSize( |
5505 this->experimental_map_key()); | 5750 this->experimental_map_key()); |
5506 } | 5751 } |
5507 | 5752 |
| 5753 // optional bool weak = 10 [default = false]; |
| 5754 if (has_weak()) { |
| 5755 total_size += 1 + 1; |
| 5756 } |
| 5757 |
5508 } | 5758 } |
5509 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5759 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5510 total_size += 2 * this->uninterpreted_option_size(); | 5760 total_size += 2 * this->uninterpreted_option_size(); |
5511 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5761 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5512 total_size += | 5762 total_size += |
5513 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 5763 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5514 this->uninterpreted_option(i)); | 5764 this->uninterpreted_option(i)); |
5515 } | 5765 } |
5516 | 5766 |
5517 total_size += _extensions_.ByteSize(); | 5767 total_size += _extensions_.ByteSize(); |
5518 | 5768 |
5519 if (!unknown_fields().empty()) { | 5769 if (!unknown_fields().empty()) { |
5520 total_size += | 5770 total_size += |
5521 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 5771 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
5522 unknown_fields()); | 5772 unknown_fields()); |
5523 } | 5773 } |
5524 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5774 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5525 _cached_size_ = total_size; | 5775 _cached_size_ = total_size; |
5526 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5776 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5527 return total_size; | 5777 return total_size; |
5528 } | 5778 } |
(...skipping 13 matching lines...) Expand all Loading... |
5542 void FieldOptions::MergeFrom(const FieldOptions& from) { | 5792 void FieldOptions::MergeFrom(const FieldOptions& from) { |
5543 GOOGLE_CHECK_NE(&from, this); | 5793 GOOGLE_CHECK_NE(&from, this); |
5544 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 5794 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
5545 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 5795 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
5546 if (from.has_ctype()) { | 5796 if (from.has_ctype()) { |
5547 set_ctype(from.ctype()); | 5797 set_ctype(from.ctype()); |
5548 } | 5798 } |
5549 if (from.has_packed()) { | 5799 if (from.has_packed()) { |
5550 set_packed(from.packed()); | 5800 set_packed(from.packed()); |
5551 } | 5801 } |
| 5802 if (from.has_lazy()) { |
| 5803 set_lazy(from.lazy()); |
| 5804 } |
5552 if (from.has_deprecated()) { | 5805 if (from.has_deprecated()) { |
5553 set_deprecated(from.deprecated()); | 5806 set_deprecated(from.deprecated()); |
5554 } | 5807 } |
5555 if (from.has_experimental_map_key()) { | 5808 if (from.has_experimental_map_key()) { |
5556 set_experimental_map_key(from.experimental_map_key()); | 5809 set_experimental_map_key(from.experimental_map_key()); |
5557 } | 5810 } |
| 5811 if (from.has_weak()) { |
| 5812 set_weak(from.weak()); |
| 5813 } |
5558 } | 5814 } |
5559 _extensions_.MergeFrom(from._extensions_); | 5815 _extensions_.MergeFrom(from._extensions_); |
5560 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | 5816 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
5561 } | 5817 } |
5562 | 5818 |
5563 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { | 5819 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { |
5564 if (&from == this) return; | 5820 if (&from == this) return; |
5565 Clear(); | 5821 Clear(); |
5566 MergeFrom(from); | 5822 MergeFrom(from); |
5567 } | 5823 } |
5568 | 5824 |
5569 void FieldOptions::CopyFrom(const FieldOptions& from) { | 5825 void FieldOptions::CopyFrom(const FieldOptions& from) { |
5570 if (&from == this) return; | 5826 if (&from == this) return; |
5571 Clear(); | 5827 Clear(); |
5572 MergeFrom(from); | 5828 MergeFrom(from); |
5573 } | 5829 } |
5574 | 5830 |
5575 bool FieldOptions::IsInitialized() const { | 5831 bool FieldOptions::IsInitialized() const { |
5576 | 5832 |
5577 for (int i = 0; i < uninterpreted_option_size(); i++) { | 5833 for (int i = 0; i < uninterpreted_option_size(); i++) { |
5578 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 5834 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
5579 } | 5835 } |
5580 | 5836 |
5581 if (!_extensions_.IsInitialized()) return false; return true; | 5837 if (!_extensions_.IsInitialized()) return false; return true; |
5582 } | 5838 } |
5583 | 5839 |
5584 void FieldOptions::Swap(FieldOptions* other) { | 5840 void FieldOptions::Swap(FieldOptions* other) { |
5585 if (other != this) { | 5841 if (other != this) { |
5586 std::swap(ctype_, other->ctype_); | 5842 std::swap(ctype_, other->ctype_); |
5587 std::swap(packed_, other->packed_); | 5843 std::swap(packed_, other->packed_); |
| 5844 std::swap(lazy_, other->lazy_); |
5588 std::swap(deprecated_, other->deprecated_); | 5845 std::swap(deprecated_, other->deprecated_); |
5589 std::swap(experimental_map_key_, other->experimental_map_key_); | 5846 std::swap(experimental_map_key_, other->experimental_map_key_); |
| 5847 std::swap(weak_, other->weak_); |
5590 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 5848 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
5591 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5849 std::swap(_has_bits_[0], other->_has_bits_[0]); |
5592 _unknown_fields_.Swap(&other->_unknown_fields_); | 5850 _unknown_fields_.Swap(&other->_unknown_fields_); |
5593 std::swap(_cached_size_, other->_cached_size_); | 5851 std::swap(_cached_size_, other->_cached_size_); |
5594 _extensions_.Swap(&other->_extensions_); | 5852 _extensions_.Swap(&other->_extensions_); |
5595 } | 5853 } |
5596 } | 5854 } |
5597 | 5855 |
5598 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { | 5856 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { |
5599 protobuf_AssignDescriptorsOnce(); | 5857 protobuf_AssignDescriptorsOnce(); |
5600 ::google::protobuf::Metadata metadata; | 5858 ::google::protobuf::Metadata metadata; |
5601 metadata.descriptor = FieldOptions_descriptor_; | 5859 metadata.descriptor = FieldOptions_descriptor_; |
5602 metadata.reflection = FieldOptions_reflection_; | 5860 metadata.reflection = FieldOptions_reflection_; |
5603 return metadata; | 5861 return metadata; |
5604 } | 5862 } |
5605 | 5863 |
5606 | 5864 |
5607 // =================================================================== | 5865 // =================================================================== |
5608 | 5866 |
5609 #ifndef _MSC_VER | 5867 #ifndef _MSC_VER |
| 5868 const int EnumOptions::kAllowAliasFieldNumber; |
5610 const int EnumOptions::kUninterpretedOptionFieldNumber; | 5869 const int EnumOptions::kUninterpretedOptionFieldNumber; |
5611 #endif // !_MSC_VER | 5870 #endif // !_MSC_VER |
5612 | 5871 |
5613 EnumOptions::EnumOptions() | 5872 EnumOptions::EnumOptions() |
5614 : ::google::protobuf::Message() { | 5873 : ::google::protobuf::Message() { |
5615 SharedCtor(); | 5874 SharedCtor(); |
5616 } | 5875 } |
5617 | 5876 |
5618 void EnumOptions::InitAsDefaultInstance() { | 5877 void EnumOptions::InitAsDefaultInstance() { |
5619 } | 5878 } |
5620 | 5879 |
5621 EnumOptions::EnumOptions(const EnumOptions& from) | 5880 EnumOptions::EnumOptions(const EnumOptions& from) |
5622 : ::google::protobuf::Message() { | 5881 : ::google::protobuf::Message() { |
5623 SharedCtor(); | 5882 SharedCtor(); |
5624 MergeFrom(from); | 5883 MergeFrom(from); |
5625 } | 5884 } |
5626 | 5885 |
5627 void EnumOptions::SharedCtor() { | 5886 void EnumOptions::SharedCtor() { |
5628 _cached_size_ = 0; | 5887 _cached_size_ = 0; |
| 5888 allow_alias_ = true; |
5629 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 5889 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5630 } | 5890 } |
5631 | 5891 |
5632 EnumOptions::~EnumOptions() { | 5892 EnumOptions::~EnumOptions() { |
5633 SharedDtor(); | 5893 SharedDtor(); |
5634 } | 5894 } |
5635 | 5895 |
5636 void EnumOptions::SharedDtor() { | 5896 void EnumOptions::SharedDtor() { |
5637 if (this != default_instance_) { | 5897 if (this != default_instance_) { |
5638 } | 5898 } |
(...skipping 15 matching lines...) Expand all Loading... |
5654 } | 5914 } |
5655 | 5915 |
5656 EnumOptions* EnumOptions::default_instance_ = NULL; | 5916 EnumOptions* EnumOptions::default_instance_ = NULL; |
5657 | 5917 |
5658 EnumOptions* EnumOptions::New() const { | 5918 EnumOptions* EnumOptions::New() const { |
5659 return new EnumOptions; | 5919 return new EnumOptions; |
5660 } | 5920 } |
5661 | 5921 |
5662 void EnumOptions::Clear() { | 5922 void EnumOptions::Clear() { |
5663 _extensions_.Clear(); | 5923 _extensions_.Clear(); |
| 5924 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 5925 allow_alias_ = true; |
| 5926 } |
5664 uninterpreted_option_.Clear(); | 5927 uninterpreted_option_.Clear(); |
5665 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 5928 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5666 mutable_unknown_fields()->Clear(); | 5929 mutable_unknown_fields()->Clear(); |
5667 } | 5930 } |
5668 | 5931 |
5669 bool EnumOptions::MergePartialFromCodedStream( | 5932 bool EnumOptions::MergePartialFromCodedStream( |
5670 ::google::protobuf::io::CodedInputStream* input) { | 5933 ::google::protobuf::io::CodedInputStream* input) { |
5671 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | 5934 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
5672 ::google::protobuf::uint32 tag; | 5935 ::google::protobuf::uint32 tag; |
5673 while ((tag = input->ReadTag()) != 0) { | 5936 while ((tag = input->ReadTag()) != 0) { |
5674 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 5937 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 5938 // optional bool allow_alias = 2 [default = true]; |
| 5939 case 2: { |
| 5940 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5941 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 5942 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5943 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 5944 input, &allow_alias_))); |
| 5945 set_has_allow_alias(); |
| 5946 } else { |
| 5947 goto handle_uninterpreted; |
| 5948 } |
| 5949 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 5950 break; |
| 5951 } |
| 5952 |
5675 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 5953 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
5676 case 999: { | 5954 case 999: { |
5677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5955 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 5956 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
5679 parse_uninterpreted_option: | 5957 parse_uninterpreted_option: |
5680 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 5958 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
5681 input, add_uninterpreted_option())); | 5959 input, add_uninterpreted_option())); |
5682 } else { | 5960 } else { |
5683 goto handle_uninterpreted; | 5961 goto handle_uninterpreted; |
5684 } | 5962 } |
5685 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 5963 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
5686 if (input->ExpectAtEnd()) return true; | 5964 if (input->ExpectAtEnd()) return true; |
5687 break; | 5965 break; |
5688 } | 5966 } |
5689 | 5967 |
5690 default: { | 5968 default: { |
5691 handle_uninterpreted: | 5969 handle_uninterpreted: |
5692 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5970 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5693 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5971 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
5694 return true; | 5972 return true; |
5695 } | 5973 } |
5696 if ((8000u <= tag)) { | 5974 if ((8000u <= tag)) { |
5697 DO_(_extensions_.ParseField(tag, input, default_instance_, | 5975 DO_(_extensions_.ParseField(tag, input, default_instance_, |
5698 mutable_unknown_fields())); | 5976 mutable_unknown_fields())); |
5699 continue; | 5977 continue; |
5700 } | 5978 } |
5701 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 5979 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 5980 input, tag, mutable_unknown_fields())); |
5702 break; | 5981 break; |
5703 } | 5982 } |
5704 } | 5983 } |
5705 } | 5984 } |
5706 return true; | 5985 return true; |
5707 #undef DO_ | 5986 #undef DO_ |
5708 } | 5987 } |
5709 | 5988 |
5710 void EnumOptions::SerializeWithCachedSizes( | 5989 void EnumOptions::SerializeWithCachedSizes( |
5711 ::google::protobuf::io::CodedOutputStream* output) const { | 5990 ::google::protobuf::io::CodedOutputStream* output) const { |
| 5991 // optional bool allow_alias = 2 [default = true]; |
| 5992 if (has_allow_alias()) { |
| 5993 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias
(), output); |
| 5994 } |
| 5995 |
5712 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 5996 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5713 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 5997 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5714 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 5998 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5715 999, this->uninterpreted_option(i), output); | 5999 999, this->uninterpreted_option(i), output); |
5716 } | 6000 } |
5717 | 6001 |
5718 // Extension range [1000, 536870912) | 6002 // Extension range [1000, 536870912) |
5719 _extensions_.SerializeWithCachedSizes( | 6003 _extensions_.SerializeWithCachedSizes( |
5720 1000, 536870912, output); | 6004 1000, 536870912, output); |
5721 | 6005 |
5722 if (!unknown_fields().empty()) { | 6006 if (!unknown_fields().empty()) { |
5723 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 6007 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
5724 unknown_fields(), output); | 6008 unknown_fields(), output); |
5725 } | 6009 } |
5726 } | 6010 } |
5727 | 6011 |
5728 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( | 6012 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( |
5729 ::google::protobuf::uint8* target) const { | 6013 ::google::protobuf::uint8* target) const { |
| 6014 // optional bool allow_alias = 2 [default = true]; |
| 6015 if (has_allow_alias()) { |
| 6016 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->allow_alias(), target); |
| 6017 } |
| 6018 |
5730 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6019 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5731 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6020 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5732 target = ::google::protobuf::internal::WireFormatLite:: | 6021 target = ::google::protobuf::internal::WireFormatLite:: |
5733 WriteMessageNoVirtualToArray( | 6022 WriteMessageNoVirtualToArray( |
5734 999, this->uninterpreted_option(i), target); | 6023 999, this->uninterpreted_option(i), target); |
5735 } | 6024 } |
5736 | 6025 |
5737 // Extension range [1000, 536870912) | 6026 // Extension range [1000, 536870912) |
5738 target = _extensions_.SerializeWithCachedSizesToArray( | 6027 target = _extensions_.SerializeWithCachedSizesToArray( |
5739 1000, 536870912, target); | 6028 1000, 536870912, target); |
5740 | 6029 |
5741 if (!unknown_fields().empty()) { | 6030 if (!unknown_fields().empty()) { |
5742 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 6031 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
5743 unknown_fields(), target); | 6032 unknown_fields(), target); |
5744 } | 6033 } |
5745 return target; | 6034 return target; |
5746 } | 6035 } |
5747 | 6036 |
5748 int EnumOptions::ByteSize() const { | 6037 int EnumOptions::ByteSize() const { |
5749 int total_size = 0; | 6038 int total_size = 0; |
5750 | 6039 |
| 6040 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 6041 // optional bool allow_alias = 2 [default = true]; |
| 6042 if (has_allow_alias()) { |
| 6043 total_size += 1 + 1; |
| 6044 } |
| 6045 |
| 6046 } |
5751 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6047 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5752 total_size += 2 * this->uninterpreted_option_size(); | 6048 total_size += 2 * this->uninterpreted_option_size(); |
5753 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6049 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5754 total_size += | 6050 total_size += |
5755 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 6051 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5756 this->uninterpreted_option(i)); | 6052 this->uninterpreted_option(i)); |
5757 } | 6053 } |
5758 | 6054 |
5759 total_size += _extensions_.ByteSize(); | 6055 total_size += _extensions_.ByteSize(); |
5760 | 6056 |
5761 if (!unknown_fields().empty()) { | 6057 if (!unknown_fields().empty()) { |
5762 total_size += | 6058 total_size += |
5763 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 6059 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
5764 unknown_fields()); | 6060 unknown_fields()); |
5765 } | 6061 } |
5766 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6062 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5767 _cached_size_ = total_size; | 6063 _cached_size_ = total_size; |
5768 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6064 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5769 return total_size; | 6065 return total_size; |
5770 } | 6066 } |
5771 | 6067 |
5772 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { | 6068 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
5773 GOOGLE_CHECK_NE(&from, this); | 6069 GOOGLE_CHECK_NE(&from, this); |
5774 const EnumOptions* source = | 6070 const EnumOptions* source = |
5775 ::google::protobuf::internal::dynamic_cast_if_available<const EnumOptions*>( | 6071 ::google::protobuf::internal::dynamic_cast_if_available<const EnumOptions*>( |
5776 &from); | 6072 &from); |
5777 if (source == NULL) { | 6073 if (source == NULL) { |
5778 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 6074 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5779 } else { | 6075 } else { |
5780 MergeFrom(*source); | 6076 MergeFrom(*source); |
5781 } | 6077 } |
5782 } | 6078 } |
5783 | 6079 |
5784 void EnumOptions::MergeFrom(const EnumOptions& from) { | 6080 void EnumOptions::MergeFrom(const EnumOptions& from) { |
5785 GOOGLE_CHECK_NE(&from, this); | 6081 GOOGLE_CHECK_NE(&from, this); |
5786 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 6082 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 6083 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 6084 if (from.has_allow_alias()) { |
| 6085 set_allow_alias(from.allow_alias()); |
| 6086 } |
| 6087 } |
5787 _extensions_.MergeFrom(from._extensions_); | 6088 _extensions_.MergeFrom(from._extensions_); |
5788 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | 6089 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
5789 } | 6090 } |
5790 | 6091 |
5791 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { | 6092 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { |
5792 if (&from == this) return; | 6093 if (&from == this) return; |
5793 Clear(); | 6094 Clear(); |
5794 MergeFrom(from); | 6095 MergeFrom(from); |
5795 } | 6096 } |
5796 | 6097 |
5797 void EnumOptions::CopyFrom(const EnumOptions& from) { | 6098 void EnumOptions::CopyFrom(const EnumOptions& from) { |
5798 if (&from == this) return; | 6099 if (&from == this) return; |
5799 Clear(); | 6100 Clear(); |
5800 MergeFrom(from); | 6101 MergeFrom(from); |
5801 } | 6102 } |
5802 | 6103 |
5803 bool EnumOptions::IsInitialized() const { | 6104 bool EnumOptions::IsInitialized() const { |
5804 | 6105 |
5805 for (int i = 0; i < uninterpreted_option_size(); i++) { | 6106 for (int i = 0; i < uninterpreted_option_size(); i++) { |
5806 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 6107 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
5807 } | 6108 } |
5808 | 6109 |
5809 if (!_extensions_.IsInitialized()) return false; return true; | 6110 if (!_extensions_.IsInitialized()) return false; return true; |
5810 } | 6111 } |
5811 | 6112 |
5812 void EnumOptions::Swap(EnumOptions* other) { | 6113 void EnumOptions::Swap(EnumOptions* other) { |
5813 if (other != this) { | 6114 if (other != this) { |
| 6115 std::swap(allow_alias_, other->allow_alias_); |
5814 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 6116 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
5815 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6117 std::swap(_has_bits_[0], other->_has_bits_[0]); |
5816 _unknown_fields_.Swap(&other->_unknown_fields_); | 6118 _unknown_fields_.Swap(&other->_unknown_fields_); |
5817 std::swap(_cached_size_, other->_cached_size_); | 6119 std::swap(_cached_size_, other->_cached_size_); |
5818 _extensions_.Swap(&other->_extensions_); | 6120 _extensions_.Swap(&other->_extensions_); |
5819 } | 6121 } |
5820 } | 6122 } |
5821 | 6123 |
5822 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { | 6124 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { |
5823 protobuf_AssignDescriptorsOnce(); | 6125 protobuf_AssignDescriptorsOnce(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5903 parse_uninterpreted_option: | 6205 parse_uninterpreted_option: |
5904 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
5905 input, add_uninterpreted_option())); | 6207 input, add_uninterpreted_option())); |
5906 } else { | 6208 } else { |
5907 goto handle_uninterpreted; | 6209 goto handle_uninterpreted; |
5908 } | 6210 } |
5909 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 6211 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
5910 if (input->ExpectAtEnd()) return true; | 6212 if (input->ExpectAtEnd()) return true; |
5911 break; | 6213 break; |
5912 } | 6214 } |
5913 | 6215 |
5914 default: { | 6216 default: { |
5915 handle_uninterpreted: | 6217 handle_uninterpreted: |
5916 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6218 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5917 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6219 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
5918 return true; | 6220 return true; |
5919 } | 6221 } |
5920 if ((8000u <= tag)) { | 6222 if ((8000u <= tag)) { |
5921 DO_(_extensions_.ParseField(tag, input, default_instance_, | 6223 DO_(_extensions_.ParseField(tag, input, default_instance_, |
5922 mutable_unknown_fields())); | 6224 mutable_unknown_fields())); |
5923 continue; | 6225 continue; |
5924 } | 6226 } |
5925 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 6227 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 6228 input, tag, mutable_unknown_fields())); |
5926 break; | 6229 break; |
5927 } | 6230 } |
5928 } | 6231 } |
5929 } | 6232 } |
5930 return true; | 6233 return true; |
5931 #undef DO_ | 6234 #undef DO_ |
5932 } | 6235 } |
5933 | 6236 |
5934 void EnumValueOptions::SerializeWithCachedSizes( | 6237 void EnumValueOptions::SerializeWithCachedSizes( |
5935 ::google::protobuf::io::CodedOutputStream* output) const { | 6238 ::google::protobuf::io::CodedOutputStream* output) const { |
5936 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6239 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5937 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6240 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5938 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 6241 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5939 999, this->uninterpreted_option(i), output); | 6242 999, this->uninterpreted_option(i), output); |
5940 } | 6243 } |
5941 | 6244 |
5942 // Extension range [1000, 536870912) | 6245 // Extension range [1000, 536870912) |
5943 _extensions_.SerializeWithCachedSizes( | 6246 _extensions_.SerializeWithCachedSizes( |
5944 1000, 536870912, output); | 6247 1000, 536870912, output); |
5945 | 6248 |
5946 if (!unknown_fields().empty()) { | 6249 if (!unknown_fields().empty()) { |
5947 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 6250 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
5948 unknown_fields(), output); | 6251 unknown_fields(), output); |
5949 } | 6252 } |
5950 } | 6253 } |
5951 | 6254 |
5952 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( | 6255 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( |
5953 ::google::protobuf::uint8* target) const { | 6256 ::google::protobuf::uint8* target) const { |
5954 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6257 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5955 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6258 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5956 target = ::google::protobuf::internal::WireFormatLite:: | 6259 target = ::google::protobuf::internal::WireFormatLite:: |
5957 WriteMessageNoVirtualToArray( | 6260 WriteMessageNoVirtualToArray( |
5958 999, this->uninterpreted_option(i), target); | 6261 999, this->uninterpreted_option(i), target); |
5959 } | 6262 } |
5960 | 6263 |
5961 // Extension range [1000, 536870912) | 6264 // Extension range [1000, 536870912) |
5962 target = _extensions_.SerializeWithCachedSizesToArray( | 6265 target = _extensions_.SerializeWithCachedSizesToArray( |
5963 1000, 536870912, target); | 6266 1000, 536870912, target); |
5964 | 6267 |
5965 if (!unknown_fields().empty()) { | 6268 if (!unknown_fields().empty()) { |
5966 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 6269 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
5967 unknown_fields(), target); | 6270 unknown_fields(), target); |
5968 } | 6271 } |
5969 return target; | 6272 return target; |
5970 } | 6273 } |
5971 | 6274 |
5972 int EnumValueOptions::ByteSize() const { | 6275 int EnumValueOptions::ByteSize() const { |
5973 int total_size = 0; | 6276 int total_size = 0; |
5974 | 6277 |
5975 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6278 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
5976 total_size += 2 * this->uninterpreted_option_size(); | 6279 total_size += 2 * this->uninterpreted_option_size(); |
5977 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6280 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
5978 total_size += | 6281 total_size += |
5979 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 6282 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5980 this->uninterpreted_option(i)); | 6283 this->uninterpreted_option(i)); |
5981 } | 6284 } |
5982 | 6285 |
5983 total_size += _extensions_.ByteSize(); | 6286 total_size += _extensions_.ByteSize(); |
5984 | 6287 |
5985 if (!unknown_fields().empty()) { | 6288 if (!unknown_fields().empty()) { |
5986 total_size += | 6289 total_size += |
5987 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 6290 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
5988 unknown_fields()); | 6291 unknown_fields()); |
5989 } | 6292 } |
5990 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6293 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5991 _cached_size_ = total_size; | 6294 _cached_size_ = total_size; |
5992 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6295 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5993 return total_size; | 6296 return total_size; |
5994 } | 6297 } |
(...skipping 23 matching lines...) Expand all Loading... |
6018 MergeFrom(from); | 6321 MergeFrom(from); |
6019 } | 6322 } |
6020 | 6323 |
6021 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { | 6324 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { |
6022 if (&from == this) return; | 6325 if (&from == this) return; |
6023 Clear(); | 6326 Clear(); |
6024 MergeFrom(from); | 6327 MergeFrom(from); |
6025 } | 6328 } |
6026 | 6329 |
6027 bool EnumValueOptions::IsInitialized() const { | 6330 bool EnumValueOptions::IsInitialized() const { |
6028 | 6331 |
6029 for (int i = 0; i < uninterpreted_option_size(); i++) { | 6332 for (int i = 0; i < uninterpreted_option_size(); i++) { |
6030 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 6333 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
6031 } | 6334 } |
6032 | 6335 |
6033 if (!_extensions_.IsInitialized()) return false; return true; | 6336 if (!_extensions_.IsInitialized()) return false; return true; |
6034 } | 6337 } |
6035 | 6338 |
6036 void EnumValueOptions::Swap(EnumValueOptions* other) { | 6339 void EnumValueOptions::Swap(EnumValueOptions* other) { |
6037 if (other != this) { | 6340 if (other != this) { |
6038 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 6341 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
6039 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6342 std::swap(_has_bits_[0], other->_has_bits_[0]); |
6040 _unknown_fields_.Swap(&other->_unknown_fields_); | 6343 _unknown_fields_.Swap(&other->_unknown_fields_); |
6041 std::swap(_cached_size_, other->_cached_size_); | 6344 std::swap(_cached_size_, other->_cached_size_); |
6042 _extensions_.Swap(&other->_extensions_); | 6345 _extensions_.Swap(&other->_extensions_); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6127 parse_uninterpreted_option: | 6430 parse_uninterpreted_option: |
6128 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6431 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
6129 input, add_uninterpreted_option())); | 6432 input, add_uninterpreted_option())); |
6130 } else { | 6433 } else { |
6131 goto handle_uninterpreted; | 6434 goto handle_uninterpreted; |
6132 } | 6435 } |
6133 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 6436 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
6134 if (input->ExpectAtEnd()) return true; | 6437 if (input->ExpectAtEnd()) return true; |
6135 break; | 6438 break; |
6136 } | 6439 } |
6137 | 6440 |
6138 default: { | 6441 default: { |
6139 handle_uninterpreted: | 6442 handle_uninterpreted: |
6140 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6443 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6141 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6444 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
6142 return true; | 6445 return true; |
6143 } | 6446 } |
6144 if ((8000u <= tag)) { | 6447 if ((8000u <= tag)) { |
6145 DO_(_extensions_.ParseField(tag, input, default_instance_, | 6448 DO_(_extensions_.ParseField(tag, input, default_instance_, |
6146 mutable_unknown_fields())); | 6449 mutable_unknown_fields())); |
6147 continue; | 6450 continue; |
6148 } | 6451 } |
6149 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 6452 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 6453 input, tag, mutable_unknown_fields())); |
6150 break; | 6454 break; |
6151 } | 6455 } |
6152 } | 6456 } |
6153 } | 6457 } |
6154 return true; | 6458 return true; |
6155 #undef DO_ | 6459 #undef DO_ |
6156 } | 6460 } |
6157 | 6461 |
6158 void ServiceOptions::SerializeWithCachedSizes( | 6462 void ServiceOptions::SerializeWithCachedSizes( |
6159 ::google::protobuf::io::CodedOutputStream* output) const { | 6463 ::google::protobuf::io::CodedOutputStream* output) const { |
6160 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6464 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
6161 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6465 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
6162 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 6466 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6163 999, this->uninterpreted_option(i), output); | 6467 999, this->uninterpreted_option(i), output); |
6164 } | 6468 } |
6165 | 6469 |
6166 // Extension range [1000, 536870912) | 6470 // Extension range [1000, 536870912) |
6167 _extensions_.SerializeWithCachedSizes( | 6471 _extensions_.SerializeWithCachedSizes( |
6168 1000, 536870912, output); | 6472 1000, 536870912, output); |
6169 | 6473 |
6170 if (!unknown_fields().empty()) { | 6474 if (!unknown_fields().empty()) { |
6171 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 6475 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
6172 unknown_fields(), output); | 6476 unknown_fields(), output); |
6173 } | 6477 } |
6174 } | 6478 } |
6175 | 6479 |
6176 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( | 6480 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( |
6177 ::google::protobuf::uint8* target) const { | 6481 ::google::protobuf::uint8* target) const { |
6178 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6482 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
6179 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6483 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
6180 target = ::google::protobuf::internal::WireFormatLite:: | 6484 target = ::google::protobuf::internal::WireFormatLite:: |
6181 WriteMessageNoVirtualToArray( | 6485 WriteMessageNoVirtualToArray( |
6182 999, this->uninterpreted_option(i), target); | 6486 999, this->uninterpreted_option(i), target); |
6183 } | 6487 } |
6184 | 6488 |
6185 // Extension range [1000, 536870912) | 6489 // Extension range [1000, 536870912) |
6186 target = _extensions_.SerializeWithCachedSizesToArray( | 6490 target = _extensions_.SerializeWithCachedSizesToArray( |
6187 1000, 536870912, target); | 6491 1000, 536870912, target); |
6188 | 6492 |
6189 if (!unknown_fields().empty()) { | 6493 if (!unknown_fields().empty()) { |
6190 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 6494 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
6191 unknown_fields(), target); | 6495 unknown_fields(), target); |
6192 } | 6496 } |
6193 return target; | 6497 return target; |
6194 } | 6498 } |
6195 | 6499 |
6196 int ServiceOptions::ByteSize() const { | 6500 int ServiceOptions::ByteSize() const { |
6197 int total_size = 0; | 6501 int total_size = 0; |
6198 | 6502 |
6199 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6503 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
6200 total_size += 2 * this->uninterpreted_option_size(); | 6504 total_size += 2 * this->uninterpreted_option_size(); |
6201 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6505 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
6202 total_size += | 6506 total_size += |
6203 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 6507 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6204 this->uninterpreted_option(i)); | 6508 this->uninterpreted_option(i)); |
6205 } | 6509 } |
6206 | 6510 |
6207 total_size += _extensions_.ByteSize(); | 6511 total_size += _extensions_.ByteSize(); |
6208 | 6512 |
6209 if (!unknown_fields().empty()) { | 6513 if (!unknown_fields().empty()) { |
6210 total_size += | 6514 total_size += |
6211 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 6515 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
6212 unknown_fields()); | 6516 unknown_fields()); |
6213 } | 6517 } |
6214 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6518 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6215 _cached_size_ = total_size; | 6519 _cached_size_ = total_size; |
6216 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6520 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6217 return total_size; | 6521 return total_size; |
6218 } | 6522 } |
(...skipping 23 matching lines...) Expand all Loading... |
6242 MergeFrom(from); | 6546 MergeFrom(from); |
6243 } | 6547 } |
6244 | 6548 |
6245 void ServiceOptions::CopyFrom(const ServiceOptions& from) { | 6549 void ServiceOptions::CopyFrom(const ServiceOptions& from) { |
6246 if (&from == this) return; | 6550 if (&from == this) return; |
6247 Clear(); | 6551 Clear(); |
6248 MergeFrom(from); | 6552 MergeFrom(from); |
6249 } | 6553 } |
6250 | 6554 |
6251 bool ServiceOptions::IsInitialized() const { | 6555 bool ServiceOptions::IsInitialized() const { |
6252 | 6556 |
6253 for (int i = 0; i < uninterpreted_option_size(); i++) { | 6557 for (int i = 0; i < uninterpreted_option_size(); i++) { |
6254 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 6558 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
6255 } | 6559 } |
6256 | 6560 |
6257 if (!_extensions_.IsInitialized()) return false; return true; | 6561 if (!_extensions_.IsInitialized()) return false; return true; |
6258 } | 6562 } |
6259 | 6563 |
6260 void ServiceOptions::Swap(ServiceOptions* other) { | 6564 void ServiceOptions::Swap(ServiceOptions* other) { |
6261 if (other != this) { | 6565 if (other != this) { |
6262 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 6566 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
6263 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6567 std::swap(_has_bits_[0], other->_has_bits_[0]); |
6264 _unknown_fields_.Swap(&other->_unknown_fields_); | 6568 _unknown_fields_.Swap(&other->_unknown_fields_); |
6265 std::swap(_cached_size_, other->_cached_size_); | 6569 std::swap(_cached_size_, other->_cached_size_); |
6266 _extensions_.Swap(&other->_extensions_); | 6570 _extensions_.Swap(&other->_extensions_); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6351 parse_uninterpreted_option: | 6655 parse_uninterpreted_option: |
6352 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6656 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
6353 input, add_uninterpreted_option())); | 6657 input, add_uninterpreted_option())); |
6354 } else { | 6658 } else { |
6355 goto handle_uninterpreted; | 6659 goto handle_uninterpreted; |
6356 } | 6660 } |
6357 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; | 6661 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
6358 if (input->ExpectAtEnd()) return true; | 6662 if (input->ExpectAtEnd()) return true; |
6359 break; | 6663 break; |
6360 } | 6664 } |
6361 | 6665 |
6362 default: { | 6666 default: { |
6363 handle_uninterpreted: | 6667 handle_uninterpreted: |
6364 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6668 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6365 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6669 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
6366 return true; | 6670 return true; |
6367 } | 6671 } |
6368 if ((8000u <= tag)) { | 6672 if ((8000u <= tag)) { |
6369 DO_(_extensions_.ParseField(tag, input, default_instance_, | 6673 DO_(_extensions_.ParseField(tag, input, default_instance_, |
6370 mutable_unknown_fields())); | 6674 mutable_unknown_fields())); |
6371 continue; | 6675 continue; |
6372 } | 6676 } |
6373 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 6677 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 6678 input, tag, mutable_unknown_fields())); |
6374 break; | 6679 break; |
6375 } | 6680 } |
6376 } | 6681 } |
6377 } | 6682 } |
6378 return true; | 6683 return true; |
6379 #undef DO_ | 6684 #undef DO_ |
6380 } | 6685 } |
6381 | 6686 |
6382 void MethodOptions::SerializeWithCachedSizes( | 6687 void MethodOptions::SerializeWithCachedSizes( |
6383 ::google::protobuf::io::CodedOutputStream* output) const { | 6688 ::google::protobuf::io::CodedOutputStream* output) const { |
6384 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6689 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
6385 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6690 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
6386 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 6691 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6387 999, this->uninterpreted_option(i), output); | 6692 999, this->uninterpreted_option(i), output); |
6388 } | 6693 } |
6389 | 6694 |
6390 // Extension range [1000, 536870912) | 6695 // Extension range [1000, 536870912) |
6391 _extensions_.SerializeWithCachedSizes( | 6696 _extensions_.SerializeWithCachedSizes( |
6392 1000, 536870912, output); | 6697 1000, 536870912, output); |
6393 | 6698 |
6394 if (!unknown_fields().empty()) { | 6699 if (!unknown_fields().empty()) { |
6395 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 6700 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
6396 unknown_fields(), output); | 6701 unknown_fields(), output); |
6397 } | 6702 } |
6398 } | 6703 } |
6399 | 6704 |
6400 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( | 6705 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( |
6401 ::google::protobuf::uint8* target) const { | 6706 ::google::protobuf::uint8* target) const { |
6402 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6707 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
6403 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6708 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
6404 target = ::google::protobuf::internal::WireFormatLite:: | 6709 target = ::google::protobuf::internal::WireFormatLite:: |
6405 WriteMessageNoVirtualToArray( | 6710 WriteMessageNoVirtualToArray( |
6406 999, this->uninterpreted_option(i), target); | 6711 999, this->uninterpreted_option(i), target); |
6407 } | 6712 } |
6408 | 6713 |
6409 // Extension range [1000, 536870912) | 6714 // Extension range [1000, 536870912) |
6410 target = _extensions_.SerializeWithCachedSizesToArray( | 6715 target = _extensions_.SerializeWithCachedSizesToArray( |
6411 1000, 536870912, target); | 6716 1000, 536870912, target); |
6412 | 6717 |
6413 if (!unknown_fields().empty()) { | 6718 if (!unknown_fields().empty()) { |
6414 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 6719 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
6415 unknown_fields(), target); | 6720 unknown_fields(), target); |
6416 } | 6721 } |
6417 return target; | 6722 return target; |
6418 } | 6723 } |
6419 | 6724 |
6420 int MethodOptions::ByteSize() const { | 6725 int MethodOptions::ByteSize() const { |
6421 int total_size = 0; | 6726 int total_size = 0; |
6422 | 6727 |
6423 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 6728 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
6424 total_size += 2 * this->uninterpreted_option_size(); | 6729 total_size += 2 * this->uninterpreted_option_size(); |
6425 for (int i = 0; i < this->uninterpreted_option_size(); i++) { | 6730 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
6426 total_size += | 6731 total_size += |
6427 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 6732 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6428 this->uninterpreted_option(i)); | 6733 this->uninterpreted_option(i)); |
6429 } | 6734 } |
6430 | 6735 |
6431 total_size += _extensions_.ByteSize(); | 6736 total_size += _extensions_.ByteSize(); |
6432 | 6737 |
6433 if (!unknown_fields().empty()) { | 6738 if (!unknown_fields().empty()) { |
6434 total_size += | 6739 total_size += |
6435 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 6740 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
6436 unknown_fields()); | 6741 unknown_fields()); |
6437 } | 6742 } |
6438 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6743 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6439 _cached_size_ = total_size; | 6744 _cached_size_ = total_size; |
6440 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6745 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6441 return total_size; | 6746 return total_size; |
6442 } | 6747 } |
(...skipping 23 matching lines...) Expand all Loading... |
6466 MergeFrom(from); | 6771 MergeFrom(from); |
6467 } | 6772 } |
6468 | 6773 |
6469 void MethodOptions::CopyFrom(const MethodOptions& from) { | 6774 void MethodOptions::CopyFrom(const MethodOptions& from) { |
6470 if (&from == this) return; | 6775 if (&from == this) return; |
6471 Clear(); | 6776 Clear(); |
6472 MergeFrom(from); | 6777 MergeFrom(from); |
6473 } | 6778 } |
6474 | 6779 |
6475 bool MethodOptions::IsInitialized() const { | 6780 bool MethodOptions::IsInitialized() const { |
6476 | 6781 |
6477 for (int i = 0; i < uninterpreted_option_size(); i++) { | 6782 for (int i = 0; i < uninterpreted_option_size(); i++) { |
6478 if (!this->uninterpreted_option(i).IsInitialized()) return false; | 6783 if (!this->uninterpreted_option(i).IsInitialized()) return false; |
6479 } | 6784 } |
6480 | 6785 |
6481 if (!_extensions_.IsInitialized()) return false; return true; | 6786 if (!_extensions_.IsInitialized()) return false; return true; |
6482 } | 6787 } |
6483 | 6788 |
6484 void MethodOptions::Swap(MethodOptions* other) { | 6789 void MethodOptions::Swap(MethodOptions* other) { |
6485 if (other != this) { | 6790 if (other != this) { |
6486 uninterpreted_option_.Swap(&other->uninterpreted_option_); | 6791 uninterpreted_option_.Swap(&other->uninterpreted_option_); |
6487 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6792 std::swap(_has_bits_[0], other->_has_bits_[0]); |
6488 _unknown_fields_.Swap(&other->_unknown_fields_); | 6793 _unknown_fields_.Swap(&other->_unknown_fields_); |
6489 std::swap(_cached_size_, other->_cached_size_); | 6794 std::swap(_cached_size_, other->_cached_size_); |
6490 _extensions_.Swap(&other->_extensions_); | 6795 _extensions_.Swap(&other->_extensions_); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6588 input, this->mutable_name_part())); | 6893 input, this->mutable_name_part())); |
6589 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 6894 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
6590 this->name_part().data(), this->name_part().length(), | 6895 this->name_part().data(), this->name_part().length(), |
6591 ::google::protobuf::internal::WireFormat::PARSE); | 6896 ::google::protobuf::internal::WireFormat::PARSE); |
6592 } else { | 6897 } else { |
6593 goto handle_uninterpreted; | 6898 goto handle_uninterpreted; |
6594 } | 6899 } |
6595 if (input->ExpectTag(16)) goto parse_is_extension; | 6900 if (input->ExpectTag(16)) goto parse_is_extension; |
6596 break; | 6901 break; |
6597 } | 6902 } |
6598 | 6903 |
6599 // required bool is_extension = 2; | 6904 // required bool is_extension = 2; |
6600 case 2: { | 6905 case 2: { |
6601 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6906 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6602 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 6907 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
6603 parse_is_extension: | 6908 parse_is_extension: |
6604 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 6909 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6605 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 6910 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
6606 input, &is_extension_))); | 6911 input, &is_extension_))); |
6607 set_has_is_extension(); | 6912 set_has_is_extension(); |
6608 } else { | 6913 } else { |
6609 goto handle_uninterpreted; | 6914 goto handle_uninterpreted; |
6610 } | 6915 } |
6611 if (input->ExpectAtEnd()) return true; | 6916 if (input->ExpectAtEnd()) return true; |
6612 break; | 6917 break; |
6613 } | 6918 } |
6614 | 6919 |
6615 default: { | 6920 default: { |
6616 handle_uninterpreted: | 6921 handle_uninterpreted: |
6617 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6922 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6618 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6923 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
6619 return true; | 6924 return true; |
6620 } | 6925 } |
6621 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 6926 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 6927 input, tag, mutable_unknown_fields())); |
6622 break; | 6928 break; |
6623 } | 6929 } |
6624 } | 6930 } |
6625 } | 6931 } |
6626 return true; | 6932 return true; |
6627 #undef DO_ | 6933 #undef DO_ |
6628 } | 6934 } |
6629 | 6935 |
6630 void UninterpretedOption_NamePart::SerializeWithCachedSizes( | 6936 void UninterpretedOption_NamePart::SerializeWithCachedSizes( |
6631 ::google::protobuf::io::CodedOutputStream* output) const { | 6937 ::google::protobuf::io::CodedOutputStream* output) const { |
6632 // required string name_part = 1; | 6938 // required string name_part = 1; |
6633 if (has_name_part()) { | 6939 if (has_name_part()) { |
6634 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 6940 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
6635 this->name_part().data(), this->name_part().length(), | 6941 this->name_part().data(), this->name_part().length(), |
6636 ::google::protobuf::internal::WireFormat::SERIALIZE); | 6942 ::google::protobuf::internal::WireFormat::SERIALIZE); |
6637 ::google::protobuf::internal::WireFormatLite::WriteString( | 6943 ::google::protobuf::internal::WireFormatLite::WriteString( |
6638 1, this->name_part(), output); | 6944 1, this->name_part(), output); |
6639 } | 6945 } |
6640 | 6946 |
6641 // required bool is_extension = 2; | 6947 // required bool is_extension = 2; |
6642 if (has_is_extension()) { | 6948 if (has_is_extension()) { |
6643 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio
n(), output); | 6949 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio
n(), output); |
6644 } | 6950 } |
6645 | 6951 |
6646 if (!unknown_fields().empty()) { | 6952 if (!unknown_fields().empty()) { |
6647 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 6953 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
6648 unknown_fields(), output); | 6954 unknown_fields(), output); |
6649 } | 6955 } |
6650 } | 6956 } |
6651 | 6957 |
6652 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSize
sToArray( | 6958 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSize
sToArray( |
6653 ::google::protobuf::uint8* target) const { | 6959 ::google::protobuf::uint8* target) const { |
6654 // required string name_part = 1; | 6960 // required string name_part = 1; |
6655 if (has_name_part()) { | 6961 if (has_name_part()) { |
6656 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 6962 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
6657 this->name_part().data(), this->name_part().length(), | 6963 this->name_part().data(), this->name_part().length(), |
6658 ::google::protobuf::internal::WireFormat::SERIALIZE); | 6964 ::google::protobuf::internal::WireFormat::SERIALIZE); |
6659 target = | 6965 target = |
6660 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 6966 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6661 1, this->name_part(), target); | 6967 1, this->name_part(), target); |
6662 } | 6968 } |
6663 | 6969 |
6664 // required bool is_extension = 2; | 6970 // required bool is_extension = 2; |
6665 if (has_is_extension()) { | 6971 if (has_is_extension()) { |
6666 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->is_extension(), target); | 6972 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->is_extension(), target); |
6667 } | 6973 } |
6668 | 6974 |
6669 if (!unknown_fields().empty()) { | 6975 if (!unknown_fields().empty()) { |
6670 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 6976 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
6671 unknown_fields(), target); | 6977 unknown_fields(), target); |
6672 } | 6978 } |
6673 return target; | 6979 return target; |
6674 } | 6980 } |
6675 | 6981 |
6676 int UninterpretedOption_NamePart::ByteSize() const { | 6982 int UninterpretedOption_NamePart::ByteSize() const { |
6677 int total_size = 0; | 6983 int total_size = 0; |
6678 | 6984 |
6679 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 6985 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
6680 // required string name_part = 1; | 6986 // required string name_part = 1; |
6681 if (has_name_part()) { | 6987 if (has_name_part()) { |
6682 total_size += 1 + | 6988 total_size += 1 + |
6683 ::google::protobuf::internal::WireFormatLite::StringSize( | 6989 ::google::protobuf::internal::WireFormatLite::StringSize( |
6684 this->name_part()); | 6990 this->name_part()); |
6685 } | 6991 } |
6686 | 6992 |
6687 // required bool is_extension = 2; | 6993 // required bool is_extension = 2; |
6688 if (has_is_extension()) { | 6994 if (has_is_extension()) { |
6689 total_size += 1 + 1; | 6995 total_size += 1 + 1; |
6690 } | 6996 } |
6691 | 6997 |
6692 } | 6998 } |
6693 if (!unknown_fields().empty()) { | 6999 if (!unknown_fields().empty()) { |
6694 total_size += | 7000 total_size += |
6695 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 7001 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
6696 unknown_fields()); | 7002 unknown_fields()); |
6697 } | 7003 } |
6698 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7004 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6699 _cached_size_ = total_size; | 7005 _cached_size_ = total_size; |
6700 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7006 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6701 return total_size; | 7007 return total_size; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6733 } | 7039 } |
6734 | 7040 |
6735 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart&
from) { | 7041 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart&
from) { |
6736 if (&from == this) return; | 7042 if (&from == this) return; |
6737 Clear(); | 7043 Clear(); |
6738 MergeFrom(from); | 7044 MergeFrom(from); |
6739 } | 7045 } |
6740 | 7046 |
6741 bool UninterpretedOption_NamePart::IsInitialized() const { | 7047 bool UninterpretedOption_NamePart::IsInitialized() const { |
6742 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; | 7048 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
6743 | 7049 |
6744 return true; | 7050 return true; |
6745 } | 7051 } |
6746 | 7052 |
6747 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { | 7053 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { |
6748 if (other != this) { | 7054 if (other != this) { |
6749 std::swap(name_part_, other->name_part_); | 7055 std::swap(name_part_, other->name_part_); |
6750 std::swap(is_extension_, other->is_extension_); | 7056 std::swap(is_extension_, other->is_extension_); |
6751 std::swap(_has_bits_[0], other->_has_bits_[0]); | 7057 std::swap(_has_bits_[0], other->_has_bits_[0]); |
6752 _unknown_fields_.Swap(&other->_unknown_fields_); | 7058 _unknown_fields_.Swap(&other->_unknown_fields_); |
6753 std::swap(_cached_size_, other->_cached_size_); | 7059 std::swap(_cached_size_, other->_cached_size_); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6878 parse_name: | 7184 parse_name: |
6879 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 7185 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
6880 input, add_name())); | 7186 input, add_name())); |
6881 } else { | 7187 } else { |
6882 goto handle_uninterpreted; | 7188 goto handle_uninterpreted; |
6883 } | 7189 } |
6884 if (input->ExpectTag(18)) goto parse_name; | 7190 if (input->ExpectTag(18)) goto parse_name; |
6885 if (input->ExpectTag(26)) goto parse_identifier_value; | 7191 if (input->ExpectTag(26)) goto parse_identifier_value; |
6886 break; | 7192 break; |
6887 } | 7193 } |
6888 | 7194 |
6889 // optional string identifier_value = 3; | 7195 // optional string identifier_value = 3; |
6890 case 3: { | 7196 case 3: { |
6891 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7197 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6892 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 7198 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
6893 parse_identifier_value: | 7199 parse_identifier_value: |
6894 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7200 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6895 input, this->mutable_identifier_value())); | 7201 input, this->mutable_identifier_value())); |
6896 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 7202 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
6897 this->identifier_value().data(), this->identifier_value().length(), | 7203 this->identifier_value().data(), this->identifier_value().length(), |
6898 ::google::protobuf::internal::WireFormat::PARSE); | 7204 ::google::protobuf::internal::WireFormat::PARSE); |
6899 } else { | 7205 } else { |
6900 goto handle_uninterpreted; | 7206 goto handle_uninterpreted; |
6901 } | 7207 } |
6902 if (input->ExpectTag(32)) goto parse_positive_int_value; | 7208 if (input->ExpectTag(32)) goto parse_positive_int_value; |
6903 break; | 7209 break; |
6904 } | 7210 } |
6905 | 7211 |
6906 // optional uint64 positive_int_value = 4; | 7212 // optional uint64 positive_int_value = 4; |
6907 case 4: { | 7213 case 4: { |
6908 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7214 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6909 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 7215 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
6910 parse_positive_int_value: | 7216 parse_positive_int_value: |
6911 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7217 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6912 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( | 7218 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( |
6913 input, &positive_int_value_))); | 7219 input, &positive_int_value_))); |
6914 set_has_positive_int_value(); | 7220 set_has_positive_int_value(); |
6915 } else { | 7221 } else { |
6916 goto handle_uninterpreted; | 7222 goto handle_uninterpreted; |
6917 } | 7223 } |
6918 if (input->ExpectTag(40)) goto parse_negative_int_value; | 7224 if (input->ExpectTag(40)) goto parse_negative_int_value; |
6919 break; | 7225 break; |
6920 } | 7226 } |
6921 | 7227 |
6922 // optional int64 negative_int_value = 5; | 7228 // optional int64 negative_int_value = 5; |
6923 case 5: { | 7229 case 5: { |
6924 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7230 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6925 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | 7231 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
6926 parse_negative_int_value: | 7232 parse_negative_int_value: |
6927 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7233 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6928 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( | 7234 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( |
6929 input, &negative_int_value_))); | 7235 input, &negative_int_value_))); |
6930 set_has_negative_int_value(); | 7236 set_has_negative_int_value(); |
6931 } else { | 7237 } else { |
6932 goto handle_uninterpreted; | 7238 goto handle_uninterpreted; |
6933 } | 7239 } |
6934 if (input->ExpectTag(49)) goto parse_double_value; | 7240 if (input->ExpectTag(49)) goto parse_double_value; |
6935 break; | 7241 break; |
6936 } | 7242 } |
6937 | 7243 |
6938 // optional double double_value = 6; | 7244 // optional double double_value = 6; |
6939 case 6: { | 7245 case 6: { |
6940 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7246 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6941 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { | 7247 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { |
6942 parse_double_value: | 7248 parse_double_value: |
6943 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7249 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6944 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( | 7250 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( |
6945 input, &double_value_))); | 7251 input, &double_value_))); |
6946 set_has_double_value(); | 7252 set_has_double_value(); |
6947 } else { | 7253 } else { |
6948 goto handle_uninterpreted; | 7254 goto handle_uninterpreted; |
6949 } | 7255 } |
6950 if (input->ExpectTag(58)) goto parse_string_value; | 7256 if (input->ExpectTag(58)) goto parse_string_value; |
6951 break; | 7257 break; |
6952 } | 7258 } |
6953 | 7259 |
6954 // optional bytes string_value = 7; | 7260 // optional bytes string_value = 7; |
6955 case 7: { | 7261 case 7: { |
6956 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7262 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6957 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 7263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
6958 parse_string_value: | 7264 parse_string_value: |
6959 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( | 7265 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
6960 input, this->mutable_string_value())); | 7266 input, this->mutable_string_value())); |
6961 } else { | 7267 } else { |
6962 goto handle_uninterpreted; | 7268 goto handle_uninterpreted; |
6963 } | 7269 } |
6964 if (input->ExpectTag(66)) goto parse_aggregate_value; | 7270 if (input->ExpectTag(66)) goto parse_aggregate_value; |
6965 break; | 7271 break; |
6966 } | 7272 } |
6967 | 7273 |
6968 // optional string aggregate_value = 8; | 7274 // optional string aggregate_value = 8; |
6969 case 8: { | 7275 case 8: { |
6970 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7276 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6971 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 7277 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
6972 parse_aggregate_value: | 7278 parse_aggregate_value: |
6973 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7279 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6974 input, this->mutable_aggregate_value())); | 7280 input, this->mutable_aggregate_value())); |
6975 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 7281 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
6976 this->aggregate_value().data(), this->aggregate_value().length(), | 7282 this->aggregate_value().data(), this->aggregate_value().length(), |
6977 ::google::protobuf::internal::WireFormat::PARSE); | 7283 ::google::protobuf::internal::WireFormat::PARSE); |
6978 } else { | 7284 } else { |
6979 goto handle_uninterpreted; | 7285 goto handle_uninterpreted; |
6980 } | 7286 } |
6981 if (input->ExpectAtEnd()) return true; | 7287 if (input->ExpectAtEnd()) return true; |
6982 break; | 7288 break; |
6983 } | 7289 } |
6984 | 7290 |
6985 default: { | 7291 default: { |
6986 handle_uninterpreted: | 7292 handle_uninterpreted: |
6987 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7293 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6988 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 7294 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
6989 return true; | 7295 return true; |
6990 } | 7296 } |
6991 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 7297 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 7298 input, tag, mutable_unknown_fields())); |
6992 break; | 7299 break; |
6993 } | 7300 } |
6994 } | 7301 } |
6995 } | 7302 } |
6996 return true; | 7303 return true; |
6997 #undef DO_ | 7304 #undef DO_ |
6998 } | 7305 } |
6999 | 7306 |
7000 void UninterpretedOption::SerializeWithCachedSizes( | 7307 void UninterpretedOption::SerializeWithCachedSizes( |
7001 ::google::protobuf::io::CodedOutputStream* output) const { | 7308 ::google::protobuf::io::CodedOutputStream* output) const { |
7002 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 7309 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
7003 for (int i = 0; i < this->name_size(); i++) { | 7310 for (int i = 0; i < this->name_size(); i++) { |
7004 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 7311 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7005 2, this->name(i), output); | 7312 2, this->name(i), output); |
7006 } | 7313 } |
7007 | 7314 |
7008 // optional string identifier_value = 3; | 7315 // optional string identifier_value = 3; |
7009 if (has_identifier_value()) { | 7316 if (has_identifier_value()) { |
7010 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 7317 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
7011 this->identifier_value().data(), this->identifier_value().length(), | 7318 this->identifier_value().data(), this->identifier_value().length(), |
7012 ::google::protobuf::internal::WireFormat::SERIALIZE); | 7319 ::google::protobuf::internal::WireFormat::SERIALIZE); |
7013 ::google::protobuf::internal::WireFormatLite::WriteString( | 7320 ::google::protobuf::internal::WireFormatLite::WriteString( |
7014 3, this->identifier_value(), output); | 7321 3, this->identifier_value(), output); |
7015 } | 7322 } |
7016 | 7323 |
7017 // optional uint64 positive_int_value = 4; | 7324 // optional uint64 positive_int_value = 4; |
7018 if (has_positive_int_value()) { | 7325 if (has_positive_int_value()) { |
7019 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_
int_value(), output); | 7326 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_
int_value(), output); |
7020 } | 7327 } |
7021 | 7328 |
7022 // optional int64 negative_int_value = 5; | 7329 // optional int64 negative_int_value = 5; |
7023 if (has_negative_int_value()) { | 7330 if (has_negative_int_value()) { |
7024 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_i
nt_value(), output); | 7331 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_i
nt_value(), output); |
7025 } | 7332 } |
7026 | 7333 |
7027 // optional double double_value = 6; | 7334 // optional double double_value = 6; |
7028 if (has_double_value()) { | 7335 if (has_double_value()) { |
7029 ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_va
lue(), output); | 7336 ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_va
lue(), output); |
7030 } | 7337 } |
7031 | 7338 |
7032 // optional bytes string_value = 7; | 7339 // optional bytes string_value = 7; |
7033 if (has_string_value()) { | 7340 if (has_string_value()) { |
7034 ::google::protobuf::internal::WireFormatLite::WriteBytes( | 7341 ::google::protobuf::internal::WireFormatLite::WriteBytes( |
7035 7, this->string_value(), output); | 7342 7, this->string_value(), output); |
7036 } | 7343 } |
7037 | 7344 |
7038 // optional string aggregate_value = 8; | 7345 // optional string aggregate_value = 8; |
7039 if (has_aggregate_value()) { | 7346 if (has_aggregate_value()) { |
7040 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 7347 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
7041 this->aggregate_value().data(), this->aggregate_value().length(), | 7348 this->aggregate_value().data(), this->aggregate_value().length(), |
7042 ::google::protobuf::internal::WireFormat::SERIALIZE); | 7349 ::google::protobuf::internal::WireFormat::SERIALIZE); |
7043 ::google::protobuf::internal::WireFormatLite::WriteString( | 7350 ::google::protobuf::internal::WireFormatLite::WriteString( |
7044 8, this->aggregate_value(), output); | 7351 8, this->aggregate_value(), output); |
7045 } | 7352 } |
7046 | 7353 |
7047 if (!unknown_fields().empty()) { | 7354 if (!unknown_fields().empty()) { |
7048 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 7355 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
7049 unknown_fields(), output); | 7356 unknown_fields(), output); |
7050 } | 7357 } |
7051 } | 7358 } |
7052 | 7359 |
7053 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( | 7360 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( |
7054 ::google::protobuf::uint8* target) const { | 7361 ::google::protobuf::uint8* target) const { |
7055 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 7362 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
7056 for (int i = 0; i < this->name_size(); i++) { | 7363 for (int i = 0; i < this->name_size(); i++) { |
7057 target = ::google::protobuf::internal::WireFormatLite:: | 7364 target = ::google::protobuf::internal::WireFormatLite:: |
7058 WriteMessageNoVirtualToArray( | 7365 WriteMessageNoVirtualToArray( |
7059 2, this->name(i), target); | 7366 2, this->name(i), target); |
7060 } | 7367 } |
7061 | 7368 |
7062 // optional string identifier_value = 3; | 7369 // optional string identifier_value = 3; |
7063 if (has_identifier_value()) { | 7370 if (has_identifier_value()) { |
7064 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 7371 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
7065 this->identifier_value().data(), this->identifier_value().length(), | 7372 this->identifier_value().data(), this->identifier_value().length(), |
7066 ::google::protobuf::internal::WireFormat::SERIALIZE); | 7373 ::google::protobuf::internal::WireFormat::SERIALIZE); |
7067 target = | 7374 target = |
7068 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 7375 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7069 3, this->identifier_value(), target); | 7376 3, this->identifier_value(), target); |
7070 } | 7377 } |
7071 | 7378 |
7072 // optional uint64 positive_int_value = 4; | 7379 // optional uint64 positive_int_value = 4; |
7073 if (has_positive_int_value()) { | 7380 if (has_positive_int_value()) { |
7074 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4,
this->positive_int_value(), target); | 7381 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4,
this->positive_int_value(), target); |
7075 } | 7382 } |
7076 | 7383 |
7077 // optional int64 negative_int_value = 5; | 7384 // optional int64 negative_int_value = 5; |
7078 if (has_negative_int_value()) { | 7385 if (has_negative_int_value()) { |
7079 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5,
this->negative_int_value(), target); | 7386 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5,
this->negative_int_value(), target); |
7080 } | 7387 } |
7081 | 7388 |
7082 // optional double double_value = 6; | 7389 // optional double double_value = 6; |
7083 if (has_double_value()) { | 7390 if (has_double_value()) { |
7084 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6,
this->double_value(), target); | 7391 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6,
this->double_value(), target); |
7085 } | 7392 } |
7086 | 7393 |
7087 // optional bytes string_value = 7; | 7394 // optional bytes string_value = 7; |
7088 if (has_string_value()) { | 7395 if (has_string_value()) { |
7089 target = | 7396 target = |
7090 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( | 7397 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
7091 7, this->string_value(), target); | 7398 7, this->string_value(), target); |
7092 } | 7399 } |
7093 | 7400 |
7094 // optional string aggregate_value = 8; | 7401 // optional string aggregate_value = 8; |
7095 if (has_aggregate_value()) { | 7402 if (has_aggregate_value()) { |
7096 ::google::protobuf::internal::WireFormat::VerifyUTF8String( | 7403 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
7097 this->aggregate_value().data(), this->aggregate_value().length(), | 7404 this->aggregate_value().data(), this->aggregate_value().length(), |
7098 ::google::protobuf::internal::WireFormat::SERIALIZE); | 7405 ::google::protobuf::internal::WireFormat::SERIALIZE); |
7099 target = | 7406 target = |
7100 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 7407 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7101 8, this->aggregate_value(), target); | 7408 8, this->aggregate_value(), target); |
7102 } | 7409 } |
7103 | 7410 |
7104 if (!unknown_fields().empty()) { | 7411 if (!unknown_fields().empty()) { |
7105 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 7412 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
7106 unknown_fields(), target); | 7413 unknown_fields(), target); |
7107 } | 7414 } |
7108 return target; | 7415 return target; |
7109 } | 7416 } |
7110 | 7417 |
7111 int UninterpretedOption::ByteSize() const { | 7418 int UninterpretedOption::ByteSize() const { |
7112 int total_size = 0; | 7419 int total_size = 0; |
7113 | 7420 |
7114 if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { | 7421 if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
7115 // optional string identifier_value = 3; | 7422 // optional string identifier_value = 3; |
7116 if (has_identifier_value()) { | 7423 if (has_identifier_value()) { |
7117 total_size += 1 + | 7424 total_size += 1 + |
7118 ::google::protobuf::internal::WireFormatLite::StringSize( | 7425 ::google::protobuf::internal::WireFormatLite::StringSize( |
7119 this->identifier_value()); | 7426 this->identifier_value()); |
7120 } | 7427 } |
7121 | 7428 |
7122 // optional uint64 positive_int_value = 4; | 7429 // optional uint64 positive_int_value = 4; |
7123 if (has_positive_int_value()) { | 7430 if (has_positive_int_value()) { |
7124 total_size += 1 + | 7431 total_size += 1 + |
7125 ::google::protobuf::internal::WireFormatLite::UInt64Size( | 7432 ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7126 this->positive_int_value()); | 7433 this->positive_int_value()); |
7127 } | 7434 } |
7128 | 7435 |
7129 // optional int64 negative_int_value = 5; | 7436 // optional int64 negative_int_value = 5; |
7130 if (has_negative_int_value()) { | 7437 if (has_negative_int_value()) { |
7131 total_size += 1 + | 7438 total_size += 1 + |
7132 ::google::protobuf::internal::WireFormatLite::Int64Size( | 7439 ::google::protobuf::internal::WireFormatLite::Int64Size( |
7133 this->negative_int_value()); | 7440 this->negative_int_value()); |
7134 } | 7441 } |
7135 | 7442 |
7136 // optional double double_value = 6; | 7443 // optional double double_value = 6; |
7137 if (has_double_value()) { | 7444 if (has_double_value()) { |
7138 total_size += 1 + 8; | 7445 total_size += 1 + 8; |
7139 } | 7446 } |
7140 | 7447 |
7141 // optional bytes string_value = 7; | 7448 // optional bytes string_value = 7; |
7142 if (has_string_value()) { | 7449 if (has_string_value()) { |
7143 total_size += 1 + | 7450 total_size += 1 + |
7144 ::google::protobuf::internal::WireFormatLite::BytesSize( | 7451 ::google::protobuf::internal::WireFormatLite::BytesSize( |
7145 this->string_value()); | 7452 this->string_value()); |
7146 } | 7453 } |
7147 | 7454 |
7148 // optional string aggregate_value = 8; | 7455 // optional string aggregate_value = 8; |
7149 if (has_aggregate_value()) { | 7456 if (has_aggregate_value()) { |
7150 total_size += 1 + | 7457 total_size += 1 + |
7151 ::google::protobuf::internal::WireFormatLite::StringSize( | 7458 ::google::protobuf::internal::WireFormatLite::StringSize( |
7152 this->aggregate_value()); | 7459 this->aggregate_value()); |
7153 } | 7460 } |
7154 | 7461 |
7155 } | 7462 } |
7156 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 7463 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
7157 total_size += 1 * this->name_size(); | 7464 total_size += 1 * this->name_size(); |
7158 for (int i = 0; i < this->name_size(); i++) { | 7465 for (int i = 0; i < this->name_size(); i++) { |
7159 total_size += | 7466 total_size += |
7160 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 7467 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
7161 this->name(i)); | 7468 this->name(i)); |
7162 } | 7469 } |
7163 | 7470 |
7164 if (!unknown_fields().empty()) { | 7471 if (!unknown_fields().empty()) { |
7165 total_size += | 7472 total_size += |
7166 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 7473 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
7167 unknown_fields()); | 7474 unknown_fields()); |
7168 } | 7475 } |
7169 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7476 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7170 _cached_size_ = total_size; | 7477 _cached_size_ = total_size; |
7171 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7478 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7172 return total_size; | 7479 return total_size; |
7173 } | 7480 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7216 MergeFrom(from); | 7523 MergeFrom(from); |
7217 } | 7524 } |
7218 | 7525 |
7219 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { | 7526 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { |
7220 if (&from == this) return; | 7527 if (&from == this) return; |
7221 Clear(); | 7528 Clear(); |
7222 MergeFrom(from); | 7529 MergeFrom(from); |
7223 } | 7530 } |
7224 | 7531 |
7225 bool UninterpretedOption::IsInitialized() const { | 7532 bool UninterpretedOption::IsInitialized() const { |
7226 | 7533 |
7227 for (int i = 0; i < name_size(); i++) { | 7534 for (int i = 0; i < name_size(); i++) { |
7228 if (!this->name(i).IsInitialized()) return false; | 7535 if (!this->name(i).IsInitialized()) return false; |
7229 } | 7536 } |
7230 return true; | 7537 return true; |
7231 } | 7538 } |
7232 | 7539 |
7233 void UninterpretedOption::Swap(UninterpretedOption* other) { | 7540 void UninterpretedOption::Swap(UninterpretedOption* other) { |
7234 if (other != this) { | 7541 if (other != this) { |
7235 name_.Swap(&other->name_); | 7542 name_.Swap(&other->name_); |
7236 std::swap(identifier_value_, other->identifier_value_); | 7543 std::swap(identifier_value_, other->identifier_value_); |
(...skipping 15 matching lines...) Expand all Loading... |
7252 metadata.reflection = UninterpretedOption_reflection_; | 7559 metadata.reflection = UninterpretedOption_reflection_; |
7253 return metadata; | 7560 return metadata; |
7254 } | 7561 } |
7255 | 7562 |
7256 | 7563 |
7257 // =================================================================== | 7564 // =================================================================== |
7258 | 7565 |
7259 #ifndef _MSC_VER | 7566 #ifndef _MSC_VER |
7260 const int SourceCodeInfo_Location::kPathFieldNumber; | 7567 const int SourceCodeInfo_Location::kPathFieldNumber; |
7261 const int SourceCodeInfo_Location::kSpanFieldNumber; | 7568 const int SourceCodeInfo_Location::kSpanFieldNumber; |
| 7569 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; |
| 7570 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; |
7262 #endif // !_MSC_VER | 7571 #endif // !_MSC_VER |
7263 | 7572 |
7264 SourceCodeInfo_Location::SourceCodeInfo_Location() | 7573 SourceCodeInfo_Location::SourceCodeInfo_Location() |
7265 : ::google::protobuf::Message() { | 7574 : ::google::protobuf::Message() { |
7266 SharedCtor(); | 7575 SharedCtor(); |
7267 } | 7576 } |
7268 | 7577 |
7269 void SourceCodeInfo_Location::InitAsDefaultInstance() { | 7578 void SourceCodeInfo_Location::InitAsDefaultInstance() { |
7270 } | 7579 } |
7271 | 7580 |
7272 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location&
from) | 7581 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location&
from) |
7273 : ::google::protobuf::Message() { | 7582 : ::google::protobuf::Message() { |
7274 SharedCtor(); | 7583 SharedCtor(); |
7275 MergeFrom(from); | 7584 MergeFrom(from); |
7276 } | 7585 } |
7277 | 7586 |
7278 void SourceCodeInfo_Location::SharedCtor() { | 7587 void SourceCodeInfo_Location::SharedCtor() { |
7279 _cached_size_ = 0; | 7588 _cached_size_ = 0; |
| 7589 leading_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal:
:kEmptyString); |
| 7590 trailing_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal
::kEmptyString); |
7280 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 7591 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
7281 } | 7592 } |
7282 | 7593 |
7283 SourceCodeInfo_Location::~SourceCodeInfo_Location() { | 7594 SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
7284 SharedDtor(); | 7595 SharedDtor(); |
7285 } | 7596 } |
7286 | 7597 |
7287 void SourceCodeInfo_Location::SharedDtor() { | 7598 void SourceCodeInfo_Location::SharedDtor() { |
| 7599 if (leading_comments_ != &::google::protobuf::internal::kEmptyString) { |
| 7600 delete leading_comments_; |
| 7601 } |
| 7602 if (trailing_comments_ != &::google::protobuf::internal::kEmptyString) { |
| 7603 delete trailing_comments_; |
| 7604 } |
7288 if (this != default_instance_) { | 7605 if (this != default_instance_) { |
7289 } | 7606 } |
7290 } | 7607 } |
7291 | 7608 |
7292 void SourceCodeInfo_Location::SetCachedSize(int size) const { | 7609 void SourceCodeInfo_Location::SetCachedSize(int size) const { |
7293 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7610 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7294 _cached_size_ = size; | 7611 _cached_size_ = size; |
7295 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7612 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7296 } | 7613 } |
7297 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { | 7614 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { |
7298 protobuf_AssignDescriptorsOnce(); | 7615 protobuf_AssignDescriptorsOnce(); |
7299 return SourceCodeInfo_Location_descriptor_; | 7616 return SourceCodeInfo_Location_descriptor_; |
7300 } | 7617 } |
7301 | 7618 |
7302 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { | 7619 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { |
7303 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); | 7620 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
7304 return *default_instance_; | 7621 return *default_instance_; |
7305 } | 7622 } |
7306 | 7623 |
7307 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; | 7624 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; |
7308 | 7625 |
7309 SourceCodeInfo_Location* SourceCodeInfo_Location::New() const { | 7626 SourceCodeInfo_Location* SourceCodeInfo_Location::New() const { |
7310 return new SourceCodeInfo_Location; | 7627 return new SourceCodeInfo_Location; |
7311 } | 7628 } |
7312 | 7629 |
7313 void SourceCodeInfo_Location::Clear() { | 7630 void SourceCodeInfo_Location::Clear() { |
| 7631 if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
| 7632 if (has_leading_comments()) { |
| 7633 if (leading_comments_ != &::google::protobuf::internal::kEmptyString) { |
| 7634 leading_comments_->clear(); |
| 7635 } |
| 7636 } |
| 7637 if (has_trailing_comments()) { |
| 7638 if (trailing_comments_ != &::google::protobuf::internal::kEmptyString) { |
| 7639 trailing_comments_->clear(); |
| 7640 } |
| 7641 } |
| 7642 } |
7314 path_.Clear(); | 7643 path_.Clear(); |
7315 span_.Clear(); | 7644 span_.Clear(); |
7316 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 7645 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
7317 mutable_unknown_fields()->Clear(); | 7646 mutable_unknown_fields()->Clear(); |
7318 } | 7647 } |
7319 | 7648 |
7320 bool SourceCodeInfo_Location::MergePartialFromCodedStream( | 7649 bool SourceCodeInfo_Location::MergePartialFromCodedStream( |
7321 ::google::protobuf::io::CodedInputStream* input) { | 7650 ::google::protobuf::io::CodedInputStream* input) { |
7322 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | 7651 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
7323 ::google::protobuf::uint32 tag; | 7652 ::google::protobuf::uint32 tag; |
(...skipping 11 matching lines...) Expand all Loading... |
7335 WIRETYPE_VARINT) { | 7664 WIRETYPE_VARINT) { |
7336 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 7665 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
7337 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 7666 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
7338 1, 10, input, this->mutable_path()))); | 7667 1, 10, input, this->mutable_path()))); |
7339 } else { | 7668 } else { |
7340 goto handle_uninterpreted; | 7669 goto handle_uninterpreted; |
7341 } | 7670 } |
7342 if (input->ExpectTag(18)) goto parse_span; | 7671 if (input->ExpectTag(18)) goto parse_span; |
7343 break; | 7672 break; |
7344 } | 7673 } |
7345 | 7674 |
7346 // repeated int32 span = 2 [packed = true]; | 7675 // repeated int32 span = 2 [packed = true]; |
7347 case 2: { | 7676 case 2: { |
7348 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
7349 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { | 7678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
7350 parse_span: | 7679 parse_span: |
7351 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 7680 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
7352 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 7681 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
7353 input, this->mutable_span()))); | 7682 input, this->mutable_span()))); |
7354 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(
tag) | 7683 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(
tag) |
7355 == ::google::protobuf::internal::WireFormatLite:: | 7684 == ::google::protobuf::internal::WireFormatLite:: |
7356 WIRETYPE_VARINT) { | 7685 WIRETYPE_VARINT) { |
7357 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 7686 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
7358 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 7687 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
7359 1, 18, input, this->mutable_span()))); | 7688 1, 18, input, this->mutable_span()))); |
7360 } else { | 7689 } else { |
7361 goto handle_uninterpreted; | 7690 goto handle_uninterpreted; |
7362 } | 7691 } |
| 7692 if (input->ExpectTag(26)) goto parse_leading_comments; |
| 7693 break; |
| 7694 } |
| 7695 |
| 7696 // optional string leading_comments = 3; |
| 7697 case 3: { |
| 7698 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 7699 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
| 7700 parse_leading_comments: |
| 7701 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7702 input, this->mutable_leading_comments())); |
| 7703 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 7704 this->leading_comments().data(), this->leading_comments().length(), |
| 7705 ::google::protobuf::internal::WireFormat::PARSE); |
| 7706 } else { |
| 7707 goto handle_uninterpreted; |
| 7708 } |
| 7709 if (input->ExpectTag(34)) goto parse_trailing_comments; |
| 7710 break; |
| 7711 } |
| 7712 |
| 7713 // optional string trailing_comments = 4; |
| 7714 case 4: { |
| 7715 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 7716 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI
TED) { |
| 7717 parse_trailing_comments: |
| 7718 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7719 input, this->mutable_trailing_comments())); |
| 7720 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 7721 this->trailing_comments().data(), this->trailing_comments().length()
, |
| 7722 ::google::protobuf::internal::WireFormat::PARSE); |
| 7723 } else { |
| 7724 goto handle_uninterpreted; |
| 7725 } |
7363 if (input->ExpectAtEnd()) return true; | 7726 if (input->ExpectAtEnd()) return true; |
7364 break; | 7727 break; |
7365 } | 7728 } |
7366 | 7729 |
7367 default: { | 7730 default: { |
7368 handle_uninterpreted: | 7731 handle_uninterpreted: |
7369 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7732 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
7370 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 7733 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
7371 return true; | 7734 return true; |
7372 } | 7735 } |
7373 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 7736 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 7737 input, tag, mutable_unknown_fields())); |
7374 break; | 7738 break; |
7375 } | 7739 } |
7376 } | 7740 } |
7377 } | 7741 } |
7378 return true; | 7742 return true; |
7379 #undef DO_ | 7743 #undef DO_ |
7380 } | 7744 } |
7381 | 7745 |
7382 void SourceCodeInfo_Location::SerializeWithCachedSizes( | 7746 void SourceCodeInfo_Location::SerializeWithCachedSizes( |
7383 ::google::protobuf::io::CodedOutputStream* output) const { | 7747 ::google::protobuf::io::CodedOutputStream* output) const { |
7384 // repeated int32 path = 1 [packed = true]; | 7748 // repeated int32 path = 1 [packed = true]; |
7385 if (this->path_size() > 0) { | 7749 if (this->path_size() > 0) { |
7386 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf
::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); | 7750 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf
::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
7387 output->WriteVarint32(_path_cached_byte_size_); | 7751 output->WriteVarint32(_path_cached_byte_size_); |
7388 } | 7752 } |
7389 for (int i = 0; i < this->path_size(); i++) { | 7753 for (int i = 0; i < this->path_size(); i++) { |
7390 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( | 7754 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
7391 this->path(i), output); | 7755 this->path(i), output); |
7392 } | 7756 } |
7393 | 7757 |
7394 // repeated int32 span = 2 [packed = true]; | 7758 // repeated int32 span = 2 [packed = true]; |
7395 if (this->span_size() > 0) { | 7759 if (this->span_size() > 0) { |
7396 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf
::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); | 7760 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf
::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
7397 output->WriteVarint32(_span_cached_byte_size_); | 7761 output->WriteVarint32(_span_cached_byte_size_); |
7398 } | 7762 } |
7399 for (int i = 0; i < this->span_size(); i++) { | 7763 for (int i = 0; i < this->span_size(); i++) { |
7400 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( | 7764 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
7401 this->span(i), output); | 7765 this->span(i), output); |
7402 } | 7766 } |
7403 | 7767 |
| 7768 // optional string leading_comments = 3; |
| 7769 if (has_leading_comments()) { |
| 7770 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 7771 this->leading_comments().data(), this->leading_comments().length(), |
| 7772 ::google::protobuf::internal::WireFormat::SERIALIZE); |
| 7773 ::google::protobuf::internal::WireFormatLite::WriteString( |
| 7774 3, this->leading_comments(), output); |
| 7775 } |
| 7776 |
| 7777 // optional string trailing_comments = 4; |
| 7778 if (has_trailing_comments()) { |
| 7779 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 7780 this->trailing_comments().data(), this->trailing_comments().length(), |
| 7781 ::google::protobuf::internal::WireFormat::SERIALIZE); |
| 7782 ::google::protobuf::internal::WireFormatLite::WriteString( |
| 7783 4, this->trailing_comments(), output); |
| 7784 } |
| 7785 |
7404 if (!unknown_fields().empty()) { | 7786 if (!unknown_fields().empty()) { |
7405 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 7787 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
7406 unknown_fields(), output); | 7788 unknown_fields(), output); |
7407 } | 7789 } |
7408 } | 7790 } |
7409 | 7791 |
7410 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToAr
ray( | 7792 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToAr
ray( |
7411 ::google::protobuf::uint8* target) const { | 7793 ::google::protobuf::uint8* target) const { |
7412 // repeated int32 path = 1 [packed = true]; | 7794 // repeated int32 path = 1 [packed = true]; |
7413 if (this->path_size() > 0) { | 7795 if (this->path_size() > 0) { |
7414 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | 7796 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
7415 1, | 7797 1, |
7416 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | 7798 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
7417 target); | 7799 target); |
7418 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | 7800 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
7419 _path_cached_byte_size_, target); | 7801 _path_cached_byte_size_, target); |
7420 } | 7802 } |
7421 for (int i = 0; i < this->path_size(); i++) { | 7803 for (int i = 0; i < this->path_size(); i++) { |
7422 target = ::google::protobuf::internal::WireFormatLite:: | 7804 target = ::google::protobuf::internal::WireFormatLite:: |
7423 WriteInt32NoTagToArray(this->path(i), target); | 7805 WriteInt32NoTagToArray(this->path(i), target); |
7424 } | 7806 } |
7425 | 7807 |
7426 // repeated int32 span = 2 [packed = true]; | 7808 // repeated int32 span = 2 [packed = true]; |
7427 if (this->span_size() > 0) { | 7809 if (this->span_size() > 0) { |
7428 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | 7810 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
7429 2, | 7811 2, |
7430 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | 7812 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
7431 target); | 7813 target); |
7432 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | 7814 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
7433 _span_cached_byte_size_, target); | 7815 _span_cached_byte_size_, target); |
7434 } | 7816 } |
7435 for (int i = 0; i < this->span_size(); i++) { | 7817 for (int i = 0; i < this->span_size(); i++) { |
7436 target = ::google::protobuf::internal::WireFormatLite:: | 7818 target = ::google::protobuf::internal::WireFormatLite:: |
7437 WriteInt32NoTagToArray(this->span(i), target); | 7819 WriteInt32NoTagToArray(this->span(i), target); |
7438 } | 7820 } |
7439 | 7821 |
| 7822 // optional string leading_comments = 3; |
| 7823 if (has_leading_comments()) { |
| 7824 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 7825 this->leading_comments().data(), this->leading_comments().length(), |
| 7826 ::google::protobuf::internal::WireFormat::SERIALIZE); |
| 7827 target = |
| 7828 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7829 3, this->leading_comments(), target); |
| 7830 } |
| 7831 |
| 7832 // optional string trailing_comments = 4; |
| 7833 if (has_trailing_comments()) { |
| 7834 ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
| 7835 this->trailing_comments().data(), this->trailing_comments().length(), |
| 7836 ::google::protobuf::internal::WireFormat::SERIALIZE); |
| 7837 target = |
| 7838 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7839 4, this->trailing_comments(), target); |
| 7840 } |
| 7841 |
7440 if (!unknown_fields().empty()) { | 7842 if (!unknown_fields().empty()) { |
7441 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 7843 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
7442 unknown_fields(), target); | 7844 unknown_fields(), target); |
7443 } | 7845 } |
7444 return target; | 7846 return target; |
7445 } | 7847 } |
7446 | 7848 |
7447 int SourceCodeInfo_Location::ByteSize() const { | 7849 int SourceCodeInfo_Location::ByteSize() const { |
7448 int total_size = 0; | 7850 int total_size = 0; |
7449 | 7851 |
| 7852 if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
| 7853 // optional string leading_comments = 3; |
| 7854 if (has_leading_comments()) { |
| 7855 total_size += 1 + |
| 7856 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7857 this->leading_comments()); |
| 7858 } |
| 7859 |
| 7860 // optional string trailing_comments = 4; |
| 7861 if (has_trailing_comments()) { |
| 7862 total_size += 1 + |
| 7863 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7864 this->trailing_comments()); |
| 7865 } |
| 7866 |
| 7867 } |
7450 // repeated int32 path = 1 [packed = true]; | 7868 // repeated int32 path = 1 [packed = true]; |
7451 { | 7869 { |
7452 int data_size = 0; | 7870 int data_size = 0; |
7453 for (int i = 0; i < this->path_size(); i++) { | 7871 for (int i = 0; i < this->path_size(); i++) { |
7454 data_size += ::google::protobuf::internal::WireFormatLite:: | 7872 data_size += ::google::protobuf::internal::WireFormatLite:: |
7455 Int32Size(this->path(i)); | 7873 Int32Size(this->path(i)); |
7456 } | 7874 } |
7457 if (data_size > 0) { | 7875 if (data_size > 0) { |
7458 total_size += 1 + | 7876 total_size += 1 + |
7459 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | 7877 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
7460 } | 7878 } |
| 7879 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7461 _path_cached_byte_size_ = data_size; | 7880 _path_cached_byte_size_ = data_size; |
| 7881 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7462 total_size += data_size; | 7882 total_size += data_size; |
7463 } | 7883 } |
7464 | 7884 |
7465 // repeated int32 span = 2 [packed = true]; | 7885 // repeated int32 span = 2 [packed = true]; |
7466 { | 7886 { |
7467 int data_size = 0; | 7887 int data_size = 0; |
7468 for (int i = 0; i < this->span_size(); i++) { | 7888 for (int i = 0; i < this->span_size(); i++) { |
7469 data_size += ::google::protobuf::internal::WireFormatLite:: | 7889 data_size += ::google::protobuf::internal::WireFormatLite:: |
7470 Int32Size(this->span(i)); | 7890 Int32Size(this->span(i)); |
7471 } | 7891 } |
7472 if (data_size > 0) { | 7892 if (data_size > 0) { |
7473 total_size += 1 + | 7893 total_size += 1 + |
7474 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | 7894 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
7475 } | 7895 } |
| 7896 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7476 _span_cached_byte_size_ = data_size; | 7897 _span_cached_byte_size_ = data_size; |
| 7898 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7477 total_size += data_size; | 7899 total_size += data_size; |
7478 } | 7900 } |
7479 | 7901 |
7480 if (!unknown_fields().empty()) { | 7902 if (!unknown_fields().empty()) { |
7481 total_size += | 7903 total_size += |
7482 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 7904 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
7483 unknown_fields()); | 7905 unknown_fields()); |
7484 } | 7906 } |
7485 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7907 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7486 _cached_size_ = total_size; | 7908 _cached_size_ = total_size; |
7487 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7909 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7488 return total_size; | 7910 return total_size; |
7489 } | 7911 } |
7490 | 7912 |
7491 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from)
{ | 7913 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from)
{ |
7492 GOOGLE_CHECK_NE(&from, this); | 7914 GOOGLE_CHECK_NE(&from, this); |
7493 const SourceCodeInfo_Location* source = | 7915 const SourceCodeInfo_Location* source = |
7494 ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo
_Location*>( | 7916 ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo
_Location*>( |
7495 &from); | 7917 &from); |
7496 if (source == NULL) { | 7918 if (source == NULL) { |
7497 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 7919 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7498 } else { | 7920 } else { |
7499 MergeFrom(*source); | 7921 MergeFrom(*source); |
7500 } | 7922 } |
7501 } | 7923 } |
7502 | 7924 |
7503 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { | 7925 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
7504 GOOGLE_CHECK_NE(&from, this); | 7926 GOOGLE_CHECK_NE(&from, this); |
7505 path_.MergeFrom(from.path_); | 7927 path_.MergeFrom(from.path_); |
7506 span_.MergeFrom(from.span_); | 7928 span_.MergeFrom(from.span_); |
| 7929 if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
| 7930 if (from.has_leading_comments()) { |
| 7931 set_leading_comments(from.leading_comments()); |
| 7932 } |
| 7933 if (from.has_trailing_comments()) { |
| 7934 set_trailing_comments(from.trailing_comments()); |
| 7935 } |
| 7936 } |
7507 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | 7937 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
7508 } | 7938 } |
7509 | 7939 |
7510 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from)
{ | 7940 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from)
{ |
7511 if (&from == this) return; | 7941 if (&from == this) return; |
7512 Clear(); | 7942 Clear(); |
7513 MergeFrom(from); | 7943 MergeFrom(from); |
7514 } | 7944 } |
7515 | 7945 |
7516 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { | 7946 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { |
7517 if (&from == this) return; | 7947 if (&from == this) return; |
7518 Clear(); | 7948 Clear(); |
7519 MergeFrom(from); | 7949 MergeFrom(from); |
7520 } | 7950 } |
7521 | 7951 |
7522 bool SourceCodeInfo_Location::IsInitialized() const { | 7952 bool SourceCodeInfo_Location::IsInitialized() const { |
7523 | 7953 |
7524 return true; | 7954 return true; |
7525 } | 7955 } |
7526 | 7956 |
7527 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { | 7957 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { |
7528 if (other != this) { | 7958 if (other != this) { |
7529 path_.Swap(&other->path_); | 7959 path_.Swap(&other->path_); |
7530 span_.Swap(&other->span_); | 7960 span_.Swap(&other->span_); |
| 7961 std::swap(leading_comments_, other->leading_comments_); |
| 7962 std::swap(trailing_comments_, other->trailing_comments_); |
7531 std::swap(_has_bits_[0], other->_has_bits_[0]); | 7963 std::swap(_has_bits_[0], other->_has_bits_[0]); |
7532 _unknown_fields_.Swap(&other->_unknown_fields_); | 7964 _unknown_fields_.Swap(&other->_unknown_fields_); |
7533 std::swap(_cached_size_, other->_cached_size_); | 7965 std::swap(_cached_size_, other->_cached_size_); |
7534 } | 7966 } |
7535 } | 7967 } |
7536 | 7968 |
7537 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { | 7969 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { |
7538 protobuf_AssignDescriptorsOnce(); | 7970 protobuf_AssignDescriptorsOnce(); |
7539 ::google::protobuf::Metadata metadata; | 7971 ::google::protobuf::Metadata metadata; |
7540 metadata.descriptor = SourceCodeInfo_Location_descriptor_; | 7972 metadata.descriptor = SourceCodeInfo_Location_descriptor_; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7617 parse_location: | 8049 parse_location: |
7618 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 8050 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
7619 input, add_location())); | 8051 input, add_location())); |
7620 } else { | 8052 } else { |
7621 goto handle_uninterpreted; | 8053 goto handle_uninterpreted; |
7622 } | 8054 } |
7623 if (input->ExpectTag(10)) goto parse_location; | 8055 if (input->ExpectTag(10)) goto parse_location; |
7624 if (input->ExpectAtEnd()) return true; | 8056 if (input->ExpectAtEnd()) return true; |
7625 break; | 8057 break; |
7626 } | 8058 } |
7627 | 8059 |
7628 default: { | 8060 default: { |
7629 handle_uninterpreted: | 8061 handle_uninterpreted: |
7630 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 8062 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
7631 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 8063 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
7632 return true; | 8064 return true; |
7633 } | 8065 } |
7634 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag,
mutable_unknown_fields())); | 8066 DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
| 8067 input, tag, mutable_unknown_fields())); |
7635 break; | 8068 break; |
7636 } | 8069 } |
7637 } | 8070 } |
7638 } | 8071 } |
7639 return true; | 8072 return true; |
7640 #undef DO_ | 8073 #undef DO_ |
7641 } | 8074 } |
7642 | 8075 |
7643 void SourceCodeInfo::SerializeWithCachedSizes( | 8076 void SourceCodeInfo::SerializeWithCachedSizes( |
7644 ::google::protobuf::io::CodedOutputStream* output) const { | 8077 ::google::protobuf::io::CodedOutputStream* output) const { |
7645 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | 8078 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
7646 for (int i = 0; i < this->location_size(); i++) { | 8079 for (int i = 0; i < this->location_size(); i++) { |
7647 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 8080 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7648 1, this->location(i), output); | 8081 1, this->location(i), output); |
7649 } | 8082 } |
7650 | 8083 |
7651 if (!unknown_fields().empty()) { | 8084 if (!unknown_fields().empty()) { |
7652 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( | 8085 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
7653 unknown_fields(), output); | 8086 unknown_fields(), output); |
7654 } | 8087 } |
7655 } | 8088 } |
7656 | 8089 |
7657 ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray( | 8090 ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray( |
7658 ::google::protobuf::uint8* target) const { | 8091 ::google::protobuf::uint8* target) const { |
7659 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | 8092 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
7660 for (int i = 0; i < this->location_size(); i++) { | 8093 for (int i = 0; i < this->location_size(); i++) { |
7661 target = ::google::protobuf::internal::WireFormatLite:: | 8094 target = ::google::protobuf::internal::WireFormatLite:: |
7662 WriteMessageNoVirtualToArray( | 8095 WriteMessageNoVirtualToArray( |
7663 1, this->location(i), target); | 8096 1, this->location(i), target); |
7664 } | 8097 } |
7665 | 8098 |
7666 if (!unknown_fields().empty()) { | 8099 if (!unknown_fields().empty()) { |
7667 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( | 8100 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField
sToArray( |
7668 unknown_fields(), target); | 8101 unknown_fields(), target); |
7669 } | 8102 } |
7670 return target; | 8103 return target; |
7671 } | 8104 } |
7672 | 8105 |
7673 int SourceCodeInfo::ByteSize() const { | 8106 int SourceCodeInfo::ByteSize() const { |
7674 int total_size = 0; | 8107 int total_size = 0; |
7675 | 8108 |
7676 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | 8109 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
7677 total_size += 1 * this->location_size(); | 8110 total_size += 1 * this->location_size(); |
7678 for (int i = 0; i < this->location_size(); i++) { | 8111 for (int i = 0; i < this->location_size(); i++) { |
7679 total_size += | 8112 total_size += |
7680 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 8113 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
7681 this->location(i)); | 8114 this->location(i)); |
7682 } | 8115 } |
7683 | 8116 |
7684 if (!unknown_fields().empty()) { | 8117 if (!unknown_fields().empty()) { |
7685 total_size += | 8118 total_size += |
7686 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( | 8119 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
7687 unknown_fields()); | 8120 unknown_fields()); |
7688 } | 8121 } |
7689 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 8122 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7690 _cached_size_ = total_size; | 8123 _cached_size_ = total_size; |
7691 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 8124 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7692 return total_size; | 8125 return total_size; |
7693 } | 8126 } |
(...skipping 22 matching lines...) Expand all Loading... |
7716 MergeFrom(from); | 8149 MergeFrom(from); |
7717 } | 8150 } |
7718 | 8151 |
7719 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { | 8152 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { |
7720 if (&from == this) return; | 8153 if (&from == this) return; |
7721 Clear(); | 8154 Clear(); |
7722 MergeFrom(from); | 8155 MergeFrom(from); |
7723 } | 8156 } |
7724 | 8157 |
7725 bool SourceCodeInfo::IsInitialized() const { | 8158 bool SourceCodeInfo::IsInitialized() const { |
7726 | 8159 |
7727 return true; | 8160 return true; |
7728 } | 8161 } |
7729 | 8162 |
7730 void SourceCodeInfo::Swap(SourceCodeInfo* other) { | 8163 void SourceCodeInfo::Swap(SourceCodeInfo* other) { |
7731 if (other != this) { | 8164 if (other != this) { |
7732 location_.Swap(&other->location_); | 8165 location_.Swap(&other->location_); |
7733 std::swap(_has_bits_[0], other->_has_bits_[0]); | 8166 std::swap(_has_bits_[0], other->_has_bits_[0]); |
7734 _unknown_fields_.Swap(&other->_unknown_fields_); | 8167 _unknown_fields_.Swap(&other->_unknown_fields_); |
7735 std::swap(_cached_size_, other->_cached_size_); | 8168 std::swap(_cached_size_, other->_cached_size_); |
7736 } | 8169 } |
7737 } | 8170 } |
7738 | 8171 |
7739 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { | 8172 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { |
7740 protobuf_AssignDescriptorsOnce(); | 8173 protobuf_AssignDescriptorsOnce(); |
7741 ::google::protobuf::Metadata metadata; | 8174 ::google::protobuf::Metadata metadata; |
7742 metadata.descriptor = SourceCodeInfo_descriptor_; | 8175 metadata.descriptor = SourceCodeInfo_descriptor_; |
7743 metadata.reflection = SourceCodeInfo_reflection_; | 8176 metadata.reflection = SourceCodeInfo_reflection_; |
7744 return metadata; | 8177 return metadata; |
7745 } | 8178 } |
7746 | 8179 |
7747 | 8180 |
7748 // @@protoc_insertion_point(namespace_scope) | 8181 // @@protoc_insertion_point(namespace_scope) |
7749 | 8182 |
7750 } // namespace protobuf | 8183 } // namespace protobuf |
7751 } // namespace google | 8184 } // namespace google |
7752 | 8185 |
7753 // @@protoc_insertion_point(global_scope) | 8186 // @@protoc_insertion_point(global_scope) |
OLD | NEW |