~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to src/google/protobuf/descriptor.pb.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4
4
#include "google/protobuf/descriptor.pb.h"
 
5
 
 
6
#include <algorithm>
 
7
 
5
8
#include <google/protobuf/stubs/once.h>
6
9
#include <google/protobuf/io/coded_stream.h>
7
10
#include <google/protobuf/wire_format_lite_inl.h>
73
76
const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
74
77
const ::google::protobuf::internal::GeneratedMessageReflection*
75
78
  UninterpretedOption_NamePart_reflection_ = NULL;
 
79
const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
 
80
const ::google::protobuf::internal::GeneratedMessageReflection*
 
81
  SourceCodeInfo_reflection_ = NULL;
 
82
const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
 
83
const ::google::protobuf::internal::GeneratedMessageReflection*
 
84
  SourceCodeInfo_Location_reflection_ = NULL;
76
85
 
77
86
}  // namespace
78
87
 
99
108
      ::google::protobuf::MessageFactory::generated_factory(),
100
109
      sizeof(FileDescriptorSet));
101
110
  FileDescriptorProto_descriptor_ = file->message_type(1);
102
 
  static const int FileDescriptorProto_offsets_[8] = {
 
111
  static const int FileDescriptorProto_offsets_[9] = {
103
112
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
104
113
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
105
114
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
108
117
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
109
118
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
110
119
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
 
120
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
111
121
  };
112
122
  FileDescriptorProto_reflection_ =
113
123
    new ::google::protobuf::internal::GeneratedMessageReflection(
251
261
      ::google::protobuf::MessageFactory::generated_factory(),
252
262
      sizeof(MethodDescriptorProto));
253
263
  FileOptions_descriptor_ = file->message_type(8);
254
 
  static const int FileOptions_offsets_[8] = {
 
264
  static const int FileOptions_offsets_[9] = {
255
265
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
256
266
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
257
267
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
 
268
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
258
269
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
259
270
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
260
271
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
371
382
      ::google::protobuf::MessageFactory::generated_factory(),
372
383
      sizeof(MethodOptions));
373
384
  UninterpretedOption_descriptor_ = file->message_type(15);
374
 
  static const int UninterpretedOption_offsets_[6] = {
 
385
  static const int UninterpretedOption_offsets_[7] = {
375
386
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
376
387
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
377
388
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
378
389
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
379
390
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
380
391
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
 
392
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
381
393
  };
382
394
  UninterpretedOption_reflection_ =
383
395
    new ::google::protobuf::internal::GeneratedMessageReflection(
406
418
      ::google::protobuf::DescriptorPool::generated_pool(),
407
419
      ::google::protobuf::MessageFactory::generated_factory(),
408
420
      sizeof(UninterpretedOption_NamePart));
 
421
  SourceCodeInfo_descriptor_ = file->message_type(16);
 
422
  static const int SourceCodeInfo_offsets_[1] = {
 
423
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
 
424
  };
 
425
  SourceCodeInfo_reflection_ =
 
426
    new ::google::protobuf::internal::GeneratedMessageReflection(
 
427
      SourceCodeInfo_descriptor_,
 
428
      SourceCodeInfo::default_instance_,
 
429
      SourceCodeInfo_offsets_,
 
430
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
 
431
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _unknown_fields_),
 
432
      -1,
 
433
      ::google::protobuf::DescriptorPool::generated_pool(),
 
434
      ::google::protobuf::MessageFactory::generated_factory(),
 
435
      sizeof(SourceCodeInfo));
 
436
  SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
 
437
  static const int SourceCodeInfo_Location_offsets_[2] = {
 
438
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
 
439
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
 
440
  };
 
441
  SourceCodeInfo_Location_reflection_ =
 
442
    new ::google::protobuf::internal::GeneratedMessageReflection(
 
443
      SourceCodeInfo_Location_descriptor_,
 
444
      SourceCodeInfo_Location::default_instance_,
 
445
      SourceCodeInfo_Location_offsets_,
 
446
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
 
447
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _unknown_fields_),
 
448
      -1,
 
449
      ::google::protobuf::DescriptorPool::generated_pool(),
 
450
      ::google::protobuf::MessageFactory::generated_factory(),
 
451
      sizeof(SourceCodeInfo_Location));
409
452
}
410
453
 
411
454
namespace {
454
497
    UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
455
498
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
456
499
    UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
 
500
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
 
501
    SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
 
502
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
 
503
    SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
457
504
}
458
505
 
459
506
}  // namespace
495
542
  delete UninterpretedOption_reflection_;
496
543
  delete UninterpretedOption_NamePart::default_instance_;
497
544
  delete UninterpretedOption_NamePart_reflection_;
 
545
  delete SourceCodeInfo::default_instance_;
 
546
  delete SourceCodeInfo_reflection_;
 
547
  delete SourceCodeInfo_Location::default_instance_;
 
548
  delete SourceCodeInfo_Location_reflection_;
498
549
}
499
550
 
500
551
void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
507
558
    "\n google/protobuf/descriptor.proto\022\017goog"
508
559
    "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
509
560
    "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
510
 
    "roto\"\334\002\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
 
561
    "roto\"\227\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
511
562
    "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
512
563
    "6\n\014message_type\030\004 \003(\0132 .google.protobuf."
513
564
    "DescriptorProto\0227\n\tenum_type\030\005 \003(\0132$.goo"
515
566
    "ice\030\006 \003(\0132\'.google.protobuf.ServiceDescr"
516
567
    "iptorProto\0228\n\textension\030\007 \003(\0132%.google.p"
517
568
    "rotobuf.FieldDescriptorProto\022-\n\007options\030"
518
 
    "\010 \001(\0132\034.google.protobuf.FileOptions\"\251\003\n\017"
519
 
    "DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002"
520
 
    " \003(\0132%.google.protobuf.FieldDescriptorPr"
521
 
    "oto\0228\n\textension\030\006 \003(\0132%.google.protobuf"
522
 
    ".FieldDescriptorProto\0225\n\013nested_type\030\003 \003"
523
 
    "(\0132 .google.protobuf.DescriptorProto\0227\n\t"
524
 
    "enum_type\030\004 \003(\0132$.google.protobuf.EnumDe"
525
 
    "scriptorProto\022H\n\017extension_range\030\005 \003(\0132/"
526
 
    ".google.protobuf.DescriptorProto.Extensi"
527
 
    "onRange\0220\n\007options\030\007 \001(\0132\037.google.protob"
528
 
    "uf.MessageOptions\032,\n\016ExtensionRange\022\r\n\005s"
529
 
    "tart\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescrip"
530
 
    "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:"
531
 
    "\n\005label\030\004 \001(\0162+.google.protobuf.FieldDes"
532
 
    "criptorProto.Label\0228\n\004type\030\005 \001(\0162*.googl"
533
 
    "e.protobuf.FieldDescriptorProto.Type\022\021\n\t"
534
 
    "type_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdef"
535
 
    "ault_value\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.goog"
536
 
    "le.protobuf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYP"
537
 
    "E_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64"
538
 
    "\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014T"
539
 
    "YPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_"
540
 
    "BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022"
541
 
    "\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYP"
542
 
    "E_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED"
543
 
    "32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021"
544
 
    "\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTI"
545
 
    "ONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPE"
546
 
    "ATED\020\003\"\214\001\n\023EnumDescriptorProto\022\014\n\004name\030\001"
547
 
    " \001(\t\0228\n\005value\030\002 \003(\0132).google.protobuf.En"
548
 
    "umValueDescriptorProto\022-\n\007options\030\003 \001(\0132"
549
 
    "\034.google.protobuf.EnumOptions\"l\n\030EnumVal"
550
 
    "ueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006numbe"
551
 
    "r\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.protob"
552
 
    "uf.EnumValueOptions\"\220\001\n\026ServiceDescripto"
553
 
    "rProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.g"
554
 
    "oogle.protobuf.MethodDescriptorProto\0220\n\007"
555
 
    "options\030\003 \001(\0132\037.google.protobuf.ServiceO"
556
 
    "ptions\"\177\n\025MethodDescriptorProto\022\014\n\004name\030"
557
 
    "\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output_type"
558
 
    "\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.protobu"
559
 
    "f.MethodOptions\"\244\003\n\013FileOptions\022\024\n\014java_"
560
 
    "package\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 "
561
 
    "\001(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022"
562
 
    "F\n\014optimize_for\030\t \001(\0162).google.protobuf."
563
 
    "FileOptions.OptimizeMode:\005SPEED\022!\n\023cc_ge"
564
 
    "neric_services\030\020 \001(\010:\004true\022#\n\025java_gener"
565
 
    "ic_services\030\021 \001(\010:\004true\022!\n\023py_generic_se"
566
 
    "rvices\030\022 \001(\010:\004true\022C\n\024uninterpreted_opti"
567
 
    "on\030\347\007 \003(\0132$.google.protobuf.Uninterprete"
568
 
    "dOption\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCO"
569
 
    "DE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270"
570
 
    "\001\n\016MessageOptions\022&\n\027message_set_wire_fo"
571
 
    "rmat\030\001 \001(\010:\005false\022.\n\037no_standard_descrip"
572
 
    "tor_accessor\030\002 \001(\010:\005false\022C\n\024uninterpret"
 
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"
 
575
    "\0225\n\013nested_type\030\003 \003(\0132 .google.protobuf."
 
576
    "DescriptorProto\0227\n\tenum_type\030\004 \003(\0132$.goo"
 
577
    "gle.protobuf.EnumDescriptorProto\022H\n\017exte"
 
578
    "nsion_range\030\005 \003(\0132/.google.protobuf.Desc"
 
579
    "riptorProto.ExtensionRange\0220\n\007options\030\007 "
 
580
    "\001(\0132\037.google.protobuf.MessageOptions\032,\n\016"
 
581
    "ExtensionRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001"
 
582
    "(\005\"\224\005\n\024FieldDescriptorProto\022\014\n\004name\030\001 \001("
 
583
    "\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+.googl"
 
584
    "e.protobuf.FieldDescriptorProto.Label\0228\n"
 
585
    "\004type\030\005 \001(\0162*.google.protobuf.FieldDescr"
 
586
    "iptorProto.Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010ex"
 
587
    "tendee\030\002 \001(\t\022\025\n\rdefault_value\030\007 \001(\t\022.\n\007o"
 
588
    "ptions\030\010 \001(\0132\035.google.protobuf.FieldOpti"
 
589
    "ons\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FL"
 
590
    "OAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016"
 
591
    "\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE"
 
592
    "_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING"
 
593
    "\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\n"
 
594
    "TYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_EN"
 
595
    "UM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64"
 
596
    "\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005"
 
597
    "Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUI"
 
598
    "RED\020\002\022\022\n\016LABEL_REPEATED\020\003\"\214\001\n\023EnumDescri"
 
599
    "ptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132)"
 
600
    ".google.protobuf.EnumValueDescriptorProt"
 
601
    "o\022-\n\007options\030\003 \001(\0132\034.google.protobuf.Enu"
 
602
    "mOptions\"l\n\030EnumValueDescriptorProto\022\014\n\004"
 
603
    "name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 "
 
604
    "\001(\0132!.google.protobuf.EnumValueOptions\"\220"
 
605
    "\001\n\026ServiceDescriptorProto\022\014\n\004name\030\001 \001(\t\022"
 
606
    "6\n\006method\030\002 \003(\0132&.google.protobuf.Method"
 
607
    "DescriptorProto\0220\n\007options\030\003 \001(\0132\037.googl"
 
608
    "e.protobuf.ServiceOptions\"\177\n\025MethodDescr"
 
609
    "iptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002"
 
610
    " \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n\007options\030\004 \001"
 
611
    "(\0132\036.google.protobuf.MethodOptions\"\325\003\n\013F"
 
612
    "ileOptions\022\024\n\014java_package\030\001 \001(\t\022\034\n\024java"
 
613
    "_outer_classname\030\010 \001(\t\022\"\n\023java_multiple_"
 
614
    "files\030\n \001(\010:\005false\022,\n\035java_generate_equa"
 
615
    "ls_and_hash\030\024 \001(\010:\005false\022F\n\014optimize_for"
 
616
    "\030\t \001(\0162).google.protobuf.FileOptions.Opt"
 
617
    "imizeMode:\005SPEED\022\"\n\023cc_generic_services\030"
 
618
    "\020 \001(\010:\005false\022$\n\025java_generic_services\030\021 "
 
619
    "\001(\010:\005false\022\"\n\023py_generic_services\030\022 \001(\010:"
 
620
    "\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$."
 
621
    "google.protobuf.UninterpretedOption\":\n\014O"
 
622
    "ptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n"
 
623
    "\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270\001\n\016MessageOp"
 
624
    "tions\022&\n\027message_set_wire_format\030\001 \001(\010:\005"
 
625
    "false\022.\n\037no_standard_descriptor_accessor"
 
626
    "\030\002 \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007"
 
627
    " \003(\0132$.google.protobuf.UninterpretedOpti"
 
628
    "on*\t\010\350\007\020\200\200\200\200\002\"\224\002\n\014FieldOptions\022:\n\005ctype\030"
 
629
    "\001 \001(\0162#.google.protobuf.FieldOptions.CTy"
 
630
    "pe:\006STRING\022\016\n\006packed\030\002 \001(\010\022\031\n\ndeprecated"
 
631
    "\030\003 \001(\010:\005false\022\034\n\024experimental_map_key\030\t "
 
632
    "\001(\t\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goo"
 
633
    "gle.protobuf.UninterpretedOption\"/\n\005CTyp"
 
634
    "e\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020"
 
635
    "\002*\t\010\350\007\020\200\200\200\200\002\"]\n\013EnumOptions\022C\n\024uninterpr"
 
636
    "eted_option\030\347\007 \003(\0132$.google.protobuf.Uni"
 
637
    "nterpretedOption*\t\010\350\007\020\200\200\200\200\002\"b\n\020EnumValue"
 
638
    "Options\022C\n\024uninterpreted_option\030\347\007 \003(\0132$"
 
639
    ".google.protobuf.UninterpretedOption*\t\010\350"
 
640
    "\007\020\200\200\200\200\002\"`\n\016ServiceOptions\022C\n\024uninterpret"
573
641
    "ed_option\030\347\007 \003(\0132$.google.protobuf.Unint"
574
 
    "erpretedOption*\t\010\350\007\020\200\200\200\200\002\"\224\002\n\014FieldOptio"
575
 
    "ns\022:\n\005ctype\030\001 \001(\0162#.google.protobuf.Fiel"
576
 
    "dOptions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\031"
577
 
    "\n\ndeprecated\030\003 \001(\010:\005false\022\034\n\024experimenta"
578
 
    "l_map_key\030\t \001(\t\022C\n\024uninterpreted_option\030"
579
 
    "\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
580
 
    "tion\"/\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014S"
581
 
    "TRING_PIECE\020\002*\t\010\350\007\020\200\200\200\200\002\"]\n\013EnumOptions\022"
582
 
    "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
583
 
    "protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\""
584
 
    "b\n\020EnumValueOptions\022C\n\024uninterpreted_opt"
585
 
    "ion\030\347\007 \003(\0132$.google.protobuf.Uninterpret"
586
 
    "edOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceOptions\022C\n"
587
 
    "\024uninterpreted_option\030\347\007 \003(\0132$.google.pr"
588
 
    "otobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"_\n"
589
 
    "\rMethodOptions\022C\n\024uninterpreted_option\030\347"
590
 
    "\007 \003(\0132$.google.protobuf.UninterpretedOpt"
591
 
    "ion*\t\010\350\007\020\200\200\200\200\002\"\205\002\n\023UninterpretedOption\022;"
592
 
    "\n\004name\030\002 \003(\0132-.google.protobuf.Uninterpr"
593
 
    "etedOption.NamePart\022\030\n\020identifier_value\030"
594
 
    "\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032\n\022neg"
595
 
    "ative_int_value\030\005 \001(\003\022\024\n\014double_value\030\006 "
596
 
    "\001(\001\022\024\n\014string_value\030\007 \001(\014\0323\n\010NamePart\022\021\n"
597
 
    "\tname_part\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010B)"
598
 
    "\n\023com.google.protobufB\020DescriptorProtosH"
599
 
    "\001", 3681);
 
642
    "erpretedOption*\t\010\350\007\020\200\200\200\200\002\"_\n\rMethodOptio"
 
643
    "ns\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goog"
 
644
    "le.protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200"
 
645
    "\200\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\013"
 
646
    "2-.google.protobuf.UninterpretedOption.N"
 
647
    "amePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022pos"
 
648
    "itive_int_value\030\004 \001(\004\022\032\n\022negative_int_va"
 
649
    "lue\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014strin"
 
650
    "g_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323"
 
651
    "\n\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_exte"
 
652
    "nsion\030\002 \002(\010\"|\n\016SourceCodeInfo\022:\n\010locatio"
 
653
    "n\030\001 \003(\0132(.google.protobuf.SourceCodeInfo"
 
654
    ".Location\032.\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001\022"
 
655
    "\020\n\004span\030\002 \003(\005B\002\020\001B)\n\023com.google.protobuf"
 
656
    "B\020DescriptorProtosH\001", 3940);
600
657
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
601
658
    "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
602
659
  FileDescriptorSet::default_instance_ = new FileDescriptorSet();
617
674
  MethodOptions::default_instance_ = new MethodOptions();
618
675
  UninterpretedOption::default_instance_ = new UninterpretedOption();
619
676
  UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
 
677
  SourceCodeInfo::default_instance_ = new SourceCodeInfo();
 
678
  SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
620
679
  FileDescriptorSet::default_instance_->InitAsDefaultInstance();
621
680
  FileDescriptorProto::default_instance_->InitAsDefaultInstance();
622
681
  DescriptorProto::default_instance_->InitAsDefaultInstance();
635
694
  MethodOptions::default_instance_->InitAsDefaultInstance();
636
695
  UninterpretedOption::default_instance_->InitAsDefaultInstance();
637
696
  UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
 
697
  SourceCodeInfo::default_instance_->InitAsDefaultInstance();
 
698
  SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
638
699
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
639
700
}
640
701
 
853
914
 
854
915
// ===================================================================
855
916
 
856
 
const ::std::string FileDescriptorProto::_default_name_;
857
 
const ::std::string FileDescriptorProto::_default_package_;
858
917
#ifndef _MSC_VER
859
918
const int FileDescriptorProto::kNameFieldNumber;
860
919
const int FileDescriptorProto::kPackageFieldNumber;
864
923
const int FileDescriptorProto::kServiceFieldNumber;
865
924
const int FileDescriptorProto::kExtensionFieldNumber;
866
925
const int FileDescriptorProto::kOptionsFieldNumber;
 
926
const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
867
927
#endif  // !_MSC_VER
868
928
 
869
929
FileDescriptorProto::FileDescriptorProto()
873
933
 
874
934
void FileDescriptorProto::InitAsDefaultInstance() {
875
935
  options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
 
936
  source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
876
937
}
877
938
 
878
939
FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
883
944
 
884
945
void FileDescriptorProto::SharedCtor() {
885
946
  _cached_size_ = 0;
886
 
  name_ = const_cast< ::std::string*>(&_default_name_);
887
 
  package_ = const_cast< ::std::string*>(&_default_package_);
 
947
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
948
  package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
888
949
  options_ = NULL;
 
950
  source_code_info_ = NULL;
889
951
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
890
952
}
891
953
 
894
956
}
895
957
 
896
958
void FileDescriptorProto::SharedDtor() {
897
 
  if (name_ != &_default_name_) {
 
959
  if (name_ != &::google::protobuf::internal::kEmptyString) {
898
960
    delete name_;
899
961
  }
900
 
  if (package_ != &_default_package_) {
 
962
  if (package_ != &::google::protobuf::internal::kEmptyString) {
901
963
    delete package_;
902
964
  }
903
965
  if (this != default_instance_) {
904
966
    delete options_;
 
967
    delete source_code_info_;
905
968
  }
906
969
}
907
970
 
927
990
 
928
991
void FileDescriptorProto::Clear() {
929
992
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
930
 
    if (_has_bit(0)) {
931
 
      if (name_ != &_default_name_) {
 
993
    if (has_name()) {
 
994
      if (name_ != &::google::protobuf::internal::kEmptyString) {
932
995
        name_->clear();
933
996
      }
934
997
    }
935
 
    if (_has_bit(1)) {
936
 
      if (package_ != &_default_package_) {
 
998
    if (has_package()) {
 
999
      if (package_ != &::google::protobuf::internal::kEmptyString) {
937
1000
        package_->clear();
938
1001
      }
939
1002
    }
940
 
    if (_has_bit(7)) {
 
1003
    if (has_options()) {
941
1004
      if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
942
1005
    }
943
1006
  }
 
1007
  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
 
1008
    if (has_source_code_info()) {
 
1009
      if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
 
1010
    }
 
1011
  }
944
1012
  dependency_.Clear();
945
1013
  message_type_.Clear();
946
1014
  enum_type_.Clear();
1077
1145
        } else {
1078
1146
          goto handle_uninterpreted;
1079
1147
        }
 
1148
        if (input->ExpectTag(74)) goto parse_source_code_info;
 
1149
        break;
 
1150
      }
 
1151
      
 
1152
      // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
 
1153
      case 9: {
 
1154
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
1155
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
 
1156
         parse_source_code_info:
 
1157
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
 
1158
               input, mutable_source_code_info()));
 
1159
        } else {
 
1160
          goto handle_uninterpreted;
 
1161
        }
1080
1162
        if (input->ExpectAtEnd()) return true;
1081
1163
        break;
1082
1164
      }
1100
1182
void FileDescriptorProto::SerializeWithCachedSizes(
1101
1183
    ::google::protobuf::io::CodedOutputStream* output) const {
1102
1184
  // optional string name = 1;
1103
 
  if (_has_bit(0)) {
 
1185
  if (has_name()) {
1104
1186
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1105
1187
      this->name().data(), this->name().length(),
1106
1188
      ::google::protobuf::internal::WireFormat::SERIALIZE);
1109
1191
  }
1110
1192
  
1111
1193
  // optional string package = 2;
1112
 
  if (_has_bit(1)) {
 
1194
  if (has_package()) {
1113
1195
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1114
1196
      this->package().data(), this->package().length(),
1115
1197
      ::google::protobuf::internal::WireFormat::SERIALIZE);
1151
1233
  }
1152
1234
  
1153
1235
  // optional .google.protobuf.FileOptions options = 8;
1154
 
  if (_has_bit(7)) {
 
1236
  if (has_options()) {
1155
1237
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1156
1238
      8, this->options(), output);
1157
1239
  }
1158
1240
  
 
1241
  // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
 
1242
  if (has_source_code_info()) {
 
1243
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
 
1244
      9, this->source_code_info(), output);
 
1245
  }
 
1246
  
1159
1247
  if (!unknown_fields().empty()) {
1160
1248
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1161
1249
        unknown_fields(), output);
1165
1253
::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
1166
1254
    ::google::protobuf::uint8* target) const {
1167
1255
  // optional string name = 1;
1168
 
  if (_has_bit(0)) {
 
1256
  if (has_name()) {
1169
1257
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1170
1258
      this->name().data(), this->name().length(),
1171
1259
      ::google::protobuf::internal::WireFormat::SERIALIZE);
1175
1263
  }
1176
1264
  
1177
1265
  // optional string package = 2;
1178
 
  if (_has_bit(1)) {
 
1266
  if (has_package()) {
1179
1267
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1180
1268
      this->package().data(), this->package().length(),
1181
1269
      ::google::protobuf::internal::WireFormat::SERIALIZE);
1222
1310
  }
1223
1311
  
1224
1312
  // optional .google.protobuf.FileOptions options = 8;
1225
 
  if (_has_bit(7)) {
 
1313
  if (has_options()) {
1226
1314
    target = ::google::protobuf::internal::WireFormatLite::
1227
1315
      WriteMessageNoVirtualToArray(
1228
1316
        8, this->options(), target);
1229
1317
  }
1230
1318
  
 
1319
  // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
 
1320
  if (has_source_code_info()) {
 
1321
    target = ::google::protobuf::internal::WireFormatLite::
 
1322
      WriteMessageNoVirtualToArray(
 
1323
        9, this->source_code_info(), target);
 
1324
  }
 
1325
  
1231
1326
  if (!unknown_fields().empty()) {
1232
1327
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1233
1328
        unknown_fields(), target);
1261
1356
    }
1262
1357
    
1263
1358
  }
 
1359
  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
 
1360
    // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
 
1361
    if (has_source_code_info()) {
 
1362
      total_size += 1 +
 
1363
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
 
1364
          this->source_code_info());
 
1365
    }
 
1366
    
 
1367
  }
1264
1368
  // repeated string dependency = 3;
1265
1369
  total_size += 1 * this->dependency_size();
1266
1370
  for (int i = 0; i < this->dependency_size(); i++) {
1331
1435
  service_.MergeFrom(from.service_);
1332
1436
  extension_.MergeFrom(from.extension_);
1333
1437
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1334
 
    if (from._has_bit(0)) {
 
1438
    if (from.has_name()) {
1335
1439
      set_name(from.name());
1336
1440
    }
1337
 
    if (from._has_bit(1)) {
 
1441
    if (from.has_package()) {
1338
1442
      set_package(from.package());
1339
1443
    }
1340
 
    if (from._has_bit(7)) {
 
1444
    if (from.has_options()) {
1341
1445
      mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1342
1446
    }
1343
1447
  }
 
1448
  if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
 
1449
    if (from.has_source_code_info()) {
 
1450
      mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
 
1451
    }
 
1452
  }
1344
1453
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1345
1454
}
1346
1455
 
1386
1495
    service_.Swap(&other->service_);
1387
1496
    extension_.Swap(&other->extension_);
1388
1497
    std::swap(options_, other->options_);
 
1498
    std::swap(source_code_info_, other->source_code_info_);
1389
1499
    std::swap(_has_bits_[0], other->_has_bits_[0]);
1390
1500
    _unknown_fields_.Swap(&other->_unknown_fields_);
1391
1501
    std::swap(_cached_size_, other->_cached_size_);
1480
1590
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1481
1591
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1482
1592
                 input, &start_)));
1483
 
          _set_bit(0);
 
1593
          set_has_start();
1484
1594
        } else {
1485
1595
          goto handle_uninterpreted;
1486
1596
        }
1496
1606
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1497
1607
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1498
1608
                 input, &end_)));
1499
 
          _set_bit(1);
 
1609
          set_has_end();
1500
1610
        } else {
1501
1611
          goto handle_uninterpreted;
1502
1612
        }
1523
1633
void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
1524
1634
    ::google::protobuf::io::CodedOutputStream* output) const {
1525
1635
  // optional int32 start = 1;
1526
 
  if (_has_bit(0)) {
 
1636
  if (has_start()) {
1527
1637
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
1528
1638
  }
1529
1639
  
1530
1640
  // optional int32 end = 2;
1531
 
  if (_has_bit(1)) {
 
1641
  if (has_end()) {
1532
1642
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
1533
1643
  }
1534
1644
  
1541
1651
::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
1542
1652
    ::google::protobuf::uint8* target) const {
1543
1653
  // optional int32 start = 1;
1544
 
  if (_has_bit(0)) {
 
1654
  if (has_start()) {
1545
1655
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
1546
1656
  }
1547
1657
  
1548
1658
  // optional int32 end = 2;
1549
 
  if (_has_bit(1)) {
 
1659
  if (has_end()) {
1550
1660
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
1551
1661
  }
1552
1662
  
1602
1712
void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
1603
1713
  GOOGLE_CHECK_NE(&from, this);
1604
1714
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1605
 
    if (from._has_bit(0)) {
 
1715
    if (from.has_start()) {
1606
1716
      set_start(from.start());
1607
1717
    }
1608
 
    if (from._has_bit(1)) {
 
1718
    if (from.has_end()) {
1609
1719
      set_end(from.end());
1610
1720
    }
1611
1721
  }
1650
1760
 
1651
1761
// -------------------------------------------------------------------
1652
1762
 
1653
 
const ::std::string DescriptorProto::_default_name_;
1654
1763
#ifndef _MSC_VER
1655
1764
const int DescriptorProto::kNameFieldNumber;
1656
1765
const int DescriptorProto::kFieldFieldNumber;
1678
1787
 
1679
1788
void DescriptorProto::SharedCtor() {
1680
1789
  _cached_size_ = 0;
1681
 
  name_ = const_cast< ::std::string*>(&_default_name_);
 
1790
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1682
1791
  options_ = NULL;
1683
1792
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1684
1793
}
1688
1797
}
1689
1798
 
1690
1799
void DescriptorProto::SharedDtor() {
1691
 
  if (name_ != &_default_name_) {
 
1800
  if (name_ != &::google::protobuf::internal::kEmptyString) {
1692
1801
    delete name_;
1693
1802
  }
1694
1803
  if (this != default_instance_) {
1718
1827
 
1719
1828
void DescriptorProto::Clear() {
1720
1829
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1721
 
    if (_has_bit(0)) {
1722
 
      if (name_ != &_default_name_) {
 
1830
    if (has_name()) {
 
1831
      if (name_ != &::google::protobuf::internal::kEmptyString) {
1723
1832
        name_->clear();
1724
1833
      }
1725
1834
    }
1726
 
    if (_has_bit(6)) {
 
1835
    if (has_options()) {
1727
1836
      if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
1728
1837
    }
1729
1838
  }
1866
1975
void DescriptorProto::SerializeWithCachedSizes(
1867
1976
    ::google::protobuf::io::CodedOutputStream* output) const {
1868
1977
  // optional string name = 1;
1869
 
  if (_has_bit(0)) {
 
1978
  if (has_name()) {
1870
1979
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1871
1980
      this->name().data(), this->name().length(),
1872
1981
      ::google::protobuf::internal::WireFormat::SERIALIZE);
1905
2014
  }
1906
2015
  
1907
2016
  // optional .google.protobuf.MessageOptions options = 7;
1908
 
  if (_has_bit(6)) {
 
2017
  if (has_options()) {
1909
2018
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1910
2019
      7, this->options(), output);
1911
2020
  }
1919
2028
::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
1920
2029
    ::google::protobuf::uint8* target) const {
1921
2030
  // optional string name = 1;
1922
 
  if (_has_bit(0)) {
 
2031
  if (has_name()) {
1923
2032
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1924
2033
      this->name().data(), this->name().length(),
1925
2034
      ::google::protobuf::internal::WireFormat::SERIALIZE);
1964
2073
  }
1965
2074
  
1966
2075
  // optional .google.protobuf.MessageOptions options = 7;
1967
 
  if (_has_bit(6)) {
 
2076
  if (has_options()) {
1968
2077
    target = ::google::protobuf::internal::WireFormatLite::
1969
2078
      WriteMessageNoVirtualToArray(
1970
2079
        7, this->options(), target);
2067
2176
  enum_type_.MergeFrom(from.enum_type_);
2068
2177
  extension_range_.MergeFrom(from.extension_range_);
2069
2178
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2070
 
    if (from._has_bit(0)) {
 
2179
    if (from.has_name()) {
2071
2180
      set_name(from.name());
2072
2181
    }
2073
 
    if (from._has_bit(6)) {
 
2182
    if (from.has_options()) {
2074
2183
      mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
2075
2184
    }
2076
2185
  }
2211
2320
const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
2212
2321
const int FieldDescriptorProto::Label_ARRAYSIZE;
2213
2322
#endif  // _MSC_VER
2214
 
const ::std::string FieldDescriptorProto::_default_name_;
2215
 
const ::std::string FieldDescriptorProto::_default_type_name_;
2216
 
const ::std::string FieldDescriptorProto::_default_extendee_;
2217
 
const ::std::string FieldDescriptorProto::_default_default_value_;
2218
2323
#ifndef _MSC_VER
2219
2324
const int FieldDescriptorProto::kNameFieldNumber;
2220
2325
const int FieldDescriptorProto::kNumberFieldNumber;
2243
2348
 
2244
2349
void FieldDescriptorProto::SharedCtor() {
2245
2350
  _cached_size_ = 0;
2246
 
  name_ = const_cast< ::std::string*>(&_default_name_);
 
2351
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2247
2352
  number_ = 0;
2248
2353
  label_ = 1;
2249
2354
  type_ = 1;
2250
 
  type_name_ = const_cast< ::std::string*>(&_default_type_name_);
2251
 
  extendee_ = const_cast< ::std::string*>(&_default_extendee_);
2252
 
  default_value_ = const_cast< ::std::string*>(&_default_default_value_);
 
2355
  type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
2356
  extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
2357
  default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2253
2358
  options_ = NULL;
2254
2359
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2255
2360
}
2259
2364
}
2260
2365
 
2261
2366
void FieldDescriptorProto::SharedDtor() {
2262
 
  if (name_ != &_default_name_) {
 
2367
  if (name_ != &::google::protobuf::internal::kEmptyString) {
2263
2368
    delete name_;
2264
2369
  }
2265
 
  if (type_name_ != &_default_type_name_) {
 
2370
  if (type_name_ != &::google::protobuf::internal::kEmptyString) {
2266
2371
    delete type_name_;
2267
2372
  }
2268
 
  if (extendee_ != &_default_extendee_) {
 
2373
  if (extendee_ != &::google::protobuf::internal::kEmptyString) {
2269
2374
    delete extendee_;
2270
2375
  }
2271
 
  if (default_value_ != &_default_default_value_) {
 
2376
  if (default_value_ != &::google::protobuf::internal::kEmptyString) {
2272
2377
    delete default_value_;
2273
2378
  }
2274
2379
  if (this != default_instance_) {
2298
2403
 
2299
2404
void FieldDescriptorProto::Clear() {
2300
2405
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2301
 
    if (_has_bit(0)) {
2302
 
      if (name_ != &_default_name_) {
 
2406
    if (has_name()) {
 
2407
      if (name_ != &::google::protobuf::internal::kEmptyString) {
2303
2408
        name_->clear();
2304
2409
      }
2305
2410
    }
2306
2411
    number_ = 0;
2307
2412
    label_ = 1;
2308
2413
    type_ = 1;
2309
 
    if (_has_bit(4)) {
2310
 
      if (type_name_ != &_default_type_name_) {
 
2414
    if (has_type_name()) {
 
2415
      if (type_name_ != &::google::protobuf::internal::kEmptyString) {
2311
2416
        type_name_->clear();
2312
2417
      }
2313
2418
    }
2314
 
    if (_has_bit(5)) {
2315
 
      if (extendee_ != &_default_extendee_) {
 
2419
    if (has_extendee()) {
 
2420
      if (extendee_ != &::google::protobuf::internal::kEmptyString) {
2316
2421
        extendee_->clear();
2317
2422
      }
2318
2423
    }
2319
 
    if (_has_bit(6)) {
2320
 
      if (default_value_ != &_default_default_value_) {
 
2424
    if (has_default_value()) {
 
2425
      if (default_value_ != &::google::protobuf::internal::kEmptyString) {
2321
2426
        default_value_->clear();
2322
2427
      }
2323
2428
    }
2324
 
    if (_has_bit(7)) {
 
2429
    if (has_options()) {
2325
2430
      if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
2326
2431
    }
2327
2432
  }
2376
2481
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2377
2482
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2378
2483
                 input, &number_)));
2379
 
          _set_bit(1);
 
2484
          set_has_number();
2380
2485
        } else {
2381
2486
          goto handle_uninterpreted;
2382
2487
        }
2493
2598
void FieldDescriptorProto::SerializeWithCachedSizes(
2494
2599
    ::google::protobuf::io::CodedOutputStream* output) const {
2495
2600
  // optional string name = 1;
2496
 
  if (_has_bit(0)) {
 
2601
  if (has_name()) {
2497
2602
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2498
2603
      this->name().data(), this->name().length(),
2499
2604
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2502
2607
  }
2503
2608
  
2504
2609
  // optional string extendee = 2;
2505
 
  if (_has_bit(5)) {
 
2610
  if (has_extendee()) {
2506
2611
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2507
2612
      this->extendee().data(), this->extendee().length(),
2508
2613
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2511
2616
  }
2512
2617
  
2513
2618
  // optional int32 number = 3;
2514
 
  if (_has_bit(1)) {
 
2619
  if (has_number()) {
2515
2620
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
2516
2621
  }
2517
2622
  
2518
2623
  // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2519
 
  if (_has_bit(2)) {
 
2624
  if (has_label()) {
2520
2625
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2521
2626
      4, this->label(), output);
2522
2627
  }
2523
2628
  
2524
2629
  // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2525
 
  if (_has_bit(3)) {
 
2630
  if (has_type()) {
2526
2631
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2527
2632
      5, this->type(), output);
2528
2633
  }
2529
2634
  
2530
2635
  // optional string type_name = 6;
2531
 
  if (_has_bit(4)) {
 
2636
  if (has_type_name()) {
2532
2637
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2533
2638
      this->type_name().data(), this->type_name().length(),
2534
2639
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2537
2642
  }
2538
2643
  
2539
2644
  // optional string default_value = 7;
2540
 
  if (_has_bit(6)) {
 
2645
  if (has_default_value()) {
2541
2646
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2542
2647
      this->default_value().data(), this->default_value().length(),
2543
2648
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2546
2651
  }
2547
2652
  
2548
2653
  // optional .google.protobuf.FieldOptions options = 8;
2549
 
  if (_has_bit(7)) {
 
2654
  if (has_options()) {
2550
2655
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2551
2656
      8, this->options(), output);
2552
2657
  }
2560
2665
::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
2561
2666
    ::google::protobuf::uint8* target) const {
2562
2667
  // optional string name = 1;
2563
 
  if (_has_bit(0)) {
 
2668
  if (has_name()) {
2564
2669
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2565
2670
      this->name().data(), this->name().length(),
2566
2671
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2570
2675
  }
2571
2676
  
2572
2677
  // optional string extendee = 2;
2573
 
  if (_has_bit(5)) {
 
2678
  if (has_extendee()) {
2574
2679
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2575
2680
      this->extendee().data(), this->extendee().length(),
2576
2681
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2580
2685
  }
2581
2686
  
2582
2687
  // optional int32 number = 3;
2583
 
  if (_has_bit(1)) {
 
2688
  if (has_number()) {
2584
2689
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
2585
2690
  }
2586
2691
  
2587
2692
  // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2588
 
  if (_has_bit(2)) {
 
2693
  if (has_label()) {
2589
2694
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2590
2695
      4, this->label(), target);
2591
2696
  }
2592
2697
  
2593
2698
  // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2594
 
  if (_has_bit(3)) {
 
2699
  if (has_type()) {
2595
2700
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2596
2701
      5, this->type(), target);
2597
2702
  }
2598
2703
  
2599
2704
  // optional string type_name = 6;
2600
 
  if (_has_bit(4)) {
 
2705
  if (has_type_name()) {
2601
2706
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2602
2707
      this->type_name().data(), this->type_name().length(),
2603
2708
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2607
2712
  }
2608
2713
  
2609
2714
  // optional string default_value = 7;
2610
 
  if (_has_bit(6)) {
 
2715
  if (has_default_value()) {
2611
2716
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2612
2717
      this->default_value().data(), this->default_value().length(),
2613
2718
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2617
2722
  }
2618
2723
  
2619
2724
  // optional .google.protobuf.FieldOptions options = 8;
2620
 
  if (_has_bit(7)) {
 
2725
  if (has_options()) {
2621
2726
    target = ::google::protobuf::internal::WireFormatLite::
2622
2727
      WriteMessageNoVirtualToArray(
2623
2728
        8, this->options(), target);
2715
2820
void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
2716
2821
  GOOGLE_CHECK_NE(&from, this);
2717
2822
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2718
 
    if (from._has_bit(0)) {
 
2823
    if (from.has_name()) {
2719
2824
      set_name(from.name());
2720
2825
    }
2721
 
    if (from._has_bit(1)) {
 
2826
    if (from.has_number()) {
2722
2827
      set_number(from.number());
2723
2828
    }
2724
 
    if (from._has_bit(2)) {
 
2829
    if (from.has_label()) {
2725
2830
      set_label(from.label());
2726
2831
    }
2727
 
    if (from._has_bit(3)) {
 
2832
    if (from.has_type()) {
2728
2833
      set_type(from.type());
2729
2834
    }
2730
 
    if (from._has_bit(4)) {
 
2835
    if (from.has_type_name()) {
2731
2836
      set_type_name(from.type_name());
2732
2837
    }
2733
 
    if (from._has_bit(5)) {
 
2838
    if (from.has_extendee()) {
2734
2839
      set_extendee(from.extendee());
2735
2840
    }
2736
 
    if (from._has_bit(6)) {
 
2841
    if (from.has_default_value()) {
2737
2842
      set_default_value(from.default_value());
2738
2843
    }
2739
 
    if (from._has_bit(7)) {
 
2844
    if (from.has_options()) {
2740
2845
      mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
2741
2846
    }
2742
2847
  }
2790
2895
 
2791
2896
// ===================================================================
2792
2897
 
2793
 
const ::std::string EnumDescriptorProto::_default_name_;
2794
2898
#ifndef _MSC_VER
2795
2899
const int EnumDescriptorProto::kNameFieldNumber;
2796
2900
const int EnumDescriptorProto::kValueFieldNumber;
2814
2918
 
2815
2919
void EnumDescriptorProto::SharedCtor() {
2816
2920
  _cached_size_ = 0;
2817
 
  name_ = const_cast< ::std::string*>(&_default_name_);
 
2921
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2818
2922
  options_ = NULL;
2819
2923
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2820
2924
}
2824
2928
}
2825
2929
 
2826
2930
void EnumDescriptorProto::SharedDtor() {
2827
 
  if (name_ != &_default_name_) {
 
2931
  if (name_ != &::google::protobuf::internal::kEmptyString) {
2828
2932
    delete name_;
2829
2933
  }
2830
2934
  if (this != default_instance_) {
2854
2958
 
2855
2959
void EnumDescriptorProto::Clear() {
2856
2960
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2857
 
    if (_has_bit(0)) {
2858
 
      if (name_ != &_default_name_) {
 
2961
    if (has_name()) {
 
2962
      if (name_ != &::google::protobuf::internal::kEmptyString) {
2859
2963
        name_->clear();
2860
2964
      }
2861
2965
    }
2862
 
    if (_has_bit(2)) {
 
2966
    if (has_options()) {
2863
2967
      if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
2864
2968
    }
2865
2969
  }
2938
3042
void EnumDescriptorProto::SerializeWithCachedSizes(
2939
3043
    ::google::protobuf::io::CodedOutputStream* output) const {
2940
3044
  // optional string name = 1;
2941
 
  if (_has_bit(0)) {
 
3045
  if (has_name()) {
2942
3046
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2943
3047
      this->name().data(), this->name().length(),
2944
3048
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2953
3057
  }
2954
3058
  
2955
3059
  // optional .google.protobuf.EnumOptions options = 3;
2956
 
  if (_has_bit(2)) {
 
3060
  if (has_options()) {
2957
3061
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2958
3062
      3, this->options(), output);
2959
3063
  }
2967
3071
::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
2968
3072
    ::google::protobuf::uint8* target) const {
2969
3073
  // optional string name = 1;
2970
 
  if (_has_bit(0)) {
 
3074
  if (has_name()) {
2971
3075
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2972
3076
      this->name().data(), this->name().length(),
2973
3077
      ::google::protobuf::internal::WireFormat::SERIALIZE);
2984
3088
  }
2985
3089
  
2986
3090
  // optional .google.protobuf.EnumOptions options = 3;
2987
 
  if (_has_bit(2)) {
 
3091
  if (has_options()) {
2988
3092
    target = ::google::protobuf::internal::WireFormatLite::
2989
3093
      WriteMessageNoVirtualToArray(
2990
3094
        3, this->options(), target);
3051
3155
  GOOGLE_CHECK_NE(&from, this);
3052
3156
  value_.MergeFrom(from.value_);
3053
3157
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3054
 
    if (from._has_bit(0)) {
 
3158
    if (from.has_name()) {
3055
3159
      set_name(from.name());
3056
3160
    }
3057
 
    if (from._has_bit(2)) {
 
3161
    if (from.has_options()) {
3058
3162
      mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
3059
3163
    }
3060
3164
  }
3106
3210
 
3107
3211
// ===================================================================
3108
3212
 
3109
 
const ::std::string EnumValueDescriptorProto::_default_name_;
3110
3213
#ifndef _MSC_VER
3111
3214
const int EnumValueDescriptorProto::kNameFieldNumber;
3112
3215
const int EnumValueDescriptorProto::kNumberFieldNumber;
3130
3233
 
3131
3234
void EnumValueDescriptorProto::SharedCtor() {
3132
3235
  _cached_size_ = 0;
3133
 
  name_ = const_cast< ::std::string*>(&_default_name_);
 
3236
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
3134
3237
  number_ = 0;
3135
3238
  options_ = NULL;
3136
3239
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3141
3244
}
3142
3245
 
3143
3246
void EnumValueDescriptorProto::SharedDtor() {
3144
 
  if (name_ != &_default_name_) {
 
3247
  if (name_ != &::google::protobuf::internal::kEmptyString) {
3145
3248
    delete name_;
3146
3249
  }
3147
3250
  if (this != default_instance_) {
3171
3274
 
3172
3275
void EnumValueDescriptorProto::Clear() {
3173
3276
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3174
 
    if (_has_bit(0)) {
3175
 
      if (name_ != &_default_name_) {
 
3277
    if (has_name()) {
 
3278
      if (name_ != &::google::protobuf::internal::kEmptyString) {
3176
3279
        name_->clear();
3177
3280
      }
3178
3281
    }
3179
3282
    number_ = 0;
3180
 
    if (_has_bit(2)) {
 
3283
    if (has_options()) {
3181
3284
      if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
3182
3285
    }
3183
3286
  }
3215
3318
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3216
3319
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3217
3320
                 input, &number_)));
3218
 
          _set_bit(1);
 
3321
          set_has_number();
3219
3322
        } else {
3220
3323
          goto handle_uninterpreted;
3221
3324
        }
3256
3359
void EnumValueDescriptorProto::SerializeWithCachedSizes(
3257
3360
    ::google::protobuf::io::CodedOutputStream* output) const {
3258
3361
  // optional string name = 1;
3259
 
  if (_has_bit(0)) {
 
3362
  if (has_name()) {
3260
3363
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3261
3364
      this->name().data(), this->name().length(),
3262
3365
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3265
3368
  }
3266
3369
  
3267
3370
  // optional int32 number = 2;
3268
 
  if (_has_bit(1)) {
 
3371
  if (has_number()) {
3269
3372
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
3270
3373
  }
3271
3374
  
3272
3375
  // optional .google.protobuf.EnumValueOptions options = 3;
3273
 
  if (_has_bit(2)) {
 
3376
  if (has_options()) {
3274
3377
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3275
3378
      3, this->options(), output);
3276
3379
  }
3284
3387
::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
3285
3388
    ::google::protobuf::uint8* target) const {
3286
3389
  // optional string name = 1;
3287
 
  if (_has_bit(0)) {
 
3390
  if (has_name()) {
3288
3391
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3289
3392
      this->name().data(), this->name().length(),
3290
3393
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3294
3397
  }
3295
3398
  
3296
3399
  // optional int32 number = 2;
3297
 
  if (_has_bit(1)) {
 
3400
  if (has_number()) {
3298
3401
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
3299
3402
  }
3300
3403
  
3301
3404
  // optional .google.protobuf.EnumValueOptions options = 3;
3302
 
  if (_has_bit(2)) {
 
3405
  if (has_options()) {
3303
3406
    target = ::google::protobuf::internal::WireFormatLite::
3304
3407
      WriteMessageNoVirtualToArray(
3305
3408
        3, this->options(), target);
3364
3467
void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
3365
3468
  GOOGLE_CHECK_NE(&from, this);
3366
3469
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3367
 
    if (from._has_bit(0)) {
 
3470
    if (from.has_name()) {
3368
3471
      set_name(from.name());
3369
3472
    }
3370
 
    if (from._has_bit(1)) {
 
3473
    if (from.has_number()) {
3371
3474
      set_number(from.number());
3372
3475
    }
3373
 
    if (from._has_bit(2)) {
 
3476
    if (from.has_options()) {
3374
3477
      mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
3375
3478
    }
3376
3479
  }
3419
3522
 
3420
3523
// ===================================================================
3421
3524
 
3422
 
const ::std::string ServiceDescriptorProto::_default_name_;
3423
3525
#ifndef _MSC_VER
3424
3526
const int ServiceDescriptorProto::kNameFieldNumber;
3425
3527
const int ServiceDescriptorProto::kMethodFieldNumber;
3443
3545
 
3444
3546
void ServiceDescriptorProto::SharedCtor() {
3445
3547
  _cached_size_ = 0;
3446
 
  name_ = const_cast< ::std::string*>(&_default_name_);
 
3548
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
3447
3549
  options_ = NULL;
3448
3550
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3449
3551
}
3453
3555
}
3454
3556
 
3455
3557
void ServiceDescriptorProto::SharedDtor() {
3456
 
  if (name_ != &_default_name_) {
 
3558
  if (name_ != &::google::protobuf::internal::kEmptyString) {
3457
3559
    delete name_;
3458
3560
  }
3459
3561
  if (this != default_instance_) {
3483
3585
 
3484
3586
void ServiceDescriptorProto::Clear() {
3485
3587
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3486
 
    if (_has_bit(0)) {
3487
 
      if (name_ != &_default_name_) {
 
3588
    if (has_name()) {
 
3589
      if (name_ != &::google::protobuf::internal::kEmptyString) {
3488
3590
        name_->clear();
3489
3591
      }
3490
3592
    }
3491
 
    if (_has_bit(2)) {
 
3593
    if (has_options()) {
3492
3594
      if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
3493
3595
    }
3494
3596
  }
3567
3669
void ServiceDescriptorProto::SerializeWithCachedSizes(
3568
3670
    ::google::protobuf::io::CodedOutputStream* output) const {
3569
3671
  // optional string name = 1;
3570
 
  if (_has_bit(0)) {
 
3672
  if (has_name()) {
3571
3673
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3572
3674
      this->name().data(), this->name().length(),
3573
3675
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3582
3684
  }
3583
3685
  
3584
3686
  // optional .google.protobuf.ServiceOptions options = 3;
3585
 
  if (_has_bit(2)) {
 
3687
  if (has_options()) {
3586
3688
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3587
3689
      3, this->options(), output);
3588
3690
  }
3596
3698
::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
3597
3699
    ::google::protobuf::uint8* target) const {
3598
3700
  // optional string name = 1;
3599
 
  if (_has_bit(0)) {
 
3701
  if (has_name()) {
3600
3702
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3601
3703
      this->name().data(), this->name().length(),
3602
3704
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3613
3715
  }
3614
3716
  
3615
3717
  // optional .google.protobuf.ServiceOptions options = 3;
3616
 
  if (_has_bit(2)) {
 
3718
  if (has_options()) {
3617
3719
    target = ::google::protobuf::internal::WireFormatLite::
3618
3720
      WriteMessageNoVirtualToArray(
3619
3721
        3, this->options(), target);
3680
3782
  GOOGLE_CHECK_NE(&from, this);
3681
3783
  method_.MergeFrom(from.method_);
3682
3784
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3683
 
    if (from._has_bit(0)) {
 
3785
    if (from.has_name()) {
3684
3786
      set_name(from.name());
3685
3787
    }
3686
 
    if (from._has_bit(2)) {
 
3788
    if (from.has_options()) {
3687
3789
      mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
3688
3790
    }
3689
3791
  }
3735
3837
 
3736
3838
// ===================================================================
3737
3839
 
3738
 
const ::std::string MethodDescriptorProto::_default_name_;
3739
 
const ::std::string MethodDescriptorProto::_default_input_type_;
3740
 
const ::std::string MethodDescriptorProto::_default_output_type_;
3741
3840
#ifndef _MSC_VER
3742
3841
const int MethodDescriptorProto::kNameFieldNumber;
3743
3842
const int MethodDescriptorProto::kInputTypeFieldNumber;
3762
3861
 
3763
3862
void MethodDescriptorProto::SharedCtor() {
3764
3863
  _cached_size_ = 0;
3765
 
  name_ = const_cast< ::std::string*>(&_default_name_);
3766
 
  input_type_ = const_cast< ::std::string*>(&_default_input_type_);
3767
 
  output_type_ = const_cast< ::std::string*>(&_default_output_type_);
 
3864
  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
3865
  input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
3866
  output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
3768
3867
  options_ = NULL;
3769
3868
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3770
3869
}
3774
3873
}
3775
3874
 
3776
3875
void MethodDescriptorProto::SharedDtor() {
3777
 
  if (name_ != &_default_name_) {
 
3876
  if (name_ != &::google::protobuf::internal::kEmptyString) {
3778
3877
    delete name_;
3779
3878
  }
3780
 
  if (input_type_ != &_default_input_type_) {
 
3879
  if (input_type_ != &::google::protobuf::internal::kEmptyString) {
3781
3880
    delete input_type_;
3782
3881
  }
3783
 
  if (output_type_ != &_default_output_type_) {
 
3882
  if (output_type_ != &::google::protobuf::internal::kEmptyString) {
3784
3883
    delete output_type_;
3785
3884
  }
3786
3885
  if (this != default_instance_) {
3810
3909
 
3811
3910
void MethodDescriptorProto::Clear() {
3812
3911
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3813
 
    if (_has_bit(0)) {
3814
 
      if (name_ != &_default_name_) {
 
3912
    if (has_name()) {
 
3913
      if (name_ != &::google::protobuf::internal::kEmptyString) {
3815
3914
        name_->clear();
3816
3915
      }
3817
3916
    }
3818
 
    if (_has_bit(1)) {
3819
 
      if (input_type_ != &_default_input_type_) {
 
3917
    if (has_input_type()) {
 
3918
      if (input_type_ != &::google::protobuf::internal::kEmptyString) {
3820
3919
        input_type_->clear();
3821
3920
      }
3822
3921
    }
3823
 
    if (_has_bit(2)) {
3824
 
      if (output_type_ != &_default_output_type_) {
 
3922
    if (has_output_type()) {
 
3923
      if (output_type_ != &::google::protobuf::internal::kEmptyString) {
3825
3924
        output_type_->clear();
3826
3925
      }
3827
3926
    }
3828
 
    if (_has_bit(3)) {
 
3927
    if (has_options()) {
3829
3928
      if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
3830
3929
    }
3831
3930
  }
3922
4021
void MethodDescriptorProto::SerializeWithCachedSizes(
3923
4022
    ::google::protobuf::io::CodedOutputStream* output) const {
3924
4023
  // optional string name = 1;
3925
 
  if (_has_bit(0)) {
 
4024
  if (has_name()) {
3926
4025
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3927
4026
      this->name().data(), this->name().length(),
3928
4027
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3931
4030
  }
3932
4031
  
3933
4032
  // optional string input_type = 2;
3934
 
  if (_has_bit(1)) {
 
4033
  if (has_input_type()) {
3935
4034
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3936
4035
      this->input_type().data(), this->input_type().length(),
3937
4036
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3940
4039
  }
3941
4040
  
3942
4041
  // optional string output_type = 3;
3943
 
  if (_has_bit(2)) {
 
4042
  if (has_output_type()) {
3944
4043
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3945
4044
      this->output_type().data(), this->output_type().length(),
3946
4045
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3949
4048
  }
3950
4049
  
3951
4050
  // optional .google.protobuf.MethodOptions options = 4;
3952
 
  if (_has_bit(3)) {
 
4051
  if (has_options()) {
3953
4052
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3954
4053
      4, this->options(), output);
3955
4054
  }
3963
4062
::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
3964
4063
    ::google::protobuf::uint8* target) const {
3965
4064
  // optional string name = 1;
3966
 
  if (_has_bit(0)) {
 
4065
  if (has_name()) {
3967
4066
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3968
4067
      this->name().data(), this->name().length(),
3969
4068
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3973
4072
  }
3974
4073
  
3975
4074
  // optional string input_type = 2;
3976
 
  if (_has_bit(1)) {
 
4075
  if (has_input_type()) {
3977
4076
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3978
4077
      this->input_type().data(), this->input_type().length(),
3979
4078
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3983
4082
  }
3984
4083
  
3985
4084
  // optional string output_type = 3;
3986
 
  if (_has_bit(2)) {
 
4085
  if (has_output_type()) {
3987
4086
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3988
4087
      this->output_type().data(), this->output_type().length(),
3989
4088
      ::google::protobuf::internal::WireFormat::SERIALIZE);
3993
4092
  }
3994
4093
  
3995
4094
  // optional .google.protobuf.MethodOptions options = 4;
3996
 
  if (_has_bit(3)) {
 
4095
  if (has_options()) {
3997
4096
    target = ::google::protobuf::internal::WireFormatLite::
3998
4097
      WriteMessageNoVirtualToArray(
3999
4098
        4, this->options(), target);
4065
4164
void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
4066
4165
  GOOGLE_CHECK_NE(&from, this);
4067
4166
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4068
 
    if (from._has_bit(0)) {
 
4167
    if (from.has_name()) {
4069
4168
      set_name(from.name());
4070
4169
    }
4071
 
    if (from._has_bit(1)) {
 
4170
    if (from.has_input_type()) {
4072
4171
      set_input_type(from.input_type());
4073
4172
    }
4074
 
    if (from._has_bit(2)) {
 
4173
    if (from.has_output_type()) {
4075
4174
      set_output_type(from.output_type());
4076
4175
    }
4077
 
    if (from._has_bit(3)) {
 
4176
    if (from.has_options()) {
4078
4177
      mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
4079
4178
    }
4080
4179
  }
4147
4246
const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
4148
4247
const int FileOptions::OptimizeMode_ARRAYSIZE;
4149
4248
#endif  // _MSC_VER
4150
 
const ::std::string FileOptions::_default_java_package_;
4151
 
const ::std::string FileOptions::_default_java_outer_classname_;
4152
4249
#ifndef _MSC_VER
4153
4250
const int FileOptions::kJavaPackageFieldNumber;
4154
4251
const int FileOptions::kJavaOuterClassnameFieldNumber;
4155
4252
const int FileOptions::kJavaMultipleFilesFieldNumber;
 
4253
const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
4156
4254
const int FileOptions::kOptimizeForFieldNumber;
4157
4255
const int FileOptions::kCcGenericServicesFieldNumber;
4158
4256
const int FileOptions::kJavaGenericServicesFieldNumber;
4176
4274
 
4177
4275
void FileOptions::SharedCtor() {
4178
4276
  _cached_size_ = 0;
4179
 
  java_package_ = const_cast< ::std::string*>(&_default_java_package_);
4180
 
  java_outer_classname_ = const_cast< ::std::string*>(&_default_java_outer_classname_);
 
4277
  java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
4278
  java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
4181
4279
  java_multiple_files_ = false;
 
4280
  java_generate_equals_and_hash_ = false;
4182
4281
  optimize_for_ = 1;
4183
 
  cc_generic_services_ = true;
4184
 
  java_generic_services_ = true;
4185
 
  py_generic_services_ = true;
 
4282
  cc_generic_services_ = false;
 
4283
  java_generic_services_ = false;
 
4284
  py_generic_services_ = false;
4186
4285
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4187
4286
}
4188
4287
 
4191
4290
}
4192
4291
 
4193
4292
void FileOptions::SharedDtor() {
4194
 
  if (java_package_ != &_default_java_package_) {
 
4293
  if (java_package_ != &::google::protobuf::internal::kEmptyString) {
4195
4294
    delete java_package_;
4196
4295
  }
4197
 
  if (java_outer_classname_ != &_default_java_outer_classname_) {
 
4296
  if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) {
4198
4297
    delete java_outer_classname_;
4199
4298
  }
4200
4299
  if (this != default_instance_) {
4224
4323
void FileOptions::Clear() {
4225
4324
  _extensions_.Clear();
4226
4325
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4227
 
    if (_has_bit(0)) {
4228
 
      if (java_package_ != &_default_java_package_) {
 
4326
    if (has_java_package()) {
 
4327
      if (java_package_ != &::google::protobuf::internal::kEmptyString) {
4229
4328
        java_package_->clear();
4230
4329
      }
4231
4330
    }
4232
 
    if (_has_bit(1)) {
4233
 
      if (java_outer_classname_ != &_default_java_outer_classname_) {
 
4331
    if (has_java_outer_classname()) {
 
4332
      if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) {
4234
4333
        java_outer_classname_->clear();
4235
4334
      }
4236
4335
    }
4237
4336
    java_multiple_files_ = false;
 
4337
    java_generate_equals_and_hash_ = false;
4238
4338
    optimize_for_ = 1;
4239
 
    cc_generic_services_ = true;
4240
 
    java_generic_services_ = true;
4241
 
    py_generic_services_ = true;
 
4339
    cc_generic_services_ = false;
 
4340
    java_generic_services_ = false;
 
4341
    py_generic_services_ = false;
4242
4342
  }
4243
4343
  uninterpreted_option_.Clear();
4244
4344
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4313
4413
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4314
4414
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4315
4415
                 input, &java_multiple_files_)));
4316
 
          _set_bit(2);
 
4416
          set_has_java_multiple_files();
4317
4417
        } else {
4318
4418
          goto handle_uninterpreted;
4319
4419
        }
4321
4421
        break;
4322
4422
      }
4323
4423
      
4324
 
      // optional bool cc_generic_services = 16 [default = true];
 
4424
      // optional bool cc_generic_services = 16 [default = false];
4325
4425
      case 16: {
4326
4426
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4327
4427
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4329
4429
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4330
4430
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4331
4431
                 input, &cc_generic_services_)));
4332
 
          _set_bit(4);
 
4432
          set_has_cc_generic_services();
4333
4433
        } else {
4334
4434
          goto handle_uninterpreted;
4335
4435
        }
4337
4437
        break;
4338
4438
      }
4339
4439
      
4340
 
      // optional bool java_generic_services = 17 [default = true];
 
4440
      // optional bool java_generic_services = 17 [default = false];
4341
4441
      case 17: {
4342
4442
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4343
4443
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4345
4445
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4346
4446
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4347
4447
                 input, &java_generic_services_)));
4348
 
          _set_bit(5);
 
4448
          set_has_java_generic_services();
4349
4449
        } else {
4350
4450
          goto handle_uninterpreted;
4351
4451
        }
4353
4453
        break;
4354
4454
      }
4355
4455
      
4356
 
      // optional bool py_generic_services = 18 [default = true];
 
4456
      // optional bool py_generic_services = 18 [default = false];
4357
4457
      case 18: {
4358
4458
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4359
4459
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4361
4461
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4362
4462
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4363
4463
                 input, &py_generic_services_)));
4364
 
          _set_bit(6);
 
4464
          set_has_py_generic_services();
 
4465
        } else {
 
4466
          goto handle_uninterpreted;
 
4467
        }
 
4468
        if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
 
4469
        break;
 
4470
      }
 
4471
      
 
4472
      // optional bool java_generate_equals_and_hash = 20 [default = false];
 
4473
      case 20: {
 
4474
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
4475
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
 
4476
         parse_java_generate_equals_and_hash:
 
4477
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
 
4478
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
 
4479
                 input, &java_generate_equals_and_hash_)));
 
4480
          set_has_java_generate_equals_and_hash();
4365
4481
        } else {
4366
4482
          goto handle_uninterpreted;
4367
4483
        }
4408
4524
void FileOptions::SerializeWithCachedSizes(
4409
4525
    ::google::protobuf::io::CodedOutputStream* output) const {
4410
4526
  // optional string java_package = 1;
4411
 
  if (_has_bit(0)) {
 
4527
  if (has_java_package()) {
4412
4528
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4413
4529
      this->java_package().data(), this->java_package().length(),
4414
4530
      ::google::protobuf::internal::WireFormat::SERIALIZE);
4417
4533
  }
4418
4534
  
4419
4535
  // optional string java_outer_classname = 8;
4420
 
  if (_has_bit(1)) {
 
4536
  if (has_java_outer_classname()) {
4421
4537
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4422
4538
      this->java_outer_classname().data(), this->java_outer_classname().length(),
4423
4539
      ::google::protobuf::internal::WireFormat::SERIALIZE);
4426
4542
  }
4427
4543
  
4428
4544
  // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4429
 
  if (_has_bit(3)) {
 
4545
  if (has_optimize_for()) {
4430
4546
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
4431
4547
      9, this->optimize_for(), output);
4432
4548
  }
4433
4549
  
4434
4550
  // optional bool java_multiple_files = 10 [default = false];
4435
 
  if (_has_bit(2)) {
 
4551
  if (has_java_multiple_files()) {
4436
4552
    ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
4437
4553
  }
4438
4554
  
4439
 
  // optional bool cc_generic_services = 16 [default = true];
4440
 
  if (_has_bit(4)) {
 
4555
  // optional bool cc_generic_services = 16 [default = false];
 
4556
  if (has_cc_generic_services()) {
4441
4557
    ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
4442
4558
  }
4443
4559
  
4444
 
  // optional bool java_generic_services = 17 [default = true];
4445
 
  if (_has_bit(5)) {
 
4560
  // optional bool java_generic_services = 17 [default = false];
 
4561
  if (has_java_generic_services()) {
4446
4562
    ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
4447
4563
  }
4448
4564
  
4449
 
  // optional bool py_generic_services = 18 [default = true];
4450
 
  if (_has_bit(6)) {
 
4565
  // optional bool py_generic_services = 18 [default = false];
 
4566
  if (has_py_generic_services()) {
4451
4567
    ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
4452
4568
  }
4453
4569
  
 
4570
  // optional bool java_generate_equals_and_hash = 20 [default = false];
 
4571
  if (has_java_generate_equals_and_hash()) {
 
4572
    ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
 
4573
  }
 
4574
  
4454
4575
  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4455
4576
  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4456
4577
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4470
4591
::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
4471
4592
    ::google::protobuf::uint8* target) const {
4472
4593
  // optional string java_package = 1;
4473
 
  if (_has_bit(0)) {
 
4594
  if (has_java_package()) {
4474
4595
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4475
4596
      this->java_package().data(), this->java_package().length(),
4476
4597
      ::google::protobuf::internal::WireFormat::SERIALIZE);
4480
4601
  }
4481
4602
  
4482
4603
  // optional string java_outer_classname = 8;
4483
 
  if (_has_bit(1)) {
 
4604
  if (has_java_outer_classname()) {
4484
4605
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4485
4606
      this->java_outer_classname().data(), this->java_outer_classname().length(),
4486
4607
      ::google::protobuf::internal::WireFormat::SERIALIZE);
4490
4611
  }
4491
4612
  
4492
4613
  // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4493
 
  if (_has_bit(3)) {
 
4614
  if (has_optimize_for()) {
4494
4615
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4495
4616
      9, this->optimize_for(), target);
4496
4617
  }
4497
4618
  
4498
4619
  // optional bool java_multiple_files = 10 [default = false];
4499
 
  if (_has_bit(2)) {
 
4620
  if (has_java_multiple_files()) {
4500
4621
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
4501
4622
  }
4502
4623
  
4503
 
  // optional bool cc_generic_services = 16 [default = true];
4504
 
  if (_has_bit(4)) {
 
4624
  // optional bool cc_generic_services = 16 [default = false];
 
4625
  if (has_cc_generic_services()) {
4505
4626
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
4506
4627
  }
4507
4628
  
4508
 
  // optional bool java_generic_services = 17 [default = true];
4509
 
  if (_has_bit(5)) {
 
4629
  // optional bool java_generic_services = 17 [default = false];
 
4630
  if (has_java_generic_services()) {
4510
4631
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
4511
4632
  }
4512
4633
  
4513
 
  // optional bool py_generic_services = 18 [default = true];
4514
 
  if (_has_bit(6)) {
 
4634
  // optional bool py_generic_services = 18 [default = false];
 
4635
  if (has_py_generic_services()) {
4515
4636
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
4516
4637
  }
4517
4638
  
 
4639
  // optional bool java_generate_equals_and_hash = 20 [default = false];
 
4640
  if (has_java_generate_equals_and_hash()) {
 
4641
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
 
4642
  }
 
4643
  
4518
4644
  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4519
4645
  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4520
4646
    target = ::google::protobuf::internal::WireFormatLite::
4556
4682
      total_size += 1 + 1;
4557
4683
    }
4558
4684
    
 
4685
    // optional bool java_generate_equals_and_hash = 20 [default = false];
 
4686
    if (has_java_generate_equals_and_hash()) {
 
4687
      total_size += 2 + 1;
 
4688
    }
 
4689
    
4559
4690
    // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4560
4691
    if (has_optimize_for()) {
4561
4692
      total_size += 1 +
4562
4693
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
4563
4694
    }
4564
4695
    
4565
 
    // optional bool cc_generic_services = 16 [default = true];
 
4696
    // optional bool cc_generic_services = 16 [default = false];
4566
4697
    if (has_cc_generic_services()) {
4567
4698
      total_size += 2 + 1;
4568
4699
    }
4569
4700
    
4570
 
    // optional bool java_generic_services = 17 [default = true];
 
4701
    // optional bool java_generic_services = 17 [default = false];
4571
4702
    if (has_java_generic_services()) {
4572
4703
      total_size += 2 + 1;
4573
4704
    }
4574
4705
    
4575
 
    // optional bool py_generic_services = 18 [default = true];
 
4706
    // optional bool py_generic_services = 18 [default = false];
4576
4707
    if (has_py_generic_services()) {
4577
4708
      total_size += 2 + 1;
4578
4709
    }
4615
4746
  GOOGLE_CHECK_NE(&from, this);
4616
4747
  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
4617
4748
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4618
 
    if (from._has_bit(0)) {
 
4749
    if (from.has_java_package()) {
4619
4750
      set_java_package(from.java_package());
4620
4751
    }
4621
 
    if (from._has_bit(1)) {
 
4752
    if (from.has_java_outer_classname()) {
4622
4753
      set_java_outer_classname(from.java_outer_classname());
4623
4754
    }
4624
 
    if (from._has_bit(2)) {
 
4755
    if (from.has_java_multiple_files()) {
4625
4756
      set_java_multiple_files(from.java_multiple_files());
4626
4757
    }
4627
 
    if (from._has_bit(3)) {
 
4758
    if (from.has_java_generate_equals_and_hash()) {
 
4759
      set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
 
4760
    }
 
4761
    if (from.has_optimize_for()) {
4628
4762
      set_optimize_for(from.optimize_for());
4629
4763
    }
4630
 
    if (from._has_bit(4)) {
 
4764
    if (from.has_cc_generic_services()) {
4631
4765
      set_cc_generic_services(from.cc_generic_services());
4632
4766
    }
4633
 
    if (from._has_bit(5)) {
 
4767
    if (from.has_java_generic_services()) {
4634
4768
      set_java_generic_services(from.java_generic_services());
4635
4769
    }
4636
 
    if (from._has_bit(6)) {
 
4770
    if (from.has_py_generic_services()) {
4637
4771
      set_py_generic_services(from.py_generic_services());
4638
4772
    }
4639
4773
  }
4667
4801
    std::swap(java_package_, other->java_package_);
4668
4802
    std::swap(java_outer_classname_, other->java_outer_classname_);
4669
4803
    std::swap(java_multiple_files_, other->java_multiple_files_);
 
4804
    std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
4670
4805
    std::swap(optimize_for_, other->optimize_for_);
4671
4806
    std::swap(cc_generic_services_, other->cc_generic_services_);
4672
4807
    std::swap(java_generic_services_, other->java_generic_services_);
4770
4905
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4771
4906
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4772
4907
                 input, &message_set_wire_format_)));
4773
 
          _set_bit(0);
 
4908
          set_has_message_set_wire_format();
4774
4909
        } else {
4775
4910
          goto handle_uninterpreted;
4776
4911
        }
4786
4921
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4787
4922
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4788
4923
                 input, &no_standard_descriptor_accessor_)));
4789
 
          _set_bit(1);
 
4924
          set_has_no_standard_descriptor_accessor();
4790
4925
        } else {
4791
4926
          goto handle_uninterpreted;
4792
4927
        }
4833
4968
void MessageOptions::SerializeWithCachedSizes(
4834
4969
    ::google::protobuf::io::CodedOutputStream* output) const {
4835
4970
  // optional bool message_set_wire_format = 1 [default = false];
4836
 
  if (_has_bit(0)) {
 
4971
  if (has_message_set_wire_format()) {
4837
4972
    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
4838
4973
  }
4839
4974
  
4840
4975
  // optional bool no_standard_descriptor_accessor = 2 [default = false];
4841
 
  if (_has_bit(1)) {
 
4976
  if (has_no_standard_descriptor_accessor()) {
4842
4977
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
4843
4978
  }
4844
4979
  
4861
4996
::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
4862
4997
    ::google::protobuf::uint8* target) const {
4863
4998
  // optional bool message_set_wire_format = 1 [default = false];
4864
 
  if (_has_bit(0)) {
 
4999
  if (has_message_set_wire_format()) {
4865
5000
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
4866
5001
  }
4867
5002
  
4868
5003
  // optional bool no_standard_descriptor_accessor = 2 [default = false];
4869
 
  if (_has_bit(1)) {
 
5004
  if (has_no_standard_descriptor_accessor()) {
4870
5005
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
4871
5006
  }
4872
5007
  
4940
5075
  GOOGLE_CHECK_NE(&from, this);
4941
5076
  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
4942
5077
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4943
 
    if (from._has_bit(0)) {
 
5078
    if (from.has_message_set_wire_format()) {
4944
5079
      set_message_set_wire_format(from.message_set_wire_format());
4945
5080
    }
4946
 
    if (from._has_bit(1)) {
 
5081
    if (from.has_no_standard_descriptor_accessor()) {
4947
5082
      set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
4948
5083
    }
4949
5084
  }
5018
5153
const FieldOptions_CType FieldOptions::CType_MAX;
5019
5154
const int FieldOptions::CType_ARRAYSIZE;
5020
5155
#endif  // _MSC_VER
5021
 
const ::std::string FieldOptions::_default_experimental_map_key_;
5022
5156
#ifndef _MSC_VER
5023
5157
const int FieldOptions::kCtypeFieldNumber;
5024
5158
const int FieldOptions::kPackedFieldNumber;
5046
5180
  ctype_ = 0;
5047
5181
  packed_ = false;
5048
5182
  deprecated_ = false;
5049
 
  experimental_map_key_ = const_cast< ::std::string*>(&_default_experimental_map_key_);
 
5183
  experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
5050
5184
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5051
5185
}
5052
5186
 
5055
5189
}
5056
5190
 
5057
5191
void FieldOptions::SharedDtor() {
5058
 
  if (experimental_map_key_ != &_default_experimental_map_key_) {
 
5192
  if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) {
5059
5193
    delete experimental_map_key_;
5060
5194
  }
5061
5195
  if (this != default_instance_) {
5088
5222
    ctype_ = 0;
5089
5223
    packed_ = false;
5090
5224
    deprecated_ = false;
5091
 
    if (_has_bit(3)) {
5092
 
      if (experimental_map_key_ != &_default_experimental_map_key_) {
 
5225
    if (has_experimental_map_key()) {
 
5226
      if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) {
5093
5227
        experimental_map_key_->clear();
5094
5228
      }
5095
5229
    }
5133
5267
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5134
5268
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5135
5269
                 input, &packed_)));
5136
 
          _set_bit(1);
 
5270
          set_has_packed();
5137
5271
        } else {
5138
5272
          goto handle_uninterpreted;
5139
5273
        }
5149
5283
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5150
5284
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5151
5285
                 input, &deprecated_)));
5152
 
          _set_bit(2);
 
5286
          set_has_deprecated();
5153
5287
        } else {
5154
5288
          goto handle_uninterpreted;
5155
5289
        }
5213
5347
void FieldOptions::SerializeWithCachedSizes(
5214
5348
    ::google::protobuf::io::CodedOutputStream* output) const {
5215
5349
  // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5216
 
  if (_has_bit(0)) {
 
5350
  if (has_ctype()) {
5217
5351
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5218
5352
      1, this->ctype(), output);
5219
5353
  }
5220
5354
  
5221
5355
  // optional bool packed = 2;
5222
 
  if (_has_bit(1)) {
 
5356
  if (has_packed()) {
5223
5357
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
5224
5358
  }
5225
5359
  
5226
5360
  // optional bool deprecated = 3 [default = false];
5227
 
  if (_has_bit(2)) {
 
5361
  if (has_deprecated()) {
5228
5362
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
5229
5363
  }
5230
5364
  
5231
5365
  // optional string experimental_map_key = 9;
5232
 
  if (_has_bit(3)) {
 
5366
  if (has_experimental_map_key()) {
5233
5367
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5234
5368
      this->experimental_map_key().data(), this->experimental_map_key().length(),
5235
5369
      ::google::protobuf::internal::WireFormat::SERIALIZE);
5256
5390
::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
5257
5391
    ::google::protobuf::uint8* target) const {
5258
5392
  // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5259
 
  if (_has_bit(0)) {
 
5393
  if (has_ctype()) {
5260
5394
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5261
5395
      1, this->ctype(), target);
5262
5396
  }
5263
5397
  
5264
5398
  // optional bool packed = 2;
5265
 
  if (_has_bit(1)) {
 
5399
  if (has_packed()) {
5266
5400
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
5267
5401
  }
5268
5402
  
5269
5403
  // optional bool deprecated = 3 [default = false];
5270
 
  if (_has_bit(2)) {
 
5404
  if (has_deprecated()) {
5271
5405
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
5272
5406
  }
5273
5407
  
5274
5408
  // optional string experimental_map_key = 9;
5275
 
  if (_has_bit(3)) {
 
5409
  if (has_experimental_map_key()) {
5276
5410
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5277
5411
      this->experimental_map_key().data(), this->experimental_map_key().length(),
5278
5412
      ::google::protobuf::internal::WireFormat::SERIALIZE);
5364
5498
  GOOGLE_CHECK_NE(&from, this);
5365
5499
  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5366
5500
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5367
 
    if (from._has_bit(0)) {
 
5501
    if (from.has_ctype()) {
5368
5502
      set_ctype(from.ctype());
5369
5503
    }
5370
 
    if (from._has_bit(1)) {
 
5504
    if (from.has_packed()) {
5371
5505
      set_packed(from.packed());
5372
5506
    }
5373
 
    if (from._has_bit(2)) {
 
5507
    if (from.has_deprecated()) {
5374
5508
      set_deprecated(from.deprecated());
5375
5509
    }
5376
 
    if (from._has_bit(3)) {
 
5510
    if (from.has_experimental_map_key()) {
5377
5511
      set_experimental_map_key(from.experimental_map_key());
5378
5512
    }
5379
5513
  }
6323
6457
 
6324
6458
// ===================================================================
6325
6459
 
6326
 
const ::std::string UninterpretedOption_NamePart::_default_name_part_;
6327
6460
#ifndef _MSC_VER
6328
6461
const int UninterpretedOption_NamePart::kNamePartFieldNumber;
6329
6462
const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
6345
6478
 
6346
6479
void UninterpretedOption_NamePart::SharedCtor() {
6347
6480
  _cached_size_ = 0;
6348
 
  name_part_ = const_cast< ::std::string*>(&_default_name_part_);
 
6481
  name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
6349
6482
  is_extension_ = false;
6350
6483
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6351
6484
}
6355
6488
}
6356
6489
 
6357
6490
void UninterpretedOption_NamePart::SharedDtor() {
6358
 
  if (name_part_ != &_default_name_part_) {
 
6491
  if (name_part_ != &::google::protobuf::internal::kEmptyString) {
6359
6492
    delete name_part_;
6360
6493
  }
6361
6494
  if (this != default_instance_) {
6384
6517
 
6385
6518
void UninterpretedOption_NamePart::Clear() {
6386
6519
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6387
 
    if (_has_bit(0)) {
6388
 
      if (name_part_ != &_default_name_part_) {
 
6520
    if (has_name_part()) {
 
6521
      if (name_part_ != &::google::protobuf::internal::kEmptyString) {
6389
6522
        name_part_->clear();
6390
6523
      }
6391
6524
    }
6425
6558
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6426
6559
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6427
6560
                 input, &is_extension_)));
6428
 
          _set_bit(1);
 
6561
          set_has_is_extension();
6429
6562
        } else {
6430
6563
          goto handle_uninterpreted;
6431
6564
        }
6452
6585
void UninterpretedOption_NamePart::SerializeWithCachedSizes(
6453
6586
    ::google::protobuf::io::CodedOutputStream* output) const {
6454
6587
  // required string name_part = 1;
6455
 
  if (_has_bit(0)) {
 
6588
  if (has_name_part()) {
6456
6589
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6457
6590
      this->name_part().data(), this->name_part().length(),
6458
6591
      ::google::protobuf::internal::WireFormat::SERIALIZE);
6461
6594
  }
6462
6595
  
6463
6596
  // required bool is_extension = 2;
6464
 
  if (_has_bit(1)) {
 
6597
  if (has_is_extension()) {
6465
6598
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
6466
6599
  }
6467
6600
  
6474
6607
::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
6475
6608
    ::google::protobuf::uint8* target) const {
6476
6609
  // required string name_part = 1;
6477
 
  if (_has_bit(0)) {
 
6610
  if (has_name_part()) {
6478
6611
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6479
6612
      this->name_part().data(), this->name_part().length(),
6480
6613
      ::google::protobuf::internal::WireFormat::SERIALIZE);
6484
6617
  }
6485
6618
  
6486
6619
  // required bool is_extension = 2;
6487
 
  if (_has_bit(1)) {
 
6620
  if (has_is_extension()) {
6488
6621
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
6489
6622
  }
6490
6623
  
6538
6671
void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
6539
6672
  GOOGLE_CHECK_NE(&from, this);
6540
6673
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6541
 
    if (from._has_bit(0)) {
 
6674
    if (from.has_name_part()) {
6542
6675
      set_name_part(from.name_part());
6543
6676
    }
6544
 
    if (from._has_bit(1)) {
 
6677
    if (from.has_is_extension()) {
6545
6678
      set_is_extension(from.is_extension());
6546
6679
    }
6547
6680
  }
6587
6720
 
6588
6721
// -------------------------------------------------------------------
6589
6722
 
6590
 
const ::std::string UninterpretedOption::_default_identifier_value_;
6591
 
const ::std::string UninterpretedOption::_default_string_value_;
6592
6723
#ifndef _MSC_VER
6593
6724
const int UninterpretedOption::kNameFieldNumber;
6594
6725
const int UninterpretedOption::kIdentifierValueFieldNumber;
6596
6727
const int UninterpretedOption::kNegativeIntValueFieldNumber;
6597
6728
const int UninterpretedOption::kDoubleValueFieldNumber;
6598
6729
const int UninterpretedOption::kStringValueFieldNumber;
 
6730
const int UninterpretedOption::kAggregateValueFieldNumber;
6599
6731
#endif  // !_MSC_VER
6600
6732
 
6601
6733
UninterpretedOption::UninterpretedOption()
6614
6746
 
6615
6747
void UninterpretedOption::SharedCtor() {
6616
6748
  _cached_size_ = 0;
6617
 
  identifier_value_ = const_cast< ::std::string*>(&_default_identifier_value_);
 
6749
  identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
6618
6750
  positive_int_value_ = GOOGLE_ULONGLONG(0);
6619
6751
  negative_int_value_ = GOOGLE_LONGLONG(0);
6620
6752
  double_value_ = 0;
6621
 
  string_value_ = const_cast< ::std::string*>(&_default_string_value_);
 
6753
  string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
 
6754
  aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
6622
6755
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6623
6756
}
6624
6757
 
6627
6760
}
6628
6761
 
6629
6762
void UninterpretedOption::SharedDtor() {
6630
 
  if (identifier_value_ != &_default_identifier_value_) {
 
6763
  if (identifier_value_ != &::google::protobuf::internal::kEmptyString) {
6631
6764
    delete identifier_value_;
6632
6765
  }
6633
 
  if (string_value_ != &_default_string_value_) {
 
6766
  if (string_value_ != &::google::protobuf::internal::kEmptyString) {
6634
6767
    delete string_value_;
6635
6768
  }
 
6769
  if (aggregate_value_ != &::google::protobuf::internal::kEmptyString) {
 
6770
    delete aggregate_value_;
 
6771
  }
6636
6772
  if (this != default_instance_) {
6637
6773
  }
6638
6774
}
6659
6795
 
6660
6796
void UninterpretedOption::Clear() {
6661
6797
  if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
6662
 
    if (_has_bit(1)) {
6663
 
      if (identifier_value_ != &_default_identifier_value_) {
 
6798
    if (has_identifier_value()) {
 
6799
      if (identifier_value_ != &::google::protobuf::internal::kEmptyString) {
6664
6800
        identifier_value_->clear();
6665
6801
      }
6666
6802
    }
6667
6803
    positive_int_value_ = GOOGLE_ULONGLONG(0);
6668
6804
    negative_int_value_ = GOOGLE_LONGLONG(0);
6669
6805
    double_value_ = 0;
6670
 
    if (_has_bit(5)) {
6671
 
      if (string_value_ != &_default_string_value_) {
 
6806
    if (has_string_value()) {
 
6807
      if (string_value_ != &::google::protobuf::internal::kEmptyString) {
6672
6808
        string_value_->clear();
6673
6809
      }
6674
6810
    }
 
6811
    if (has_aggregate_value()) {
 
6812
      if (aggregate_value_ != &::google::protobuf::internal::kEmptyString) {
 
6813
        aggregate_value_->clear();
 
6814
      }
 
6815
    }
6675
6816
  }
6676
6817
  name_.Clear();
6677
6818
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6724
6865
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6725
6866
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6726
6867
                 input, &positive_int_value_)));
6727
 
          _set_bit(2);
 
6868
          set_has_positive_int_value();
6728
6869
        } else {
6729
6870
          goto handle_uninterpreted;
6730
6871
        }
6740
6881
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6741
6882
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6742
6883
                 input, &negative_int_value_)));
6743
 
          _set_bit(3);
 
6884
          set_has_negative_int_value();
6744
6885
        } else {
6745
6886
          goto handle_uninterpreted;
6746
6887
        }
6756
6897
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6757
6898
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
6758
6899
                 input, &double_value_)));
6759
 
          _set_bit(4);
 
6900
          set_has_double_value();
6760
6901
        } else {
6761
6902
          goto handle_uninterpreted;
6762
6903
        }
6774
6915
        } else {
6775
6916
          goto handle_uninterpreted;
6776
6917
        }
 
6918
        if (input->ExpectTag(66)) goto parse_aggregate_value;
 
6919
        break;
 
6920
      }
 
6921
      
 
6922
      // optional string aggregate_value = 8;
 
6923
      case 8: {
 
6924
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
6925
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
 
6926
         parse_aggregate_value:
 
6927
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
 
6928
                input, this->mutable_aggregate_value()));
 
6929
          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
 
6930
            this->aggregate_value().data(), this->aggregate_value().length(),
 
6931
            ::google::protobuf::internal::WireFormat::PARSE);
 
6932
        } else {
 
6933
          goto handle_uninterpreted;
 
6934
        }
6777
6935
        if (input->ExpectAtEnd()) return true;
6778
6936
        break;
6779
6937
      }
6803
6961
  }
6804
6962
  
6805
6963
  // optional string identifier_value = 3;
6806
 
  if (_has_bit(1)) {
 
6964
  if (has_identifier_value()) {
6807
6965
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6808
6966
      this->identifier_value().data(), this->identifier_value().length(),
6809
6967
      ::google::protobuf::internal::WireFormat::SERIALIZE);
6812
6970
  }
6813
6971
  
6814
6972
  // optional uint64 positive_int_value = 4;
6815
 
  if (_has_bit(2)) {
 
6973
  if (has_positive_int_value()) {
6816
6974
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
6817
6975
  }
6818
6976
  
6819
6977
  // optional int64 negative_int_value = 5;
6820
 
  if (_has_bit(3)) {
 
6978
  if (has_negative_int_value()) {
6821
6979
    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
6822
6980
  }
6823
6981
  
6824
6982
  // optional double double_value = 6;
6825
 
  if (_has_bit(4)) {
 
6983
  if (has_double_value()) {
6826
6984
    ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
6827
6985
  }
6828
6986
  
6829
6987
  // optional bytes string_value = 7;
6830
 
  if (_has_bit(5)) {
 
6988
  if (has_string_value()) {
6831
6989
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
6832
6990
      7, this->string_value(), output);
6833
6991
  }
6834
6992
  
 
6993
  // optional string aggregate_value = 8;
 
6994
  if (has_aggregate_value()) {
 
6995
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
 
6996
      this->aggregate_value().data(), this->aggregate_value().length(),
 
6997
      ::google::protobuf::internal::WireFormat::SERIALIZE);
 
6998
    ::google::protobuf::internal::WireFormatLite::WriteString(
 
6999
      8, this->aggregate_value(), output);
 
7000
  }
 
7001
  
6835
7002
  if (!unknown_fields().empty()) {
6836
7003
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6837
7004
        unknown_fields(), output);
6848
7015
  }
6849
7016
  
6850
7017
  // optional string identifier_value = 3;
6851
 
  if (_has_bit(1)) {
 
7018
  if (has_identifier_value()) {
6852
7019
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6853
7020
      this->identifier_value().data(), this->identifier_value().length(),
6854
7021
      ::google::protobuf::internal::WireFormat::SERIALIZE);
6858
7025
  }
6859
7026
  
6860
7027
  // optional uint64 positive_int_value = 4;
6861
 
  if (_has_bit(2)) {
 
7028
  if (has_positive_int_value()) {
6862
7029
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
6863
7030
  }
6864
7031
  
6865
7032
  // optional int64 negative_int_value = 5;
6866
 
  if (_has_bit(3)) {
 
7033
  if (has_negative_int_value()) {
6867
7034
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
6868
7035
  }
6869
7036
  
6870
7037
  // optional double double_value = 6;
6871
 
  if (_has_bit(4)) {
 
7038
  if (has_double_value()) {
6872
7039
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
6873
7040
  }
6874
7041
  
6875
7042
  // optional bytes string_value = 7;
6876
 
  if (_has_bit(5)) {
 
7043
  if (has_string_value()) {
6877
7044
    target =
6878
7045
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6879
7046
        7, this->string_value(), target);
6880
7047
  }
6881
7048
  
 
7049
  // optional string aggregate_value = 8;
 
7050
  if (has_aggregate_value()) {
 
7051
    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
 
7052
      this->aggregate_value().data(), this->aggregate_value().length(),
 
7053
      ::google::protobuf::internal::WireFormat::SERIALIZE);
 
7054
    target =
 
7055
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
 
7056
        8, this->aggregate_value(), target);
 
7057
  }
 
7058
  
6882
7059
  if (!unknown_fields().empty()) {
6883
7060
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6884
7061
        unknown_fields(), target);
6923
7100
          this->string_value());
6924
7101
    }
6925
7102
    
 
7103
    // optional string aggregate_value = 8;
 
7104
    if (has_aggregate_value()) {
 
7105
      total_size += 1 +
 
7106
        ::google::protobuf::internal::WireFormatLite::StringSize(
 
7107
          this->aggregate_value());
 
7108
    }
 
7109
    
6926
7110
  }
6927
7111
  // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
6928
7112
  total_size += 1 * this->name_size();
6959
7143
  GOOGLE_CHECK_NE(&from, this);
6960
7144
  name_.MergeFrom(from.name_);
6961
7145
  if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
6962
 
    if (from._has_bit(1)) {
 
7146
    if (from.has_identifier_value()) {
6963
7147
      set_identifier_value(from.identifier_value());
6964
7148
    }
6965
 
    if (from._has_bit(2)) {
 
7149
    if (from.has_positive_int_value()) {
6966
7150
      set_positive_int_value(from.positive_int_value());
6967
7151
    }
6968
 
    if (from._has_bit(3)) {
 
7152
    if (from.has_negative_int_value()) {
6969
7153
      set_negative_int_value(from.negative_int_value());
6970
7154
    }
6971
 
    if (from._has_bit(4)) {
 
7155
    if (from.has_double_value()) {
6972
7156
      set_double_value(from.double_value());
6973
7157
    }
6974
 
    if (from._has_bit(5)) {
 
7158
    if (from.has_string_value()) {
6975
7159
      set_string_value(from.string_value());
6976
7160
    }
 
7161
    if (from.has_aggregate_value()) {
 
7162
      set_aggregate_value(from.aggregate_value());
 
7163
    }
6977
7164
  }
6978
7165
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6979
7166
}
7006
7193
    std::swap(negative_int_value_, other->negative_int_value_);
7007
7194
    std::swap(double_value_, other->double_value_);
7008
7195
    std::swap(string_value_, other->string_value_);
 
7196
    std::swap(aggregate_value_, other->aggregate_value_);
7009
7197
    std::swap(_has_bits_[0], other->_has_bits_[0]);
7010
7198
    _unknown_fields_.Swap(&other->_unknown_fields_);
7011
7199
    std::swap(_cached_size_, other->_cached_size_);
7021
7209
}
7022
7210
 
7023
7211
 
 
7212
// ===================================================================
 
7213
 
 
7214
#ifndef _MSC_VER
 
7215
const int SourceCodeInfo_Location::kPathFieldNumber;
 
7216
const int SourceCodeInfo_Location::kSpanFieldNumber;
 
7217
#endif  // !_MSC_VER
 
7218
 
 
7219
SourceCodeInfo_Location::SourceCodeInfo_Location()
 
7220
  : ::google::protobuf::Message() {
 
7221
  SharedCtor();
 
7222
}
 
7223
 
 
7224
void SourceCodeInfo_Location::InitAsDefaultInstance() {
 
7225
}
 
7226
 
 
7227
SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
 
7228
  : ::google::protobuf::Message() {
 
7229
  SharedCtor();
 
7230
  MergeFrom(from);
 
7231
}
 
7232
 
 
7233
void SourceCodeInfo_Location::SharedCtor() {
 
7234
  _cached_size_ = 0;
 
7235
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
 
7236
}
 
7237
 
 
7238
SourceCodeInfo_Location::~SourceCodeInfo_Location() {
 
7239
  SharedDtor();
 
7240
}
 
7241
 
 
7242
void SourceCodeInfo_Location::SharedDtor() {
 
7243
  if (this != default_instance_) {
 
7244
  }
 
7245
}
 
7246
 
 
7247
void SourceCodeInfo_Location::SetCachedSize(int size) const {
 
7248
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
 
7249
  _cached_size_ = size;
 
7250
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
 
7251
}
 
7252
const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
 
7253
  protobuf_AssignDescriptorsOnce();
 
7254
  return SourceCodeInfo_Location_descriptor_;
 
7255
}
 
7256
 
 
7257
const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
 
7258
  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
 
7259
}
 
7260
 
 
7261
SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
 
7262
 
 
7263
SourceCodeInfo_Location* SourceCodeInfo_Location::New() const {
 
7264
  return new SourceCodeInfo_Location;
 
7265
}
 
7266
 
 
7267
void SourceCodeInfo_Location::Clear() {
 
7268
  path_.Clear();
 
7269
  span_.Clear();
 
7270
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
 
7271
  mutable_unknown_fields()->Clear();
 
7272
}
 
7273
 
 
7274
bool SourceCodeInfo_Location::MergePartialFromCodedStream(
 
7275
    ::google::protobuf::io::CodedInputStream* input) {
 
7276
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
 
7277
  ::google::protobuf::uint32 tag;
 
7278
  while ((tag = input->ReadTag()) != 0) {
 
7279
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
 
7280
      // repeated int32 path = 1 [packed = true];
 
7281
      case 1: {
 
7282
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
7283
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
 
7284
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
 
7285
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
 
7286
                 input, this->mutable_path())));
 
7287
        } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
 
7288
                   == ::google::protobuf::internal::WireFormatLite::
 
7289
                      WIRETYPE_VARINT) {
 
7290
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
 
7291
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
 
7292
                 1, 10, input, this->mutable_path())));
 
7293
        } else {
 
7294
          goto handle_uninterpreted;
 
7295
        }
 
7296
        if (input->ExpectTag(18)) goto parse_span;
 
7297
        break;
 
7298
      }
 
7299
      
 
7300
      // repeated int32 span = 2 [packed = true];
 
7301
      case 2: {
 
7302
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
7303
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
 
7304
         parse_span:
 
7305
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
 
7306
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
 
7307
                 input, this->mutable_span())));
 
7308
        } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
 
7309
                   == ::google::protobuf::internal::WireFormatLite::
 
7310
                      WIRETYPE_VARINT) {
 
7311
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
 
7312
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
 
7313
                 1, 18, input, this->mutable_span())));
 
7314
        } else {
 
7315
          goto handle_uninterpreted;
 
7316
        }
 
7317
        if (input->ExpectAtEnd()) return true;
 
7318
        break;
 
7319
      }
 
7320
      
 
7321
      default: {
 
7322
      handle_uninterpreted:
 
7323
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
7324
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
 
7325
          return true;
 
7326
        }
 
7327
        DO_(::google::protobuf::internal::WireFormat::SkipField(
 
7328
              input, tag, mutable_unknown_fields()));
 
7329
        break;
 
7330
      }
 
7331
    }
 
7332
  }
 
7333
  return true;
 
7334
#undef DO_
 
7335
}
 
7336
 
 
7337
void SourceCodeInfo_Location::SerializeWithCachedSizes(
 
7338
    ::google::protobuf::io::CodedOutputStream* output) const {
 
7339
  // repeated int32 path = 1 [packed = true];
 
7340
  if (this->path_size() > 0) {
 
7341
    ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
 
7342
    output->WriteVarint32(_path_cached_byte_size_);
 
7343
  }
 
7344
  for (int i = 0; i < this->path_size(); i++) {
 
7345
    ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
 
7346
      this->path(i), output);
 
7347
  }
 
7348
  
 
7349
  // repeated int32 span = 2 [packed = true];
 
7350
  if (this->span_size() > 0) {
 
7351
    ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
 
7352
    output->WriteVarint32(_span_cached_byte_size_);
 
7353
  }
 
7354
  for (int i = 0; i < this->span_size(); i++) {
 
7355
    ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
 
7356
      this->span(i), output);
 
7357
  }
 
7358
  
 
7359
  if (!unknown_fields().empty()) {
 
7360
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
 
7361
        unknown_fields(), output);
 
7362
  }
 
7363
}
 
7364
 
 
7365
::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray(
 
7366
    ::google::protobuf::uint8* target) const {
 
7367
  // repeated int32 path = 1 [packed = true];
 
7368
  if (this->path_size() > 0) {
 
7369
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
 
7370
      1,
 
7371
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
 
7372
      target);
 
7373
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
 
7374
      _path_cached_byte_size_, target);
 
7375
  }
 
7376
  for (int i = 0; i < this->path_size(); i++) {
 
7377
    target = ::google::protobuf::internal::WireFormatLite::
 
7378
      WriteInt32NoTagToArray(this->path(i), target);
 
7379
  }
 
7380
  
 
7381
  // repeated int32 span = 2 [packed = true];
 
7382
  if (this->span_size() > 0) {
 
7383
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
 
7384
      2,
 
7385
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
 
7386
      target);
 
7387
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
 
7388
      _span_cached_byte_size_, target);
 
7389
  }
 
7390
  for (int i = 0; i < this->span_size(); i++) {
 
7391
    target = ::google::protobuf::internal::WireFormatLite::
 
7392
      WriteInt32NoTagToArray(this->span(i), target);
 
7393
  }
 
7394
  
 
7395
  if (!unknown_fields().empty()) {
 
7396
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
 
7397
        unknown_fields(), target);
 
7398
  }
 
7399
  return target;
 
7400
}
 
7401
 
 
7402
int SourceCodeInfo_Location::ByteSize() const {
 
7403
  int total_size = 0;
 
7404
  
 
7405
  // repeated int32 path = 1 [packed = true];
 
7406
  {
 
7407
    int data_size = 0;
 
7408
    for (int i = 0; i < this->path_size(); i++) {
 
7409
      data_size += ::google::protobuf::internal::WireFormatLite::
 
7410
        Int32Size(this->path(i));
 
7411
    }
 
7412
    if (data_size > 0) {
 
7413
      total_size += 1 +
 
7414
        ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
 
7415
    }
 
7416
    _path_cached_byte_size_ = data_size;
 
7417
    total_size += data_size;
 
7418
  }
 
7419
  
 
7420
  // repeated int32 span = 2 [packed = true];
 
7421
  {
 
7422
    int data_size = 0;
 
7423
    for (int i = 0; i < this->span_size(); i++) {
 
7424
      data_size += ::google::protobuf::internal::WireFormatLite::
 
7425
        Int32Size(this->span(i));
 
7426
    }
 
7427
    if (data_size > 0) {
 
7428
      total_size += 1 +
 
7429
        ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
 
7430
    }
 
7431
    _span_cached_byte_size_ = data_size;
 
7432
    total_size += data_size;
 
7433
  }
 
7434
  
 
7435
  if (!unknown_fields().empty()) {
 
7436
    total_size +=
 
7437
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
 
7438
        unknown_fields());
 
7439
  }
 
7440
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
 
7441
  _cached_size_ = total_size;
 
7442
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
 
7443
  return total_size;
 
7444
}
 
7445
 
 
7446
void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
 
7447
  GOOGLE_CHECK_NE(&from, this);
 
7448
  const SourceCodeInfo_Location* source =
 
7449
    ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo_Location*>(
 
7450
      &from);
 
7451
  if (source == NULL) {
 
7452
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
 
7453
  } else {
 
7454
    MergeFrom(*source);
 
7455
  }
 
7456
}
 
7457
 
 
7458
void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
 
7459
  GOOGLE_CHECK_NE(&from, this);
 
7460
  path_.MergeFrom(from.path_);
 
7461
  span_.MergeFrom(from.span_);
 
7462
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
 
7463
}
 
7464
 
 
7465
void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
 
7466
  if (&from == this) return;
 
7467
  Clear();
 
7468
  MergeFrom(from);
 
7469
}
 
7470
 
 
7471
void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
 
7472
  if (&from == this) return;
 
7473
  Clear();
 
7474
  MergeFrom(from);
 
7475
}
 
7476
 
 
7477
bool SourceCodeInfo_Location::IsInitialized() const {
 
7478
  
 
7479
  return true;
 
7480
}
 
7481
 
 
7482
void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
 
7483
  if (other != this) {
 
7484
    path_.Swap(&other->path_);
 
7485
    span_.Swap(&other->span_);
 
7486
    std::swap(_has_bits_[0], other->_has_bits_[0]);
 
7487
    _unknown_fields_.Swap(&other->_unknown_fields_);
 
7488
    std::swap(_cached_size_, other->_cached_size_);
 
7489
  }
 
7490
}
 
7491
 
 
7492
::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
 
7493
  protobuf_AssignDescriptorsOnce();
 
7494
  ::google::protobuf::Metadata metadata;
 
7495
  metadata.descriptor = SourceCodeInfo_Location_descriptor_;
 
7496
  metadata.reflection = SourceCodeInfo_Location_reflection_;
 
7497
  return metadata;
 
7498
}
 
7499
 
 
7500
 
 
7501
// -------------------------------------------------------------------
 
7502
 
 
7503
#ifndef _MSC_VER
 
7504
const int SourceCodeInfo::kLocationFieldNumber;
 
7505
#endif  // !_MSC_VER
 
7506
 
 
7507
SourceCodeInfo::SourceCodeInfo()
 
7508
  : ::google::protobuf::Message() {
 
7509
  SharedCtor();
 
7510
}
 
7511
 
 
7512
void SourceCodeInfo::InitAsDefaultInstance() {
 
7513
}
 
7514
 
 
7515
SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
 
7516
  : ::google::protobuf::Message() {
 
7517
  SharedCtor();
 
7518
  MergeFrom(from);
 
7519
}
 
7520
 
 
7521
void SourceCodeInfo::SharedCtor() {
 
7522
  _cached_size_ = 0;
 
7523
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
 
7524
}
 
7525
 
 
7526
SourceCodeInfo::~SourceCodeInfo() {
 
7527
  SharedDtor();
 
7528
}
 
7529
 
 
7530
void SourceCodeInfo::SharedDtor() {
 
7531
  if (this != default_instance_) {
 
7532
  }
 
7533
}
 
7534
 
 
7535
void SourceCodeInfo::SetCachedSize(int size) const {
 
7536
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
 
7537
  _cached_size_ = size;
 
7538
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
 
7539
}
 
7540
const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
 
7541
  protobuf_AssignDescriptorsOnce();
 
7542
  return SourceCodeInfo_descriptor_;
 
7543
}
 
7544
 
 
7545
const SourceCodeInfo& SourceCodeInfo::default_instance() {
 
7546
  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
 
7547
}
 
7548
 
 
7549
SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
 
7550
 
 
7551
SourceCodeInfo* SourceCodeInfo::New() const {
 
7552
  return new SourceCodeInfo;
 
7553
}
 
7554
 
 
7555
void SourceCodeInfo::Clear() {
 
7556
  location_.Clear();
 
7557
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
 
7558
  mutable_unknown_fields()->Clear();
 
7559
}
 
7560
 
 
7561
bool SourceCodeInfo::MergePartialFromCodedStream(
 
7562
    ::google::protobuf::io::CodedInputStream* input) {
 
7563
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
 
7564
  ::google::protobuf::uint32 tag;
 
7565
  while ((tag = input->ReadTag()) != 0) {
 
7566
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
 
7567
      // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
 
7568
      case 1: {
 
7569
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
7570
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
 
7571
         parse_location:
 
7572
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
 
7573
                input, add_location()));
 
7574
        } else {
 
7575
          goto handle_uninterpreted;
 
7576
        }
 
7577
        if (input->ExpectTag(10)) goto parse_location;
 
7578
        if (input->ExpectAtEnd()) return true;
 
7579
        break;
 
7580
      }
 
7581
      
 
7582
      default: {
 
7583
      handle_uninterpreted:
 
7584
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
 
7585
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
 
7586
          return true;
 
7587
        }
 
7588
        DO_(::google::protobuf::internal::WireFormat::SkipField(
 
7589
              input, tag, mutable_unknown_fields()));
 
7590
        break;
 
7591
      }
 
7592
    }
 
7593
  }
 
7594
  return true;
 
7595
#undef DO_
 
7596
}
 
7597
 
 
7598
void SourceCodeInfo::SerializeWithCachedSizes(
 
7599
    ::google::protobuf::io::CodedOutputStream* output) const {
 
7600
  // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
 
7601
  for (int i = 0; i < this->location_size(); i++) {
 
7602
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
 
7603
      1, this->location(i), output);
 
7604
  }
 
7605
  
 
7606
  if (!unknown_fields().empty()) {
 
7607
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
 
7608
        unknown_fields(), output);
 
7609
  }
 
7610
}
 
7611
 
 
7612
::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
 
7613
    ::google::protobuf::uint8* target) const {
 
7614
  // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
 
7615
  for (int i = 0; i < this->location_size(); i++) {
 
7616
    target = ::google::protobuf::internal::WireFormatLite::
 
7617
      WriteMessageNoVirtualToArray(
 
7618
        1, this->location(i), target);
 
7619
  }
 
7620
  
 
7621
  if (!unknown_fields().empty()) {
 
7622
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
 
7623
        unknown_fields(), target);
 
7624
  }
 
7625
  return target;
 
7626
}
 
7627
 
 
7628
int SourceCodeInfo::ByteSize() const {
 
7629
  int total_size = 0;
 
7630
  
 
7631
  // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
 
7632
  total_size += 1 * this->location_size();
 
7633
  for (int i = 0; i < this->location_size(); i++) {
 
7634
    total_size +=
 
7635
      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
 
7636
        this->location(i));
 
7637
  }
 
7638
  
 
7639
  if (!unknown_fields().empty()) {
 
7640
    total_size +=
 
7641
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
 
7642
        unknown_fields());
 
7643
  }
 
7644
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
 
7645
  _cached_size_ = total_size;
 
7646
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
 
7647
  return total_size;
 
7648
}
 
7649
 
 
7650
void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
 
7651
  GOOGLE_CHECK_NE(&from, this);
 
7652
  const SourceCodeInfo* source =
 
7653
    ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo*>(
 
7654
      &from);
 
7655
  if (source == NULL) {
 
7656
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
 
7657
  } else {
 
7658
    MergeFrom(*source);
 
7659
  }
 
7660
}
 
7661
 
 
7662
void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
 
7663
  GOOGLE_CHECK_NE(&from, this);
 
7664
  location_.MergeFrom(from.location_);
 
7665
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
 
7666
}
 
7667
 
 
7668
void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
 
7669
  if (&from == this) return;
 
7670
  Clear();
 
7671
  MergeFrom(from);
 
7672
}
 
7673
 
 
7674
void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
 
7675
  if (&from == this) return;
 
7676
  Clear();
 
7677
  MergeFrom(from);
 
7678
}
 
7679
 
 
7680
bool SourceCodeInfo::IsInitialized() const {
 
7681
  
 
7682
  return true;
 
7683
}
 
7684
 
 
7685
void SourceCodeInfo::Swap(SourceCodeInfo* other) {
 
7686
  if (other != this) {
 
7687
    location_.Swap(&other->location_);
 
7688
    std::swap(_has_bits_[0], other->_has_bits_[0]);
 
7689
    _unknown_fields_.Swap(&other->_unknown_fields_);
 
7690
    std::swap(_cached_size_, other->_cached_size_);
 
7691
  }
 
7692
}
 
7693
 
 
7694
::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
 
7695
  protobuf_AssignDescriptorsOnce();
 
7696
  ::google::protobuf::Metadata metadata;
 
7697
  metadata.descriptor = SourceCodeInfo_descriptor_;
 
7698
  metadata.reflection = SourceCodeInfo_reflection_;
 
7699
  return metadata;
 
7700
}
 
7701
 
 
7702
 
7024
7703
// @@protoc_insertion_point(namespace_scope)
7025
7704
 
7026
7705
}  // namespace protobuf