// Generated by the protocol buffer compiler. DO NOT EDIT! // source: faq_client.proto #include "faq_client.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include namespace faq_client { class EmptyDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Empty_default_instance_; class LogMsgDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _LogMsg_default_instance_; class InitRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _InitRequest_default_instance_; class InitResponseDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _InitResponse_default_instance_; } // namespace faq_client static void InitDefaultsscc_info_Empty_faq_5fclient_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::faq_client::_Empty_default_instance_; new (ptr) ::faq_client::Empty(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } FAQ_PROTOS ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Empty_faq_5fclient_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Empty_faq_5fclient_2eproto}, {}}; static void InitDefaultsscc_info_InitRequest_faq_5fclient_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::faq_client::_InitRequest_default_instance_; new (ptr) ::faq_client::InitRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } FAQ_PROTOS ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InitRequest_faq_5fclient_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_InitRequest_faq_5fclient_2eproto}, {}}; static void InitDefaultsscc_info_InitResponse_faq_5fclient_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::faq_client::_InitResponse_default_instance_; new (ptr) ::faq_client::InitResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } FAQ_PROTOS ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InitResponse_faq_5fclient_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_InitResponse_faq_5fclient_2eproto}, {}}; static void InitDefaultsscc_info_LogMsg_faq_5fclient_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::faq_client::_LogMsg_default_instance_; new (ptr) ::faq_client::LogMsg(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } FAQ_PROTOS ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LogMsg_faq_5fclient_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LogMsg_faq_5fclient_2eproto}, {}}; static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_faq_5fclient_2eproto[4]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_faq_5fclient_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_faq_5fclient_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_faq_5fclient_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::faq_client::Empty, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::faq_client::LogMsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::faq_client::LogMsg, pid_), PROTOBUF_FIELD_OFFSET(::faq_client::LogMsg, message_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::faq_client::InitRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::faq_client::InitRequest, pid_), PROTOBUF_FIELD_OFFSET(::faq_client::InitRequest, name_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::faq_client::InitResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::faq_client::InitResponse, enable_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::faq_client::Empty)}, { 5, -1, sizeof(::faq_client::LogMsg)}, { 12, -1, sizeof(::faq_client::InitRequest)}, { 19, -1, sizeof(::faq_client::InitResponse)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::faq_client::_Empty_default_instance_), reinterpret_cast(&::faq_client::_LogMsg_default_instance_), reinterpret_cast(&::faq_client::_InitRequest_default_instance_), reinterpret_cast(&::faq_client::_InitResponse_default_instance_), }; const char descriptor_table_protodef_faq_5fclient_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\020faq_client.proto\022\nfaq_client\"\007\n\005Empty\"" "&\n\006LogMsg\022\013\n\003pid\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\"" "(\n\013InitRequest\022\013\n\003pid\030\001 \001(\005\022\014\n\004name\030\002 \001(" "\t\"\036\n\014InitResponse\022\016\n\006enable\030\001 \001(\0102u\n\006Cli" "ent\022.\n\003Log\022\022.faq_client.LogMsg\032\021.faq_cli" "ent.Empty\"\000\022;\n\004Init\022\027.faq_client.InitReq" "uest\032\030.faq_client.InitResponse\"\000b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_faq_5fclient_2eproto_deps[1] = { }; static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_faq_5fclient_2eproto_sccs[4] = { &scc_info_Empty_faq_5fclient_2eproto.base, &scc_info_InitRequest_faq_5fclient_2eproto.base, &scc_info_InitResponse_faq_5fclient_2eproto.base, &scc_info_LogMsg_faq_5fclient_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_faq_5fclient_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_faq_5fclient_2eproto = { false, false, descriptor_table_protodef_faq_5fclient_2eproto, "faq_client.proto", 280, &descriptor_table_faq_5fclient_2eproto_once, descriptor_table_faq_5fclient_2eproto_sccs, descriptor_table_faq_5fclient_2eproto_deps, 4, 0, schemas, file_default_instances, TableStruct_faq_5fclient_2eproto::offsets, file_level_metadata_faq_5fclient_2eproto, 4, file_level_enum_descriptors_faq_5fclient_2eproto, file_level_service_descriptors_faq_5fclient_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_faq_5fclient_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_faq_5fclient_2eproto)), true); namespace faq_client { // =================================================================== class Empty::_Internal { public: }; Empty::Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:faq_client.Empty) } Empty::Empty(const Empty& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:faq_client.Empty) } void Empty::SharedCtor() { } Empty::~Empty() { // @@protoc_insertion_point(destructor:faq_client.Empty) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Empty::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void Empty::ArenaDtor(void* object) { Empty* _this = reinterpret_cast< Empty* >(object); (void)_this; } void Empty::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Empty::SetCachedSize(int size) const { _cached_size_.Set(size); } const Empty& Empty::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Empty_faq_5fclient_2eproto.base); return *internal_default_instance(); } void Empty::Clear() { // @@protoc_insertion_point(message_clear_start:faq_client.Empty) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Empty::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Empty::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:faq_client.Empty) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:faq_client.Empty) return target; } size_t Empty::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:faq_client.Empty) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Empty::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:faq_client.Empty) GOOGLE_DCHECK_NE(&from, this); const Empty* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:faq_client.Empty) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:faq_client.Empty) MergeFrom(*source); } } void Empty::MergeFrom(const Empty& from) { // @@protoc_insertion_point(class_specific_merge_from_start:faq_client.Empty) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } void Empty::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:faq_client.Empty) if (&from == this) return; Clear(); MergeFrom(from); } void Empty::CopyFrom(const Empty& from) { // @@protoc_insertion_point(class_specific_copy_from_start:faq_client.Empty) if (&from == this) return; Clear(); MergeFrom(from); } bool Empty::IsInitialized() const { return true; } void Empty::InternalSwap(Empty* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); } ::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class LogMsg::_Internal { public: }; LogMsg::LogMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:faq_client.LogMsg) } LogMsg::LogMsg(const LogMsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_message().empty()) { message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), GetArena()); } pid_ = from.pid_; // @@protoc_insertion_point(copy_constructor:faq_client.LogMsg) } void LogMsg::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LogMsg_faq_5fclient_2eproto.base); message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); pid_ = 0; } LogMsg::~LogMsg() { // @@protoc_insertion_point(destructor:faq_client.LogMsg) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void LogMsg::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void LogMsg::ArenaDtor(void* object) { LogMsg* _this = reinterpret_cast< LogMsg* >(object); (void)_this; } void LogMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void LogMsg::SetCachedSize(int size) const { _cached_size_.Set(size); } const LogMsg& LogMsg::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LogMsg_faq_5fclient_2eproto.base); return *internal_default_instance(); } void LogMsg::Clear() { // @@protoc_insertion_point(message_clear_start:faq_client.LogMsg) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; message_.ClearToEmpty(); pid_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* LogMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // int32 pid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string message = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_message(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "faq_client.LogMsg.message")); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* LogMsg::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:faq_client.LogMsg) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int32 pid = 1; if (this->pid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_pid(), target); } // string message = 2; if (this->message().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_message().data(), static_cast(this->_internal_message().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "faq_client.LogMsg.message"); target = stream->WriteStringMaybeAliased( 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:faq_client.LogMsg) return target; } size_t LogMsg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:faq_client.LogMsg) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 2; if (this->message().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_message()); } // int32 pid = 1; if (this->pid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_pid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LogMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:faq_client.LogMsg) GOOGLE_DCHECK_NE(&from, this); const LogMsg* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:faq_client.LogMsg) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:faq_client.LogMsg) MergeFrom(*source); } } void LogMsg::MergeFrom(const LogMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:faq_client.LogMsg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.message().size() > 0) { _internal_set_message(from._internal_message()); } if (from.pid() != 0) { _internal_set_pid(from._internal_pid()); } } void LogMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:faq_client.LogMsg) if (&from == this) return; Clear(); MergeFrom(from); } void LogMsg::CopyFrom(const LogMsg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:faq_client.LogMsg) if (&from == this) return; Clear(); MergeFrom(from); } bool LogMsg::IsInitialized() const { return true; } void LogMsg::InternalSwap(LogMsg* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(pid_, other->pid_); } ::PROTOBUF_NAMESPACE_ID::Metadata LogMsg::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class InitRequest::_Internal { public: }; InitRequest::InitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:faq_client.InitRequest) } InitRequest::InitRequest(const InitRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArena()); } pid_ = from.pid_; // @@protoc_insertion_point(copy_constructor:faq_client.InitRequest) } void InitRequest::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InitRequest_faq_5fclient_2eproto.base); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); pid_ = 0; } InitRequest::~InitRequest() { // @@protoc_insertion_point(destructor:faq_client.InitRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void InitRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void InitRequest::ArenaDtor(void* object) { InitRequest* _this = reinterpret_cast< InitRequest* >(object); (void)_this; } void InitRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void InitRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const InitRequest& InitRequest::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InitRequest_faq_5fclient_2eproto.base); return *internal_default_instance(); } void InitRequest::Clear() { // @@protoc_insertion_point(message_clear_start:faq_client.InitRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmpty(); pid_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* InitRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // int32 pid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string name = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "faq_client.InitRequest.name")); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* InitRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:faq_client.InitRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int32 pid = 1; if (this->pid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_pid(), target); } // string name = 2; if (this->name().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "faq_client.InitRequest.name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:faq_client.InitRequest) return target; } size_t InitRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:faq_client.InitRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 2; if (this->name().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // int32 pid = 1; if (this->pid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_pid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void InitRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:faq_client.InitRequest) GOOGLE_DCHECK_NE(&from, this); const InitRequest* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:faq_client.InitRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:faq_client.InitRequest) MergeFrom(*source); } } void InitRequest::MergeFrom(const InitRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:faq_client.InitRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.name().size() > 0) { _internal_set_name(from._internal_name()); } if (from.pid() != 0) { _internal_set_pid(from._internal_pid()); } } void InitRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:faq_client.InitRequest) if (&from == this) return; Clear(); MergeFrom(from); } void InitRequest::CopyFrom(const InitRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:faq_client.InitRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool InitRequest::IsInitialized() const { return true; } void InitRequest::InternalSwap(InitRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(pid_, other->pid_); } ::PROTOBUF_NAMESPACE_ID::Metadata InitRequest::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class InitResponse::_Internal { public: }; InitResponse::InitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:faq_client.InitResponse) } InitResponse::InitResponse(const InitResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); enable_ = from.enable_; // @@protoc_insertion_point(copy_constructor:faq_client.InitResponse) } void InitResponse::SharedCtor() { enable_ = false; } InitResponse::~InitResponse() { // @@protoc_insertion_point(destructor:faq_client.InitResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void InitResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void InitResponse::ArenaDtor(void* object) { InitResponse* _this = reinterpret_cast< InitResponse* >(object); (void)_this; } void InitResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void InitResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const InitResponse& InitResponse::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InitResponse_faq_5fclient_2eproto.base); return *internal_default_instance(); } void InitResponse::Clear() { // @@protoc_insertion_point(message_clear_start:faq_client.InitResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; enable_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* InitResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // bool enable = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* InitResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:faq_client.InitResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // bool enable = 1; if (this->enable() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_enable(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::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:faq_client.InitResponse) return target; } size_t InitResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:faq_client.InitResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool enable = 1; if (this->enable() != 0) { total_size += 1 + 1; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void InitResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:faq_client.InitResponse) GOOGLE_DCHECK_NE(&from, this); const InitResponse* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:faq_client.InitResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:faq_client.InitResponse) MergeFrom(*source); } } void InitResponse::MergeFrom(const InitResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:faq_client.InitResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.enable() != 0) { _internal_set_enable(from._internal_enable()); } } void InitResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:faq_client.InitResponse) if (&from == this) return; Clear(); MergeFrom(from); } void InitResponse::CopyFrom(const InitResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:faq_client.InitResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool InitResponse::IsInitialized() const { return true; } void InitResponse::InternalSwap(InitResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(enable_, other->enable_); } ::PROTOBUF_NAMESPACE_ID::Metadata InitResponse::GetMetadata() const { return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace faq_client PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::faq_client::Empty* Arena::CreateMaybeMessage< ::faq_client::Empty >(Arena* arena) { return Arena::CreateMessageInternal< ::faq_client::Empty >(arena); } template<> PROTOBUF_NOINLINE ::faq_client::LogMsg* Arena::CreateMaybeMessage< ::faq_client::LogMsg >(Arena* arena) { return Arena::CreateMessageInternal< ::faq_client::LogMsg >(arena); } template<> PROTOBUF_NOINLINE ::faq_client::InitRequest* Arena::CreateMaybeMessage< ::faq_client::InitRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::faq_client::InitRequest >(arena); } template<> PROTOBUF_NOINLINE ::faq_client::InitResponse* Arena::CreateMaybeMessage< ::faq_client::InitResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::faq_client::InitResponse >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include