| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/api.proto
- #include "google/protobuf/api.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::PROTOBUF_NAMESPACE_ID;
- namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
- PROTOBUF_NAMESPACE_OPEN
- PROTOBUF_CONSTEXPR Api::Api(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.methods_)*/{}
- , /*decltype(_impl_.options_)*/{}
- , /*decltype(_impl_.mixins_)*/{}
- , /*decltype(_impl_.name_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.version_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.source_context_)*/nullptr
- , /*decltype(_impl_.syntax_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct ApiDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ApiDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ApiDefaultTypeInternal() {}
- union {
- Api _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiDefaultTypeInternal _Api_default_instance_;
- PROTOBUF_CONSTEXPR Method::Method(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.options_)*/{}
- , /*decltype(_impl_.name_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.request_type_url_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.response_type_url_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.request_streaming_)*/ false
- , /*decltype(_impl_.response_streaming_)*/ false
- , /*decltype(_impl_.syntax_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct MethodDefaultTypeInternal {
- PROTOBUF_CONSTEXPR MethodDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~MethodDefaultTypeInternal() {}
- union {
- Method _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodDefaultTypeInternal _Method_default_instance_;
- PROTOBUF_CONSTEXPR Mixin::Mixin(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.name_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.root_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct MixinDefaultTypeInternal {
- PROTOBUF_CONSTEXPR MixinDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~MixinDefaultTypeInternal() {}
- union {
- Mixin _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MixinDefaultTypeInternal _Mixin_default_instance_;
- PROTOBUF_NAMESPACE_CLOSE
- static ::_pb::Metadata file_level_metadata_google_2fprotobuf_2fapi_2eproto[3];
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr;
- const ::uint32_t TableStruct_google_2fprotobuf_2fapi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.methods_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.options_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.version_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.source_context_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.mixins_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Api, _impl_.syntax_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.request_type_url_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.request_streaming_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.response_type_url_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.response_streaming_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.options_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Method, _impl_.syntax_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Mixin, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Mixin, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Mixin, _impl_.root_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::Api)},
- { 15, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::Method)},
- { 30, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::Mixin)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::PROTOBUF_NAMESPACE_ID::_Api_default_instance_._instance,
- &::PROTOBUF_NAMESPACE_ID::_Method_default_instance_._instance,
- &::PROTOBUF_NAMESPACE_ID::_Mixin_default_instance_._instance,
- };
- const char descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n\031google/protobuf/api.proto\022\017google.prot"
- "obuf\032$google/protobuf/source_context.pro"
- "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
- "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
- "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
- ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
- "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
- "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
- "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
- "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
- "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
- "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
- "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
- "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
- "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
- "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBv\n\023com.google.pr"
- "otobufB\010ApiProtoP\001Z,google.golang.org/pr"
- "otobuf/types/known/apipb\242\002\003GPB\252\002\036Google."
- "Protobuf.WellKnownTypesb\006proto3"
- };
- static const ::_pbi::DescriptorTable* const descriptor_table_google_2fprotobuf_2fapi_2eproto_deps[2] =
- {
- &::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto,
- &::descriptor_table_google_2fprotobuf_2ftype_2eproto,
- };
- static ::absl::once_flag descriptor_table_google_2fprotobuf_2fapi_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fapi_2eproto = {
- false,
- false,
- 751,
- descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto,
- "google/protobuf/api.proto",
- &descriptor_table_google_2fprotobuf_2fapi_2eproto_once,
- descriptor_table_google_2fprotobuf_2fapi_2eproto_deps,
- 2,
- 3,
- schemas,
- file_default_instances,
- TableStruct_google_2fprotobuf_2fapi_2eproto::offsets,
- file_level_metadata_google_2fprotobuf_2fapi_2eproto,
- file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto,
- file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fprotobuf_2fapi_2eproto_getter() {
- return &descriptor_table_google_2fprotobuf_2fapi_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fprotobuf_2fapi_2eproto(&descriptor_table_google_2fprotobuf_2fapi_2eproto);
- PROTOBUF_NAMESPACE_OPEN
- // ===================================================================
- class Api::_Internal {
- public:
- static const ::PROTOBUF_NAMESPACE_ID::SourceContext& source_context(const Api* msg);
- };
- const ::PROTOBUF_NAMESPACE_ID::SourceContext&
- Api::_Internal::source_context(const Api* msg) {
- return *msg->_impl_.source_context_;
- }
- void Api::clear_options() {
- _impl_.options_.Clear();
- }
- void Api::clear_source_context() {
- if (GetArenaForAllocation() == nullptr && _impl_.source_context_ != nullptr) {
- delete _impl_.source_context_;
- }
- _impl_.source_context_ = nullptr;
- }
- Api::Api(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.protobuf.Api)
- }
- Api::Api(const Api& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- Api* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.methods_){from._impl_.methods_}
- , decltype(_impl_.options_){from._impl_.options_}
- , decltype(_impl_.mixins_){from._impl_.mixins_}
- , decltype(_impl_.name_) {}
- , decltype(_impl_.version_) {}
- , decltype(_impl_.source_context_){nullptr}
- , decltype(_impl_.syntax_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.name_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.name_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
- }
- _impl_.version_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.version_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_version().empty()) {
- _this->_impl_.version_.Set(from._internal_version(), _this->GetArenaForAllocation());
- }
- if (from._internal_has_source_context()) {
- _this->_impl_.source_context_ = new ::PROTOBUF_NAMESPACE_ID::SourceContext(*from._impl_.source_context_);
- }
- _this->_impl_.syntax_ = from._impl_.syntax_;
- // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
- }
- inline void Api::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.methods_){arena}
- , decltype(_impl_.options_){arena}
- , decltype(_impl_.mixins_){arena}
- , decltype(_impl_.name_) {}
- , decltype(_impl_.version_) {}
- , decltype(_impl_.source_context_){nullptr}
- , decltype(_impl_.syntax_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.name_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.name_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.version_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.version_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- Api::~Api() {
- // @@protoc_insertion_point(destructor:google.protobuf.Api)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Api::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.methods_.~RepeatedPtrField();
- _impl_.options_.~RepeatedPtrField();
- _impl_.mixins_.~RepeatedPtrField();
- _impl_.name_.Destroy();
- _impl_.version_.Destroy();
- if (this != internal_default_instance()) delete _impl_.source_context_;
- }
- void Api::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Api::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.Api)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.methods_.Clear();
- _impl_.options_.Clear();
- _impl_.mixins_.Clear();
- _impl_.name_.ClearToEmpty();
- _impl_.version_.ClearToEmpty();
- if (GetArenaForAllocation() == nullptr && _impl_.source_context_ != nullptr) {
- delete _impl_.source_context_;
- }
- _impl_.source_context_ = nullptr;
- _impl_.syntax_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Api::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_name();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Api.name"));
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .google.protobuf.Method methods = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_methods(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .google.protobuf.Option options = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_options(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- // string version = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_version();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Api.version"));
- } else {
- goto handle_unusual;
- }
- continue;
- // .google.protobuf.SourceContext source_context = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .google.protobuf.Mixin mixins = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_mixins(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- // .google.protobuf.Syntax syntax = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
- ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- _internal_set_syntax(static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(val));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Api::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // repeated .google.protobuf.Method methods = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_methods_size()); i < n; i++) {
- const auto& repfield = this->_internal_methods(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
- // repeated .google.protobuf.Option options = 3;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_options_size()); i < n; i++) {
- const auto& repfield = this->_internal_options(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
- }
- // string version = 4;
- if (!this->_internal_version().empty()) {
- const std::string& _s = this->_internal_version();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.version");
- target = stream->WriteStringMaybeAliased(4, _s, target);
- }
- // .google.protobuf.SourceContext source_context = 5;
- if (this->_internal_has_source_context()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(5, _Internal::source_context(this),
- _Internal::source_context(this).GetCachedSize(), target, stream);
- }
- // repeated .google.protobuf.Mixin mixins = 6;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_mixins_size()); i < n; i++) {
- const auto& repfield = this->_internal_mixins(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
- }
- // .google.protobuf.Syntax syntax = 7;
- if (this->_internal_syntax() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_syntax(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
- return target;
- }
- ::size_t Api::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.protobuf.Method methods = 2;
- total_size += 1UL * this->_internal_methods_size();
- for (const auto& msg : this->_impl_.methods_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // repeated .google.protobuf.Option options = 3;
- total_size += 1UL * this->_internal_options_size();
- for (const auto& msg : this->_impl_.options_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // repeated .google.protobuf.Mixin mixins = 6;
- total_size += 1UL * this->_internal_mixins_size();
- for (const auto& msg : this->_impl_.mixins_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string version = 4;
- if (!this->_internal_version().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_version());
- }
- // .google.protobuf.SourceContext source_context = 5;
- if (this->_internal_has_source_context()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.source_context_);
- }
- // .google.protobuf.Syntax syntax = 7;
- if (this->_internal_syntax() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_syntax());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Api::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Api::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Api::GetClassData() const { return &_class_data_; }
- void Api::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Api*>(&to_msg);
- auto& from = static_cast<const Api&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_impl_.methods_.MergeFrom(from._impl_.methods_);
- _this->_impl_.options_.MergeFrom(from._impl_.options_);
- _this->_impl_.mixins_.MergeFrom(from._impl_.mixins_);
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- if (!from._internal_version().empty()) {
- _this->_internal_set_version(from._internal_version());
- }
- if (from._internal_has_source_context()) {
- _this->_internal_mutable_source_context()->::PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(
- from._internal_source_context());
- }
- if (from._internal_syntax() != 0) {
- _this->_internal_set_syntax(from._internal_syntax());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Api::CopyFrom(const Api& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Api::IsInitialized() const {
- return true;
- }
- void Api::InternalSwap(Api* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.methods_.InternalSwap(&other->_impl_.methods_);
- _impl_.options_.InternalSwap(&other->_impl_.options_);
- _impl_.mixins_.InternalSwap(&other->_impl_.mixins_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
- &other->_impl_.name_, rhs_arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, lhs_arena,
- &other->_impl_.version_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_)
- + sizeof(Api::_impl_.syntax_)
- - PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_)>(
- reinterpret_cast<char*>(&_impl_.source_context_),
- reinterpret_cast<char*>(&other->_impl_.source_context_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Api::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2fprotobuf_2fapi_2eproto_getter, &descriptor_table_google_2fprotobuf_2fapi_2eproto_once,
- file_level_metadata_google_2fprotobuf_2fapi_2eproto[0]);
- }
- // ===================================================================
- class Method::_Internal {
- public:
- };
- void Method::clear_options() {
- _impl_.options_.Clear();
- }
- Method::Method(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.protobuf.Method)
- }
- Method::Method(const Method& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- Method* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.options_){from._impl_.options_}
- , decltype(_impl_.name_) {}
- , decltype(_impl_.request_type_url_) {}
- , decltype(_impl_.response_type_url_) {}
- , decltype(_impl_.request_streaming_) {}
- , decltype(_impl_.response_streaming_) {}
- , decltype(_impl_.syntax_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.name_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.name_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
- }
- _impl_.request_type_url_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.request_type_url_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_request_type_url().empty()) {
- _this->_impl_.request_type_url_.Set(from._internal_request_type_url(), _this->GetArenaForAllocation());
- }
- _impl_.response_type_url_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.response_type_url_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_response_type_url().empty()) {
- _this->_impl_.response_type_url_.Set(from._internal_response_type_url(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.request_streaming_, &from._impl_.request_streaming_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.syntax_) -
- reinterpret_cast<char*>(&_impl_.request_streaming_)) + sizeof(_impl_.syntax_));
- // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
- }
- inline void Method::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.options_){arena}
- , decltype(_impl_.name_) {}
- , decltype(_impl_.request_type_url_) {}
- , decltype(_impl_.response_type_url_) {}
- , decltype(_impl_.request_streaming_) { false }
- , decltype(_impl_.response_streaming_) { false }
- , decltype(_impl_.syntax_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.name_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.name_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.request_type_url_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.request_type_url_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.response_type_url_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.response_type_url_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- Method::~Method() {
- // @@protoc_insertion_point(destructor:google.protobuf.Method)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Method::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.options_.~RepeatedPtrField();
- _impl_.name_.Destroy();
- _impl_.request_type_url_.Destroy();
- _impl_.response_type_url_.Destroy();
- }
- void Method::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Method::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.Method)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.options_.Clear();
- _impl_.name_.ClearToEmpty();
- _impl_.request_type_url_.ClearToEmpty();
- _impl_.response_type_url_.ClearToEmpty();
- ::memset(&_impl_.request_streaming_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.syntax_) -
- reinterpret_cast<char*>(&_impl_.request_streaming_)) + sizeof(_impl_.syntax_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Method::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_name();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Method.name"));
- } else {
- goto handle_unusual;
- }
- continue;
- // string request_type_url = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_request_type_url();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Method.request_type_url"));
- } else {
- goto handle_unusual;
- }
- continue;
- // bool request_streaming = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.request_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string response_type_url = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_response_type_url();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Method.response_type_url"));
- } else {
- goto handle_unusual;
- }
- continue;
- // bool response_streaming = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
- _impl_.response_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .google.protobuf.Option options = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_options(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- // .google.protobuf.Syntax syntax = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
- ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- _internal_set_syntax(static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(val));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Method::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // string request_type_url = 2;
- if (!this->_internal_request_type_url().empty()) {
- const std::string& _s = this->_internal_request_type_url();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.request_type_url");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // bool request_streaming = 3;
- if (this->_internal_request_streaming() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 3, this->_internal_request_streaming(), target);
- }
- // string response_type_url = 4;
- if (!this->_internal_response_type_url().empty()) {
- const std::string& _s = this->_internal_response_type_url();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.response_type_url");
- target = stream->WriteStringMaybeAliased(4, _s, target);
- }
- // bool response_streaming = 5;
- if (this->_internal_response_streaming() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 5, this->_internal_response_streaming(), target);
- }
- // repeated .google.protobuf.Option options = 6;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_options_size()); i < n; i++) {
- const auto& repfield = this->_internal_options(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
- }
- // .google.protobuf.Syntax syntax = 7;
- if (this->_internal_syntax() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_syntax(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
- return target;
- }
- ::size_t Method::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.protobuf.Option options = 6;
- total_size += 1UL * this->_internal_options_size();
- for (const auto& msg : this->_impl_.options_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string request_type_url = 2;
- if (!this->_internal_request_type_url().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_request_type_url());
- }
- // string response_type_url = 4;
- if (!this->_internal_response_type_url().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_response_type_url());
- }
- // bool request_streaming = 3;
- if (this->_internal_request_streaming() != 0) {
- total_size += 2;
- }
- // bool response_streaming = 5;
- if (this->_internal_response_streaming() != 0) {
- total_size += 2;
- }
- // .google.protobuf.Syntax syntax = 7;
- if (this->_internal_syntax() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_syntax());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Method::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Method::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Method::GetClassData() const { return &_class_data_; }
- void Method::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Method*>(&to_msg);
- auto& from = static_cast<const Method&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_impl_.options_.MergeFrom(from._impl_.options_);
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- if (!from._internal_request_type_url().empty()) {
- _this->_internal_set_request_type_url(from._internal_request_type_url());
- }
- if (!from._internal_response_type_url().empty()) {
- _this->_internal_set_response_type_url(from._internal_response_type_url());
- }
- if (from._internal_request_streaming() != 0) {
- _this->_internal_set_request_streaming(from._internal_request_streaming());
- }
- if (from._internal_response_streaming() != 0) {
- _this->_internal_set_response_streaming(from._internal_response_streaming());
- }
- if (from._internal_syntax() != 0) {
- _this->_internal_set_syntax(from._internal_syntax());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Method::CopyFrom(const Method& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Method)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Method::IsInitialized() const {
- return true;
- }
- void Method::InternalSwap(Method* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.options_.InternalSwap(&other->_impl_.options_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
- &other->_impl_.name_, rhs_arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_type_url_, lhs_arena,
- &other->_impl_.request_type_url_, rhs_arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_type_url_, lhs_arena,
- &other->_impl_.response_type_url_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_)
- + sizeof(Method::_impl_.syntax_)
- - PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_)>(
- reinterpret_cast<char*>(&_impl_.request_streaming_),
- reinterpret_cast<char*>(&other->_impl_.request_streaming_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Method::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2fprotobuf_2fapi_2eproto_getter, &descriptor_table_google_2fprotobuf_2fapi_2eproto_once,
- file_level_metadata_google_2fprotobuf_2fapi_2eproto[1]);
- }
- // ===================================================================
- class Mixin::_Internal {
- public:
- };
- Mixin::Mixin(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.protobuf.Mixin)
- }
- Mixin::Mixin(const Mixin& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- Mixin* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.name_) {}
- , decltype(_impl_.root_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.name_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.name_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
- }
- _impl_.root_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.root_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_root().empty()) {
- _this->_impl_.root_.Set(from._internal_root(), _this->GetArenaForAllocation());
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
- }
- inline void Mixin::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.name_) {}
- , decltype(_impl_.root_) {}
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.name_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.name_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.root_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.root_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- Mixin::~Mixin() {
- // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Mixin::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.name_.Destroy();
- _impl_.root_.Destroy();
- }
- void Mixin::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Mixin::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.name_.ClearToEmpty();
- _impl_.root_.ClearToEmpty();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Mixin::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_name();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Mixin.name"));
- } else {
- goto handle_unusual;
- }
- continue;
- // string root = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_root();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Mixin.root"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Mixin::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // string root = 2;
- if (!this->_internal_root().empty()) {
- const std::string& _s = this->_internal_root();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.root");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
- return target;
- }
- ::size_t Mixin::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string root = 2;
- if (!this->_internal_root().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_root());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Mixin::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Mixin::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Mixin::GetClassData() const { return &_class_data_; }
- void Mixin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Mixin*>(&to_msg);
- auto& from = static_cast<const Mixin&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- if (!from._internal_root().empty()) {
- _this->_internal_set_root(from._internal_root());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Mixin::CopyFrom(const Mixin& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Mixin::IsInitialized() const {
- return true;
- }
- void Mixin::InternalSwap(Mixin* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
- &other->_impl_.name_, rhs_arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.root_, lhs_arena,
- &other->_impl_.root_, rhs_arena);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Mixin::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2fprotobuf_2fapi_2eproto_getter, &descriptor_table_google_2fprotobuf_2fapi_2eproto_once,
- file_level_metadata_google_2fprotobuf_2fapi_2eproto[2]);
- }
- // @@protoc_insertion_point(namespace_scope)
- PROTOBUF_NAMESPACE_CLOSE
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Api*
- Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Api >(Arena* arena) {
- return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Api >(arena);
- }
- template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Method*
- Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Method >(Arena* arena) {
- return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Method >(arena);
- }
- template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Mixin*
- Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Mixin >(Arena* arena) {
- return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Mixin >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|