1*890232f2SAndroid Build Coastguard Worker // Generated by the gRPC C++ plugin. 2*890232f2SAndroid Build Coastguard Worker // If you make any local change, they will be lost. 3*890232f2SAndroid Build Coastguard Worker // source: monster_test 4*890232f2SAndroid Build Coastguard Worker #ifndef GRPC_monster_5ftest__INCLUDED 5*890232f2SAndroid Build Coastguard Worker #define GRPC_monster_5ftest__INCLUDED 6*890232f2SAndroid Build Coastguard Worker 7*890232f2SAndroid Build Coastguard Worker #include "monster_test_generated.h" 8*890232f2SAndroid Build Coastguard Worker #include "flatbuffers/grpc.h" 9*890232f2SAndroid Build Coastguard Worker 10*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/async_stream.h> 11*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/async_unary_call.h> 12*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/method_handler.h> 13*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/proto_utils.h> 14*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/rpc_method.h> 15*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/service_type.h> 16*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/status.h> 17*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/stub_options.h> 18*890232f2SAndroid Build Coastguard Worker #include <grpcpp/impl/codegen/sync_stream.h> 19*890232f2SAndroid Build Coastguard Worker 20*890232f2SAndroid Build Coastguard Worker namespace grpc { 21*890232f2SAndroid Build Coastguard Worker class CompletionQueue; 22*890232f2SAndroid Build Coastguard Worker class Channel; 23*890232f2SAndroid Build Coastguard Worker class ServerCompletionQueue; 24*890232f2SAndroid Build Coastguard Worker class ServerContext; 25*890232f2SAndroid Build Coastguard Worker } // namespace grpc 26*890232f2SAndroid Build Coastguard Worker 27*890232f2SAndroid Build Coastguard Worker namespace MyGame { 28*890232f2SAndroid Build Coastguard Worker namespace Example { 29*890232f2SAndroid Build Coastguard Worker 30*890232f2SAndroid Build Coastguard Worker class MonsterStorage final { 31*890232f2SAndroid Build Coastguard Worker public: service_full_name()32*890232f2SAndroid Build Coastguard Worker static constexpr char const* service_full_name() { 33*890232f2SAndroid Build Coastguard Worker return "MyGame.Example.MonsterStorage"; 34*890232f2SAndroid Build Coastguard Worker } 35*890232f2SAndroid Build Coastguard Worker class StubInterface { 36*890232f2SAndroid Build Coastguard Worker public: ~StubInterface()37*890232f2SAndroid Build Coastguard Worker virtual ~StubInterface() {} 38*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status Store(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) = 0; AsyncStore(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Monster> & request,::grpc::CompletionQueue * cq)39*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> AsyncStore(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) { 40*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(context, request, cq)); 41*890232f2SAndroid Build Coastguard Worker } PrepareAsyncStore(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Monster> & request,::grpc::CompletionQueue * cq)42*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> PrepareAsyncStore(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) { 43*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStoreRaw(context, request, cq)); 44*890232f2SAndroid Build Coastguard Worker } Retrieve(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Stat> & request)45*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientReaderInterface< flatbuffers::grpc::Message<Monster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { 46*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientReaderInterface< flatbuffers::grpc::Message<Monster>>>(RetrieveRaw(context, request)); 47*890232f2SAndroid Build Coastguard Worker } AsyncRetrieve(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Stat> & request,::grpc::CompletionQueue * cq,void * tag)48*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>> AsyncRetrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq, void* tag) { 49*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>>(AsyncRetrieveRaw(context, request, cq, tag)); 50*890232f2SAndroid Build Coastguard Worker } PrepareAsyncRetrieve(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Stat> & request,::grpc::CompletionQueue * cq)51*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>> PrepareAsyncRetrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq) { 52*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>>(PrepareAsyncRetrieveRaw(context, request, cq)); 53*890232f2SAndroid Build Coastguard Worker } GetMaxHitPoint(::grpc::ClientContext * context,flatbuffers::grpc::Message<Stat> * response)54*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientWriterInterface< flatbuffers::grpc::Message<Monster>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { 55*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientWriterInterface< flatbuffers::grpc::Message<Monster>>>(GetMaxHitPointRaw(context, response)); 56*890232f2SAndroid Build Coastguard Worker } AsyncGetMaxHitPoint(::grpc::ClientContext * context,flatbuffers::grpc::Message<Stat> * response,::grpc::CompletionQueue * cq,void * tag)57*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncWriterInterface< flatbuffers::grpc::Message<Monster>>> AsyncGetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq, void* tag) { 58*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncWriterInterface< flatbuffers::grpc::Message<Monster>>>(AsyncGetMaxHitPointRaw(context, response, cq, tag)); 59*890232f2SAndroid Build Coastguard Worker } PrepareAsyncGetMaxHitPoint(::grpc::ClientContext * context,flatbuffers::grpc::Message<Stat> * response,::grpc::CompletionQueue * cq)60*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncWriterInterface< flatbuffers::grpc::Message<Monster>>> PrepareAsyncGetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq) { 61*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncWriterInterface< flatbuffers::grpc::Message<Monster>>>(PrepareAsyncGetMaxHitPointRaw(context, response, cq)); 62*890232f2SAndroid Build Coastguard Worker } GetMinMaxHitPoints(::grpc::ClientContext * context)63*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>> GetMinMaxHitPoints(::grpc::ClientContext* context) { 64*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>>(GetMinMaxHitPointsRaw(context)); 65*890232f2SAndroid Build Coastguard Worker } AsyncGetMinMaxHitPoints(::grpc::ClientContext * context,::grpc::CompletionQueue * cq,void * tag)66*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>> AsyncGetMinMaxHitPoints(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { 67*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>>(AsyncGetMinMaxHitPointsRaw(context, cq, tag)); 68*890232f2SAndroid Build Coastguard Worker } PrepareAsyncGetMinMaxHitPoints(::grpc::ClientContext * context,::grpc::CompletionQueue * cq)69*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>> PrepareAsyncGetMinMaxHitPoints(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { 70*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>>(PrepareAsyncGetMinMaxHitPointsRaw(context, cq)); 71*890232f2SAndroid Build Coastguard Worker } 72*890232f2SAndroid Build Coastguard Worker private: 73*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>* AsyncStoreRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) = 0; 74*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>* PrepareAsyncStoreRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) = 0; 75*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientReaderInterface< flatbuffers::grpc::Message<Monster>>* RetrieveRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) = 0; 76*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>* AsyncRetrieveRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq, void* tag) = 0; 77*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>* PrepareAsyncRetrieveRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq) = 0; 78*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientWriterInterface< flatbuffers::grpc::Message<Monster>>* GetMaxHitPointRaw(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) = 0; 79*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncWriterInterface< flatbuffers::grpc::Message<Monster>>* AsyncGetMaxHitPointRaw(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq, void* tag) = 0; 80*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncWriterInterface< flatbuffers::grpc::Message<Monster>>* PrepareAsyncGetMaxHitPointRaw(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq) = 0; 81*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>* GetMinMaxHitPointsRaw(::grpc::ClientContext* context) = 0; 82*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>* AsyncGetMinMaxHitPointsRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; 83*890232f2SAndroid Build Coastguard Worker virtual ::grpc::ClientAsyncReaderWriterInterface< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>* PrepareAsyncGetMinMaxHitPointsRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; 84*890232f2SAndroid Build Coastguard Worker }; 85*890232f2SAndroid Build Coastguard Worker class Stub final : public StubInterface { 86*890232f2SAndroid Build Coastguard Worker public: 87*890232f2SAndroid Build Coastguard Worker Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); 88*890232f2SAndroid Build Coastguard Worker ::grpc::Status Store(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) override; AsyncStore(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Monster> & request,::grpc::CompletionQueue * cq)89*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<Stat>>> AsyncStore(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) { 90*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(context, request, cq)); 91*890232f2SAndroid Build Coastguard Worker } PrepareAsyncStore(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Monster> & request,::grpc::CompletionQueue * cq)92*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<Stat>>> PrepareAsyncStore(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) { 93*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStoreRaw(context, request, cq)); 94*890232f2SAndroid Build Coastguard Worker } Retrieve(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Stat> & request)95*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientReader< flatbuffers::grpc::Message<Monster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { 96*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientReader< flatbuffers::grpc::Message<Monster>>>(RetrieveRaw(context, request)); 97*890232f2SAndroid Build Coastguard Worker } AsyncRetrieve(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Stat> & request,::grpc::CompletionQueue * cq,void * tag)98*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>> AsyncRetrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq, void* tag) { 99*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>>(AsyncRetrieveRaw(context, request, cq, tag)); 100*890232f2SAndroid Build Coastguard Worker } PrepareAsyncRetrieve(::grpc::ClientContext * context,const flatbuffers::grpc::Message<Stat> & request,::grpc::CompletionQueue * cq)101*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>> PrepareAsyncRetrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq) { 102*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>>(PrepareAsyncRetrieveRaw(context, request, cq)); 103*890232f2SAndroid Build Coastguard Worker } GetMaxHitPoint(::grpc::ClientContext * context,flatbuffers::grpc::Message<Stat> * response)104*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientWriter< flatbuffers::grpc::Message<Monster>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { 105*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientWriter< flatbuffers::grpc::Message<Monster>>>(GetMaxHitPointRaw(context, response)); 106*890232f2SAndroid Build Coastguard Worker } AsyncGetMaxHitPoint(::grpc::ClientContext * context,flatbuffers::grpc::Message<Stat> * response,::grpc::CompletionQueue * cq,void * tag)107*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncWriter< flatbuffers::grpc::Message<Monster>>> AsyncGetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq, void* tag) { 108*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncWriter< flatbuffers::grpc::Message<Monster>>>(AsyncGetMaxHitPointRaw(context, response, cq, tag)); 109*890232f2SAndroid Build Coastguard Worker } PrepareAsyncGetMaxHitPoint(::grpc::ClientContext * context,flatbuffers::grpc::Message<Stat> * response,::grpc::CompletionQueue * cq)110*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncWriter< flatbuffers::grpc::Message<Monster>>> PrepareAsyncGetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq) { 111*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncWriter< flatbuffers::grpc::Message<Monster>>>(PrepareAsyncGetMaxHitPointRaw(context, response, cq)); 112*890232f2SAndroid Build Coastguard Worker } GetMinMaxHitPoints(::grpc::ClientContext * context)113*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>> GetMinMaxHitPoints(::grpc::ClientContext* context) { 114*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>>(GetMinMaxHitPointsRaw(context)); 115*890232f2SAndroid Build Coastguard Worker } AsyncGetMinMaxHitPoints(::grpc::ClientContext * context,::grpc::CompletionQueue * cq,void * tag)116*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>> AsyncGetMinMaxHitPoints(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { 117*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>>(AsyncGetMinMaxHitPointsRaw(context, cq, tag)); 118*890232f2SAndroid Build Coastguard Worker } PrepareAsyncGetMinMaxHitPoints(::grpc::ClientContext * context,::grpc::CompletionQueue * cq)119*890232f2SAndroid Build Coastguard Worker std::unique_ptr< ::grpc::ClientAsyncReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>> PrepareAsyncGetMinMaxHitPoints(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { 120*890232f2SAndroid Build Coastguard Worker return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>>(PrepareAsyncGetMinMaxHitPointsRaw(context, cq)); 121*890232f2SAndroid Build Coastguard Worker } 122*890232f2SAndroid Build Coastguard Worker 123*890232f2SAndroid Build Coastguard Worker private: 124*890232f2SAndroid Build Coastguard Worker std::shared_ptr< ::grpc::ChannelInterface> channel_; 125*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<Stat>>* AsyncStoreRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) override; 126*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<Stat>>* PrepareAsyncStoreRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc::CompletionQueue* cq) override; 127*890232f2SAndroid Build Coastguard Worker ::grpc::ClientReader< flatbuffers::grpc::Message<Monster>>* RetrieveRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) override; 128*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>* AsyncRetrieveRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq, void* tag) override; 129*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>* PrepareAsyncRetrieveRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::CompletionQueue* cq) override; 130*890232f2SAndroid Build Coastguard Worker ::grpc::ClientWriter< flatbuffers::grpc::Message<Monster>>* GetMaxHitPointRaw(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) override; 131*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncWriter< flatbuffers::grpc::Message<Monster>>* AsyncGetMaxHitPointRaw(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq, void* tag) override; 132*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncWriter< flatbuffers::grpc::Message<Monster>>* PrepareAsyncGetMaxHitPointRaw(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc::CompletionQueue* cq) override; 133*890232f2SAndroid Build Coastguard Worker ::grpc::ClientReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>* GetMinMaxHitPointsRaw(::grpc::ClientContext* context) override; 134*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>* AsyncGetMinMaxHitPointsRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; 135*890232f2SAndroid Build Coastguard Worker ::grpc::ClientAsyncReaderWriter< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>* PrepareAsyncGetMinMaxHitPointsRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; 136*890232f2SAndroid Build Coastguard Worker const ::grpc::internal::RpcMethod rpcmethod_Store_; 137*890232f2SAndroid Build Coastguard Worker const ::grpc::internal::RpcMethod rpcmethod_Retrieve_; 138*890232f2SAndroid Build Coastguard Worker const ::grpc::internal::RpcMethod rpcmethod_GetMaxHitPoint_; 139*890232f2SAndroid Build Coastguard Worker const ::grpc::internal::RpcMethod rpcmethod_GetMinMaxHitPoints_; 140*890232f2SAndroid Build Coastguard Worker }; 141*890232f2SAndroid Build Coastguard Worker static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); 142*890232f2SAndroid Build Coastguard Worker 143*890232f2SAndroid Build Coastguard Worker class Service : public ::grpc::Service { 144*890232f2SAndroid Build Coastguard Worker public: 145*890232f2SAndroid Build Coastguard Worker Service(); 146*890232f2SAndroid Build Coastguard Worker virtual ~Service(); 147*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status Store(::grpc::ServerContext* context, const flatbuffers::grpc::Message<Monster>* request, flatbuffers::grpc::Message<Stat>* response); 148*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status Retrieve(::grpc::ServerContext* context, const flatbuffers::grpc::Message<Stat>* request, ::grpc::ServerWriter< flatbuffers::grpc::Message<Monster>>* writer); 149*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status GetMaxHitPoint(::grpc::ServerContext* context, ::grpc::ServerReader< flatbuffers::grpc::Message<Monster>>* reader, flatbuffers::grpc::Message<Stat>* response); 150*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status GetMinMaxHitPoints(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< flatbuffers::grpc::Message<Stat>, flatbuffers::grpc::Message<Monster>>* stream); 151*890232f2SAndroid Build Coastguard Worker }; 152*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 153*890232f2SAndroid Build Coastguard Worker class WithAsyncMethod_Store : public BaseClass { 154*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)155*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 156*890232f2SAndroid Build Coastguard Worker public: WithAsyncMethod_Store()157*890232f2SAndroid Build Coastguard Worker WithAsyncMethod_Store() { 158*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodAsync(0); 159*890232f2SAndroid Build Coastguard Worker } ~WithAsyncMethod_Store()160*890232f2SAndroid Build Coastguard Worker ~WithAsyncMethod_Store() override { 161*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 162*890232f2SAndroid Build Coastguard Worker } 163*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method Store(::grpc::ServerContext *,const flatbuffers::grpc::Message<Monster> *,flatbuffers::grpc::Message<Stat> *)164*890232f2SAndroid Build Coastguard Worker ::grpc::Status Store(::grpc::ServerContext* /*context*/, const flatbuffers::grpc::Message<Monster>* /*request*/, flatbuffers::grpc::Message<Stat>* /*response*/) final override { 165*890232f2SAndroid Build Coastguard Worker abort(); 166*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 167*890232f2SAndroid Build Coastguard Worker } RequestStore(::grpc::ServerContext * context,flatbuffers::grpc::Message<Monster> * request,::grpc::ServerAsyncResponseWriter<flatbuffers::grpc::Message<Stat>> * response,::grpc::CompletionQueue * new_call_cq,::grpc::ServerCompletionQueue * notification_cq,void * tag)168*890232f2SAndroid Build Coastguard Worker void RequestStore(::grpc::ServerContext* context, flatbuffers::grpc::Message<Monster>* request, ::grpc::ServerAsyncResponseWriter< flatbuffers::grpc::Message<Stat>>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { 169*890232f2SAndroid Build Coastguard Worker ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); 170*890232f2SAndroid Build Coastguard Worker } 171*890232f2SAndroid Build Coastguard Worker }; 172*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 173*890232f2SAndroid Build Coastguard Worker class WithAsyncMethod_Retrieve : public BaseClass { 174*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)175*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 176*890232f2SAndroid Build Coastguard Worker public: WithAsyncMethod_Retrieve()177*890232f2SAndroid Build Coastguard Worker WithAsyncMethod_Retrieve() { 178*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodAsync(1); 179*890232f2SAndroid Build Coastguard Worker } ~WithAsyncMethod_Retrieve()180*890232f2SAndroid Build Coastguard Worker ~WithAsyncMethod_Retrieve() override { 181*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 182*890232f2SAndroid Build Coastguard Worker } 183*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method Retrieve(::grpc::ServerContext *,const flatbuffers::grpc::Message<Stat> *,::grpc::ServerWriter<flatbuffers::grpc::Message<Monster>> *)184*890232f2SAndroid Build Coastguard Worker ::grpc::Status Retrieve(::grpc::ServerContext* /*context*/, const flatbuffers::grpc::Message<Stat>* /*request*/, ::grpc::ServerWriter< flatbuffers::grpc::Message<Monster>>* /*writer*/) final override { 185*890232f2SAndroid Build Coastguard Worker abort(); 186*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 187*890232f2SAndroid Build Coastguard Worker } RequestRetrieve(::grpc::ServerContext * context,flatbuffers::grpc::Message<Stat> * request,::grpc::ServerAsyncWriter<flatbuffers::grpc::Message<Monster>> * writer,::grpc::CompletionQueue * new_call_cq,::grpc::ServerCompletionQueue * notification_cq,void * tag)188*890232f2SAndroid Build Coastguard Worker void RequestRetrieve(::grpc::ServerContext* context, flatbuffers::grpc::Message<Stat>* request, ::grpc::ServerAsyncWriter< flatbuffers::grpc::Message<Monster>>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { 189*890232f2SAndroid Build Coastguard Worker ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag); 190*890232f2SAndroid Build Coastguard Worker } 191*890232f2SAndroid Build Coastguard Worker }; 192*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 193*890232f2SAndroid Build Coastguard Worker class WithAsyncMethod_GetMaxHitPoint : public BaseClass { 194*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)195*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 196*890232f2SAndroid Build Coastguard Worker public: WithAsyncMethod_GetMaxHitPoint()197*890232f2SAndroid Build Coastguard Worker WithAsyncMethod_GetMaxHitPoint() { 198*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodAsync(2); 199*890232f2SAndroid Build Coastguard Worker } ~WithAsyncMethod_GetMaxHitPoint()200*890232f2SAndroid Build Coastguard Worker ~WithAsyncMethod_GetMaxHitPoint() override { 201*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 202*890232f2SAndroid Build Coastguard Worker } 203*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method GetMaxHitPoint(::grpc::ServerContext *,::grpc::ServerReader<flatbuffers::grpc::Message<Monster>> *,flatbuffers::grpc::Message<Stat> * response)204*890232f2SAndroid Build Coastguard Worker ::grpc::Status GetMaxHitPoint(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< flatbuffers::grpc::Message<Monster>>* /*reader*/, flatbuffers::grpc::Message<Stat>* response) final override { 205*890232f2SAndroid Build Coastguard Worker abort(); 206*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 207*890232f2SAndroid Build Coastguard Worker } RequestGetMaxHitPoint(::grpc::ServerContext * context,::grpc::ServerAsyncReader<flatbuffers::grpc::Message<Stat>,flatbuffers::grpc::Message<Monster>> * reader,::grpc::CompletionQueue * new_call_cq,::grpc::ServerCompletionQueue * notification_cq,void * tag)208*890232f2SAndroid Build Coastguard Worker void RequestGetMaxHitPoint(::grpc::ServerContext* context, ::grpc::ServerAsyncReader< flatbuffers::grpc::Message<Stat>, flatbuffers::grpc::Message<Monster>>* reader, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { 209*890232f2SAndroid Build Coastguard Worker ::grpc::Service::RequestAsyncClientStreaming(2, context, reader, new_call_cq, notification_cq, tag); 210*890232f2SAndroid Build Coastguard Worker } 211*890232f2SAndroid Build Coastguard Worker }; 212*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 213*890232f2SAndroid Build Coastguard Worker class WithAsyncMethod_GetMinMaxHitPoints : public BaseClass { 214*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)215*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 216*890232f2SAndroid Build Coastguard Worker public: WithAsyncMethod_GetMinMaxHitPoints()217*890232f2SAndroid Build Coastguard Worker WithAsyncMethod_GetMinMaxHitPoints() { 218*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodAsync(3); 219*890232f2SAndroid Build Coastguard Worker } ~WithAsyncMethod_GetMinMaxHitPoints()220*890232f2SAndroid Build Coastguard Worker ~WithAsyncMethod_GetMinMaxHitPoints() override { 221*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 222*890232f2SAndroid Build Coastguard Worker } 223*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method GetMinMaxHitPoints(::grpc::ServerContext *,::grpc::ServerReaderWriter<flatbuffers::grpc::Message<Stat>,flatbuffers::grpc::Message<Monster>> *)224*890232f2SAndroid Build Coastguard Worker ::grpc::Status GetMinMaxHitPoints(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< flatbuffers::grpc::Message<Stat>, flatbuffers::grpc::Message<Monster>>* /*stream*/) final override { 225*890232f2SAndroid Build Coastguard Worker abort(); 226*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 227*890232f2SAndroid Build Coastguard Worker } RequestGetMinMaxHitPoints(::grpc::ServerContext * context,::grpc::ServerAsyncReaderWriter<flatbuffers::grpc::Message<Stat>,flatbuffers::grpc::Message<Monster>> * stream,::grpc::CompletionQueue * new_call_cq,::grpc::ServerCompletionQueue * notification_cq,void * tag)228*890232f2SAndroid Build Coastguard Worker void RequestGetMinMaxHitPoints(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< flatbuffers::grpc::Message<Stat>, flatbuffers::grpc::Message<Monster>>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { 229*890232f2SAndroid Build Coastguard Worker ::grpc::Service::RequestAsyncBidiStreaming(3, context, stream, new_call_cq, notification_cq, tag); 230*890232f2SAndroid Build Coastguard Worker } 231*890232f2SAndroid Build Coastguard Worker }; 232*890232f2SAndroid Build Coastguard Worker typedef WithAsyncMethod_Store< WithAsyncMethod_Retrieve< WithAsyncMethod_GetMaxHitPoint< WithAsyncMethod_GetMinMaxHitPoints< Service > > > > AsyncService; 233*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 234*890232f2SAndroid Build Coastguard Worker class WithGenericMethod_Store : public BaseClass { 235*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)236*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 237*890232f2SAndroid Build Coastguard Worker public: WithGenericMethod_Store()238*890232f2SAndroid Build Coastguard Worker WithGenericMethod_Store() { 239*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodGeneric(0); 240*890232f2SAndroid Build Coastguard Worker } ~WithGenericMethod_Store()241*890232f2SAndroid Build Coastguard Worker ~WithGenericMethod_Store() override { 242*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 243*890232f2SAndroid Build Coastguard Worker } 244*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method Store(::grpc::ServerContext *,const flatbuffers::grpc::Message<Monster> *,flatbuffers::grpc::Message<Stat> *)245*890232f2SAndroid Build Coastguard Worker ::grpc::Status Store(::grpc::ServerContext* /*context*/, const flatbuffers::grpc::Message<Monster>* /*request*/, flatbuffers::grpc::Message<Stat>* /*response*/) final override { 246*890232f2SAndroid Build Coastguard Worker abort(); 247*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 248*890232f2SAndroid Build Coastguard Worker } 249*890232f2SAndroid Build Coastguard Worker }; 250*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 251*890232f2SAndroid Build Coastguard Worker class WithGenericMethod_Retrieve : public BaseClass { 252*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)253*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 254*890232f2SAndroid Build Coastguard Worker public: WithGenericMethod_Retrieve()255*890232f2SAndroid Build Coastguard Worker WithGenericMethod_Retrieve() { 256*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodGeneric(1); 257*890232f2SAndroid Build Coastguard Worker } ~WithGenericMethod_Retrieve()258*890232f2SAndroid Build Coastguard Worker ~WithGenericMethod_Retrieve() override { 259*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 260*890232f2SAndroid Build Coastguard Worker } 261*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method Retrieve(::grpc::ServerContext *,const flatbuffers::grpc::Message<Stat> *,::grpc::ServerWriter<flatbuffers::grpc::Message<Monster>> *)262*890232f2SAndroid Build Coastguard Worker ::grpc::Status Retrieve(::grpc::ServerContext* /*context*/, const flatbuffers::grpc::Message<Stat>* /*request*/, ::grpc::ServerWriter< flatbuffers::grpc::Message<Monster>>* /*writer*/) final override { 263*890232f2SAndroid Build Coastguard Worker abort(); 264*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 265*890232f2SAndroid Build Coastguard Worker } 266*890232f2SAndroid Build Coastguard Worker }; 267*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 268*890232f2SAndroid Build Coastguard Worker class WithGenericMethod_GetMaxHitPoint : public BaseClass { 269*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)270*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 271*890232f2SAndroid Build Coastguard Worker public: WithGenericMethod_GetMaxHitPoint()272*890232f2SAndroid Build Coastguard Worker WithGenericMethod_GetMaxHitPoint() { 273*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodGeneric(2); 274*890232f2SAndroid Build Coastguard Worker } ~WithGenericMethod_GetMaxHitPoint()275*890232f2SAndroid Build Coastguard Worker ~WithGenericMethod_GetMaxHitPoint() override { 276*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 277*890232f2SAndroid Build Coastguard Worker } 278*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method GetMaxHitPoint(::grpc::ServerContext *,::grpc::ServerReader<flatbuffers::grpc::Message<Monster>> *,flatbuffers::grpc::Message<Stat> *)279*890232f2SAndroid Build Coastguard Worker ::grpc::Status GetMaxHitPoint(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< flatbuffers::grpc::Message<Monster>>* /*reader*/, flatbuffers::grpc::Message<Stat>* /*response*/) final override { 280*890232f2SAndroid Build Coastguard Worker abort(); 281*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 282*890232f2SAndroid Build Coastguard Worker } 283*890232f2SAndroid Build Coastguard Worker }; 284*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 285*890232f2SAndroid Build Coastguard Worker class WithGenericMethod_GetMinMaxHitPoints : public BaseClass { 286*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)287*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 288*890232f2SAndroid Build Coastguard Worker public: WithGenericMethod_GetMinMaxHitPoints()289*890232f2SAndroid Build Coastguard Worker WithGenericMethod_GetMinMaxHitPoints() { 290*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodGeneric(3); 291*890232f2SAndroid Build Coastguard Worker } ~WithGenericMethod_GetMinMaxHitPoints()292*890232f2SAndroid Build Coastguard Worker ~WithGenericMethod_GetMinMaxHitPoints() override { 293*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 294*890232f2SAndroid Build Coastguard Worker } 295*890232f2SAndroid Build Coastguard Worker // disable synchronous version of this method GetMinMaxHitPoints(::grpc::ServerContext *,::grpc::ServerReaderWriter<flatbuffers::grpc::Message<Stat>,flatbuffers::grpc::Message<Monster>> *)296*890232f2SAndroid Build Coastguard Worker ::grpc::Status GetMinMaxHitPoints(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< flatbuffers::grpc::Message<Stat>, flatbuffers::grpc::Message<Monster>>* /*stream*/) final override { 297*890232f2SAndroid Build Coastguard Worker abort(); 298*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 299*890232f2SAndroid Build Coastguard Worker } 300*890232f2SAndroid Build Coastguard Worker }; 301*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 302*890232f2SAndroid Build Coastguard Worker class WithStreamedUnaryMethod_Store : public BaseClass { 303*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)304*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) {} 305*890232f2SAndroid Build Coastguard Worker public: WithStreamedUnaryMethod_Store()306*890232f2SAndroid Build Coastguard Worker WithStreamedUnaryMethod_Store() { 307*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodStreamed(0, 308*890232f2SAndroid Build Coastguard Worker new ::grpc::internal::StreamedUnaryHandler< flatbuffers::grpc::Message<Monster>, flatbuffers::grpc::Message<Stat>>(std::bind(&WithStreamedUnaryMethod_Store<BaseClass>::StreamedStore, this, std::placeholders::_1, std::placeholders::_2))); 309*890232f2SAndroid Build Coastguard Worker } ~WithStreamedUnaryMethod_Store()310*890232f2SAndroid Build Coastguard Worker ~WithStreamedUnaryMethod_Store() override { 311*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 312*890232f2SAndroid Build Coastguard Worker } 313*890232f2SAndroid Build Coastguard Worker // disable regular version of this method Store(::grpc::ServerContext *,const flatbuffers::grpc::Message<Monster> *,flatbuffers::grpc::Message<Stat> *)314*890232f2SAndroid Build Coastguard Worker ::grpc::Status Store(::grpc::ServerContext* /*context*/, const flatbuffers::grpc::Message<Monster>* /*request*/, flatbuffers::grpc::Message<Stat>* /*response*/) final override { 315*890232f2SAndroid Build Coastguard Worker abort(); 316*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 317*890232f2SAndroid Build Coastguard Worker } 318*890232f2SAndroid Build Coastguard Worker // replace default version of method with streamed unary 319*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status StreamedStore(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< flatbuffers::grpc::Message<Monster>,flatbuffers::grpc::Message<Stat>>* server_unary_streamer) = 0; 320*890232f2SAndroid Build Coastguard Worker }; 321*890232f2SAndroid Build Coastguard Worker typedef WithStreamedUnaryMethod_Store< Service > StreamedUnaryService; 322*890232f2SAndroid Build Coastguard Worker template <class BaseClass> 323*890232f2SAndroid Build Coastguard Worker class WithSplitStreamingMethod_Retrieve : public BaseClass { 324*890232f2SAndroid Build Coastguard Worker private: BaseClassMustBeDerivedFromService(const Service *)325*890232f2SAndroid Build Coastguard Worker void BaseClassMustBeDerivedFromService(const Service */*service*/) { } 326*890232f2SAndroid Build Coastguard Worker public: WithSplitStreamingMethod_Retrieve()327*890232f2SAndroid Build Coastguard Worker WithSplitStreamingMethod_Retrieve() { 328*890232f2SAndroid Build Coastguard Worker ::grpc::Service::MarkMethodStreamed(1, 329*890232f2SAndroid Build Coastguard Worker new ::grpc::internal::SplitServerStreamingHandler< flatbuffers::grpc::Message<Stat>, flatbuffers::grpc::Message<Monster>>(std::bind(&WithSplitStreamingMethod_Retrieve<BaseClass>::StreamedRetrieve, this, std::placeholders::_1, std::placeholders::_2))); 330*890232f2SAndroid Build Coastguard Worker } ~WithSplitStreamingMethod_Retrieve()331*890232f2SAndroid Build Coastguard Worker ~WithSplitStreamingMethod_Retrieve() override { 332*890232f2SAndroid Build Coastguard Worker BaseClassMustBeDerivedFromService(this); 333*890232f2SAndroid Build Coastguard Worker } 334*890232f2SAndroid Build Coastguard Worker // disable regular version of this method Retrieve(::grpc::ServerContext *,const flatbuffers::grpc::Message<Stat> *,::grpc::ServerWriter<flatbuffers::grpc::Message<Monster>> *)335*890232f2SAndroid Build Coastguard Worker ::grpc::Status Retrieve(::grpc::ServerContext* /*context*/, const flatbuffers::grpc::Message<Stat>* /*request*/, ::grpc::ServerWriter< flatbuffers::grpc::Message<Monster>>* /*writer*/) final override { 336*890232f2SAndroid Build Coastguard Worker abort(); 337*890232f2SAndroid Build Coastguard Worker return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 338*890232f2SAndroid Build Coastguard Worker } 339*890232f2SAndroid Build Coastguard Worker // replace default version of method with split streamed 340*890232f2SAndroid Build Coastguard Worker virtual ::grpc::Status StreamedRetrieve(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< flatbuffers::grpc::Message<Stat>,flatbuffers::grpc::Message<Monster>>* server_split_streamer) = 0; 341*890232f2SAndroid Build Coastguard Worker }; 342*890232f2SAndroid Build Coastguard Worker typedef WithSplitStreamingMethod_Retrieve< Service > SplitStreamedService; 343*890232f2SAndroid Build Coastguard Worker typedef WithStreamedUnaryMethod_Store< WithSplitStreamingMethod_Retrieve< Service > > StreamedService; 344*890232f2SAndroid Build Coastguard Worker }; 345*890232f2SAndroid Build Coastguard Worker 346*890232f2SAndroid Build Coastguard Worker } // namespace Example 347*890232f2SAndroid Build Coastguard Worker } // namespace MyGame 348*890232f2SAndroid Build Coastguard Worker 349*890232f2SAndroid Build Coastguard Worker 350*890232f2SAndroid Build Coastguard Worker #endif // GRPC_monster_5ftest__INCLUDED 351