1
// Generated by the protocol buffer compiler. DO NOT EDIT!
3
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4
#include "google/protobuf/compiler/plugin.pb.h"
8
#include <google/protobuf/stubs/once.h>
9
#include <google/protobuf/io/coded_stream.h>
10
#include <google/protobuf/wire_format_lite_inl.h>
11
#include <google/protobuf/descriptor.h>
12
#include <google/protobuf/reflection_ops.h>
13
#include <google/protobuf/wire_format.h>
14
// @@protoc_insertion_point(includes)
22
const ::google::protobuf::Descriptor* CodeGeneratorRequest_descriptor_ = NULL;
23
const ::google::protobuf::internal::GeneratedMessageReflection*
24
CodeGeneratorRequest_reflection_ = NULL;
25
const ::google::protobuf::Descriptor* CodeGeneratorResponse_descriptor_ = NULL;
26
const ::google::protobuf::internal::GeneratedMessageReflection*
27
CodeGeneratorResponse_reflection_ = NULL;
28
const ::google::protobuf::Descriptor* CodeGeneratorResponse_File_descriptor_ = NULL;
29
const ::google::protobuf::internal::GeneratedMessageReflection*
30
CodeGeneratorResponse_File_reflection_ = NULL;
35
void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
36
protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
37
const ::google::protobuf::FileDescriptor* file =
38
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
39
"google/protobuf/compiler/plugin.proto");
40
GOOGLE_CHECK(file != NULL);
41
CodeGeneratorRequest_descriptor_ = file->message_type(0);
42
static const int CodeGeneratorRequest_offsets_[3] = {
43
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to_generate_),
44
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, parameter_),
45
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_file_),
47
CodeGeneratorRequest_reflection_ =
48
new ::google::protobuf::internal::GeneratedMessageReflection(
49
CodeGeneratorRequest_descriptor_,
50
CodeGeneratorRequest::default_instance_,
51
CodeGeneratorRequest_offsets_,
52
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_bits_[0]),
53
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _unknown_fields_),
55
::google::protobuf::DescriptorPool::generated_pool(),
56
::google::protobuf::MessageFactory::generated_factory(),
57
sizeof(CodeGeneratorRequest));
58
CodeGeneratorResponse_descriptor_ = file->message_type(1);
59
static const int CodeGeneratorResponse_offsets_[2] = {
60
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_),
61
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_),
63
CodeGeneratorResponse_reflection_ =
64
new ::google::protobuf::internal::GeneratedMessageReflection(
65
CodeGeneratorResponse_descriptor_,
66
CodeGeneratorResponse::default_instance_,
67
CodeGeneratorResponse_offsets_,
68
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has_bits_[0]),
69
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _unknown_fields_),
71
::google::protobuf::DescriptorPool::generated_pool(),
72
::google::protobuf::MessageFactory::generated_factory(),
73
sizeof(CodeGeneratorResponse));
74
CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->nested_type(0);
75
static const int CodeGeneratorResponse_File_offsets_[3] = {
76
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, name_),
77
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, insertion_point_),
78
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, content_),
80
CodeGeneratorResponse_File_reflection_ =
81
new ::google::protobuf::internal::GeneratedMessageReflection(
82
CodeGeneratorResponse_File_descriptor_,
83
CodeGeneratorResponse_File::default_instance_,
84
CodeGeneratorResponse_File_offsets_,
85
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _has_bits_[0]),
86
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _unknown_fields_),
88
::google::protobuf::DescriptorPool::generated_pool(),
89
::google::protobuf::MessageFactory::generated_factory(),
90
sizeof(CodeGeneratorResponse_File));
95
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
96
inline void protobuf_AssignDescriptorsOnce() {
97
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
98
&protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
101
void protobuf_RegisterTypes(const ::std::string&) {
102
protobuf_AssignDescriptorsOnce();
103
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
104
CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance());
105
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
106
CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instance());
107
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
108
CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::default_instance());
113
void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
114
delete CodeGeneratorRequest::default_instance_;
115
delete CodeGeneratorRequest_reflection_;
116
delete CodeGeneratorResponse::default_instance_;
117
delete CodeGeneratorResponse_reflection_;
118
delete CodeGeneratorResponse_File::default_instance_;
119
delete CodeGeneratorResponse_File_reflection_;
122
void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
123
static bool already_here = false;
124
if (already_here) return;
126
GOOGLE_PROTOBUF_VERIFY_VERSION;
128
::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
129
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
130
"\n%google/protobuf/compiler/plugin.proto\022"
131
"\030google.protobuf.compiler\032 google/protob"
132
"uf/descriptor.proto\"}\n\024CodeGeneratorRequ"
133
"est\022\030\n\020file_to_generate\030\001 \003(\t\022\021\n\tparamet"
134
"er\030\002 \001(\t\0228\n\nproto_file\030\017 \003(\0132$.google.pr"
135
"otobuf.FileDescriptorProto\"\252\001\n\025CodeGener"
136
"atorResponse\022\r\n\005error\030\001 \001(\t\022B\n\004file\030\017 \003("
137
"\01324.google.protobuf.compiler.CodeGenerat"
138
"orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n"
139
"\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\t", 399);
140
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
141
"google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes);
142
CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest();
143
CodeGeneratorResponse::default_instance_ = new CodeGeneratorResponse();
144
CodeGeneratorResponse_File::default_instance_ = new CodeGeneratorResponse_File();
145
CodeGeneratorRequest::default_instance_->InitAsDefaultInstance();
146
CodeGeneratorResponse::default_instance_->InitAsDefaultInstance();
147
CodeGeneratorResponse_File::default_instance_->InitAsDefaultInstance();
148
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
151
// Force AddDescriptors() to be called at static initialization time.
152
struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
153
StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
154
protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
156
} static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_;
159
// ===================================================================
161
const ::std::string CodeGeneratorRequest::_default_parameter_;
163
const int CodeGeneratorRequest::kFileToGenerateFieldNumber;
164
const int CodeGeneratorRequest::kParameterFieldNumber;
165
const int CodeGeneratorRequest::kProtoFileFieldNumber;
168
CodeGeneratorRequest::CodeGeneratorRequest()
169
: ::google::protobuf::Message() {
173
void CodeGeneratorRequest::InitAsDefaultInstance() {
176
CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
177
: ::google::protobuf::Message() {
182
void CodeGeneratorRequest::SharedCtor() {
184
parameter_ = const_cast< ::std::string*>(&_default_parameter_);
185
::memset(_has_bits_, 0, sizeof(_has_bits_));
188
CodeGeneratorRequest::~CodeGeneratorRequest() {
192
void CodeGeneratorRequest::SharedDtor() {
193
if (parameter_ != &_default_parameter_) {
196
if (this != default_instance_) {
200
void CodeGeneratorRequest::SetCachedSize(int size) const {
201
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
202
_cached_size_ = size;
203
GOOGLE_SAFE_CONCURRENT_WRITES_END();
205
const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() {
206
protobuf_AssignDescriptorsOnce();
207
return CodeGeneratorRequest_descriptor_;
210
const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
211
if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); return *default_instance_;
214
CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL;
216
CodeGeneratorRequest* CodeGeneratorRequest::New() const {
217
return new CodeGeneratorRequest;
220
void CodeGeneratorRequest::Clear() {
221
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
223
if (parameter_ != &_default_parameter_) {
228
file_to_generate_.Clear();
230
::memset(_has_bits_, 0, sizeof(_has_bits_));
231
mutable_unknown_fields()->Clear();
234
bool CodeGeneratorRequest::MergePartialFromCodedStream(
235
::google::protobuf::io::CodedInputStream* input) {
236
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
237
::google::protobuf::uint32 tag;
238
while ((tag = input->ReadTag()) != 0) {
239
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
240
// repeated string file_to_generate = 1;
242
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
243
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
244
parse_file_to_generate:
245
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
246
input, this->add_file_to_generate()));
247
::google::protobuf::internal::WireFormat::VerifyUTF8String(
248
this->file_to_generate(0).data(), this->file_to_generate(0).length(),
249
::google::protobuf::internal::WireFormat::PARSE);
251
goto handle_uninterpreted;
253
if (input->ExpectTag(10)) goto parse_file_to_generate;
254
if (input->ExpectTag(18)) goto parse_parameter;
258
// optional string parameter = 2;
260
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
261
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
263
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
264
input, this->mutable_parameter()));
265
::google::protobuf::internal::WireFormat::VerifyUTF8String(
266
this->parameter().data(), this->parameter().length(),
267
::google::protobuf::internal::WireFormat::PARSE);
269
goto handle_uninterpreted;
271
if (input->ExpectTag(122)) goto parse_proto_file;
275
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
277
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
278
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
280
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
281
input, add_proto_file()));
283
goto handle_uninterpreted;
285
if (input->ExpectTag(122)) goto parse_proto_file;
286
if (input->ExpectAtEnd()) return true;
291
handle_uninterpreted:
292
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
293
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
296
DO_(::google::protobuf::internal::WireFormat::SkipField(
297
input, tag, mutable_unknown_fields()));
306
void CodeGeneratorRequest::SerializeWithCachedSizes(
307
::google::protobuf::io::CodedOutputStream* output) const {
308
// repeated string file_to_generate = 1;
309
for (int i = 0; i < this->file_to_generate_size(); i++) {
310
::google::protobuf::internal::WireFormat::VerifyUTF8String(
311
this->file_to_generate(i).data(), this->file_to_generate(i).length(),
312
::google::protobuf::internal::WireFormat::SERIALIZE);
313
::google::protobuf::internal::WireFormatLite::WriteString(
314
1, this->file_to_generate(i), output);
317
// optional string parameter = 2;
319
::google::protobuf::internal::WireFormat::VerifyUTF8String(
320
this->parameter().data(), this->parameter().length(),
321
::google::protobuf::internal::WireFormat::SERIALIZE);
322
::google::protobuf::internal::WireFormatLite::WriteString(
323
2, this->parameter(), output);
326
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
327
for (int i = 0; i < this->proto_file_size(); i++) {
328
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
329
15, this->proto_file(i), output);
332
if (!unknown_fields().empty()) {
333
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
334
unknown_fields(), output);
338
::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray(
339
::google::protobuf::uint8* target) const {
340
// repeated string file_to_generate = 1;
341
for (int i = 0; i < this->file_to_generate_size(); i++) {
342
::google::protobuf::internal::WireFormat::VerifyUTF8String(
343
this->file_to_generate(i).data(), this->file_to_generate(i).length(),
344
::google::protobuf::internal::WireFormat::SERIALIZE);
345
target = ::google::protobuf::internal::WireFormatLite::
346
WriteStringToArray(1, this->file_to_generate(i), target);
349
// optional string parameter = 2;
351
::google::protobuf::internal::WireFormat::VerifyUTF8String(
352
this->parameter().data(), this->parameter().length(),
353
::google::protobuf::internal::WireFormat::SERIALIZE);
355
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
356
2, this->parameter(), target);
359
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
360
for (int i = 0; i < this->proto_file_size(); i++) {
361
target = ::google::protobuf::internal::WireFormatLite::
362
WriteMessageNoVirtualToArray(
363
15, this->proto_file(i), target);
366
if (!unknown_fields().empty()) {
367
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
368
unknown_fields(), target);
373
int CodeGeneratorRequest::ByteSize() const {
376
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
377
// optional string parameter = 2;
378
if (has_parameter()) {
380
::google::protobuf::internal::WireFormatLite::StringSize(
385
// repeated string file_to_generate = 1;
386
total_size += 1 * this->file_to_generate_size();
387
for (int i = 0; i < this->file_to_generate_size(); i++) {
388
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
389
this->file_to_generate(i));
392
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
393
total_size += 1 * this->proto_file_size();
394
for (int i = 0; i < this->proto_file_size(); i++) {
396
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
397
this->proto_file(i));
400
if (!unknown_fields().empty()) {
402
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
405
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
406
_cached_size_ = total_size;
407
GOOGLE_SAFE_CONCURRENT_WRITES_END();
411
void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) {
412
GOOGLE_CHECK_NE(&from, this);
413
const CodeGeneratorRequest* source =
414
::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorRequest*>(
416
if (source == NULL) {
417
::google::protobuf::internal::ReflectionOps::Merge(from, this);
423
void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
424
GOOGLE_CHECK_NE(&from, this);
425
file_to_generate_.MergeFrom(from.file_to_generate_);
426
proto_file_.MergeFrom(from.proto_file_);
427
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
428
if (from._has_bit(1)) {
429
set_parameter(from.parameter());
432
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
435
void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) {
436
if (&from == this) return;
441
void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
442
if (&from == this) return;
447
bool CodeGeneratorRequest::IsInitialized() const {
449
for (int i = 0; i < proto_file_size(); i++) {
450
if (!this->proto_file(i).IsInitialized()) return false;
455
void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) {
457
file_to_generate_.Swap(&other->file_to_generate_);
458
std::swap(parameter_, other->parameter_);
459
proto_file_.Swap(&other->proto_file_);
460
std::swap(_has_bits_[0], other->_has_bits_[0]);
461
_unknown_fields_.Swap(&other->_unknown_fields_);
462
std::swap(_cached_size_, other->_cached_size_);
466
::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
467
protobuf_AssignDescriptorsOnce();
468
::google::protobuf::Metadata metadata;
469
metadata.descriptor = CodeGeneratorRequest_descriptor_;
470
metadata.reflection = CodeGeneratorRequest_reflection_;
475
// ===================================================================
477
const ::std::string CodeGeneratorResponse_File::_default_name_;
478
const ::std::string CodeGeneratorResponse_File::_default_insertion_point_;
479
const ::std::string CodeGeneratorResponse_File::_default_content_;
481
const int CodeGeneratorResponse_File::kNameFieldNumber;
482
const int CodeGeneratorResponse_File::kInsertionPointFieldNumber;
483
const int CodeGeneratorResponse_File::kContentFieldNumber;
486
CodeGeneratorResponse_File::CodeGeneratorResponse_File()
487
: ::google::protobuf::Message() {
491
void CodeGeneratorResponse_File::InitAsDefaultInstance() {
494
CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from)
495
: ::google::protobuf::Message() {
500
void CodeGeneratorResponse_File::SharedCtor() {
502
name_ = const_cast< ::std::string*>(&_default_name_);
503
insertion_point_ = const_cast< ::std::string*>(&_default_insertion_point_);
504
content_ = const_cast< ::std::string*>(&_default_content_);
505
::memset(_has_bits_, 0, sizeof(_has_bits_));
508
CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
512
void CodeGeneratorResponse_File::SharedDtor() {
513
if (name_ != &_default_name_) {
516
if (insertion_point_ != &_default_insertion_point_) {
517
delete insertion_point_;
519
if (content_ != &_default_content_) {
522
if (this != default_instance_) {
526
void CodeGeneratorResponse_File::SetCachedSize(int size) const {
527
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
528
_cached_size_ = size;
529
GOOGLE_SAFE_CONCURRENT_WRITES_END();
531
const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() {
532
protobuf_AssignDescriptorsOnce();
533
return CodeGeneratorResponse_File_descriptor_;
536
const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
537
if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); return *default_instance_;
540
CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL;
542
CodeGeneratorResponse_File* CodeGeneratorResponse_File::New() const {
543
return new CodeGeneratorResponse_File;
546
void CodeGeneratorResponse_File::Clear() {
547
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
549
if (name_ != &_default_name_) {
554
if (insertion_point_ != &_default_insertion_point_) {
555
insertion_point_->clear();
559
if (content_ != &_default_content_) {
564
::memset(_has_bits_, 0, sizeof(_has_bits_));
565
mutable_unknown_fields()->Clear();
568
bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
569
::google::protobuf::io::CodedInputStream* input) {
570
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
571
::google::protobuf::uint32 tag;
572
while ((tag = input->ReadTag()) != 0) {
573
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
574
// optional string name = 1;
576
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
577
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
578
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
579
input, this->mutable_name()));
580
::google::protobuf::internal::WireFormat::VerifyUTF8String(
581
this->name().data(), this->name().length(),
582
::google::protobuf::internal::WireFormat::PARSE);
584
goto handle_uninterpreted;
586
if (input->ExpectTag(18)) goto parse_insertion_point;
590
// optional string insertion_point = 2;
592
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
593
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
594
parse_insertion_point:
595
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
596
input, this->mutable_insertion_point()));
597
::google::protobuf::internal::WireFormat::VerifyUTF8String(
598
this->insertion_point().data(), this->insertion_point().length(),
599
::google::protobuf::internal::WireFormat::PARSE);
601
goto handle_uninterpreted;
603
if (input->ExpectTag(122)) goto parse_content;
607
// optional string content = 15;
609
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
610
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
612
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
613
input, this->mutable_content()));
614
::google::protobuf::internal::WireFormat::VerifyUTF8String(
615
this->content().data(), this->content().length(),
616
::google::protobuf::internal::WireFormat::PARSE);
618
goto handle_uninterpreted;
620
if (input->ExpectAtEnd()) return true;
625
handle_uninterpreted:
626
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
627
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
630
DO_(::google::protobuf::internal::WireFormat::SkipField(
631
input, tag, mutable_unknown_fields()));
640
void CodeGeneratorResponse_File::SerializeWithCachedSizes(
641
::google::protobuf::io::CodedOutputStream* output) const {
642
// optional string name = 1;
644
::google::protobuf::internal::WireFormat::VerifyUTF8String(
645
this->name().data(), this->name().length(),
646
::google::protobuf::internal::WireFormat::SERIALIZE);
647
::google::protobuf::internal::WireFormatLite::WriteString(
648
1, this->name(), output);
651
// optional string insertion_point = 2;
653
::google::protobuf::internal::WireFormat::VerifyUTF8String(
654
this->insertion_point().data(), this->insertion_point().length(),
655
::google::protobuf::internal::WireFormat::SERIALIZE);
656
::google::protobuf::internal::WireFormatLite::WriteString(
657
2, this->insertion_point(), output);
660
// optional string content = 15;
662
::google::protobuf::internal::WireFormat::VerifyUTF8String(
663
this->content().data(), this->content().length(),
664
::google::protobuf::internal::WireFormat::SERIALIZE);
665
::google::protobuf::internal::WireFormatLite::WriteString(
666
15, this->content(), output);
669
if (!unknown_fields().empty()) {
670
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
671
unknown_fields(), output);
675
::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesToArray(
676
::google::protobuf::uint8* target) const {
677
// optional string name = 1;
679
::google::protobuf::internal::WireFormat::VerifyUTF8String(
680
this->name().data(), this->name().length(),
681
::google::protobuf::internal::WireFormat::SERIALIZE);
683
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
684
1, this->name(), target);
687
// optional string insertion_point = 2;
689
::google::protobuf::internal::WireFormat::VerifyUTF8String(
690
this->insertion_point().data(), this->insertion_point().length(),
691
::google::protobuf::internal::WireFormat::SERIALIZE);
693
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
694
2, this->insertion_point(), target);
697
// optional string content = 15;
699
::google::protobuf::internal::WireFormat::VerifyUTF8String(
700
this->content().data(), this->content().length(),
701
::google::protobuf::internal::WireFormat::SERIALIZE);
703
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
704
15, this->content(), target);
707
if (!unknown_fields().empty()) {
708
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
709
unknown_fields(), target);
714
int CodeGeneratorResponse_File::ByteSize() const {
717
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
718
// optional string name = 1;
721
::google::protobuf::internal::WireFormatLite::StringSize(
725
// optional string insertion_point = 2;
726
if (has_insertion_point()) {
728
::google::protobuf::internal::WireFormatLite::StringSize(
729
this->insertion_point());
732
// optional string content = 15;
735
::google::protobuf::internal::WireFormatLite::StringSize(
740
if (!unknown_fields().empty()) {
742
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
745
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
746
_cached_size_ = total_size;
747
GOOGLE_SAFE_CONCURRENT_WRITES_END();
751
void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& from) {
752
GOOGLE_CHECK_NE(&from, this);
753
const CodeGeneratorResponse_File* source =
754
::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorResponse_File*>(
756
if (source == NULL) {
757
::google::protobuf::internal::ReflectionOps::Merge(from, this);
763
void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& from) {
764
GOOGLE_CHECK_NE(&from, this);
765
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
766
if (from._has_bit(0)) {
767
set_name(from.name());
769
if (from._has_bit(1)) {
770
set_insertion_point(from.insertion_point());
772
if (from._has_bit(2)) {
773
set_content(from.content());
776
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
779
void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& from) {
780
if (&from == this) return;
785
void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
786
if (&from == this) return;
791
bool CodeGeneratorResponse_File::IsInitialized() const {
796
void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) {
798
std::swap(name_, other->name_);
799
std::swap(insertion_point_, other->insertion_point_);
800
std::swap(content_, other->content_);
801
std::swap(_has_bits_[0], other->_has_bits_[0]);
802
_unknown_fields_.Swap(&other->_unknown_fields_);
803
std::swap(_cached_size_, other->_cached_size_);
807
::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
808
protobuf_AssignDescriptorsOnce();
809
::google::protobuf::Metadata metadata;
810
metadata.descriptor = CodeGeneratorResponse_File_descriptor_;
811
metadata.reflection = CodeGeneratorResponse_File_reflection_;
816
// -------------------------------------------------------------------
818
const ::std::string CodeGeneratorResponse::_default_error_;
820
const int CodeGeneratorResponse::kErrorFieldNumber;
821
const int CodeGeneratorResponse::kFileFieldNumber;
824
CodeGeneratorResponse::CodeGeneratorResponse()
825
: ::google::protobuf::Message() {
829
void CodeGeneratorResponse::InitAsDefaultInstance() {
832
CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
833
: ::google::protobuf::Message() {
838
void CodeGeneratorResponse::SharedCtor() {
840
error_ = const_cast< ::std::string*>(&_default_error_);
841
::memset(_has_bits_, 0, sizeof(_has_bits_));
844
CodeGeneratorResponse::~CodeGeneratorResponse() {
848
void CodeGeneratorResponse::SharedDtor() {
849
if (error_ != &_default_error_) {
852
if (this != default_instance_) {
856
void CodeGeneratorResponse::SetCachedSize(int size) const {
857
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
858
_cached_size_ = size;
859
GOOGLE_SAFE_CONCURRENT_WRITES_END();
861
const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() {
862
protobuf_AssignDescriptorsOnce();
863
return CodeGeneratorResponse_descriptor_;
866
const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
867
if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); return *default_instance_;
870
CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL;
872
CodeGeneratorResponse* CodeGeneratorResponse::New() const {
873
return new CodeGeneratorResponse;
876
void CodeGeneratorResponse::Clear() {
877
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
879
if (error_ != &_default_error_) {
885
::memset(_has_bits_, 0, sizeof(_has_bits_));
886
mutable_unknown_fields()->Clear();
889
bool CodeGeneratorResponse::MergePartialFromCodedStream(
890
::google::protobuf::io::CodedInputStream* input) {
891
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
892
::google::protobuf::uint32 tag;
893
while ((tag = input->ReadTag()) != 0) {
894
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
895
// optional string error = 1;
897
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
898
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
899
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
900
input, this->mutable_error()));
901
::google::protobuf::internal::WireFormat::VerifyUTF8String(
902
this->error().data(), this->error().length(),
903
::google::protobuf::internal::WireFormat::PARSE);
905
goto handle_uninterpreted;
907
if (input->ExpectTag(122)) goto parse_file;
911
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
913
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
914
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
916
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
919
goto handle_uninterpreted;
921
if (input->ExpectTag(122)) goto parse_file;
922
if (input->ExpectAtEnd()) return true;
927
handle_uninterpreted:
928
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
929
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
932
DO_(::google::protobuf::internal::WireFormat::SkipField(
933
input, tag, mutable_unknown_fields()));
942
void CodeGeneratorResponse::SerializeWithCachedSizes(
943
::google::protobuf::io::CodedOutputStream* output) const {
944
// optional string error = 1;
946
::google::protobuf::internal::WireFormat::VerifyUTF8String(
947
this->error().data(), this->error().length(),
948
::google::protobuf::internal::WireFormat::SERIALIZE);
949
::google::protobuf::internal::WireFormatLite::WriteString(
950
1, this->error(), output);
953
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
954
for (int i = 0; i < this->file_size(); i++) {
955
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
956
15, this->file(i), output);
959
if (!unknown_fields().empty()) {
960
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
961
unknown_fields(), output);
965
::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArray(
966
::google::protobuf::uint8* target) const {
967
// optional string error = 1;
969
::google::protobuf::internal::WireFormat::VerifyUTF8String(
970
this->error().data(), this->error().length(),
971
::google::protobuf::internal::WireFormat::SERIALIZE);
973
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
974
1, this->error(), target);
977
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
978
for (int i = 0; i < this->file_size(); i++) {
979
target = ::google::protobuf::internal::WireFormatLite::
980
WriteMessageNoVirtualToArray(
981
15, this->file(i), target);
984
if (!unknown_fields().empty()) {
985
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
986
unknown_fields(), target);
991
int CodeGeneratorResponse::ByteSize() const {
994
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
995
// optional string error = 1;
998
::google::protobuf::internal::WireFormatLite::StringSize(
1003
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1004
total_size += 1 * this->file_size();
1005
for (int i = 0; i < this->file_size(); i++) {
1007
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1011
if (!unknown_fields().empty()) {
1013
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1016
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1017
_cached_size_ = total_size;
1018
GOOGLE_SAFE_CONCURRENT_WRITES_END();
1022
void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) {
1023
GOOGLE_CHECK_NE(&from, this);
1024
const CodeGeneratorResponse* source =
1025
::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorResponse*>(
1027
if (source == NULL) {
1028
::google::protobuf::internal::ReflectionOps::Merge(from, this);
1034
void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
1035
GOOGLE_CHECK_NE(&from, this);
1036
file_.MergeFrom(from.file_);
1037
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1038
if (from._has_bit(0)) {
1039
set_error(from.error());
1042
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1045
void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) {
1046
if (&from == this) return;
1051
void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
1052
if (&from == this) return;
1057
bool CodeGeneratorResponse::IsInitialized() const {
1062
void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) {
1063
if (other != this) {
1064
std::swap(error_, other->error_);
1065
file_.Swap(&other->file_);
1066
std::swap(_has_bits_[0], other->_has_bits_[0]);
1067
_unknown_fields_.Swap(&other->_unknown_fields_);
1068
std::swap(_cached_size_, other->_cached_size_);
1072
::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
1073
protobuf_AssignDescriptorsOnce();
1074
::google::protobuf::Metadata metadata;
1075
metadata.descriptor = CodeGeneratorResponse_descriptor_;
1076
metadata.reflection = CodeGeneratorResponse_reflection_;
1081
// @@protoc_insertion_point(namespace_scope)
1083
} // namespace compiler
1084
} // namespace protobuf
1085
} // namespace google
1087
// @@protoc_insertion_point(global_scope)