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