17 #include <google/protobuf/port_def.inc>
23 PROTOBUF_NAMESPACE_OPEN
26 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Type>
_instance;
30 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Field>
_instance;
34 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Enum>
_instance;
38 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumValue>
_instance;
42 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Option>
_instance;
44 PROTOBUF_NAMESPACE_CLOSE
53 PROTOBUF_NAMESPACE_ID::Enum::InitAsDefaultInstance();
70 PROTOBUF_NAMESPACE_ID::EnumValue::InitAsDefaultInstance();
85 PROTOBUF_NAMESPACE_ID::Field::InitAsDefaultInstance();
100 PROTOBUF_NAMESPACE_ID::Option::InitAsDefaultInstance();
115 PROTOBUF_NAMESPACE_ID::Type::InitAsDefaultInstance();
198 "\n\032google/protobuf/type.proto\022\017google.pro"
199 "tobuf\032\031google/protobuf/any.proto\032$google"
200 "/protobuf/source_context.proto\"\327\001\n\004Type\022"
201 "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.google.p"
202 "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
203 "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc"
204 "e_context\030\005 \001(\0132\036.google.protobuf.Source"
205 "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu"
206 "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl"
207 "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001"
208 "(\0162\".google.protobuf.Field.Cardinality\022\016"
209 "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\n\010type_url"
210 "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006packed\030\010 "
211 "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O"
212 "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu"
213 "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\022\017\n\013TY"
214 "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6"
215 "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014"
216 "TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE"
217 "_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n"
218 "\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TY"
219 "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE"
220 "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020"
221 "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CAR"
222 "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION"
223 "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN"
224 "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001(\t\022"
225 "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu"
226 "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu"
227 "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl"
228 "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016"
229 "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014"
230 "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\007options\030"
231 "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option"
232 "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p"
233 "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000"
234 "\022\021\n\rSYNTAX_PROTO3\020\001B}\n\023com.google.protob"
235 "ufB\tTypeProtoP\001Z/google.golang.org/genpr"
236 "oto/protobuf/ptype;ptype\370\001\001\242\002\003GPB\252\002\036Goog"
237 "le.Protobuf.WellKnownTypesb\006proto3"
261 PROTOBUF_NAMESPACE_OPEN
293 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
316 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
333 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
341 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
361 PROTOBUF_NAMESPACE_ID::SourceContext::internal_default_instance());
397 : ::PROTOBUF_NAMESPACE_ID::Message(),
398 _internal_metadata_(arena),
407 : ::PROTOBUF_NAMESPACE_ID::Message(),
408 _internal_metadata_(nullptr),
410 oneofs_(from.oneofs_),
414 if (!from.
name().empty()) {
418 if (from.has_source_context()) {
431 reinterpret_cast<char*
>(&
syntax_) -
447 Type* _this =
reinterpret_cast< Type*
>(object);
465 (
void) cached_has_bits;
479 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
480 const char*
Type::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
481 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
483 while (!ctx->Done(&ptr)) {
493 }
else goto handle_unusual;
503 if (!ctx->DataAvailable(ptr))
break;
504 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
505 }
else goto handle_unusual;
515 if (!ctx->DataAvailable(ptr))
break;
516 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
517 }
else goto handle_unusual;
527 if (!ctx->DataAvailable(ptr))
break;
528 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
529 }
else goto handle_unusual;
536 }
else goto handle_unusual;
544 }
else goto handle_unusual;
548 if ((tag & 7) == 4 || tag == 0) {
549 ctx->SetLastTag(tag);
553 CHK_(ptr !=
nullptr);
565 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
567 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
568 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
572 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
574 if (!
p.second)
goto handle_unusual;
575 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
579 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
581 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
583 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
584 "google.protobuf.Type.name"));
594 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
605 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
607 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
610 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
611 "google.protobuf.Type.oneofs"));
621 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
632 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
644 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
645 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
673 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
676 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
679 (
void) cached_has_bits;
682 if (this->
name().size() > 0) {
683 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
685 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
686 "google.protobuf.Type.name");
687 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
688 1, this->
name(), output);
692 for (
unsigned int i = 0,
694 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
696 this->
fields(
static_cast<int>(
i)),
702 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
704 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
705 "google.protobuf.Type.oneofs");
706 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
711 for (
unsigned int i = 0,
713 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
720 if (this->has_source_context()) {
721 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
726 if (this->
syntax() != 0) {
727 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
728 6, this->
syntax(), output);
732 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
742 (
void) cached_has_bits;
745 if (this->
name().size() > 0) {
746 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
748 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
749 "google.protobuf.Type.name");
751 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
752 1, this->
name(), target);
756 for (
unsigned int i = 0,
758 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
759 InternalWriteMessageToArray(
760 2, this->
fields(
static_cast<int>(
i)), target);
765 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
767 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
768 "google.protobuf.Type.oneofs");
769 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
770 WriteStringToArray(3, this->
oneofs(
i), target);
774 for (
unsigned int i = 0,
776 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
777 InternalWriteMessageToArray(
778 4, this->
options(
static_cast<int>(
i)), target);
782 if (this->has_source_context()) {
783 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
784 InternalWriteMessageToArray(
789 if (this->
syntax() != 0) {
790 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
791 6, this->
syntax(), target);
795 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
804 size_t total_size = 0;
808 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
813 (
void) cached_has_bits;
818 total_size += 1UL *
count;
819 for (
unsigned int i = 0;
i <
count;
i++) {
821 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
822 this->
fields(
static_cast<int>(
i)));
830 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
837 total_size += 1UL *
count;
838 for (
unsigned int i = 0;
i <
count;
i++) {
840 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
841 this->
options(
static_cast<int>(
i)));
848 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
853 if (this->has_source_context()) {
855 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
860 if (this->
syntax() != 0) {
862 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->
syntax());
874 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Type>(
890 (
void) cached_has_bits;
895 if (from.
name().size() > 0) {
898 if (from.has_source_context()) {
908 if (&from ==
this)
return;
915 if (&from ==
this)
return;
950 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
955 : ::PROTOBUF_NAMESPACE_ID::Message(),
956 _internal_metadata_(arena),
963 : ::PROTOBUF_NAMESPACE_ID::Message(),
964 _internal_metadata_(nullptr),
968 if (!from.
name().empty()) {
988 static_cast<size_t>(
reinterpret_cast<char*
>(&
packed_) -
999 ::memset(&
kind_, 0,
static_cast<size_t>(
1000 reinterpret_cast<char*
>(&
packed_) -
1018 Field* _this =
reinterpret_cast< Field*
>(object);
1036 (
void) cached_has_bits;
1043 ::memset(&
kind_, 0,
static_cast<size_t>(
1044 reinterpret_cast<char*
>(&
packed_) -
1049 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1050 const char*
Field::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1051 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1053 while (!ctx->Done(&ptr)) {
1064 }
else goto handle_unusual;
1072 }
else goto handle_unusual;
1079 }
else goto handle_unusual;
1086 }
else goto handle_unusual;
1093 }
else goto handle_unusual;
1100 }
else goto handle_unusual;
1107 }
else goto handle_unusual;
1117 if (!ctx->DataAvailable(ptr))
break;
1118 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 74);
1119 }
else goto handle_unusual;
1126 }
else goto handle_unusual;
1133 }
else goto handle_unusual;
1137 if ((tag & 7) == 4 || tag == 0) {
1138 ctx->SetLastTag(tag);
1142 CHK_(ptr !=
nullptr);
1154 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1156 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
1157 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1161 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
1163 if (!
p.second)
goto handle_unusual;
1164 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1169 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1170 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
1174 goto handle_unusual;
1183 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1184 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
1188 goto handle_unusual;
1197 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1201 goto handle_unusual;
1209 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1211 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1213 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1214 "google.protobuf.Field.name"));
1216 goto handle_unusual;
1224 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1226 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1228 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1229 "google.protobuf.Field.type_url"));
1231 goto handle_unusual;
1240 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1244 goto handle_unusual;
1253 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1254 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
1257 goto handle_unusual;
1265 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1268 goto handle_unusual;
1276 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1278 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1280 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1281 "google.protobuf.Field.json_name"));
1283 goto handle_unusual;
1291 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1293 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1295 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1296 "google.protobuf.Field.default_value"));
1298 goto handle_unusual;
1322 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1325 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
1328 (
void) cached_has_bits;
1331 if (this->
kind() != 0) {
1332 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
1333 1, this->
kind(), output);
1338 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
1343 if (this->
number() != 0) {
1344 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->
number(), output);
1349 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1351 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1352 "google.protobuf.Field.name");
1353 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1354 4, this->
name(), output);
1359 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1361 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1362 "google.protobuf.Field.type_url");
1363 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1369 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(7, this->
oneof_index(), output);
1373 if (this->
packed() != 0) {
1374 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(8, this->
packed(), output);
1378 for (
unsigned int i = 0,
1380 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1382 this->
options(
static_cast<int>(
i)),
1388 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1390 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1391 "google.protobuf.Field.json_name");
1392 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1398 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1400 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1401 "google.protobuf.Field.default_value");
1402 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1407 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1417 (
void) cached_has_bits;
1420 if (this->
kind() != 0) {
1421 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1422 1, this->
kind(), target);
1427 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1432 if (this->
number() != 0) {
1433 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->
number(), target);
1438 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1440 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1441 "google.protobuf.Field.name");
1443 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1444 4, this->
name(), target);
1449 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1451 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1452 "google.protobuf.Field.type_url");
1454 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1460 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->
oneof_index(), target);
1464 if (this->
packed() != 0) {
1465 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->
packed(), target);
1469 for (
unsigned int i = 0,
1471 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1472 InternalWriteMessageToArray(
1473 9, this->
options(
static_cast<int>(
i)), target);
1478 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1480 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1481 "google.protobuf.Field.json_name");
1483 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1489 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1491 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1492 "google.protobuf.Field.default_value");
1494 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1499 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1508 size_t total_size = 0;
1512 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1517 (
void) cached_has_bits;
1522 total_size += 1UL *
count;
1523 for (
unsigned int i = 0;
i <
count;
i++) {
1525 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1526 this->
options(
static_cast<int>(
i)));
1533 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1540 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1547 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1554 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1559 if (this->
kind() != 0) {
1561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->
kind());
1567 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->
cardinality());
1571 if (this->
number() != 0) {
1573 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1580 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1585 if (this->
packed() != 0) {
1586 total_size += 1 + 1;
1598 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Field>(
1614 (
void) cached_has_bits;
1617 if (from.
name().size() > 0) {
1629 if (from.
kind() != 0) {
1635 if (from.
number() != 0) {
1641 if (from.
packed() != 0) {
1648 if (&from ==
this)
return;
1655 if (&from ==
this)
return;
1692 PROTOBUF_NAMESPACE_ID::SourceContext::internal_default_instance());
1728 : ::PROTOBUF_NAMESPACE_ID::Message(),
1729 _internal_metadata_(arena),
1737 : ::PROTOBUF_NAMESPACE_ID::Message(),
1738 _internal_metadata_(nullptr),
1739 enumvalue_(from.enumvalue_),
1743 if (!from.
name().empty()) {
1747 if (from.has_source_context()) {
1760 reinterpret_cast<char*
>(&
syntax_) -
1776 Enum* _this =
reinterpret_cast< Enum*
>(object);
1794 (
void) cached_has_bits;
1807 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1808 const char*
Enum::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1809 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1811 while (!ctx->Done(&ptr)) {
1821 }
else goto handle_unusual;
1831 if (!ctx->DataAvailable(ptr))
break;
1832 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
1833 }
else goto handle_unusual;
1843 if (!ctx->DataAvailable(ptr))
break;
1844 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
1845 }
else goto handle_unusual;
1852 }
else goto handle_unusual;
1860 }
else goto handle_unusual;
1864 if ((tag & 7) == 4 || tag == 0) {
1865 ctx->SetLastTag(tag);
1869 CHK_(ptr !=
nullptr);
1881 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1883 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
1884 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1888 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
1890 if (!
p.second)
goto handle_unusual;
1891 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1895 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1897 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1899 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1900 "google.protobuf.Enum.name"));
1902 goto handle_unusual;
1910 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1913 goto handle_unusual;
1921 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1924 goto handle_unusual;
1932 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1935 goto handle_unusual;
1944 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1945 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
1949 goto handle_unusual;
1973 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1976 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
1979 (
void) cached_has_bits;
1982 if (this->
name().size() > 0) {
1983 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1985 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1986 "google.protobuf.Enum.name");
1987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1988 1, this->
name(), output);
1992 for (
unsigned int i = 0,
1994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2001 for (
unsigned int i = 0,
2003 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2005 this->
options(
static_cast<int>(
i)),
2010 if (this->has_source_context()) {
2011 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2016 if (this->
syntax() != 0) {
2017 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
2018 5, this->
syntax(), output);
2022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2032 (
void) cached_has_bits;
2035 if (this->
name().size() > 0) {
2036 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2038 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2039 "google.protobuf.Enum.name");
2041 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2042 1, this->
name(), target);
2046 for (
unsigned int i = 0,
2048 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2049 InternalWriteMessageToArray(
2050 2, this->
enumvalue(
static_cast<int>(
i)), target);
2054 for (
unsigned int i = 0,
2056 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2057 InternalWriteMessageToArray(
2058 3, this->
options(
static_cast<int>(
i)), target);
2062 if (this->has_source_context()) {
2063 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2064 InternalWriteMessageToArray(
2069 if (this->
syntax() != 0) {
2070 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
2071 5, this->
syntax(), target);
2075 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2084 size_t total_size = 0;
2088 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2093 (
void) cached_has_bits;
2098 total_size += 1UL *
count;
2099 for (
unsigned int i = 0;
i <
count;
i++) {
2101 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2109 total_size += 1UL *
count;
2110 for (
unsigned int i = 0;
i <
count;
i++) {
2112 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2113 this->
options(
static_cast<int>(
i)));
2120 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2125 if (this->has_source_context()) {
2127 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2132 if (this->
syntax() != 0) {
2134 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->
syntax());
2146 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Enum>(
2162 (
void) cached_has_bits;
2166 if (from.
name().size() > 0) {
2169 if (from.has_source_context()) {
2172 if (from.
syntax() != 0) {
2179 if (&from ==
this)
return;
2186 if (&from ==
this)
return;
2220 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2225 : ::PROTOBUF_NAMESPACE_ID::Message(),
2226 _internal_metadata_(arena),
2233 : ::PROTOBUF_NAMESPACE_ID::Message(),
2234 _internal_metadata_(nullptr),
2238 if (!from.
name().empty()) {
2281 (
void) cached_has_bits;
2289 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2291 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2293 while (!ctx->Done(&ptr)) {
2303 }
else goto handle_unusual;
2310 }
else goto handle_unusual;
2320 if (!ctx->DataAvailable(ptr))
break;
2321 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
2322 }
else goto handle_unusual;
2326 if ((tag & 7) == 4 || tag == 0) {
2327 ctx->SetLastTag(tag);
2331 CHK_(ptr !=
nullptr);
2343 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2345 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
2346 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2350 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
2352 if (!
p.second)
goto handle_unusual;
2353 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2357 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2359 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2361 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2362 "google.protobuf.EnumValue.name"));
2364 goto handle_unusual;
2373 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2377 goto handle_unusual;
2385 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2388 goto handle_unusual;
2412 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2415 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
2418 (
void) cached_has_bits;
2421 if (this->
name().size() > 0) {
2422 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2424 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2425 "google.protobuf.EnumValue.name");
2426 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2427 1, this->
name(), output);
2431 if (this->
number() != 0) {
2432 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->
number(), output);
2436 for (
unsigned int i = 0,
2438 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2440 this->
options(
static_cast<int>(
i)),
2445 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2455 (
void) cached_has_bits;
2458 if (this->
name().size() > 0) {
2459 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2461 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2462 "google.protobuf.EnumValue.name");
2464 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2465 1, this->
name(), target);
2469 if (this->
number() != 0) {
2470 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->
number(), target);
2474 for (
unsigned int i = 0,
2476 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2477 InternalWriteMessageToArray(
2478 3, this->
options(
static_cast<int>(
i)), target);
2482 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2491 size_t total_size = 0;
2495 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2500 (
void) cached_has_bits;
2505 total_size += 1UL *
count;
2506 for (
unsigned int i = 0;
i <
count;
i++) {
2508 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2509 this->
options(
static_cast<int>(
i)));
2516 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2521 if (this->
number() != 0) {
2523 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
2536 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumValue>(
2552 (
void) cached_has_bits;
2555 if (from.
name().size() > 0) {
2558 if (from.
number() != 0) {
2565 if (&from ==
this)
return;
2572 if (&from ==
this)
return;
2599 PROTOBUF_NAMESPACE_ID::Any::internal_default_instance());
2635 : ::PROTOBUF_NAMESPACE_ID::Message(),
2636 _internal_metadata_(arena) {
2642 : ::PROTOBUF_NAMESPACE_ID::Message(),
2643 _internal_metadata_(nullptr) {
2646 if (!from.
name().empty()) {
2650 if (from.has_value()) {
2694 (
void) cached_has_bits;
2704 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2705 const char*
Option::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2706 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2708 while (!ctx->Done(&ptr)) {
2718 }
else goto handle_unusual;
2725 }
else goto handle_unusual;
2729 if ((tag & 7) == 4 || tag == 0) {
2730 ctx->SetLastTag(tag);
2734 CHK_(ptr !=
nullptr);
2746 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2748 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
2749 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2753 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
2755 if (!
p.second)
goto handle_unusual;
2756 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2760 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2762 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2764 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2765 "google.protobuf.Option.name"));
2767 goto handle_unusual;
2775 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2778 goto handle_unusual;
2802 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2805 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
2808 (
void) cached_has_bits;
2811 if (this->
name().size() > 0) {
2812 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2814 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2815 "google.protobuf.Option.name");
2816 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2817 1, this->
name(), output);
2821 if (this->has_value()) {
2822 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2827 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2837 (
void) cached_has_bits;
2840 if (this->
name().size() > 0) {
2841 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2843 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2844 "google.protobuf.Option.name");
2846 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2847 1, this->
name(), target);
2851 if (this->has_value()) {
2852 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2853 InternalWriteMessageToArray(
2858 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2867 size_t total_size = 0;
2871 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2876 (
void) cached_has_bits;
2879 if (this->
name().size() > 0) {
2881 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2886 if (this->has_value()) {
2888 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2901 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Option>(
2917 (
void) cached_has_bits;
2919 if (from.
name().size() > 0) {
2922 if (from.has_value()) {
2929 if (&from ==
this)
return;
2936 if (&from ==
this)
return;
2959 PROTOBUF_NAMESPACE_CLOSE
2960 PROTOBUF_NAMESPACE_OPEN
2962 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Type >(arena);
2965 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Field >(arena);
2968 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Enum >(arena);
2971 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumValue >(arena);
2974 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Option >(arena);
2976 PROTOBUF_NAMESPACE_CLOSE
2979 #include <google/protobuf/port_undef.inc>