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