/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/py3/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #pragma once #include #include "thrift/compiler/test/fixtures/py3/gen-py3cpp/DerivedServiceAsyncClient.h" #include "thrift/compiler/test/fixtures/py3/gen-py3cpp/module_types.h" #if __has_include("thrift/compiler/test/fixtures/py3/gen-py3cpp/SimpleService.h") #include "thrift/compiler/test/fixtures/py3/gen-py3cpp/SimpleService.h" #else #include "thrift/compiler/test/fixtures/py3/gen-py3cpp/module_handlers.h" #endif namespace folly { class IOBuf; class IOBufQueue; } namespace apache { namespace thrift { class Cpp2RequestContext; class BinaryProtocolReader; class CompactProtocolReader; namespace transport { class THeader; } }} namespace py3::simple { class DerivedService; class DerivedServiceAsyncProcessor; class DerivedServiceServiceInfoHolder : public apache::thrift::ServiceInfoHolder { public: apache::thrift::ServiceRequestInfoMap const& requestInfoMap() const override; static apache::thrift::ServiceRequestInfoMap staticRequestInfoMap(); }; } // namespace py3::simple namespace apache::thrift { template <> class ServiceHandler<::py3::simple::DerivedService> : virtual public ::py3::simple::SimpleServiceSvIf { public: std::string_view getGeneratedName() const override { return "DerivedService"; } typedef ::py3::simple::DerivedServiceAsyncProcessor ProcessorType; std::unique_ptr getProcessor() override; CreateMethodMetadataResult createMethodMetadata() override; private: std::optional> getServiceRequestInfoMap() const; public: virtual ::std::int32_t sync_get_six(); [[deprecated("Use sync_get_six instead")]] virtual ::std::int32_t get_six(); virtual folly::Future<::std::int32_t> future_get_six(); virtual folly::SemiFuture<::std::int32_t> semifuture_get_six(); #if FOLLY_HAS_COROUTINES virtual folly::coro::Task<::std::int32_t> co_get_six(); virtual folly::coro::Task<::std::int32_t> co_get_six(apache::thrift::RequestParams params); #endif virtual void async_tm_get_six(std::unique_ptr> callback); private: static ::py3::simple::DerivedServiceServiceInfoHolder __fbthrift_serviceInfoHolder; std::atomic __fbthrift_invocation_get_six{apache::thrift::detail::si::InvocationType::AsyncTm}; }; } // namespace apache::thrift namespace py3::simple { using DerivedServiceSvIf [[deprecated("Use apache::thrift::ServiceHandler instead")]] = ::apache::thrift::ServiceHandler; } // namespace py3::simple namespace py3::simple { class DerivedServiceSvNull : public ::apache::thrift::ServiceHandler, virtual public ::apache::thrift::ServiceHandler<::py3::simple::SimpleService> { public: ::std::int32_t get_six() override; }; class DerivedServiceAsyncProcessor : public ::py3::simple::SimpleServiceAsyncProcessor { public: const char* getServiceName() override; void getServiceMetadata(apache::thrift::metadata::ThriftServiceMetadataResponse& response) override; using BaseAsyncProcessor = ::py3::simple::SimpleServiceAsyncProcessor; protected: ::apache::thrift::ServiceHandler<::py3::simple::DerivedService>* iface_; public: void processSerializedCompressedRequestWithMetadata(apache::thrift::ResponseChannelRequest::UniquePtr req, apache::thrift::SerializedCompressedRequest&& serializedRequest, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata, apache::thrift::protocol::PROTOCOL_TYPES protType, apache::thrift::Cpp2RequestContext* context, folly::EventBase* eb, apache::thrift::concurrency::ThreadManager* tm) override; void executeRequest(apache::thrift::ServerRequest&& serverRequest, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata) override; public: using ProcessFuncs = GeneratedAsyncProcessorBase::ProcessFuncs; using ProcessMap = GeneratedAsyncProcessorBase::ProcessMap; static const DerivedServiceAsyncProcessor::ProcessMap& getOwnProcessMap(); private: static const DerivedServiceAsyncProcessor::ProcessMap kOwnProcessMap_; private: template void setUpAndProcess_get_six(apache::thrift::ResponseChannelRequest::UniquePtr req, apache::thrift::SerializedCompressedRequest&& serializedRequest, apache::thrift::Cpp2RequestContext* ctx, folly::EventBase* eb, apache::thrift::concurrency::ThreadManager* tm); template void executeRequest_get_six(apache::thrift::ServerRequest&& serverRequest); template static apache::thrift::SerializedResponse return_get_six(apache::thrift::ContextStack* ctx, ::std::int32_t const& _return); template static void throw_wrapped_get_six(apache::thrift::ResponseChannelRequest::UniquePtr req,int32_t protoSeqId,apache::thrift::ContextStack* ctx,folly::exception_wrapper ew,apache::thrift::Cpp2RequestContext* reqCtx); public: DerivedServiceAsyncProcessor(::apache::thrift::ServiceHandler<::py3::simple::DerivedService>* iface) : ::py3::simple::SimpleServiceAsyncProcessor(iface), iface_(iface) {} ~DerivedServiceAsyncProcessor() override {} }; } // namespace py3::simple