diff options
Diffstat (limited to 'src/main/cpp/google/protobuf/api.pb.cc')
-rw-r--r-- | src/main/cpp/google/protobuf/api.pb.cc | 1350 |
1 files changed, 0 insertions, 1350 deletions
diff --git a/src/main/cpp/google/protobuf/api.pb.cc b/src/main/cpp/google/protobuf/api.pb.cc deleted file mode 100644 index ed63bbb..0000000 --- a/src/main/cpp/google/protobuf/api.pb.cc +++ /dev/null @@ -1,1350 +0,0 @@ -// 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" |