17 #include <google/protobuf/port_def.inc>
21 PROTOBUF_NAMESPACE_OPEN
25 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Version>
_instance;
29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorRequest>
_instance;
33 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorResponse_File>
_instance;
37 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorResponse>
_instance;
40 PROTOBUF_NAMESPACE_CLOSE
45 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_;
46 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest();
49 PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest::InitAsDefaultInstance();
61 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_default_instance_;
62 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse();
65 PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse::InitAsDefaultInstance();
76 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_File_default_instance_;
77 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File();
80 PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File::InitAsDefaultInstance();
90 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_;
94 PROTOBUF_NAMESPACE_ID::compiler::Version::InitAsDefaultInstance();
118 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, _has_bits_),
119 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, _internal_metadata_),
123 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, file_to_generate_),
124 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest,
parameter_),
125 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, proto_file_),
126 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, compiler_version_),
131 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, _has_bits_),
132 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, _internal_metadata_),
136 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File,
name_),
137 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, insertion_point_),
138 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, content_),
142 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, _has_bits_),
143 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, _internal_metadata_),
147 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse,
error_),
148 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse,
file_),
154 { 13, 22,
sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest)},
155 { 26, 34,
sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File)},
156 { 37, 44,
sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse)},
160 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*
>(&PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_),
161 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*
>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_),
162 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*
>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_File_default_instance_),
163 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*
>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_default_instance_),
166 const char descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
167 "\n%google/protobuf/compiler/plugin.proto\022"
168 "\030google.protobuf.compiler\032 google/protob"
169 "uf/descriptor.proto\"F\n\007Version\022\r\n\005major\030"
170 "\001 \001(\005\022\r\n\005minor\030\002 \001(\005\022\r\n\005patch\030\003 \001(\005\022\016\n\006s"
171 "uffix\030\004 \001(\t\"\272\001\n\024CodeGeneratorRequest\022\030\n\020"
172 "file_to_generate\030\001 \003(\t\022\021\n\tparameter\030\002 \001("
173 "\t\0228\n\nproto_file\030\017 \003(\0132$.google.protobuf."
174 "FileDescriptorProto\022;\n\020compiler_version\030"
175 "\003 \001(\0132!.google.protobuf.compiler.Version"
176 "\"\252\001\n\025CodeGeneratorResponse\022\r\n\005error\030\001 \001("
177 "\t\022B\n\004file\030\017 \003(\01324.google.protobuf.compil"
178 "er.CodeGeneratorResponse.File\032>\n\004File\022\014\n"
179 "\004name\030\001 \001(\t\022\027\n\017insertion_point\030\002 \001(\t\022\017\n\007"
180 "content\030\017 \001(\tBg\n\034com.google.protobuf.com"
181 "pilerB\014PluginProtosZ9github.com/golang/p"
182 "rotobuf/protoc-gen-go/plugin;plugin_go"
204 PROTOBUF_NAMESPACE_OPEN
215 (*has_bits)[0] |= 2u;
218 (*has_bits)[0] |= 4u;
221 (*has_bits)[0] |= 8u;
224 (*has_bits)[0] |= 1u;
229 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
234 : ::PROTOBUF_NAMESPACE_ID::Message(),
235 _internal_metadata_(nullptr),
236 _has_bits_(from._has_bits_) {
243 static_cast<size_t>(
reinterpret_cast<char*
>(&
patch_) -
251 ::memset(&
major_, 0,
static_cast<size_t>(
252 reinterpret_cast<char*
>(&
patch_) -
278 (
void) cached_has_bits;
281 if (cached_has_bits & 0x00000001u) {
282 suffix_.ClearNonDefaultToEmptyNoArena();
284 if (cached_has_bits & 0x0000000eu) {
285 ::memset(&
major_, 0,
static_cast<size_t>(
286 reinterpret_cast<char*
>(&
patch_) -
293 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
295 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
297 while (!ctx->Done(&ptr)) {
308 }
else goto handle_unusual;
316 }
else goto handle_unusual;
324 }
else goto handle_unusual;
331 }
else goto handle_unusual;
335 if ((tag & 7) == 4 || tag == 0) {
336 ctx->SetLastTag(tag);
340 CHK_(ptr !=
nullptr);
353 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
355 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
356 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
360 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
362 if (!
p.second)
goto handle_unusual;
363 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
368 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
381 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
394 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
406 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
408 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
411 "google.protobuf.compiler.Version.suffix");
437 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
440 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
443 (
void) cached_has_bits;
447 if (cached_has_bits & 0x00000002u) {
448 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->
major(), output);
452 if (cached_has_bits & 0x00000004u) {
453 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->
minor(), output);
457 if (cached_has_bits & 0x00000008u) {
458 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->
patch(), output);
462 if (cached_has_bits & 0x00000001u) {
463 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
465 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
466 "google.protobuf.compiler.Version.suffix");
467 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
468 4, this->
suffix(), output);
472 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
482 (
void) cached_has_bits;
486 if (cached_has_bits & 0x00000002u) {
487 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->
major(), target);
491 if (cached_has_bits & 0x00000004u) {
492 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->
minor(), target);
496 if (cached_has_bits & 0x00000008u) {
497 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->
patch(), target);
501 if (cached_has_bits & 0x00000001u) {
502 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
504 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
505 "google.protobuf.compiler.Version.suffix");
507 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
508 4, this->
suffix(), target);
512 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
521 size_t total_size = 0;
525 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
530 (
void) cached_has_bits;
533 if (cached_has_bits & 0x0000000fu) {
535 if (cached_has_bits & 0x00000001u) {
537 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
542 if (cached_has_bits & 0x00000002u) {
544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
549 if (cached_has_bits & 0x00000004u) {
551 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
556 if (cached_has_bits & 0x00000008u) {
558 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
572 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Version>(
588 (
void) cached_has_bits;
591 if (cached_has_bits & 0x0000000fu) {
592 if (cached_has_bits & 0x00000001u) {
596 if (cached_has_bits & 0x00000002u) {
599 if (cached_has_bits & 0x00000004u) {
602 if (cached_has_bits & 0x00000008u) {
611 if (&from ==
this)
return;
618 if (&from ==
this)
return;
647 PROTOBUF_NAMESPACE_ID::compiler::Version::internal_default_instance());
653 (*has_bits)[0] |= 1u;
657 (*has_bits)[0] |= 2u;
674 : ::PROTOBUF_NAMESPACE_ID::Message(),
675 _internal_metadata_(nullptr),
676 _has_bits_(from._has_bits_),
677 file_to_generate_(from.file_to_generate_),
678 proto_file_(from.proto_file_) {
721 (
void) cached_has_bits;
726 if (cached_has_bits & 0x00000003u) {
727 if (cached_has_bits & 0x00000001u) {
730 if (cached_has_bits & 0x00000002u) {
739 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
741 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
743 while (!ctx->Done(&ptr)) {
756 if (!ctx->DataAvailable(ptr))
break;
757 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
758 }
else goto handle_unusual;
765 }
else goto handle_unusual;
772 }
else goto handle_unusual;
782 if (!ctx->DataAvailable(ptr))
break;
783 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 122);
784 }
else goto handle_unusual;
788 if ((tag & 7) == 4 || tag == 0) {
789 ctx->SetLastTag(tag);
793 CHK_(ptr !=
nullptr);
806 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
808 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
809 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
813 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
815 if (!
p.second)
goto handle_unusual;
816 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
820 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
822 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
826 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
836 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
838 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
840 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
841 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
851 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
862 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
889 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
892 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
895 (
void) cached_has_bits;
899 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
901 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
902 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
903 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
909 if (cached_has_bits & 0x00000001u) {
910 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
912 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
913 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
914 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
919 if (cached_has_bits & 0x00000002u) {
920 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
925 for (
unsigned int i = 0,
927 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
934 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
944 (
void) cached_has_bits;
948 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
950 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
951 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
952 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
958 if (cached_has_bits & 0x00000001u) {
959 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
961 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
962 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
964 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
969 if (cached_has_bits & 0x00000002u) {
970 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
971 InternalWriteMessageToArray(
976 for (
unsigned int i = 0,
978 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
979 InternalWriteMessageToArray(
980 15, this->
proto_file(
static_cast<int>(
i)), target);
984 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
993 size_t total_size = 0;
997 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1002 (
void) cached_has_bits;
1008 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1015 total_size += 1UL *
count;
1016 for (
unsigned int i = 0;
i <
count;
i++) {
1018 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1024 if (cached_has_bits & 0x00000003u) {
1026 if (cached_has_bits & 0x00000001u) {
1028 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1033 if (cached_has_bits & 0x00000002u) {
1035 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1049 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorRequest>(
1065 (
void) cached_has_bits;
1070 if (cached_has_bits & 0x00000003u) {
1071 if (cached_has_bits & 0x00000001u) {
1075 if (cached_has_bits & 0x00000002u) {
1083 if (&from ==
this)
return;
1090 if (&from ==
this)
return;
1124 (*has_bits)[0] |= 1u;
1127 (*has_bits)[0] |= 2u;
1130 (*has_bits)[0] |= 4u;
1135 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1140 : ::PROTOBUF_NAMESPACE_ID::Message(),
1141 _internal_metadata_(nullptr),
1142 _has_bits_(from._has_bits_) {
1190 (
void) cached_has_bits;
1193 if (cached_has_bits & 0x00000007u) {
1194 if (cached_has_bits & 0x00000001u) {
1195 name_.ClearNonDefaultToEmptyNoArena();
1197 if (cached_has_bits & 0x00000002u) {
1200 if (cached_has_bits & 0x00000004u) {
1201 content_.ClearNonDefaultToEmptyNoArena();
1208 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1210 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1212 while (!ctx->Done(&ptr)) {
1222 }
else goto handle_unusual;
1229 }
else goto handle_unusual;
1236 }
else goto handle_unusual;
1240 if ((tag & 7) == 4 || tag == 0) {
1241 ctx->SetLastTag(tag);
1245 CHK_(ptr !=
nullptr);
1258 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1260 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
1261 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1265 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
1267 if (!
p.second)
goto handle_unusual;
1268 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1272 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1274 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1276 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
1277 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1279 goto handle_unusual;
1287 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1289 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1291 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
1292 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
1294 goto handle_unusual;
1302 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1304 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1306 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
1307 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1309 goto handle_unusual;
1333 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1336 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
1339 (
void) cached_has_bits;
1343 if (cached_has_bits & 0x00000001u) {
1344 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1346 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1347 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1348 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1349 1, this->
name(), output);
1353 if (cached_has_bits & 0x00000002u) {
1354 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1357 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
1358 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1363 if (cached_has_bits & 0x00000004u) {
1364 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1366 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1367 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1368 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1373 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1383 (
void) cached_has_bits;
1387 if (cached_has_bits & 0x00000001u) {
1388 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1390 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1391 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1393 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1394 1, this->
name(), target);
1398 if (cached_has_bits & 0x00000002u) {
1399 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1401 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1402 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
1404 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1409 if (cached_has_bits & 0x00000004u) {
1410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1412 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1413 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1415 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1420 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1429 size_t total_size = 0;
1433 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1438 (
void) cached_has_bits;
1441 if (cached_has_bits & 0x00000007u) {
1443 if (cached_has_bits & 0x00000001u) {
1445 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1450 if (cached_has_bits & 0x00000002u) {
1452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1457 if (cached_has_bits & 0x00000004u) {
1459 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1473 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorResponse_File>(
1489 (
void) cached_has_bits;
1492 if (cached_has_bits & 0x00000007u) {
1493 if (cached_has_bits & 0x00000001u) {
1497 if (cached_has_bits & 0x00000002u) {
1501 if (cached_has_bits & 0x00000004u) {
1510 if (&from ==
this)
return;
1517 if (&from ==
this)
return;
1551 (*has_bits)[0] |= 1u;
1556 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1561 : ::PROTOBUF_NAMESPACE_ID::Message(),
1562 _internal_metadata_(nullptr),
1563 _has_bits_(from._has_bits_),
1600 (
void) cached_has_bits;
1604 if (cached_has_bits & 0x00000001u) {
1605 error_.ClearNonDefaultToEmptyNoArena();
1611 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1613 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1615 while (!ctx->Done(&ptr)) {
1625 }
else goto handle_unusual;
1633 ptr = ctx->ParseMessage(
add_file(), ptr);
1635 if (!ctx->DataAvailable(ptr))
break;
1636 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 122);
1637 }
else goto handle_unusual;
1641 if ((tag & 7) == 4 || tag == 0) {
1642 ctx->SetLastTag(tag);
1646 CHK_(ptr !=
nullptr);
1659 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1661 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
1662 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1666 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
1668 if (!
p.second)
goto handle_unusual;
1669 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1673 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1675 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1677 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
1678 "google.protobuf.compiler.CodeGeneratorResponse.error");
1680 goto handle_unusual;
1688 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1691 goto handle_unusual;
1715 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1718 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
1721 (
void) cached_has_bits;
1725 if (cached_has_bits & 0x00000001u) {
1726 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1728 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1729 "google.protobuf.compiler.CodeGeneratorResponse.error");
1730 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1731 1, this->
error(), output);
1735 for (
unsigned int i = 0,
1736 n =
static_cast<unsigned int>(this->
file_size());
i <
n;
i++) {
1737 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1739 this->
file(
static_cast<int>(
i)),
1744 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1754 (
void) cached_has_bits;
1758 if (cached_has_bits & 0x00000001u) {
1759 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1761 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1762 "google.protobuf.compiler.CodeGeneratorResponse.error");
1764 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1765 1, this->
error(), target);
1769 for (
unsigned int i = 0,
1770 n =
static_cast<unsigned int>(this->
file_size());
i <
n;
i++) {
1771 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1772 InternalWriteMessageToArray(
1773 15, this->
file(
static_cast<int>(
i)), target);
1777 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1786 size_t total_size = 0;
1790 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1795 (
void) cached_has_bits;
1799 unsigned int count =
static_cast<unsigned int>(this->
file_size());
1800 total_size += 1UL *
count;
1801 for (
unsigned int i = 0;
i <
count;
i++) {
1803 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1804 this->
file(
static_cast<int>(
i)));
1810 if (cached_has_bits & 0x00000001u) {
1812 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1825 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorResponse>(
1841 (
void) cached_has_bits;
1852 if (&from ==
this)
return;
1859 if (&from ==
this)
return;
1872 CastToBase(&
file_)->InternalSwap(CastToBase(&other->
file_));
1884 PROTOBUF_NAMESPACE_CLOSE
1885 PROTOBUF_NAMESPACE_OPEN
1887 return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::Version >(arena);
1890 return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest >(arena);
1893 return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >(arena);
1896 return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse >(arena);
1898 PROTOBUF_NAMESPACE_CLOSE
1901 #include <google/protobuf/port_undef.inc>