Home | History | Annotate | Download | only in compiler
      1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
      2 // source: google/protobuf/compiler/plugin.proto
      3 
      4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
      5 #include <google/protobuf/compiler/plugin.pb.h>
      6 
      7 #include <algorithm>
      8 
      9 #include <google/protobuf/stubs/common.h>
     10 #include <google/protobuf/stubs/port.h>
     11 #include <google/protobuf/stubs/once.h>
     12 #include <google/protobuf/io/coded_stream.h>
     13 #include <google/protobuf/wire_format_lite_inl.h>
     14 #include <google/protobuf/descriptor.h>
     15 #include <google/protobuf/generated_message_reflection.h>
     16 #include <google/protobuf/reflection_ops.h>
     17 #include <google/protobuf/wire_format.h>
     18 // @@protoc_insertion_point(includes)
     19 
     20 namespace google {
     21 namespace protobuf {
     22 namespace compiler {
     23 
     24 namespace {
     25 
     26 const ::google::protobuf::Descriptor* CodeGeneratorRequest_descriptor_ = NULL;
     27 const ::google::protobuf::internal::GeneratedMessageReflection*
     28   CodeGeneratorRequest_reflection_ = NULL;
     29 const ::google::protobuf::Descriptor* CodeGeneratorResponse_descriptor_ = NULL;
     30 const ::google::protobuf::internal::GeneratedMessageReflection*
     31   CodeGeneratorResponse_reflection_ = NULL;
     32 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File_descriptor_ = NULL;
     33 const ::google::protobuf::internal::GeneratedMessageReflection*
     34   CodeGeneratorResponse_File_reflection_ = NULL;
     35 
     36 }  // namespace
     37 
     38 
     39 void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
     40   protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
     41   const ::google::protobuf::FileDescriptor* file =
     42     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
     43       "google/protobuf/compiler/plugin.proto");
     44   GOOGLE_CHECK(file != NULL);
     45   CodeGeneratorRequest_descriptor_ = file->message_type(0);
     46   static const int CodeGeneratorRequest_offsets_[3] = {
     47     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to_generate_),
     48     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, parameter_),
     49     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_file_),
     50   };
     51   CodeGeneratorRequest_reflection_ =
     52     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
     53       CodeGeneratorRequest_descriptor_,
     54       CodeGeneratorRequest::default_instance_,
     55       CodeGeneratorRequest_offsets_,
     56       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_bits_[0]),
     57       -1,
     58       -1,
     59       sizeof(CodeGeneratorRequest),
     60       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _internal_metadata_),
     61       -1);
     62   CodeGeneratorResponse_descriptor_ = file->message_type(1);
     63   static const int CodeGeneratorResponse_offsets_[2] = {
     64     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_),
     65     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_),
     66   };
     67   CodeGeneratorResponse_reflection_ =
     68     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
     69       CodeGeneratorResponse_descriptor_,
     70       CodeGeneratorResponse::default_instance_,
     71       CodeGeneratorResponse_offsets_,
     72       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has_bits_[0]),
     73       -1,
     74       -1,
     75       sizeof(CodeGeneratorResponse),
     76       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _internal_metadata_),
     77       -1);
     78   CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->nested_type(0);
     79   static const int CodeGeneratorResponse_File_offsets_[3] = {
     80     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, name_),
     81     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, insertion_point_),
     82     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, content_),
     83   };
     84   CodeGeneratorResponse_File_reflection_ =
     85     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
     86       CodeGeneratorResponse_File_descriptor_,
     87       CodeGeneratorResponse_File::default_instance_,
     88       CodeGeneratorResponse_File_offsets_,
     89       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _has_bits_[0]),
     90       -1,
     91       -1,
     92       sizeof(CodeGeneratorResponse_File),
     93       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _internal_metadata_),
     94       -1);
     95 }
     96 
     97 namespace {
     98 
     99 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
    100 inline void protobuf_AssignDescriptorsOnce() {
    101   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
    102                  &protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
    103 }
    104 
    105 void protobuf_RegisterTypes(const ::std::string&) {
    106   protobuf_AssignDescriptorsOnce();
    107   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    108       CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance());
    109   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    110       CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instance());
    111   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    112       CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::default_instance());
    113 }
    114 
    115 }  // namespace
    116 
    117 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
    118   delete CodeGeneratorRequest::default_instance_;
    119   delete CodeGeneratorRequest_reflection_;
    120   delete CodeGeneratorResponse::default_instance_;
    121   delete CodeGeneratorResponse_reflection_;
    122   delete CodeGeneratorResponse_File::default_instance_;
    123   delete CodeGeneratorResponse_File_reflection_;
    124 }
    125 
    126 void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
    127   static bool already_here = false;
    128   if (already_here) return;
    129   already_here = true;
    130   GOOGLE_PROTOBUF_VERIFY_VERSION;
    131 
    132   ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
    133   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    134     "\n%google/protobuf/compiler/plugin.proto\022"
    135     "\030google.protobuf.compiler\032 google/protob"
    136     "uf/descriptor.proto\"}\n\024CodeGeneratorRequ"
    137     "est\022\030\n\020file_to_generate\030\001 \003(\t\022\021\n\tparamet"
    138     "er\030\002 \001(\t\0228\n\nproto_file\030\017 \003(\0132$.google.pr"
    139     "otobuf.FileDescriptorProto\"\252\001\n\025CodeGener"
    140     "atorResponse\022\r\n\005error\030\001 \001(\t\022B\n\004file\030\017 \003("
    141     "\01324.google.protobuf.compiler.CodeGenerat"
    142     "orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n"
    143     "\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\tB"
    144     "7\n\034com.google.protobuf.compilerB\014PluginP"
    145     "rotosZ\tplugin_go", 456);
    146   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    147     "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes);
    148   CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest();
    149   CodeGeneratorResponse::default_instance_ = new CodeGeneratorResponse();
    150   CodeGeneratorResponse_File::default_instance_ = new CodeGeneratorResponse_File();
    151   CodeGeneratorRequest::default_instance_->InitAsDefaultInstance();
    152   CodeGeneratorResponse::default_instance_->InitAsDefaultInstance();
    153   CodeGeneratorResponse_File::default_instance_->InitAsDefaultInstance();
    154   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
    155 }
    156 
    157 // Force AddDescriptors() to be called at static initialization time.
    158 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
    159   StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
    160     protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
    161   }
    162 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_;
    163 
    164 namespace {
    165 
    166 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
    167 static void MergeFromFail(int line) {
    168   GOOGLE_CHECK(false) << __FILE__ << ":" << line;
    169 }
    170 
    171 }  // namespace
    172 
    173 
    174 // ===================================================================
    175 
    176 #if !defined(_MSC_VER) || _MSC_VER >= 1900
    177 const int CodeGeneratorRequest::kFileToGenerateFieldNumber;
    178 const int CodeGeneratorRequest::kParameterFieldNumber;
    179 const int CodeGeneratorRequest::kProtoFileFieldNumber;
    180 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
    181 
    182 CodeGeneratorRequest::CodeGeneratorRequest()
    183   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
    184   SharedCtor();
    185   // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorRequest)
    186 }
    187 
    188 void CodeGeneratorRequest::InitAsDefaultInstance() {
    189 }
    190 
    191 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
    192   : ::google::protobuf::Message(),
    193     _internal_metadata_(NULL) {
    194   SharedCtor();
    195   MergeFrom(from);
    196   // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
    197 }
    198 
    199 void CodeGeneratorRequest::SharedCtor() {
    200   ::google::protobuf::internal::GetEmptyString();
    201   _cached_size_ = 0;
    202   parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    203   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    204 }
    205 
    206 CodeGeneratorRequest::~CodeGeneratorRequest() {
    207   // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
    208   SharedDtor();
    209 }
    210 
    211 void CodeGeneratorRequest::SharedDtor() {
    212   parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    213   if (this != default_instance_) {
    214   }
    215 }
    216 
    217 void CodeGeneratorRequest::SetCachedSize(int size) const {
    218   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    219   _cached_size_ = size;
    220   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    221 }
    222 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() {
    223   protobuf_AssignDescriptorsOnce();
    224   return CodeGeneratorRequest_descriptor_;
    225 }
    226 
    227 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
    228   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
    229   return *default_instance_;
    230 }
    231 
    232 CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL;
    233 
    234 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena) const {
    235   CodeGeneratorRequest* n = new CodeGeneratorRequest;
    236   if (arena != NULL) {
    237     arena->Own(n);
    238   }
    239   return n;
    240 }
    241 
    242 void CodeGeneratorRequest::Clear() {
    243 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorRequest)
    244   if (has_parameter()) {
    245     parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    246   }
    247   file_to_generate_.Clear();
    248   proto_file_.Clear();
    249   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    250   if (_internal_metadata_.have_unknown_fields()) {
    251     mutable_unknown_fields()->Clear();
    252   }
    253 }
    254 
    255 bool CodeGeneratorRequest::MergePartialFromCodedStream(
    256     ::google::protobuf::io::CodedInputStream* input) {
    257 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
    258   ::google::protobuf::uint32 tag;
    259   // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorRequest)
    260   for (;;) {
    261     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    262     tag = p.first;
    263     if (!p.second) goto handle_unusual;
    264     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    265       // repeated string file_to_generate = 1;
    266       case 1: {
    267         if (tag == 10) {
    268          parse_file_to_generate:
    269           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
    270                 input, this->add_file_to_generate()));
    271           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    272             this->file_to_generate(this->file_to_generate_size() - 1).data(),
    273             this->file_to_generate(this->file_to_generate_size() - 1).length(),
    274             ::google::protobuf::internal::WireFormat::PARSE,
    275             "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
    276         } else {
    277           goto handle_unusual;
    278         }
    279         if (input->ExpectTag(10)) goto parse_file_to_generate;
    280         if (input->ExpectTag(18)) goto parse_parameter;
    281         break;
    282       }
    283 
    284       // optional string parameter = 2;
    285       case 2: {
    286         if (tag == 18) {
    287          parse_parameter:
    288           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
    289                 input, this->mutable_parameter()));
    290           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    291             this->parameter().data(), this->parameter().length(),
    292             ::google::protobuf::internal::WireFormat::PARSE,
    293             "google.protobuf.compiler.CodeGeneratorRequest.parameter");
    294         } else {
    295           goto handle_unusual;
    296         }
    297         if (input->ExpectTag(122)) goto parse_proto_file;
    298         break;
    299       }
    300 
    301       // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
    302       case 15: {
    303         if (tag == 122) {
    304          parse_proto_file:
    305           DO_(input->IncrementRecursionDepth());
    306          parse_loop_proto_file:
    307           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
    308                 input, add_proto_file()));
    309         } else {
    310           goto handle_unusual;
    311         }
    312         if (input->ExpectTag(122)) goto parse_loop_proto_file;
    313         input->UnsafeDecrementRecursionDepth();
    314         if (input->ExpectAtEnd()) goto success;
    315         break;
    316       }
    317 
    318       default: {
    319       handle_unusual:
    320         if (tag == 0 ||
    321             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    322             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    323           goto success;
    324         }
    325         DO_(::google::protobuf::internal::WireFormat::SkipField(
    326               input, tag, mutable_unknown_fields()));
    327         break;
    328       }
    329     }
    330   }
    331 success:
    332   // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorRequest)
    333   return true;
    334 failure:
    335   // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorRequest)
    336   return false;
    337 #undef DO_
    338 }
    339 
    340 void CodeGeneratorRequest::SerializeWithCachedSizes(
    341     ::google::protobuf::io::CodedOutputStream* output) const {
    342   // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorRequest)
    343   // repeated string file_to_generate = 1;
    344   for (int i = 0; i < this->file_to_generate_size(); i++) {
    345     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    346       this->file_to_generate(i).data(), this->file_to_generate(i).length(),
    347       ::google::protobuf::internal::WireFormat::SERIALIZE,
    348       "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
    349     ::google::protobuf::internal::WireFormatLite::WriteString(
    350       1, this->file_to_generate(i), output);
    351   }
    352 
    353   // optional string parameter = 2;
    354   if (has_parameter()) {
    355     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    356       this->parameter().data(), this->parameter().length(),
    357       ::google::protobuf::internal::WireFormat::SERIALIZE,
    358       "google.protobuf.compiler.CodeGeneratorRequest.parameter");
    359     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
    360       2, this->parameter(), output);
    361   }
    362 
    363   // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
    364   for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
    365     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
    366       15, this->proto_file(i), output);
    367   }
    368 
    369   if (_internal_metadata_.have_unknown_fields()) {
    370     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
    371         unknown_fields(), output);
    372   }
    373   // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorRequest)
    374 }
    375 
    376 ::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray(
    377     ::google::protobuf::uint8* target) const {
    378   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
    379   // repeated string file_to_generate = 1;
    380   for (int i = 0; i < this->file_to_generate_size(); i++) {
    381     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    382       this->file_to_generate(i).data(), this->file_to_generate(i).length(),
    383       ::google::protobuf::internal::WireFormat::SERIALIZE,
    384       "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
    385     target = ::google::protobuf::internal::WireFormatLite::
    386       WriteStringToArray(1, this->file_to_generate(i), target);
    387   }
    388 
    389   // optional string parameter = 2;
    390   if (has_parameter()) {
    391     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    392       this->parameter().data(), this->parameter().length(),
    393       ::google::protobuf::internal::WireFormat::SERIALIZE,
    394       "google.protobuf.compiler.CodeGeneratorRequest.parameter");
    395     target =
    396       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
    397         2, this->parameter(), target);
    398   }
    399 
    400   // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
    401   for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
    402     target = ::google::protobuf::internal::WireFormatLite::
    403       WriteMessageNoVirtualToArray(
    404         15, this->proto_file(i), target);
    405   }
    406 
    407   if (_internal_metadata_.have_unknown_fields()) {
    408     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
    409         unknown_fields(), target);
    410   }
    411   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest)
    412   return target;
    413 }
    414 
    415 int CodeGeneratorRequest::ByteSize() const {
    416 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorRequest)
    417   int total_size = 0;
    418 
    419   // optional string parameter = 2;
    420   if (has_parameter()) {
    421     total_size += 1 +
    422       ::google::protobuf::internal::WireFormatLite::StringSize(
    423         this->parameter());
    424   }
    425 
    426   // repeated string file_to_generate = 1;
    427   total_size += 1 * this->file_to_generate_size();
    428   for (int i = 0; i < this->file_to_generate_size(); i++) {
    429     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
    430       this->file_to_generate(i));
    431   }
    432 
    433   // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
    434   total_size += 1 * this->proto_file_size();
    435   for (int i = 0; i < this->proto_file_size(); i++) {
    436     total_size +=
    437       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    438         this->proto_file(i));
    439   }
    440 
    441   if (_internal_metadata_.have_unknown_fields()) {
    442     total_size +=
    443       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
    444         unknown_fields());
    445   }
    446   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    447   _cached_size_ = total_size;
    448   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    449   return total_size;
    450 }
    451 
    452 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) {
    453 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
    454   if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
    455   const CodeGeneratorRequest* source =
    456       ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRequest>(
    457           &from);
    458   if (source == NULL) {
    459   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorRequest)
    460     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
    461   } else {
    462   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorRequest)
    463     MergeFrom(*source);
    464   }
    465 }
    466 
    467 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
    468 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
    469   if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
    470   file_to_generate_.MergeFrom(from.file_to_generate_);
    471   proto_file_.MergeFrom(from.proto_file_);
    472   if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
    473     if (from.has_parameter()) {
    474       set_has_parameter();
    475       parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parameter_);
    476     }
    477   }
    478   if (from._internal_metadata_.have_unknown_fields()) {
    479     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
    480   }
    481 }
    482 
    483 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) {
    484 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
    485   if (&from == this) return;
    486   Clear();
    487   MergeFrom(from);
    488 }
    489 
    490 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
    491 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
    492   if (&from == this) return;
    493   Clear();
    494   MergeFrom(from);
    495 }
    496 
    497 bool CodeGeneratorRequest::IsInitialized() const {
    498 
    499   if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) return false;
    500   return true;
    501 }
    502 
    503 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) {
    504   if (other == this) return;
    505   InternalSwap(other);
    506 }
    507 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
    508   file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_);
    509   parameter_.Swap(&other->parameter_);
    510   proto_file_.UnsafeArenaSwap(&other->proto_file_);
    511   std::swap(_has_bits_[0], other->_has_bits_[0]);
    512   _internal_metadata_.Swap(&other->_internal_metadata_);
    513   std::swap(_cached_size_, other->_cached_size_);
    514 }
    515 
    516 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
    517   protobuf_AssignDescriptorsOnce();
    518   ::google::protobuf::Metadata metadata;
    519   metadata.descriptor = CodeGeneratorRequest_descriptor_;
    520   metadata.reflection = CodeGeneratorRequest_reflection_;
    521   return metadata;
    522 }
    523 
    524 #if PROTOBUF_INLINE_NOT_IN_HEADERS
    525 // CodeGeneratorRequest
    526 
    527 // repeated string file_to_generate = 1;
    528 int CodeGeneratorRequest::file_to_generate_size() const {
    529   return file_to_generate_.size();
    530 }
    531 void CodeGeneratorRequest::clear_file_to_generate() {
    532   file_to_generate_.Clear();
    533 }
    534  const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
    535   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    536   return file_to_generate_.Get(index);
    537 }
    538  ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
    539   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    540   return file_to_generate_.Mutable(index);
    541 }
    542  void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
    543   // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    544   file_to_generate_.Mutable(index)->assign(value);
    545 }
    546  void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
    547   file_to_generate_.Mutable(index)->assign(value);
    548   // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    549 }
    550  void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
    551   file_to_generate_.Mutable(index)->assign(
    552     reinterpret_cast<const char*>(value), size);
    553   // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    554 }
    555  ::std::string* CodeGeneratorRequest::add_file_to_generate() {
    556   // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    557   return file_to_generate_.Add();
    558 }
    559  void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
    560   file_to_generate_.Add()->assign(value);
    561   // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    562 }
    563  void CodeGeneratorRequest::add_file_to_generate(const char* value) {
    564   file_to_generate_.Add()->assign(value);
    565   // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    566 }
    567  void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
    568   file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
    569   // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    570 }
    571  const ::google::protobuf::RepeatedPtrField< ::std::string>&
    572 CodeGeneratorRequest::file_to_generate() const {
    573   // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    574   return file_to_generate_;
    575 }
    576  ::google::protobuf::RepeatedPtrField< ::std::string>*
    577 CodeGeneratorRequest::mutable_file_to_generate() {
    578   // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
    579   return &file_to_generate_;
    580 }
    581 
    582 // optional string parameter = 2;
    583 bool CodeGeneratorRequest::has_parameter() const {
    584   return (_has_bits_[0] & 0x00000002u) != 0;
    585 }
    586 void CodeGeneratorRequest::set_has_parameter() {
    587   _has_bits_[0] |= 0x00000002u;
    588 }
    589 void CodeGeneratorRequest::clear_has_parameter() {
    590   _has_bits_[0] &= ~0x00000002u;
    591 }
    592 void CodeGeneratorRequest::clear_parameter() {
    593   parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    594   clear_has_parameter();
    595 }
    596  const ::std::string& CodeGeneratorRequest::parameter() const {
    597   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    598   return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    599 }
    600  void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
    601   set_has_parameter();
    602   parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    603   // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    604 }
    605  void CodeGeneratorRequest::set_parameter(const char* value) {
    606   set_has_parameter();
    607   parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    608   // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    609 }
    610  void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
    611   set_has_parameter();
    612   parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
    613       ::std::string(reinterpret_cast<const char*>(value), size));
    614   // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    615 }
    616  ::std::string* CodeGeneratorRequest::mutable_parameter() {
    617   set_has_parameter();
    618   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    619   return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    620 }
    621  ::std::string* CodeGeneratorRequest::release_parameter() {
    622   // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    623   clear_has_parameter();
    624   return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    625 }
    626  void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
    627   if (parameter != NULL) {
    628     set_has_parameter();
    629   } else {
    630     clear_has_parameter();
    631   }
    632   parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parameter);
    633   // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
    634 }
    635 
    636 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
    637 int CodeGeneratorRequest::proto_file_size() const {
    638   return proto_file_.size();
    639 }
    640 void CodeGeneratorRequest::clear_proto_file() {
    641   proto_file_.Clear();
    642 }
    643 const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
    644   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
    645   return proto_file_.Get(index);
    646 }
    647 ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
    648   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
    649   return proto_file_.Mutable(index);
    650 }
    651 ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
    652   // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
    653   return proto_file_.Add();
    654 }
    655 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
    656 CodeGeneratorRequest::mutable_proto_file() {
    657   // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
    658   return &proto_file_;
    659 }
    660 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
    661 CodeGeneratorRequest::proto_file() const {
    662   // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
    663   return proto_file_;
    664 }
    665 
    666 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
    667 
    668 // ===================================================================
    669 
    670 #if !defined(_MSC_VER) || _MSC_VER >= 1900
    671 const int CodeGeneratorResponse_File::kNameFieldNumber;
    672 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber;
    673 const int CodeGeneratorResponse_File::kContentFieldNumber;
    674 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
    675 
    676 CodeGeneratorResponse_File::CodeGeneratorResponse_File()
    677   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
    678   SharedCtor();
    679   // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
    680 }
    681 
    682 void CodeGeneratorResponse_File::InitAsDefaultInstance() {
    683 }
    684 
    685 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from)
    686   : ::google::protobuf::Message(),
    687     _internal_metadata_(NULL) {
    688   SharedCtor();
    689   MergeFrom(from);
    690   // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
    691 }
    692 
    693 void CodeGeneratorResponse_File::SharedCtor() {
    694   ::google::protobuf::internal::GetEmptyString();
    695   _cached_size_ = 0;
    696   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    697   insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    698   content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    699   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    700 }
    701 
    702 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
    703   // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
    704   SharedDtor();
    705 }
    706 
    707 void CodeGeneratorResponse_File::SharedDtor() {
    708   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    709   insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    710   content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    711   if (this != default_instance_) {
    712   }
    713 }
    714 
    715 void CodeGeneratorResponse_File::SetCachedSize(int size) const {
    716   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    717   _cached_size_ = size;
    718   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    719 }
    720 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() {
    721   protobuf_AssignDescriptorsOnce();
    722   return CodeGeneratorResponse_File_descriptor_;
    723 }
    724 
    725 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
    726   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
    727   return *default_instance_;
    728 }
    729 
    730 CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL;
    731 
    732 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf::Arena* arena) const {
    733   CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File;
    734   if (arena != NULL) {
    735     arena->Own(n);
    736   }
    737   return n;
    738 }
    739 
    740 void CodeGeneratorResponse_File::Clear() {
    741 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    742   if (_has_bits_[0 / 32] & 7u) {
    743     if (has_name()) {
    744       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    745     }
    746     if (has_insertion_point()) {
    747       insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    748     }
    749     if (has_content()) {
    750       content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    751     }
    752   }
    753   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    754   if (_internal_metadata_.have_unknown_fields()) {
    755     mutable_unknown_fields()->Clear();
    756   }
    757 }
    758 
    759 bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
    760     ::google::protobuf::io::CodedInputStream* input) {
    761 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
    762   ::google::protobuf::uint32 tag;
    763   // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    764   for (;;) {
    765     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    766     tag = p.first;
    767     if (!p.second) goto handle_unusual;
    768     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    769       // optional string name = 1;
    770       case 1: {
    771         if (tag == 10) {
    772           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
    773                 input, this->mutable_name()));
    774           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    775             this->name().data(), this->name().length(),
    776             ::google::protobuf::internal::WireFormat::PARSE,
    777             "google.protobuf.compiler.CodeGeneratorResponse.File.name");
    778         } else {
    779           goto handle_unusual;
    780         }
    781         if (input->ExpectTag(18)) goto parse_insertion_point;
    782         break;
    783       }
    784 
    785       // optional string insertion_point = 2;
    786       case 2: {
    787         if (tag == 18) {
    788          parse_insertion_point:
    789           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
    790                 input, this->mutable_insertion_point()));
    791           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    792             this->insertion_point().data(), this->insertion_point().length(),
    793             ::google::protobuf::internal::WireFormat::PARSE,
    794             "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
    795         } else {
    796           goto handle_unusual;
    797         }
    798         if (input->ExpectTag(122)) goto parse_content;
    799         break;
    800       }
    801 
    802       // optional string content = 15;
    803       case 15: {
    804         if (tag == 122) {
    805          parse_content:
    806           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
    807                 input, this->mutable_content()));
    808           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    809             this->content().data(), this->content().length(),
    810             ::google::protobuf::internal::WireFormat::PARSE,
    811             "google.protobuf.compiler.CodeGeneratorResponse.File.content");
    812         } else {
    813           goto handle_unusual;
    814         }
    815         if (input->ExpectAtEnd()) goto success;
    816         break;
    817       }
    818 
    819       default: {
    820       handle_unusual:
    821         if (tag == 0 ||
    822             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    823             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    824           goto success;
    825         }
    826         DO_(::google::protobuf::internal::WireFormat::SkipField(
    827               input, tag, mutable_unknown_fields()));
    828         break;
    829       }
    830     }
    831   }
    832 success:
    833   // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorResponse.File)
    834   return true;
    835 failure:
    836   // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorResponse.File)
    837   return false;
    838 #undef DO_
    839 }
    840 
    841 void CodeGeneratorResponse_File::SerializeWithCachedSizes(
    842     ::google::protobuf::io::CodedOutputStream* output) const {
    843   // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    844   // optional string name = 1;
    845   if (has_name()) {
    846     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    847       this->name().data(), this->name().length(),
    848       ::google::protobuf::internal::WireFormat::SERIALIZE,
    849       "google.protobuf.compiler.CodeGeneratorResponse.File.name");
    850     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
    851       1, this->name(), output);
    852   }
    853 
    854   // optional string insertion_point = 2;
    855   if (has_insertion_point()) {
    856     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    857       this->insertion_point().data(), this->insertion_point().length(),
    858       ::google::protobuf::internal::WireFormat::SERIALIZE,
    859       "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
    860     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
    861       2, this->insertion_point(), output);
    862   }
    863 
    864   // optional string content = 15;
    865   if (has_content()) {
    866     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    867       this->content().data(), this->content().length(),
    868       ::google::protobuf::internal::WireFormat::SERIALIZE,
    869       "google.protobuf.compiler.CodeGeneratorResponse.File.content");
    870     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
    871       15, this->content(), output);
    872   }
    873 
    874   if (_internal_metadata_.have_unknown_fields()) {
    875     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
    876         unknown_fields(), output);
    877   }
    878   // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorResponse.File)
    879 }
    880 
    881 ::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesToArray(
    882     ::google::protobuf::uint8* target) const {
    883   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    884   // optional string name = 1;
    885   if (has_name()) {
    886     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    887       this->name().data(), this->name().length(),
    888       ::google::protobuf::internal::WireFormat::SERIALIZE,
    889       "google.protobuf.compiler.CodeGeneratorResponse.File.name");
    890     target =
    891       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
    892         1, this->name(), target);
    893   }
    894 
    895   // optional string insertion_point = 2;
    896   if (has_insertion_point()) {
    897     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    898       this->insertion_point().data(), this->insertion_point().length(),
    899       ::google::protobuf::internal::WireFormat::SERIALIZE,
    900       "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
    901     target =
    902       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
    903         2, this->insertion_point(), target);
    904   }
    905 
    906   // optional string content = 15;
    907   if (has_content()) {
    908     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
    909       this->content().data(), this->content().length(),
    910       ::google::protobuf::internal::WireFormat::SERIALIZE,
    911       "google.protobuf.compiler.CodeGeneratorResponse.File.content");
    912     target =
    913       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
    914         15, this->content(), target);
    915   }
    916 
    917   if (_internal_metadata_.have_unknown_fields()) {
    918     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
    919         unknown_fields(), target);
    920   }
    921   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File)
    922   return target;
    923 }
    924 
    925 int CodeGeneratorResponse_File::ByteSize() const {
    926 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    927   int total_size = 0;
    928 
    929   if (_has_bits_[0 / 32] & 7u) {
    930     // optional string name = 1;
    931     if (has_name()) {
    932       total_size += 1 +
    933         ::google::protobuf::internal::WireFormatLite::StringSize(
    934           this->name());
    935     }
    936 
    937     // optional string insertion_point = 2;
    938     if (has_insertion_point()) {
    939       total_size += 1 +
    940         ::google::protobuf::internal::WireFormatLite::StringSize(
    941           this->insertion_point());
    942     }
    943 
    944     // optional string content = 15;
    945     if (has_content()) {
    946       total_size += 1 +
    947         ::google::protobuf::internal::WireFormatLite::StringSize(
    948           this->content());
    949     }
    950 
    951   }
    952   if (_internal_metadata_.have_unknown_fields()) {
    953     total_size +=
    954       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
    955         unknown_fields());
    956   }
    957   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    958   _cached_size_ = total_size;
    959   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    960   return total_size;
    961 }
    962 
    963 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& from) {
    964 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    965   if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
    966   const CodeGeneratorResponse_File* source =
    967       ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorResponse_File>(
    968           &from);
    969   if (source == NULL) {
    970   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorResponse.File)
    971     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
    972   } else {
    973   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorResponse.File)
    974     MergeFrom(*source);
    975   }
    976 }
    977 
    978 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& from) {
    979 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
    980   if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
    981   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    982     if (from.has_name()) {
    983       set_has_name();
    984       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
    985     }
    986     if (from.has_insertion_point()) {
    987       set_has_insertion_point();
    988       insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.insertion_point_);
    989     }
    990     if (from.has_content()) {
    991       set_has_content();
    992       content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_);
    993     }
    994   }
    995   if (from._internal_metadata_.have_unknown_fields()) {
    996     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
    997   }
    998 }
    999 
   1000 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& from) {
   1001 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
   1002   if (&from == this) return;
   1003   Clear();
   1004   MergeFrom(from);
   1005 }
   1006 
   1007 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
   1008 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
   1009   if (&from == this) return;
   1010   Clear();
   1011   MergeFrom(from);
   1012 }
   1013 
   1014 bool CodeGeneratorResponse_File::IsInitialized() const {
   1015 
   1016   return true;
   1017 }
   1018 
   1019 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) {
   1020   if (other == this) return;
   1021   InternalSwap(other);
   1022 }
   1023 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
   1024   name_.Swap(&other->name_);
   1025   insertion_point_.Swap(&other->insertion_point_);
   1026   content_.Swap(&other->content_);
   1027   std::swap(_has_bits_[0], other->_has_bits_[0]);
   1028   _internal_metadata_.Swap(&other->_internal_metadata_);
   1029   std::swap(_cached_size_, other->_cached_size_);
   1030 }
   1031 
   1032 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
   1033   protobuf_AssignDescriptorsOnce();
   1034   ::google::protobuf::Metadata metadata;
   1035   metadata.descriptor = CodeGeneratorResponse_File_descriptor_;
   1036   metadata.reflection = CodeGeneratorResponse_File_reflection_;
   1037   return metadata;
   1038 }
   1039 
   1040 
   1041 // -------------------------------------------------------------------
   1042 
   1043 #if !defined(_MSC_VER) || _MSC_VER >= 1900
   1044 const int CodeGeneratorResponse::kErrorFieldNumber;
   1045 const int CodeGeneratorResponse::kFileFieldNumber;
   1046 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   1047 
   1048 CodeGeneratorResponse::CodeGeneratorResponse()
   1049   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
   1050   SharedCtor();
   1051   // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse)
   1052 }
   1053 
   1054 void CodeGeneratorResponse::InitAsDefaultInstance() {
   1055 }
   1056 
   1057 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
   1058   : ::google::protobuf::Message(),
   1059     _internal_metadata_(NULL) {
   1060   SharedCtor();
   1061   MergeFrom(from);
   1062   // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
   1063 }
   1064 
   1065 void CodeGeneratorResponse::SharedCtor() {
   1066   ::google::protobuf::internal::GetEmptyString();
   1067   _cached_size_ = 0;
   1068   error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1069   ::memset(_has_bits_, 0, sizeof(_has_bits_));
   1070 }
   1071 
   1072 CodeGeneratorResponse::~CodeGeneratorResponse() {
   1073   // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
   1074   SharedDtor();
   1075 }
   1076 
   1077 void CodeGeneratorResponse::SharedDtor() {
   1078   error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1079   if (this != default_instance_) {
   1080   }
   1081 }
   1082 
   1083 void CodeGeneratorResponse::SetCachedSize(int size) const {
   1084   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   1085   _cached_size_ = size;
   1086   GOOGLE_SAFE_CONCURRENT_WRITES_END();
   1087 }
   1088 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() {
   1089   protobuf_AssignDescriptorsOnce();
   1090   return CodeGeneratorResponse_descriptor_;
   1091 }
   1092 
   1093 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
   1094   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
   1095   return *default_instance_;
   1096 }
   1097 
   1098 CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL;
   1099 
   1100 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* arena) const {
   1101   CodeGeneratorResponse* n = new CodeGeneratorResponse;
   1102   if (arena != NULL) {
   1103     arena->Own(n);
   1104   }
   1105   return n;
   1106 }
   1107 
   1108 void CodeGeneratorResponse::Clear() {
   1109 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse)
   1110   if (has_error()) {
   1111     error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1112   }
   1113   file_.Clear();
   1114   ::memset(_has_bits_, 0, sizeof(_has_bits_));
   1115   if (_internal_metadata_.have_unknown_fields()) {
   1116     mutable_unknown_fields()->Clear();
   1117   }
   1118 }
   1119 
   1120 bool CodeGeneratorResponse::MergePartialFromCodedStream(
   1121     ::google::protobuf::io::CodedInputStream* input) {
   1122 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   1123   ::google::protobuf::uint32 tag;
   1124   // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorResponse)
   1125   for (;;) {
   1126     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
   1127     tag = p.first;
   1128     if (!p.second) goto handle_unusual;
   1129     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   1130       // optional string error = 1;
   1131       case 1: {
   1132         if (tag == 10) {
   1133           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
   1134                 input, this->mutable_error()));
   1135           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
   1136             this->error().data(), this->error().length(),
   1137             ::google::protobuf::internal::WireFormat::PARSE,
   1138             "google.protobuf.compiler.CodeGeneratorResponse.error");
   1139         } else {
   1140           goto handle_unusual;
   1141         }
   1142         if (input->ExpectTag(122)) goto parse_file;
   1143         break;
   1144       }
   1145 
   1146       // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
   1147       case 15: {
   1148         if (tag == 122) {
   1149          parse_file:
   1150           DO_(input->IncrementRecursionDepth());
   1151          parse_loop_file:
   1152           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
   1153                 input, add_file()));
   1154         } else {
   1155           goto handle_unusual;
   1156         }
   1157         if (input->ExpectTag(122)) goto parse_loop_file;
   1158         input->UnsafeDecrementRecursionDepth();
   1159         if (input->ExpectAtEnd()) goto success;
   1160         break;
   1161       }
   1162 
   1163       default: {
   1164       handle_unusual:
   1165         if (tag == 0 ||
   1166             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
   1167             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
   1168           goto success;
   1169         }
   1170         DO_(::google::protobuf::internal::WireFormat::SkipField(
   1171               input, tag, mutable_unknown_fields()));
   1172         break;
   1173       }
   1174     }
   1175   }
   1176 success:
   1177   // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorResponse)
   1178   return true;
   1179 failure:
   1180   // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorResponse)
   1181   return false;
   1182 #undef DO_
   1183 }
   1184 
   1185 void CodeGeneratorResponse::SerializeWithCachedSizes(
   1186     ::google::protobuf::io::CodedOutputStream* output) const {
   1187   // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorResponse)
   1188   // optional string error = 1;
   1189   if (has_error()) {
   1190     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
   1191       this->error().data(), this->error().length(),
   1192       ::google::protobuf::internal::WireFormat::SERIALIZE,
   1193       "google.protobuf.compiler.CodeGeneratorResponse.error");
   1194     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
   1195       1, this->error(), output);
   1196   }
   1197 
   1198   // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
   1199   for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
   1200     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   1201       15, this->file(i), output);
   1202   }
   1203 
   1204   if (_internal_metadata_.have_unknown_fields()) {
   1205     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
   1206         unknown_fields(), output);
   1207   }
   1208   // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorResponse)
   1209 }
   1210 
   1211 ::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArray(
   1212     ::google::protobuf::uint8* target) const {
   1213   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
   1214   // optional string error = 1;
   1215   if (has_error()) {
   1216     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
   1217       this->error().data(), this->error().length(),
   1218       ::google::protobuf::internal::WireFormat::SERIALIZE,
   1219       "google.protobuf.compiler.CodeGeneratorResponse.error");
   1220     target =
   1221       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
   1222         1, this->error(), target);
   1223   }
   1224 
   1225   // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
   1226   for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
   1227     target = ::google::protobuf::internal::WireFormatLite::
   1228       WriteMessageNoVirtualToArray(
   1229         15, this->file(i), target);
   1230   }
   1231 
   1232   if (_internal_metadata_.have_unknown_fields()) {
   1233     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
   1234         unknown_fields(), target);
   1235   }
   1236   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse)
   1237   return target;
   1238 }
   1239 
   1240 int CodeGeneratorResponse::ByteSize() const {
   1241 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse)
   1242   int total_size = 0;
   1243 
   1244   // optional string error = 1;
   1245   if (has_error()) {
   1246     total_size += 1 +
   1247       ::google::protobuf::internal::WireFormatLite::StringSize(
   1248         this->error());
   1249   }
   1250 
   1251   // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
   1252   total_size += 1 * this->file_size();
   1253   for (int i = 0; i < this->file_size(); i++) {
   1254     total_size +=
   1255       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
   1256         this->file(i));
   1257   }
   1258 
   1259   if (_internal_metadata_.have_unknown_fields()) {
   1260     total_size +=
   1261       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
   1262         unknown_fields());
   1263   }
   1264   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   1265   _cached_size_ = total_size;
   1266   GOOGLE_SAFE_CONCURRENT_WRITES_END();
   1267   return total_size;
   1268 }
   1269 
   1270 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) {
   1271 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
   1272   if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
   1273   const CodeGeneratorResponse* source =
   1274       ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorResponse>(
   1275           &from);
   1276   if (source == NULL) {
   1277   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorResponse)
   1278     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   1279   } else {
   1280   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorResponse)
   1281     MergeFrom(*source);
   1282   }
   1283 }
   1284 
   1285 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
   1286 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
   1287   if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
   1288   file_.MergeFrom(from.file_);
   1289   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
   1290     if (from.has_error()) {
   1291       set_has_error();
   1292       error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
   1293     }
   1294   }
   1295   if (from._internal_metadata_.have_unknown_fields()) {
   1296     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
   1297   }
   1298 }
   1299 
   1300 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) {
   1301 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
   1302   if (&from == this) return;
   1303   Clear();
   1304   MergeFrom(from);
   1305 }
   1306 
   1307 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
   1308 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
   1309   if (&from == this) return;
   1310   Clear();
   1311   MergeFrom(from);
   1312 }
   1313 
   1314 bool CodeGeneratorResponse::IsInitialized() const {
   1315 
   1316   return true;
   1317 }
   1318 
   1319 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) {
   1320   if (other == this) return;
   1321   InternalSwap(other);
   1322 }
   1323 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
   1324   error_.Swap(&other->error_);
   1325   file_.UnsafeArenaSwap(&other->file_);
   1326   std::swap(_has_bits_[0], other->_has_bits_[0]);
   1327   _internal_metadata_.Swap(&other->_internal_metadata_);
   1328   std::swap(_cached_size_, other->_cached_size_);
   1329 }
   1330 
   1331 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
   1332   protobuf_AssignDescriptorsOnce();
   1333   ::google::protobuf::Metadata metadata;
   1334   metadata.descriptor = CodeGeneratorResponse_descriptor_;
   1335   metadata.reflection = CodeGeneratorResponse_reflection_;
   1336   return metadata;
   1337 }
   1338 
   1339 #if PROTOBUF_INLINE_NOT_IN_HEADERS
   1340 // CodeGeneratorResponse_File
   1341 
   1342 // optional string name = 1;
   1343 bool CodeGeneratorResponse_File::has_name() const {
   1344   return (_has_bits_[0] & 0x00000001u) != 0;
   1345 }
   1346 void CodeGeneratorResponse_File::set_has_name() {
   1347   _has_bits_[0] |= 0x00000001u;
   1348 }
   1349 void CodeGeneratorResponse_File::clear_has_name() {
   1350   _has_bits_[0] &= ~0x00000001u;
   1351 }
   1352 void CodeGeneratorResponse_File::clear_name() {
   1353   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1354   clear_has_name();
   1355 }
   1356  const ::std::string& CodeGeneratorResponse_File::name() const {
   1357   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1358   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1359 }
   1360  void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
   1361   set_has_name();
   1362   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
   1363   // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1364 }
   1365  void CodeGeneratorResponse_File::set_name(const char* value) {
   1366   set_has_name();
   1367   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
   1368   // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1369 }
   1370  void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
   1371   set_has_name();
   1372   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   1373       ::std::string(reinterpret_cast<const char*>(value), size));
   1374   // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1375 }
   1376  ::std::string* CodeGeneratorResponse_File::mutable_name() {
   1377   set_has_name();
   1378   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1379   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1380 }
   1381  ::std::string* CodeGeneratorResponse_File::release_name() {
   1382   // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1383   clear_has_name();
   1384   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1385 }
   1386  void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
   1387   if (name != NULL) {
   1388     set_has_name();
   1389   } else {
   1390     clear_has_name();
   1391   }
   1392   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
   1393   // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
   1394 }
   1395 
   1396 // optional string insertion_point = 2;
   1397 bool CodeGeneratorResponse_File::has_insertion_point() const {
   1398   return (_has_bits_[0] & 0x00000002u) != 0;
   1399 }
   1400 void CodeGeneratorResponse_File::set_has_insertion_point() {
   1401   _has_bits_[0] |= 0x00000002u;
   1402 }
   1403 void CodeGeneratorResponse_File::clear_has_insertion_point() {
   1404   _has_bits_[0] &= ~0x00000002u;
   1405 }
   1406 void CodeGeneratorResponse_File::clear_insertion_point() {
   1407   insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1408   clear_has_insertion_point();
   1409 }
   1410  const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
   1411   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1412   return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1413 }
   1414  void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
   1415   set_has_insertion_point();
   1416   insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
   1417   // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1418 }
   1419  void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
   1420   set_has_insertion_point();
   1421   insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
   1422   // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1423 }
   1424  void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
   1425   set_has_insertion_point();
   1426   insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   1427       ::std::string(reinterpret_cast<const char*>(value), size));
   1428   // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1429 }
   1430  ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
   1431   set_has_insertion_point();
   1432   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1433   return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1434 }
   1435  ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
   1436   // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1437   clear_has_insertion_point();
   1438   return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1439 }
   1440  void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) {
   1441   if (insertion_point != NULL) {
   1442     set_has_insertion_point();
   1443   } else {
   1444     clear_has_insertion_point();
   1445   }
   1446   insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), insertion_point);
   1447   // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
   1448 }
   1449 
   1450 // optional string content = 15;
   1451 bool CodeGeneratorResponse_File::has_content() const {
   1452   return (_has_bits_[0] & 0x00000004u) != 0;
   1453 }
   1454 void CodeGeneratorResponse_File::set_has_content() {
   1455   _has_bits_[0] |= 0x00000004u;
   1456 }
   1457 void CodeGeneratorResponse_File::clear_has_content() {
   1458   _has_bits_[0] &= ~0x00000004u;
   1459 }
   1460 void CodeGeneratorResponse_File::clear_content() {
   1461   content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1462   clear_has_content();
   1463 }
   1464  const ::std::string& CodeGeneratorResponse_File::content() const {
   1465   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1466   return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1467 }
   1468  void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
   1469   set_has_content();
   1470   content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
   1471   // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1472 }
   1473  void CodeGeneratorResponse_File::set_content(const char* value) {
   1474   set_has_content();
   1475   content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
   1476   // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1477 }
   1478  void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
   1479   set_has_content();
   1480   content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   1481       ::std::string(reinterpret_cast<const char*>(value), size));
   1482   // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1483 }
   1484  ::std::string* CodeGeneratorResponse_File::mutable_content() {
   1485   set_has_content();
   1486   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1487   return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1488 }
   1489  ::std::string* CodeGeneratorResponse_File::release_content() {
   1490   // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1491   clear_has_content();
   1492   return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1493 }
   1494  void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
   1495   if (content != NULL) {
   1496     set_has_content();
   1497   } else {
   1498     clear_has_content();
   1499   }
   1500   content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content);
   1501   // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
   1502 }
   1503 
   1504 // -------------------------------------------------------------------
   1505 
   1506 // CodeGeneratorResponse
   1507 
   1508 // optional string error = 1;
   1509 bool CodeGeneratorResponse::has_error() const {
   1510   return (_has_bits_[0] & 0x00000001u) != 0;
   1511 }
   1512 void CodeGeneratorResponse::set_has_error() {
   1513   _has_bits_[0] |= 0x00000001u;
   1514 }
   1515 void CodeGeneratorResponse::clear_has_error() {
   1516   _has_bits_[0] &= ~0x00000001u;
   1517 }
   1518 void CodeGeneratorResponse::clear_error() {
   1519   error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1520   clear_has_error();
   1521 }
   1522  const ::std::string& CodeGeneratorResponse::error() const {
   1523   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
   1524   return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1525 }
   1526  void CodeGeneratorResponse::set_error(const ::std::string& value) {
   1527   set_has_error();
   1528   error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
   1529   // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
   1530 }
   1531  void CodeGeneratorResponse::set_error(const char* value) {
   1532   set_has_error();
   1533   error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
   1534   // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error)
   1535 }
   1536  void CodeGeneratorResponse::set_error(const char* value, size_t size) {
   1537   set_has_error();
   1538   error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   1539       ::std::string(reinterpret_cast<const char*>(value), size));
   1540   // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error)
   1541 }
   1542  ::std::string* CodeGeneratorResponse::mutable_error() {
   1543   set_has_error();
   1544   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
   1545   return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1546 }
   1547  ::std::string* CodeGeneratorResponse::release_error() {
   1548   // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.error)
   1549   clear_has_error();
   1550   return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   1551 }
   1552  void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
   1553   if (error != NULL) {
   1554     set_has_error();
   1555   } else {
   1556     clear_has_error();
   1557   }
   1558   error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error);
   1559   // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
   1560 }
   1561 
   1562 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
   1563 int CodeGeneratorResponse::file_size() const {
   1564   return file_.size();
   1565 }
   1566 void CodeGeneratorResponse::clear_file() {
   1567   file_.Clear();
   1568 }
   1569 const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
   1570   // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
   1571   return file_.Get(index);
   1572 }
   1573 ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
   1574   // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
   1575   return file_.Mutable(index);
   1576 }
   1577 ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
   1578   // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
   1579   return file_.Add();
   1580 }
   1581 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
   1582 CodeGeneratorResponse::mutable_file() {
   1583   // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
   1584   return &file_;
   1585 }
   1586 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
   1587 CodeGeneratorResponse::file() const {
   1588   // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
   1589   return file_;
   1590 }
   1591 
   1592 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
   1593 
   1594 // @@protoc_insertion_point(namespace_scope)
   1595 
   1596 }  // namespace compiler
   1597 }  // namespace protobuf
   1598 }  // namespace google
   1599 
   1600 // @@protoc_insertion_point(global_scope)
   1601