You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Services.grpc.pb.h 162 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796
  1. // Generated by the gRPC C++ plugin.
  2. // If you make any local change, they will be lost.
  3. // source: Services.proto
  4. #ifndef GRPC_Services_2eproto__INCLUDED
  5. #define GRPC_Services_2eproto__INCLUDED
  6. #include "Services.pb.h"
  7. #include <functional>
  8. #include <grpcpp/impl/codegen/async_generic_service.h>
  9. #include <grpcpp/impl/codegen/async_stream.h>
  10. #include <grpcpp/impl/codegen/async_unary_call.h>
  11. #include <grpcpp/impl/codegen/client_callback.h>
  12. #include <grpcpp/impl/codegen/client_context.h>
  13. #include <grpcpp/impl/codegen/completion_queue.h>
  14. #include <grpcpp/impl/codegen/message_allocator.h>
  15. #include <grpcpp/impl/codegen/method_handler.h>
  16. #include <grpcpp/impl/codegen/proto_utils.h>
  17. #include <grpcpp/impl/codegen/rpc_method.h>
  18. #include <grpcpp/impl/codegen/server_callback.h>
  19. #include <grpcpp/impl/codegen/server_callback_handlers.h>
  20. #include <grpcpp/impl/codegen/server_context.h>
  21. #include <grpcpp/impl/codegen/service_type.h>
  22. #include <grpcpp/impl/codegen/status.h>
  23. #include <grpcpp/impl/codegen/stub_options.h>
  24. #include <grpcpp/impl/codegen/sync_stream.h>
  25. namespace protobuf
  26. {
  27. class AvailableService final
  28. {
  29. public:
  30. static constexpr char const* service_full_name()
  31. {
  32. return "protobuf.AvailableService";
  33. }
  34. class StubInterface
  35. {
  36. public:
  37. virtual ~StubInterface()
  38. {
  39. }
  40. virtual ::grpc::Status TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  41. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  42. {
  43. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncTryConnectionRaw(context, request, cq));
  44. }
  45. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  46. {
  47. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncTryConnectionRaw(context, request, cq));
  48. }
  49. // 游戏开局调用一次的服务
  50. std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request)
  51. {
  52. return std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MessageToClient>>(AddPlayerRaw(context, request));
  53. }
  54. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  55. {
  56. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag));
  57. }
  58. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq)
  59. {
  60. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq));
  61. }
  62. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  63. // 游戏过程中玩家执行操作的服务
  64. virtual ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) = 0;
  65. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  66. {
  67. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq));
  68. }
  69. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  70. {
  71. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq));
  72. }
  73. virtual ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) = 0;
  74. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  75. {
  76. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq));
  77. }
  78. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  79. {
  80. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq));
  81. }
  82. virtual ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  83. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  84. {
  85. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq));
  86. }
  87. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  88. {
  89. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq));
  90. }
  91. virtual ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  92. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  93. {
  94. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq));
  95. }
  96. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  97. {
  98. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq));
  99. }
  100. virtual ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) = 0;
  101. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  102. {
  103. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq));
  104. }
  105. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  106. {
  107. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq));
  108. }
  109. std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MsgRes>> GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request)
  110. {
  111. return std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MsgRes>>(GetMessageRaw(context, request));
  112. }
  113. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MsgRes>> AsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  114. {
  115. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MsgRes>>(AsyncGetMessageRaw(context, request, cq, tag));
  116. }
  117. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MsgRes>> PrepareAsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  118. {
  119. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MsgRes>>(PrepareAsyncGetMessageRaw(context, request, cq));
  120. }
  121. virtual ::grpc::Status StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  122. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  123. {
  124. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartLearningRaw(context, request, cq));
  125. }
  126. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  127. {
  128. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartLearningRaw(context, request, cq));
  129. }
  130. // 开始修理机器
  131. virtual ::grpc::Status StartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  132. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  133. {
  134. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartHelpMateRaw(context, request, cq));
  135. }
  136. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  137. {
  138. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartHelpMateRaw(context, request, cq));
  139. }
  140. // 开始救人
  141. virtual ::grpc::Status StartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  142. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  143. {
  144. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartHealMateRaw(context, request, cq));
  145. }
  146. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  147. {
  148. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartHealMateRaw(context, request, cq));
  149. }
  150. virtual ::grpc::Status Trick(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::protobuf::BoolRes* response) = 0;
  151. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncTrick(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq)
  152. {
  153. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncTrickRaw(context, request, cq));
  154. }
  155. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncTrick(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq)
  156. {
  157. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncTrickRaw(context, request, cq));
  158. }
  159. // 攻击
  160. virtual ::grpc::Status Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  161. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  162. {
  163. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncGraduateRaw(context, request, cq));
  164. }
  165. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  166. {
  167. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncGraduateRaw(context, request, cq));
  168. }
  169. // 相当于逃跑
  170. class async_interface
  171. {
  172. public:
  173. virtual ~async_interface()
  174. {
  175. }
  176. virtual void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  177. virtual void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  178. // 游戏开局调用一次的服务
  179. virtual void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor<::protobuf::MessageToClient>* reactor) = 0;
  180. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  181. // 游戏过程中玩家执行操作的服务
  182. virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function<void(::grpc::Status)>) = 0;
  183. virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  184. virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  185. virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  186. virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  187. virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  188. virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  189. virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  190. virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  191. virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  192. virtual void GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::grpc::ClientReadReactor<::protobuf::MsgRes>* reactor) = 0;
  193. virtual void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  194. virtual void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  195. // 开始修理机器
  196. virtual void StartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  197. virtual void StartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  198. // 开始救人
  199. virtual void StartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  200. virtual void StartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  201. virtual void Trick(::grpc::ClientContext* context, const ::protobuf::TrickMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  202. virtual void Trick(::grpc::ClientContext* context, const ::protobuf::TrickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  203. // 攻击
  204. virtual void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  205. virtual void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  206. // 相当于逃跑
  207. };
  208. typedef class async_interface experimental_async_interface;
  209. virtual class async_interface* async()
  210. {
  211. return nullptr;
  212. }
  213. class async_interface* experimental_async()
  214. {
  215. return async();
  216. }
  217. private:
  218. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  219. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  220. virtual ::grpc::ClientReaderInterface<::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) = 0;
  221. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
  222. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) = 0;
  223. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0;
  224. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0;
  225. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) = 0;
  226. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) = 0;
  227. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  228. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  229. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  230. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  231. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0;
  232. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0;
  233. virtual ::grpc::ClientReaderInterface<::protobuf::MsgRes>* GetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request) = 0;
  234. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MsgRes>* AsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
  235. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MsgRes>* PrepareAsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  236. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  237. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  238. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartHelpMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  239. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartHelpMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  240. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartHealMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  241. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartHealMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  242. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncTrickRaw(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq) = 0;
  243. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncTrickRaw(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq) = 0;
  244. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  245. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  246. };
  247. class Stub final : public StubInterface
  248. {
  249. public:
  250. Stub(const std::shared_ptr<::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  251. ::grpc::Status TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  252. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  253. {
  254. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncTryConnectionRaw(context, request, cq));
  255. }
  256. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  257. {
  258. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncTryConnectionRaw(context, request, cq));
  259. }
  260. std::unique_ptr<::grpc::ClientReader<::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request)
  261. {
  262. return std::unique_ptr<::grpc::ClientReader<::protobuf::MessageToClient>>(AddPlayerRaw(context, request));
  263. }
  264. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  265. {
  266. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag));
  267. }
  268. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq)
  269. {
  270. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq));
  271. }
  272. ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) override;
  273. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  274. {
  275. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq));
  276. }
  277. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  278. {
  279. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq));
  280. }
  281. ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) override;
  282. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  283. {
  284. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq));
  285. }
  286. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  287. {
  288. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq));
  289. }
  290. ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  291. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  292. {
  293. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq));
  294. }
  295. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  296. {
  297. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq));
  298. }
  299. ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  300. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  301. {
  302. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq));
  303. }
  304. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  305. {
  306. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq));
  307. }
  308. ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) override;
  309. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  310. {
  311. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq));
  312. }
  313. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  314. {
  315. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq));
  316. }
  317. std::unique_ptr<::grpc::ClientReader<::protobuf::MsgRes>> GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request)
  318. {
  319. return std::unique_ptr<::grpc::ClientReader<::protobuf::MsgRes>>(GetMessageRaw(context, request));
  320. }
  321. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MsgRes>> AsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  322. {
  323. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MsgRes>>(AsyncGetMessageRaw(context, request, cq, tag));
  324. }
  325. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MsgRes>> PrepareAsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  326. {
  327. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MsgRes>>(PrepareAsyncGetMessageRaw(context, request, cq));
  328. }
  329. ::grpc::Status StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  330. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  331. {
  332. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartLearningRaw(context, request, cq));
  333. }
  334. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  335. {
  336. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartLearningRaw(context, request, cq));
  337. }
  338. ::grpc::Status StartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  339. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  340. {
  341. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartHelpMateRaw(context, request, cq));
  342. }
  343. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  344. {
  345. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartHelpMateRaw(context, request, cq));
  346. }
  347. ::grpc::Status StartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  348. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  349. {
  350. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartHealMateRaw(context, request, cq));
  351. }
  352. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  353. {
  354. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartHealMateRaw(context, request, cq));
  355. }
  356. ::grpc::Status Trick(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::protobuf::BoolRes* response) override;
  357. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncTrick(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq)
  358. {
  359. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncTrickRaw(context, request, cq));
  360. }
  361. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncTrick(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq)
  362. {
  363. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncTrickRaw(context, request, cq));
  364. }
  365. ::grpc::Status Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  366. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  367. {
  368. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncGraduateRaw(context, request, cq));
  369. }
  370. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  371. {
  372. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncGraduateRaw(context, request, cq));
  373. }
  374. class async final :
  375. public StubInterface::async_interface
  376. {
  377. public:
  378. void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  379. void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  380. void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor<::protobuf::MessageToClient>* reactor) override;
  381. void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function<void(::grpc::Status)>) override;
  382. void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  383. void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  384. void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  385. void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  386. void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  387. void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  388. void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  389. void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  390. void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  391. void GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::grpc::ClientReadReactor<::protobuf::MsgRes>* reactor) override;
  392. void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  393. void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  394. void StartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  395. void StartHelpMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  396. void StartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  397. void StartHealMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  398. void Trick(::grpc::ClientContext* context, const ::protobuf::TrickMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  399. void Trick(::grpc::ClientContext* context, const ::protobuf::TrickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  400. void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  401. void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  402. private:
  403. friend class Stub;
  404. explicit async(Stub* stub) :
  405. stub_(stub)
  406. {
  407. }
  408. Stub* stub()
  409. {
  410. return stub_;
  411. }
  412. Stub* stub_;
  413. };
  414. class async* async() override
  415. {
  416. return &async_stub_;
  417. }
  418. private:
  419. std::shared_ptr<::grpc::ChannelInterface> channel_;
  420. class async async_stub_
  421. {
  422. this
  423. };
  424. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  425. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  426. ::grpc::ClientReader<::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) override;
  427. ::grpc::ClientAsyncReader<::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) override;
  428. ::grpc::ClientAsyncReader<::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) override;
  429. ::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override;
  430. ::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override;
  431. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) override;
  432. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) override;
  433. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  434. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  435. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  436. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  437. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override;
  438. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override;
  439. ::grpc::ClientReader<::protobuf::MsgRes>* GetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request) override;
  440. ::grpc::ClientAsyncReader<::protobuf::MsgRes>* AsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq, void* tag) override;
  441. ::grpc::ClientAsyncReader<::protobuf::MsgRes>* PrepareAsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  442. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  443. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  444. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartHelpMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  445. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartHelpMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  446. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartHealMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  447. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartHealMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  448. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncTrickRaw(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq) override;
  449. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncTrickRaw(::grpc::ClientContext* context, const ::protobuf::TrickMsg& request, ::grpc::CompletionQueue* cq) override;
  450. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  451. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  452. const ::grpc::internal::RpcMethod rpcmethod_TryConnection_;
  453. const ::grpc::internal::RpcMethod rpcmethod_AddPlayer_;
  454. const ::grpc::internal::RpcMethod rpcmethod_Move_;
  455. const ::grpc::internal::RpcMethod rpcmethod_PickProp_;
  456. const ::grpc::internal::RpcMethod rpcmethod_UseProp_;
  457. const ::grpc::internal::RpcMethod rpcmethod_UseSkill_;
  458. const ::grpc::internal::RpcMethod rpcmethod_SendMessage_;
  459. const ::grpc::internal::RpcMethod rpcmethod_GetMessage_;
  460. const ::grpc::internal::RpcMethod rpcmethod_StartLearning_;
  461. const ::grpc::internal::RpcMethod rpcmethod_StartHelpMate_;
  462. const ::grpc::internal::RpcMethod rpcmethod_StartHealMate_;
  463. const ::grpc::internal::RpcMethod rpcmethod_Trick_;
  464. const ::grpc::internal::RpcMethod rpcmethod_Graduate_;
  465. };
  466. static std::unique_ptr<Stub> NewStub(const std::shared_ptr<::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  467. class Service : public ::grpc::Service
  468. {
  469. public:
  470. Service();
  471. virtual ~Service();
  472. virtual ::grpc::Status TryConnection(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  473. // 游戏开局调用一次的服务
  474. virtual ::grpc::Status AddPlayer(::grpc::ServerContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ServerWriter<::protobuf::MessageToClient>* writer);
  475. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  476. // 游戏过程中玩家执行操作的服务
  477. virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response);
  478. virtual ::grpc::Status PickProp(::grpc::ServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response);
  479. virtual ::grpc::Status UseProp(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  480. virtual ::grpc::Status UseSkill(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  481. virtual ::grpc::Status SendMessage(::grpc::ServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response);
  482. virtual ::grpc::Status GetMessage(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::grpc::ServerWriter<::protobuf::MsgRes>* writer);
  483. virtual ::grpc::Status StartLearning(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  484. // 开始修理机器
  485. virtual ::grpc::Status StartHelpMate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  486. // 开始救人
  487. virtual ::grpc::Status StartHealMate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  488. virtual ::grpc::Status Trick(::grpc::ServerContext* context, const ::protobuf::TrickMsg* request, ::protobuf::BoolRes* response);
  489. // 攻击
  490. virtual ::grpc::Status Graduate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  491. // 相当于逃跑
  492. };
  493. template<class BaseClass>
  494. class WithAsyncMethod_TryConnection : public BaseClass
  495. {
  496. private:
  497. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  498. {
  499. }
  500. public:
  501. WithAsyncMethod_TryConnection()
  502. {
  503. ::grpc::Service::MarkMethodAsync(0);
  504. }
  505. ~WithAsyncMethod_TryConnection() override
  506. {
  507. BaseClassMustBeDerivedFromService(this);
  508. }
  509. // disable synchronous version of this method
  510. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  511. {
  512. abort();
  513. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  514. }
  515. void RequestTryConnection(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  516. {
  517. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  518. }
  519. };
  520. template<class BaseClass>
  521. class WithAsyncMethod_AddPlayer : public BaseClass
  522. {
  523. private:
  524. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  525. {
  526. }
  527. public:
  528. WithAsyncMethod_AddPlayer()
  529. {
  530. ::grpc::Service::MarkMethodAsync(1);
  531. }
  532. ~WithAsyncMethod_AddPlayer() override
  533. {
  534. BaseClassMustBeDerivedFromService(this);
  535. }
  536. // disable synchronous version of this method
  537. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  538. {
  539. abort();
  540. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  541. }
  542. void RequestAddPlayer(::grpc::ServerContext* context, ::protobuf::PlayerMsg* request, ::grpc::ServerAsyncWriter<::protobuf::MessageToClient>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  543. {
  544. ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
  545. }
  546. };
  547. template<class BaseClass>
  548. class WithAsyncMethod_Move : public BaseClass
  549. {
  550. private:
  551. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  552. {
  553. }
  554. public:
  555. WithAsyncMethod_Move()
  556. {
  557. ::grpc::Service::MarkMethodAsync(2);
  558. }
  559. ~WithAsyncMethod_Move() override
  560. {
  561. BaseClassMustBeDerivedFromService(this);
  562. }
  563. // disable synchronous version of this method
  564. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  565. {
  566. abort();
  567. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  568. }
  569. void RequestMove(::grpc::ServerContext* context, ::protobuf::MoveMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::MoveRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  570. {
  571. ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
  572. }
  573. };
  574. template<class BaseClass>
  575. class WithAsyncMethod_PickProp : public BaseClass
  576. {
  577. private:
  578. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  579. {
  580. }
  581. public:
  582. WithAsyncMethod_PickProp()
  583. {
  584. ::grpc::Service::MarkMethodAsync(3);
  585. }
  586. ~WithAsyncMethod_PickProp() override
  587. {
  588. BaseClassMustBeDerivedFromService(this);
  589. }
  590. // disable synchronous version of this method
  591. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  592. {
  593. abort();
  594. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  595. }
  596. void RequestPickProp(::grpc::ServerContext* context, ::protobuf::PickMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  597. {
  598. ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
  599. }
  600. };
  601. template<class BaseClass>
  602. class WithAsyncMethod_UseProp : public BaseClass
  603. {
  604. private:
  605. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  606. {
  607. }
  608. public:
  609. WithAsyncMethod_UseProp()
  610. {
  611. ::grpc::Service::MarkMethodAsync(4);
  612. }
  613. ~WithAsyncMethod_UseProp() override
  614. {
  615. BaseClassMustBeDerivedFromService(this);
  616. }
  617. // disable synchronous version of this method
  618. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  619. {
  620. abort();
  621. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  622. }
  623. void RequestUseProp(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  624. {
  625. ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
  626. }
  627. };
  628. template<class BaseClass>
  629. class WithAsyncMethod_UseSkill : public BaseClass
  630. {
  631. private:
  632. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  633. {
  634. }
  635. public:
  636. WithAsyncMethod_UseSkill()
  637. {
  638. ::grpc::Service::MarkMethodAsync(5);
  639. }
  640. ~WithAsyncMethod_UseSkill() override
  641. {
  642. BaseClassMustBeDerivedFromService(this);
  643. }
  644. // disable synchronous version of this method
  645. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  646. {
  647. abort();
  648. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  649. }
  650. void RequestUseSkill(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  651. {
  652. ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
  653. }
  654. };
  655. template<class BaseClass>
  656. class WithAsyncMethod_SendMessage : public BaseClass
  657. {
  658. private:
  659. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  660. {
  661. }
  662. public:
  663. WithAsyncMethod_SendMessage()
  664. {
  665. ::grpc::Service::MarkMethodAsync(6);
  666. }
  667. ~WithAsyncMethod_SendMessage() override
  668. {
  669. BaseClassMustBeDerivedFromService(this);
  670. }
  671. // disable synchronous version of this method
  672. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  673. {
  674. abort();
  675. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  676. }
  677. void RequestSendMessage(::grpc::ServerContext* context, ::protobuf::SendMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  678. {
  679. ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
  680. }
  681. };
  682. template<class BaseClass>
  683. class WithAsyncMethod_GetMessage : public BaseClass
  684. {
  685. private:
  686. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  687. {
  688. }
  689. public:
  690. WithAsyncMethod_GetMessage()
  691. {
  692. ::grpc::Service::MarkMethodAsync(7);
  693. }
  694. ~WithAsyncMethod_GetMessage() override
  695. {
  696. BaseClassMustBeDerivedFromService(this);
  697. }
  698. // disable synchronous version of this method
  699. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MsgRes>* /*writer*/) override
  700. {
  701. abort();
  702. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  703. }
  704. void RequestGetMessage(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncWriter<::protobuf::MsgRes>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  705. {
  706. ::grpc::Service::RequestAsyncServerStreaming(7, context, request, writer, new_call_cq, notification_cq, tag);
  707. }
  708. };
  709. template<class BaseClass>
  710. class WithAsyncMethod_StartLearning : public BaseClass
  711. {
  712. private:
  713. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  714. {
  715. }
  716. public:
  717. WithAsyncMethod_StartLearning()
  718. {
  719. ::grpc::Service::MarkMethodAsync(8);
  720. }
  721. ~WithAsyncMethod_StartLearning() override
  722. {
  723. BaseClassMustBeDerivedFromService(this);
  724. }
  725. // disable synchronous version of this method
  726. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  727. {
  728. abort();
  729. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  730. }
  731. void RequestStartLearning(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  732. {
  733. ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
  734. }
  735. };
  736. template<class BaseClass>
  737. class WithAsyncMethod_StartHelpMate : public BaseClass
  738. {
  739. private:
  740. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  741. {
  742. }
  743. public:
  744. WithAsyncMethod_StartHelpMate()
  745. {
  746. ::grpc::Service::MarkMethodAsync(9);
  747. }
  748. ~WithAsyncMethod_StartHelpMate() override
  749. {
  750. BaseClassMustBeDerivedFromService(this);
  751. }
  752. // disable synchronous version of this method
  753. ::grpc::Status StartHelpMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  754. {
  755. abort();
  756. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  757. }
  758. void RequestStartHelpMate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  759. {
  760. ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag);
  761. }
  762. };
  763. template<class BaseClass>
  764. class WithAsyncMethod_StartHealMate : public BaseClass
  765. {
  766. private:
  767. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  768. {
  769. }
  770. public:
  771. WithAsyncMethod_StartHealMate()
  772. {
  773. ::grpc::Service::MarkMethodAsync(10);
  774. }
  775. ~WithAsyncMethod_StartHealMate() override
  776. {
  777. BaseClassMustBeDerivedFromService(this);
  778. }
  779. // disable synchronous version of this method
  780. ::grpc::Status StartHealMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  781. {
  782. abort();
  783. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  784. }
  785. void RequestStartHealMate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  786. {
  787. ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag);
  788. }
  789. };
  790. template<class BaseClass>
  791. class WithAsyncMethod_Trick : public BaseClass
  792. {
  793. private:
  794. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  795. {
  796. }
  797. public:
  798. WithAsyncMethod_Trick()
  799. {
  800. ::grpc::Service::MarkMethodAsync(11);
  801. }
  802. ~WithAsyncMethod_Trick() override
  803. {
  804. BaseClassMustBeDerivedFromService(this);
  805. }
  806. // disable synchronous version of this method
  807. ::grpc::Status Trick(::grpc::ServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  808. {
  809. abort();
  810. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  811. }
  812. void RequestTrick(::grpc::ServerContext* context, ::protobuf::TrickMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  813. {
  814. ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
  815. }
  816. };
  817. template<class BaseClass>
  818. class WithAsyncMethod_Graduate : public BaseClass
  819. {
  820. private:
  821. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  822. {
  823. }
  824. public:
  825. WithAsyncMethod_Graduate()
  826. {
  827. ::grpc::Service::MarkMethodAsync(12);
  828. }
  829. ~WithAsyncMethod_Graduate() override
  830. {
  831. BaseClassMustBeDerivedFromService(this);
  832. }
  833. // disable synchronous version of this method
  834. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  835. {
  836. abort();
  837. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  838. }
  839. void RequestGraduate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  840. {
  841. ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
  842. }
  843. };
  844. typedef WithAsyncMethod_TryConnection<WithAsyncMethod_AddPlayer<WithAsyncMethod_Move<WithAsyncMethod_PickProp<WithAsyncMethod_UseProp<WithAsyncMethod_UseSkill<WithAsyncMethod_SendMessage<WithAsyncMethod_GetMessage<WithAsyncMethod_StartLearning<WithAsyncMethod_StartHelpMate<WithAsyncMethod_StartHealMate<WithAsyncMethod_Trick<WithAsyncMethod_Graduate<Service>>>>>>>>>>>>> AsyncService;
  845. template<class BaseClass>
  846. class WithCallbackMethod_TryConnection : public BaseClass
  847. {
  848. private:
  849. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  850. {
  851. }
  852. public:
  853. WithCallbackMethod_TryConnection()
  854. {
  855. ::grpc::Service::MarkMethodCallback(0, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  856. { return this->TryConnection(context, request, response); }));
  857. }
  858. void SetMessageAllocatorFor_TryConnection(
  859. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  860. )
  861. {
  862. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
  863. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  864. ->SetMessageAllocator(allocator);
  865. }
  866. ~WithCallbackMethod_TryConnection() override
  867. {
  868. BaseClassMustBeDerivedFromService(this);
  869. }
  870. // disable synchronous version of this method
  871. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  872. {
  873. abort();
  874. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  875. }
  876. virtual ::grpc::ServerUnaryReactor* TryConnection(
  877. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  878. )
  879. {
  880. return nullptr;
  881. }
  882. };
  883. template<class BaseClass>
  884. class WithCallbackMethod_AddPlayer : public BaseClass
  885. {
  886. private:
  887. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  888. {
  889. }
  890. public:
  891. WithCallbackMethod_AddPlayer()
  892. {
  893. ::grpc::Service::MarkMethodCallback(1, new ::grpc::internal::CallbackServerStreamingHandler<::protobuf::PlayerMsg, ::protobuf::MessageToClient>([this](::grpc::CallbackServerContext* context, const ::protobuf::PlayerMsg* request)
  894. { return this->AddPlayer(context, request); }));
  895. }
  896. ~WithCallbackMethod_AddPlayer() override
  897. {
  898. BaseClassMustBeDerivedFromService(this);
  899. }
  900. // disable synchronous version of this method
  901. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  902. {
  903. abort();
  904. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  905. }
  906. virtual ::grpc::ServerWriteReactor<::protobuf::MessageToClient>* AddPlayer(
  907. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/
  908. )
  909. {
  910. return nullptr;
  911. }
  912. };
  913. template<class BaseClass>
  914. class WithCallbackMethod_Move : public BaseClass
  915. {
  916. private:
  917. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  918. {
  919. }
  920. public:
  921. WithCallbackMethod_Move()
  922. {
  923. ::grpc::Service::MarkMethodCallback(2, new ::grpc::internal::CallbackUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response)
  924. { return this->Move(context, request, response); }));
  925. }
  926. void SetMessageAllocatorFor_Move(
  927. ::grpc::MessageAllocator<::protobuf::MoveMsg, ::protobuf::MoveRes>* allocator
  928. )
  929. {
  930. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
  931. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>*>(handler)
  932. ->SetMessageAllocator(allocator);
  933. }
  934. ~WithCallbackMethod_Move() override
  935. {
  936. BaseClassMustBeDerivedFromService(this);
  937. }
  938. // disable synchronous version of this method
  939. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  940. {
  941. abort();
  942. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  943. }
  944. virtual ::grpc::ServerUnaryReactor* Move(
  945. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/
  946. )
  947. {
  948. return nullptr;
  949. }
  950. };
  951. template<class BaseClass>
  952. class WithCallbackMethod_PickProp : public BaseClass
  953. {
  954. private:
  955. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  956. {
  957. }
  958. public:
  959. WithCallbackMethod_PickProp()
  960. {
  961. ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler<::protobuf::PickMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response)
  962. { return this->PickProp(context, request, response); }));
  963. }
  964. void SetMessageAllocatorFor_PickProp(
  965. ::grpc::MessageAllocator<::protobuf::PickMsg, ::protobuf::BoolRes>* allocator
  966. )
  967. {
  968. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3);
  969. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::PickMsg, ::protobuf::BoolRes>*>(handler)
  970. ->SetMessageAllocator(allocator);
  971. }
  972. ~WithCallbackMethod_PickProp() override
  973. {
  974. BaseClassMustBeDerivedFromService(this);
  975. }
  976. // disable synchronous version of this method
  977. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  978. {
  979. abort();
  980. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  981. }
  982. virtual ::grpc::ServerUnaryReactor* PickProp(
  983. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  984. )
  985. {
  986. return nullptr;
  987. }
  988. };
  989. template<class BaseClass>
  990. class WithCallbackMethod_UseProp : public BaseClass
  991. {
  992. private:
  993. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  994. {
  995. }
  996. public:
  997. WithCallbackMethod_UseProp()
  998. {
  999. ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1000. { return this->UseProp(context, request, response); }));
  1001. }
  1002. void SetMessageAllocatorFor_UseProp(
  1003. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1004. )
  1005. {
  1006. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4);
  1007. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1008. ->SetMessageAllocator(allocator);
  1009. }
  1010. ~WithCallbackMethod_UseProp() override
  1011. {
  1012. BaseClassMustBeDerivedFromService(this);
  1013. }
  1014. // disable synchronous version of this method
  1015. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1016. {
  1017. abort();
  1018. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1019. }
  1020. virtual ::grpc::ServerUnaryReactor* UseProp(
  1021. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1022. )
  1023. {
  1024. return nullptr;
  1025. }
  1026. };
  1027. template<class BaseClass>
  1028. class WithCallbackMethod_UseSkill : public BaseClass
  1029. {
  1030. private:
  1031. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1032. {
  1033. }
  1034. public:
  1035. WithCallbackMethod_UseSkill()
  1036. {
  1037. ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1038. { return this->UseSkill(context, request, response); }));
  1039. }
  1040. void SetMessageAllocatorFor_UseSkill(
  1041. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1042. )
  1043. {
  1044. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5);
  1045. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1046. ->SetMessageAllocator(allocator);
  1047. }
  1048. ~WithCallbackMethod_UseSkill() override
  1049. {
  1050. BaseClassMustBeDerivedFromService(this);
  1051. }
  1052. // disable synchronous version of this method
  1053. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1054. {
  1055. abort();
  1056. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1057. }
  1058. virtual ::grpc::ServerUnaryReactor* UseSkill(
  1059. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1060. )
  1061. {
  1062. return nullptr;
  1063. }
  1064. };
  1065. template<class BaseClass>
  1066. class WithCallbackMethod_SendMessage : public BaseClass
  1067. {
  1068. private:
  1069. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1070. {
  1071. }
  1072. public:
  1073. WithCallbackMethod_SendMessage()
  1074. {
  1075. ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response)
  1076. { return this->SendMessage(context, request, response); }));
  1077. }
  1078. void SetMessageAllocatorFor_SendMessage(
  1079. ::grpc::MessageAllocator<::protobuf::SendMsg, ::protobuf::BoolRes>* allocator
  1080. )
  1081. {
  1082. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6);
  1083. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>*>(handler)
  1084. ->SetMessageAllocator(allocator);
  1085. }
  1086. ~WithCallbackMethod_SendMessage() override
  1087. {
  1088. BaseClassMustBeDerivedFromService(this);
  1089. }
  1090. // disable synchronous version of this method
  1091. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1092. {
  1093. abort();
  1094. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1095. }
  1096. virtual ::grpc::ServerUnaryReactor* SendMessage(
  1097. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1098. )
  1099. {
  1100. return nullptr;
  1101. }
  1102. };
  1103. template<class BaseClass>
  1104. class WithCallbackMethod_GetMessage : public BaseClass
  1105. {
  1106. private:
  1107. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1108. {
  1109. }
  1110. public:
  1111. WithCallbackMethod_GetMessage()
  1112. {
  1113. ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackServerStreamingHandler<::protobuf::IDMsg, ::protobuf::MsgRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request)
  1114. { return this->GetMessage(context, request); }));
  1115. }
  1116. ~WithCallbackMethod_GetMessage() override
  1117. {
  1118. BaseClassMustBeDerivedFromService(this);
  1119. }
  1120. // disable synchronous version of this method
  1121. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MsgRes>* /*writer*/) override
  1122. {
  1123. abort();
  1124. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1125. }
  1126. virtual ::grpc::ServerWriteReactor<::protobuf::MsgRes>* GetMessage(
  1127. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/
  1128. )
  1129. {
  1130. return nullptr;
  1131. }
  1132. };
  1133. template<class BaseClass>
  1134. class WithCallbackMethod_StartLearning : public BaseClass
  1135. {
  1136. private:
  1137. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1138. {
  1139. }
  1140. public:
  1141. WithCallbackMethod_StartLearning()
  1142. {
  1143. ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1144. { return this->StartLearning(context, request, response); }));
  1145. }
  1146. void SetMessageAllocatorFor_StartLearning(
  1147. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1148. )
  1149. {
  1150. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8);
  1151. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1152. ->SetMessageAllocator(allocator);
  1153. }
  1154. ~WithCallbackMethod_StartLearning() override
  1155. {
  1156. BaseClassMustBeDerivedFromService(this);
  1157. }
  1158. // disable synchronous version of this method
  1159. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1160. {
  1161. abort();
  1162. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1163. }
  1164. virtual ::grpc::ServerUnaryReactor* StartLearning(
  1165. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1166. )
  1167. {
  1168. return nullptr;
  1169. }
  1170. };
  1171. template<class BaseClass>
  1172. class WithCallbackMethod_StartHelpMate : public BaseClass
  1173. {
  1174. private:
  1175. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1176. {
  1177. }
  1178. public:
  1179. WithCallbackMethod_StartHelpMate()
  1180. {
  1181. ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1182. { return this->StartHelpMate(context, request, response); }));
  1183. }
  1184. void SetMessageAllocatorFor_StartHelpMate(
  1185. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1186. )
  1187. {
  1188. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9);
  1189. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1190. ->SetMessageAllocator(allocator);
  1191. }
  1192. ~WithCallbackMethod_StartHelpMate() override
  1193. {
  1194. BaseClassMustBeDerivedFromService(this);
  1195. }
  1196. // disable synchronous version of this method
  1197. ::grpc::Status StartHelpMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1198. {
  1199. abort();
  1200. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1201. }
  1202. virtual ::grpc::ServerUnaryReactor* StartHelpMate(
  1203. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1204. )
  1205. {
  1206. return nullptr;
  1207. }
  1208. };
  1209. template<class BaseClass>
  1210. class WithCallbackMethod_StartHealMate : public BaseClass
  1211. {
  1212. private:
  1213. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1214. {
  1215. }
  1216. public:
  1217. WithCallbackMethod_StartHealMate()
  1218. {
  1219. ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1220. { return this->StartHealMate(context, request, response); }));
  1221. }
  1222. void SetMessageAllocatorFor_StartHealMate(
  1223. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1224. )
  1225. {
  1226. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10);
  1227. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1228. ->SetMessageAllocator(allocator);
  1229. }
  1230. ~WithCallbackMethod_StartHealMate() override
  1231. {
  1232. BaseClassMustBeDerivedFromService(this);
  1233. }
  1234. // disable synchronous version of this method
  1235. ::grpc::Status StartHealMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1236. {
  1237. abort();
  1238. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1239. }
  1240. virtual ::grpc::ServerUnaryReactor* StartHealMate(
  1241. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1242. )
  1243. {
  1244. return nullptr;
  1245. }
  1246. };
  1247. template<class BaseClass>
  1248. class WithCallbackMethod_Trick : public BaseClass
  1249. {
  1250. private:
  1251. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1252. {
  1253. }
  1254. public:
  1255. WithCallbackMethod_Trick()
  1256. {
  1257. ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler<::protobuf::TrickMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::TrickMsg* request, ::protobuf::BoolRes* response)
  1258. { return this->Trick(context, request, response); }));
  1259. }
  1260. void SetMessageAllocatorFor_Trick(
  1261. ::grpc::MessageAllocator<::protobuf::TrickMsg, ::protobuf::BoolRes>* allocator
  1262. )
  1263. {
  1264. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11);
  1265. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::TrickMsg, ::protobuf::BoolRes>*>(handler)
  1266. ->SetMessageAllocator(allocator);
  1267. }
  1268. ~WithCallbackMethod_Trick() override
  1269. {
  1270. BaseClassMustBeDerivedFromService(this);
  1271. }
  1272. // disable synchronous version of this method
  1273. ::grpc::Status Trick(::grpc::ServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1274. {
  1275. abort();
  1276. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1277. }
  1278. virtual ::grpc::ServerUnaryReactor* Trick(
  1279. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1280. )
  1281. {
  1282. return nullptr;
  1283. }
  1284. };
  1285. template<class BaseClass>
  1286. class WithCallbackMethod_Graduate : public BaseClass
  1287. {
  1288. private:
  1289. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1290. {
  1291. }
  1292. public:
  1293. WithCallbackMethod_Graduate()
  1294. {
  1295. ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1296. { return this->Graduate(context, request, response); }));
  1297. }
  1298. void SetMessageAllocatorFor_Graduate(
  1299. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1300. )
  1301. {
  1302. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12);
  1303. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1304. ->SetMessageAllocator(allocator);
  1305. }
  1306. ~WithCallbackMethod_Graduate() override
  1307. {
  1308. BaseClassMustBeDerivedFromService(this);
  1309. }
  1310. // disable synchronous version of this method
  1311. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1312. {
  1313. abort();
  1314. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1315. }
  1316. virtual ::grpc::ServerUnaryReactor* Graduate(
  1317. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1318. )
  1319. {
  1320. return nullptr;
  1321. }
  1322. };
  1323. typedef WithCallbackMethod_TryConnection<WithCallbackMethod_AddPlayer<WithCallbackMethod_Move<WithCallbackMethod_PickProp<WithCallbackMethod_UseProp<WithCallbackMethod_UseSkill<WithCallbackMethod_SendMessage<WithCallbackMethod_GetMessage<WithCallbackMethod_StartLearning<WithCallbackMethod_StartHelpMate<WithCallbackMethod_StartHealMate<WithCallbackMethod_Trick<WithCallbackMethod_Graduate<Service>>>>>>>>>>>>> CallbackService;
  1324. typedef CallbackService ExperimentalCallbackService;
  1325. template<class BaseClass>
  1326. class WithGenericMethod_TryConnection : public BaseClass
  1327. {
  1328. private:
  1329. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1330. {
  1331. }
  1332. public:
  1333. WithGenericMethod_TryConnection()
  1334. {
  1335. ::grpc::Service::MarkMethodGeneric(0);
  1336. }
  1337. ~WithGenericMethod_TryConnection() override
  1338. {
  1339. BaseClassMustBeDerivedFromService(this);
  1340. }
  1341. // disable synchronous version of this method
  1342. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1343. {
  1344. abort();
  1345. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1346. }
  1347. };
  1348. template<class BaseClass>
  1349. class WithGenericMethod_AddPlayer : public BaseClass
  1350. {
  1351. private:
  1352. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1353. {
  1354. }
  1355. public:
  1356. WithGenericMethod_AddPlayer()
  1357. {
  1358. ::grpc::Service::MarkMethodGeneric(1);
  1359. }
  1360. ~WithGenericMethod_AddPlayer() override
  1361. {
  1362. BaseClassMustBeDerivedFromService(this);
  1363. }
  1364. // disable synchronous version of this method
  1365. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  1366. {
  1367. abort();
  1368. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1369. }
  1370. };
  1371. template<class BaseClass>
  1372. class WithGenericMethod_Move : public BaseClass
  1373. {
  1374. private:
  1375. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1376. {
  1377. }
  1378. public:
  1379. WithGenericMethod_Move()
  1380. {
  1381. ::grpc::Service::MarkMethodGeneric(2);
  1382. }
  1383. ~WithGenericMethod_Move() override
  1384. {
  1385. BaseClassMustBeDerivedFromService(this);
  1386. }
  1387. // disable synchronous version of this method
  1388. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  1389. {
  1390. abort();
  1391. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1392. }
  1393. };
  1394. template<class BaseClass>
  1395. class WithGenericMethod_PickProp : public BaseClass
  1396. {
  1397. private:
  1398. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1399. {
  1400. }
  1401. public:
  1402. WithGenericMethod_PickProp()
  1403. {
  1404. ::grpc::Service::MarkMethodGeneric(3);
  1405. }
  1406. ~WithGenericMethod_PickProp() override
  1407. {
  1408. BaseClassMustBeDerivedFromService(this);
  1409. }
  1410. // disable synchronous version of this method
  1411. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1412. {
  1413. abort();
  1414. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1415. }
  1416. };
  1417. template<class BaseClass>
  1418. class WithGenericMethod_UseProp : public BaseClass
  1419. {
  1420. private:
  1421. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1422. {
  1423. }
  1424. public:
  1425. WithGenericMethod_UseProp()
  1426. {
  1427. ::grpc::Service::MarkMethodGeneric(4);
  1428. }
  1429. ~WithGenericMethod_UseProp() override
  1430. {
  1431. BaseClassMustBeDerivedFromService(this);
  1432. }
  1433. // disable synchronous version of this method
  1434. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1435. {
  1436. abort();
  1437. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1438. }
  1439. };
  1440. template<class BaseClass>
  1441. class WithGenericMethod_UseSkill : public BaseClass
  1442. {
  1443. private:
  1444. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1445. {
  1446. }
  1447. public:
  1448. WithGenericMethod_UseSkill()
  1449. {
  1450. ::grpc::Service::MarkMethodGeneric(5);
  1451. }
  1452. ~WithGenericMethod_UseSkill() override
  1453. {
  1454. BaseClassMustBeDerivedFromService(this);
  1455. }
  1456. // disable synchronous version of this method
  1457. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1458. {
  1459. abort();
  1460. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1461. }
  1462. };
  1463. template<class BaseClass>
  1464. class WithGenericMethod_SendMessage : public BaseClass
  1465. {
  1466. private:
  1467. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1468. {
  1469. }
  1470. public:
  1471. WithGenericMethod_SendMessage()
  1472. {
  1473. ::grpc::Service::MarkMethodGeneric(6);
  1474. }
  1475. ~WithGenericMethod_SendMessage() override
  1476. {
  1477. BaseClassMustBeDerivedFromService(this);
  1478. }
  1479. // disable synchronous version of this method
  1480. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1481. {
  1482. abort();
  1483. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1484. }
  1485. };
  1486. template<class BaseClass>
  1487. class WithGenericMethod_GetMessage : public BaseClass
  1488. {
  1489. private:
  1490. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1491. {
  1492. }
  1493. public:
  1494. WithGenericMethod_GetMessage()
  1495. {
  1496. ::grpc::Service::MarkMethodGeneric(7);
  1497. }
  1498. ~WithGenericMethod_GetMessage() override
  1499. {
  1500. BaseClassMustBeDerivedFromService(this);
  1501. }
  1502. // disable synchronous version of this method
  1503. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MsgRes>* /*writer*/) override
  1504. {
  1505. abort();
  1506. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1507. }
  1508. };
  1509. template<class BaseClass>
  1510. class WithGenericMethod_StartLearning : public BaseClass
  1511. {
  1512. private:
  1513. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1514. {
  1515. }
  1516. public:
  1517. WithGenericMethod_StartLearning()
  1518. {
  1519. ::grpc::Service::MarkMethodGeneric(8);
  1520. }
  1521. ~WithGenericMethod_StartLearning() override
  1522. {
  1523. BaseClassMustBeDerivedFromService(this);
  1524. }
  1525. // disable synchronous version of this method
  1526. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1527. {
  1528. abort();
  1529. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1530. }
  1531. };
  1532. template<class BaseClass>
  1533. class WithGenericMethod_StartHelpMate : public BaseClass
  1534. {
  1535. private:
  1536. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1537. {
  1538. }
  1539. public:
  1540. WithGenericMethod_StartHelpMate()
  1541. {
  1542. ::grpc::Service::MarkMethodGeneric(9);
  1543. }
  1544. ~WithGenericMethod_StartHelpMate() override
  1545. {
  1546. BaseClassMustBeDerivedFromService(this);
  1547. }
  1548. // disable synchronous version of this method
  1549. ::grpc::Status StartHelpMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1550. {
  1551. abort();
  1552. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1553. }
  1554. };
  1555. template<class BaseClass>
  1556. class WithGenericMethod_StartHealMate : public BaseClass
  1557. {
  1558. private:
  1559. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1560. {
  1561. }
  1562. public:
  1563. WithGenericMethod_StartHealMate()
  1564. {
  1565. ::grpc::Service::MarkMethodGeneric(10);
  1566. }
  1567. ~WithGenericMethod_StartHealMate() override
  1568. {
  1569. BaseClassMustBeDerivedFromService(this);
  1570. }
  1571. // disable synchronous version of this method
  1572. ::grpc::Status StartHealMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1573. {
  1574. abort();
  1575. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1576. }
  1577. };
  1578. template<class BaseClass>
  1579. class WithGenericMethod_Trick : public BaseClass
  1580. {
  1581. private:
  1582. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1583. {
  1584. }
  1585. public:
  1586. WithGenericMethod_Trick()
  1587. {
  1588. ::grpc::Service::MarkMethodGeneric(11);
  1589. }
  1590. ~WithGenericMethod_Trick() override
  1591. {
  1592. BaseClassMustBeDerivedFromService(this);
  1593. }
  1594. // disable synchronous version of this method
  1595. ::grpc::Status Trick(::grpc::ServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1596. {
  1597. abort();
  1598. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1599. }
  1600. };
  1601. template<class BaseClass>
  1602. class WithGenericMethod_Graduate : public BaseClass
  1603. {
  1604. private:
  1605. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1606. {
  1607. }
  1608. public:
  1609. WithGenericMethod_Graduate()
  1610. {
  1611. ::grpc::Service::MarkMethodGeneric(12);
  1612. }
  1613. ~WithGenericMethod_Graduate() override
  1614. {
  1615. BaseClassMustBeDerivedFromService(this);
  1616. }
  1617. // disable synchronous version of this method
  1618. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1619. {
  1620. abort();
  1621. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1622. }
  1623. };
  1624. template<class BaseClass>
  1625. class WithRawMethod_TryConnection : public BaseClass
  1626. {
  1627. private:
  1628. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1629. {
  1630. }
  1631. public:
  1632. WithRawMethod_TryConnection()
  1633. {
  1634. ::grpc::Service::MarkMethodRaw(0);
  1635. }
  1636. ~WithRawMethod_TryConnection() override
  1637. {
  1638. BaseClassMustBeDerivedFromService(this);
  1639. }
  1640. // disable synchronous version of this method
  1641. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1642. {
  1643. abort();
  1644. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1645. }
  1646. void RequestTryConnection(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1647. {
  1648. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  1649. }
  1650. };
  1651. template<class BaseClass>
  1652. class WithRawMethod_AddPlayer : public BaseClass
  1653. {
  1654. private:
  1655. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1656. {
  1657. }
  1658. public:
  1659. WithRawMethod_AddPlayer()
  1660. {
  1661. ::grpc::Service::MarkMethodRaw(1);
  1662. }
  1663. ~WithRawMethod_AddPlayer() override
  1664. {
  1665. BaseClassMustBeDerivedFromService(this);
  1666. }
  1667. // disable synchronous version of this method
  1668. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  1669. {
  1670. abort();
  1671. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1672. }
  1673. void RequestAddPlayer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter<::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1674. {
  1675. ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
  1676. }
  1677. };
  1678. template<class BaseClass>
  1679. class WithRawMethod_Move : public BaseClass
  1680. {
  1681. private:
  1682. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1683. {
  1684. }
  1685. public:
  1686. WithRawMethod_Move()
  1687. {
  1688. ::grpc::Service::MarkMethodRaw(2);
  1689. }
  1690. ~WithRawMethod_Move() override
  1691. {
  1692. BaseClassMustBeDerivedFromService(this);
  1693. }
  1694. // disable synchronous version of this method
  1695. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  1696. {
  1697. abort();
  1698. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1699. }
  1700. void RequestMove(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1701. {
  1702. ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
  1703. }
  1704. };
  1705. template<class BaseClass>
  1706. class WithRawMethod_PickProp : public BaseClass
  1707. {
  1708. private:
  1709. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1710. {
  1711. }
  1712. public:
  1713. WithRawMethod_PickProp()
  1714. {
  1715. ::grpc::Service::MarkMethodRaw(3);
  1716. }
  1717. ~WithRawMethod_PickProp() override
  1718. {
  1719. BaseClassMustBeDerivedFromService(this);
  1720. }
  1721. // disable synchronous version of this method
  1722. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1723. {
  1724. abort();
  1725. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1726. }
  1727. void RequestPickProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1728. {
  1729. ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
  1730. }
  1731. };
  1732. template<class BaseClass>
  1733. class WithRawMethod_UseProp : public BaseClass
  1734. {
  1735. private:
  1736. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1737. {
  1738. }
  1739. public:
  1740. WithRawMethod_UseProp()
  1741. {
  1742. ::grpc::Service::MarkMethodRaw(4);
  1743. }
  1744. ~WithRawMethod_UseProp() override
  1745. {
  1746. BaseClassMustBeDerivedFromService(this);
  1747. }
  1748. // disable synchronous version of this method
  1749. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1750. {
  1751. abort();
  1752. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1753. }
  1754. void RequestUseProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1755. {
  1756. ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
  1757. }
  1758. };
  1759. template<class BaseClass>
  1760. class WithRawMethod_UseSkill : public BaseClass
  1761. {
  1762. private:
  1763. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1764. {
  1765. }
  1766. public:
  1767. WithRawMethod_UseSkill()
  1768. {
  1769. ::grpc::Service::MarkMethodRaw(5);
  1770. }
  1771. ~WithRawMethod_UseSkill() override
  1772. {
  1773. BaseClassMustBeDerivedFromService(this);
  1774. }
  1775. // disable synchronous version of this method
  1776. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1777. {
  1778. abort();
  1779. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1780. }
  1781. void RequestUseSkill(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1782. {
  1783. ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
  1784. }
  1785. };
  1786. template<class BaseClass>
  1787. class WithRawMethod_SendMessage : public BaseClass
  1788. {
  1789. private:
  1790. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1791. {
  1792. }
  1793. public:
  1794. WithRawMethod_SendMessage()
  1795. {
  1796. ::grpc::Service::MarkMethodRaw(6);
  1797. }
  1798. ~WithRawMethod_SendMessage() override
  1799. {
  1800. BaseClassMustBeDerivedFromService(this);
  1801. }
  1802. // disable synchronous version of this method
  1803. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1804. {
  1805. abort();
  1806. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1807. }
  1808. void RequestSendMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1809. {
  1810. ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
  1811. }
  1812. };
  1813. template<class BaseClass>
  1814. class WithRawMethod_GetMessage : public BaseClass
  1815. {
  1816. private:
  1817. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1818. {
  1819. }
  1820. public:
  1821. WithRawMethod_GetMessage()
  1822. {
  1823. ::grpc::Service::MarkMethodRaw(7);
  1824. }
  1825. ~WithRawMethod_GetMessage() override
  1826. {
  1827. BaseClassMustBeDerivedFromService(this);
  1828. }
  1829. // disable synchronous version of this method
  1830. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MsgRes>* /*writer*/) override
  1831. {
  1832. abort();
  1833. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1834. }
  1835. void RequestGetMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter<::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1836. {
  1837. ::grpc::Service::RequestAsyncServerStreaming(7, context, request, writer, new_call_cq, notification_cq, tag);
  1838. }
  1839. };
  1840. template<class BaseClass>
  1841. class WithRawMethod_StartLearning : public BaseClass
  1842. {
  1843. private:
  1844. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1845. {
  1846. }
  1847. public:
  1848. WithRawMethod_StartLearning()
  1849. {
  1850. ::grpc::Service::MarkMethodRaw(8);
  1851. }
  1852. ~WithRawMethod_StartLearning() override
  1853. {
  1854. BaseClassMustBeDerivedFromService(this);
  1855. }
  1856. // disable synchronous version of this method
  1857. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1858. {
  1859. abort();
  1860. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1861. }
  1862. void RequestStartLearning(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1863. {
  1864. ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
  1865. }
  1866. };
  1867. template<class BaseClass>
  1868. class WithRawMethod_StartHelpMate : public BaseClass
  1869. {
  1870. private:
  1871. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1872. {
  1873. }
  1874. public:
  1875. WithRawMethod_StartHelpMate()
  1876. {
  1877. ::grpc::Service::MarkMethodRaw(9);
  1878. }
  1879. ~WithRawMethod_StartHelpMate() override
  1880. {
  1881. BaseClassMustBeDerivedFromService(this);
  1882. }
  1883. // disable synchronous version of this method
  1884. ::grpc::Status StartHelpMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1885. {
  1886. abort();
  1887. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1888. }
  1889. void RequestStartHelpMate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1890. {
  1891. ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag);
  1892. }
  1893. };
  1894. template<class BaseClass>
  1895. class WithRawMethod_StartHealMate : public BaseClass
  1896. {
  1897. private:
  1898. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1899. {
  1900. }
  1901. public:
  1902. WithRawMethod_StartHealMate()
  1903. {
  1904. ::grpc::Service::MarkMethodRaw(10);
  1905. }
  1906. ~WithRawMethod_StartHealMate() override
  1907. {
  1908. BaseClassMustBeDerivedFromService(this);
  1909. }
  1910. // disable synchronous version of this method
  1911. ::grpc::Status StartHealMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1912. {
  1913. abort();
  1914. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1915. }
  1916. void RequestStartHealMate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1917. {
  1918. ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag);
  1919. }
  1920. };
  1921. template<class BaseClass>
  1922. class WithRawMethod_Trick : public BaseClass
  1923. {
  1924. private:
  1925. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1926. {
  1927. }
  1928. public:
  1929. WithRawMethod_Trick()
  1930. {
  1931. ::grpc::Service::MarkMethodRaw(11);
  1932. }
  1933. ~WithRawMethod_Trick() override
  1934. {
  1935. BaseClassMustBeDerivedFromService(this);
  1936. }
  1937. // disable synchronous version of this method
  1938. ::grpc::Status Trick(::grpc::ServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1939. {
  1940. abort();
  1941. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1942. }
  1943. void RequestTrick(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1944. {
  1945. ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
  1946. }
  1947. };
  1948. template<class BaseClass>
  1949. class WithRawMethod_Graduate : public BaseClass
  1950. {
  1951. private:
  1952. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1953. {
  1954. }
  1955. public:
  1956. WithRawMethod_Graduate()
  1957. {
  1958. ::grpc::Service::MarkMethodRaw(12);
  1959. }
  1960. ~WithRawMethod_Graduate() override
  1961. {
  1962. BaseClassMustBeDerivedFromService(this);
  1963. }
  1964. // disable synchronous version of this method
  1965. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1966. {
  1967. abort();
  1968. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1969. }
  1970. void RequestGraduate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1971. {
  1972. ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
  1973. }
  1974. };
  1975. template<class BaseClass>
  1976. class WithRawCallbackMethod_TryConnection : public BaseClass
  1977. {
  1978. private:
  1979. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1980. {
  1981. }
  1982. public:
  1983. WithRawCallbackMethod_TryConnection()
  1984. {
  1985. ::grpc::Service::MarkMethodRawCallback(0, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  1986. { return this->TryConnection(context, request, response); }));
  1987. }
  1988. ~WithRawCallbackMethod_TryConnection() override
  1989. {
  1990. BaseClassMustBeDerivedFromService(this);
  1991. }
  1992. // disable synchronous version of this method
  1993. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1994. {
  1995. abort();
  1996. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1997. }
  1998. virtual ::grpc::ServerUnaryReactor* TryConnection(
  1999. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2000. )
  2001. {
  2002. return nullptr;
  2003. }
  2004. };
  2005. template<class BaseClass>
  2006. class WithRawCallbackMethod_AddPlayer : public BaseClass
  2007. {
  2008. private:
  2009. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2010. {
  2011. }
  2012. public:
  2013. WithRawCallbackMethod_AddPlayer()
  2014. {
  2015. ::grpc::Service::MarkMethodRawCallback(1, new ::grpc::internal::CallbackServerStreamingHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request)
  2016. { return this->AddPlayer(context, request); }));
  2017. }
  2018. ~WithRawCallbackMethod_AddPlayer() override
  2019. {
  2020. BaseClassMustBeDerivedFromService(this);
  2021. }
  2022. // disable synchronous version of this method
  2023. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  2024. {
  2025. abort();
  2026. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2027. }
  2028. virtual ::grpc::ServerWriteReactor<::grpc::ByteBuffer>* AddPlayer(
  2029. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/
  2030. )
  2031. {
  2032. return nullptr;
  2033. }
  2034. };
  2035. template<class BaseClass>
  2036. class WithRawCallbackMethod_Move : public BaseClass
  2037. {
  2038. private:
  2039. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2040. {
  2041. }
  2042. public:
  2043. WithRawCallbackMethod_Move()
  2044. {
  2045. ::grpc::Service::MarkMethodRawCallback(2, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2046. { return this->Move(context, request, response); }));
  2047. }
  2048. ~WithRawCallbackMethod_Move() override
  2049. {
  2050. BaseClassMustBeDerivedFromService(this);
  2051. }
  2052. // disable synchronous version of this method
  2053. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2054. {
  2055. abort();
  2056. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2057. }
  2058. virtual ::grpc::ServerUnaryReactor* Move(
  2059. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2060. )
  2061. {
  2062. return nullptr;
  2063. }
  2064. };
  2065. template<class BaseClass>
  2066. class WithRawCallbackMethod_PickProp : public BaseClass
  2067. {
  2068. private:
  2069. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2070. {
  2071. }
  2072. public:
  2073. WithRawCallbackMethod_PickProp()
  2074. {
  2075. ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2076. { return this->PickProp(context, request, response); }));
  2077. }
  2078. ~WithRawCallbackMethod_PickProp() override
  2079. {
  2080. BaseClassMustBeDerivedFromService(this);
  2081. }
  2082. // disable synchronous version of this method
  2083. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2084. {
  2085. abort();
  2086. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2087. }
  2088. virtual ::grpc::ServerUnaryReactor* PickProp(
  2089. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2090. )
  2091. {
  2092. return nullptr;
  2093. }
  2094. };
  2095. template<class BaseClass>
  2096. class WithRawCallbackMethod_UseProp : public BaseClass
  2097. {
  2098. private:
  2099. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2100. {
  2101. }
  2102. public:
  2103. WithRawCallbackMethod_UseProp()
  2104. {
  2105. ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2106. { return this->UseProp(context, request, response); }));
  2107. }
  2108. ~WithRawCallbackMethod_UseProp() override
  2109. {
  2110. BaseClassMustBeDerivedFromService(this);
  2111. }
  2112. // disable synchronous version of this method
  2113. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2114. {
  2115. abort();
  2116. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2117. }
  2118. virtual ::grpc::ServerUnaryReactor* UseProp(
  2119. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2120. )
  2121. {
  2122. return nullptr;
  2123. }
  2124. };
  2125. template<class BaseClass>
  2126. class WithRawCallbackMethod_UseSkill : public BaseClass
  2127. {
  2128. private:
  2129. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2130. {
  2131. }
  2132. public:
  2133. WithRawCallbackMethod_UseSkill()
  2134. {
  2135. ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2136. { return this->UseSkill(context, request, response); }));
  2137. }
  2138. ~WithRawCallbackMethod_UseSkill() override
  2139. {
  2140. BaseClassMustBeDerivedFromService(this);
  2141. }
  2142. // disable synchronous version of this method
  2143. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2144. {
  2145. abort();
  2146. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2147. }
  2148. virtual ::grpc::ServerUnaryReactor* UseSkill(
  2149. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2150. )
  2151. {
  2152. return nullptr;
  2153. }
  2154. };
  2155. template<class BaseClass>
  2156. class WithRawCallbackMethod_SendMessage : public BaseClass
  2157. {
  2158. private:
  2159. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2160. {
  2161. }
  2162. public:
  2163. WithRawCallbackMethod_SendMessage()
  2164. {
  2165. ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2166. { return this->SendMessage(context, request, response); }));
  2167. }
  2168. ~WithRawCallbackMethod_SendMessage() override
  2169. {
  2170. BaseClassMustBeDerivedFromService(this);
  2171. }
  2172. // disable synchronous version of this method
  2173. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2174. {
  2175. abort();
  2176. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2177. }
  2178. virtual ::grpc::ServerUnaryReactor* SendMessage(
  2179. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2180. )
  2181. {
  2182. return nullptr;
  2183. }
  2184. };
  2185. template<class BaseClass>
  2186. class WithRawCallbackMethod_GetMessage : public BaseClass
  2187. {
  2188. private:
  2189. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2190. {
  2191. }
  2192. public:
  2193. WithRawCallbackMethod_GetMessage()
  2194. {
  2195. ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackServerStreamingHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request)
  2196. { return this->GetMessage(context, request); }));
  2197. }
  2198. ~WithRawCallbackMethod_GetMessage() override
  2199. {
  2200. BaseClassMustBeDerivedFromService(this);
  2201. }
  2202. // disable synchronous version of this method
  2203. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MsgRes>* /*writer*/) override
  2204. {
  2205. abort();
  2206. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2207. }
  2208. virtual ::grpc::ServerWriteReactor<::grpc::ByteBuffer>* GetMessage(
  2209. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/
  2210. )
  2211. {
  2212. return nullptr;
  2213. }
  2214. };
  2215. template<class BaseClass>
  2216. class WithRawCallbackMethod_StartLearning : public BaseClass
  2217. {
  2218. private:
  2219. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2220. {
  2221. }
  2222. public:
  2223. WithRawCallbackMethod_StartLearning()
  2224. {
  2225. ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2226. { return this->StartLearning(context, request, response); }));
  2227. }
  2228. ~WithRawCallbackMethod_StartLearning() override
  2229. {
  2230. BaseClassMustBeDerivedFromService(this);
  2231. }
  2232. // disable synchronous version of this method
  2233. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2234. {
  2235. abort();
  2236. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2237. }
  2238. virtual ::grpc::ServerUnaryReactor* StartLearning(
  2239. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2240. )
  2241. {
  2242. return nullptr;
  2243. }
  2244. };
  2245. template<class BaseClass>
  2246. class WithRawCallbackMethod_StartHelpMate : public BaseClass
  2247. {
  2248. private:
  2249. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2250. {
  2251. }
  2252. public:
  2253. WithRawCallbackMethod_StartHelpMate()
  2254. {
  2255. ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2256. { return this->StartHelpMate(context, request, response); }));
  2257. }
  2258. ~WithRawCallbackMethod_StartHelpMate() override
  2259. {
  2260. BaseClassMustBeDerivedFromService(this);
  2261. }
  2262. // disable synchronous version of this method
  2263. ::grpc::Status StartHelpMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2264. {
  2265. abort();
  2266. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2267. }
  2268. virtual ::grpc::ServerUnaryReactor* StartHelpMate(
  2269. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2270. )
  2271. {
  2272. return nullptr;
  2273. }
  2274. };
  2275. template<class BaseClass>
  2276. class WithRawCallbackMethod_StartHealMate : public BaseClass
  2277. {
  2278. private:
  2279. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2280. {
  2281. }
  2282. public:
  2283. WithRawCallbackMethod_StartHealMate()
  2284. {
  2285. ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2286. { return this->StartHealMate(context, request, response); }));
  2287. }
  2288. ~WithRawCallbackMethod_StartHealMate() override
  2289. {
  2290. BaseClassMustBeDerivedFromService(this);
  2291. }
  2292. // disable synchronous version of this method
  2293. ::grpc::Status StartHealMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2294. {
  2295. abort();
  2296. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2297. }
  2298. virtual ::grpc::ServerUnaryReactor* StartHealMate(
  2299. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2300. )
  2301. {
  2302. return nullptr;
  2303. }
  2304. };
  2305. template<class BaseClass>
  2306. class WithRawCallbackMethod_Trick : public BaseClass
  2307. {
  2308. private:
  2309. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2310. {
  2311. }
  2312. public:
  2313. WithRawCallbackMethod_Trick()
  2314. {
  2315. ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2316. { return this->Trick(context, request, response); }));
  2317. }
  2318. ~WithRawCallbackMethod_Trick() override
  2319. {
  2320. BaseClassMustBeDerivedFromService(this);
  2321. }
  2322. // disable synchronous version of this method
  2323. ::grpc::Status Trick(::grpc::ServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2324. {
  2325. abort();
  2326. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2327. }
  2328. virtual ::grpc::ServerUnaryReactor* Trick(
  2329. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2330. )
  2331. {
  2332. return nullptr;
  2333. }
  2334. };
  2335. template<class BaseClass>
  2336. class WithRawCallbackMethod_Graduate : public BaseClass
  2337. {
  2338. private:
  2339. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2340. {
  2341. }
  2342. public:
  2343. WithRawCallbackMethod_Graduate()
  2344. {
  2345. ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2346. { return this->Graduate(context, request, response); }));
  2347. }
  2348. ~WithRawCallbackMethod_Graduate() override
  2349. {
  2350. BaseClassMustBeDerivedFromService(this);
  2351. }
  2352. // disable synchronous version of this method
  2353. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2354. {
  2355. abort();
  2356. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2357. }
  2358. virtual ::grpc::ServerUnaryReactor* Graduate(
  2359. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2360. )
  2361. {
  2362. return nullptr;
  2363. }
  2364. };
  2365. template<class BaseClass>
  2366. class WithStreamedUnaryMethod_TryConnection : public BaseClass
  2367. {
  2368. private:
  2369. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2370. {
  2371. }
  2372. public:
  2373. WithStreamedUnaryMethod_TryConnection()
  2374. {
  2375. ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2376. { return this->StreamedTryConnection(context, streamer); }));
  2377. }
  2378. ~WithStreamedUnaryMethod_TryConnection() override
  2379. {
  2380. BaseClassMustBeDerivedFromService(this);
  2381. }
  2382. // disable regular version of this method
  2383. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2384. {
  2385. abort();
  2386. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2387. }
  2388. // replace default version of method with streamed unary
  2389. virtual ::grpc::Status StreamedTryConnection(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2390. };
  2391. template<class BaseClass>
  2392. class WithStreamedUnaryMethod_Move : public BaseClass
  2393. {
  2394. private:
  2395. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2396. {
  2397. }
  2398. public:
  2399. WithStreamedUnaryMethod_Move()
  2400. {
  2401. ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::MoveMsg, ::protobuf::MoveRes>* streamer)
  2402. { return this->StreamedMove(context, streamer); }));
  2403. }
  2404. ~WithStreamedUnaryMethod_Move() override
  2405. {
  2406. BaseClassMustBeDerivedFromService(this);
  2407. }
  2408. // disable regular version of this method
  2409. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2410. {
  2411. abort();
  2412. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2413. }
  2414. // replace default version of method with streamed unary
  2415. virtual ::grpc::Status StreamedMove(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::MoveMsg, ::protobuf::MoveRes>* server_unary_streamer) = 0;
  2416. };
  2417. template<class BaseClass>
  2418. class WithStreamedUnaryMethod_PickProp : public BaseClass
  2419. {
  2420. private:
  2421. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2422. {
  2423. }
  2424. public:
  2425. WithStreamedUnaryMethod_PickProp()
  2426. {
  2427. ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler<::protobuf::PickMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PickMsg, ::protobuf::BoolRes>* streamer)
  2428. { return this->StreamedPickProp(context, streamer); }));
  2429. }
  2430. ~WithStreamedUnaryMethod_PickProp() override
  2431. {
  2432. BaseClassMustBeDerivedFromService(this);
  2433. }
  2434. // disable regular version of this method
  2435. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2436. {
  2437. abort();
  2438. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2439. }
  2440. // replace default version of method with streamed unary
  2441. virtual ::grpc::Status StreamedPickProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PickMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2442. };
  2443. template<class BaseClass>
  2444. class WithStreamedUnaryMethod_UseProp : public BaseClass
  2445. {
  2446. private:
  2447. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2448. {
  2449. }
  2450. public:
  2451. WithStreamedUnaryMethod_UseProp()
  2452. {
  2453. ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2454. { return this->StreamedUseProp(context, streamer); }));
  2455. }
  2456. ~WithStreamedUnaryMethod_UseProp() override
  2457. {
  2458. BaseClassMustBeDerivedFromService(this);
  2459. }
  2460. // disable regular version of this method
  2461. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2462. {
  2463. abort();
  2464. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2465. }
  2466. // replace default version of method with streamed unary
  2467. virtual ::grpc::Status StreamedUseProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2468. };
  2469. template<class BaseClass>
  2470. class WithStreamedUnaryMethod_UseSkill : public BaseClass
  2471. {
  2472. private:
  2473. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2474. {
  2475. }
  2476. public:
  2477. WithStreamedUnaryMethod_UseSkill()
  2478. {
  2479. ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2480. { return this->StreamedUseSkill(context, streamer); }));
  2481. }
  2482. ~WithStreamedUnaryMethod_UseSkill() override
  2483. {
  2484. BaseClassMustBeDerivedFromService(this);
  2485. }
  2486. // disable regular version of this method
  2487. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2488. {
  2489. abort();
  2490. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2491. }
  2492. // replace default version of method with streamed unary
  2493. virtual ::grpc::Status StreamedUseSkill(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2494. };
  2495. template<class BaseClass>
  2496. class WithStreamedUnaryMethod_SendMessage : public BaseClass
  2497. {
  2498. private:
  2499. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2500. {
  2501. }
  2502. public:
  2503. WithStreamedUnaryMethod_SendMessage()
  2504. {
  2505. ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SendMsg, ::protobuf::BoolRes>* streamer)
  2506. { return this->StreamedSendMessage(context, streamer); }));
  2507. }
  2508. ~WithStreamedUnaryMethod_SendMessage() override
  2509. {
  2510. BaseClassMustBeDerivedFromService(this);
  2511. }
  2512. // disable regular version of this method
  2513. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2514. {
  2515. abort();
  2516. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2517. }
  2518. // replace default version of method with streamed unary
  2519. virtual ::grpc::Status StreamedSendMessage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SendMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2520. };
  2521. template<class BaseClass>
  2522. class WithStreamedUnaryMethod_StartLearning : public BaseClass
  2523. {
  2524. private:
  2525. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2526. {
  2527. }
  2528. public:
  2529. WithStreamedUnaryMethod_StartLearning()
  2530. {
  2531. ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2532. { return this->StreamedStartLearning(context, streamer); }));
  2533. }
  2534. ~WithStreamedUnaryMethod_StartLearning() override
  2535. {
  2536. BaseClassMustBeDerivedFromService(this);
  2537. }
  2538. // disable regular version of this method
  2539. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2540. {
  2541. abort();
  2542. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2543. }
  2544. // replace default version of method with streamed unary
  2545. virtual ::grpc::Status StreamedStartLearning(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2546. };
  2547. template<class BaseClass>
  2548. class WithStreamedUnaryMethod_StartHelpMate : public BaseClass
  2549. {
  2550. private:
  2551. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2552. {
  2553. }
  2554. public:
  2555. WithStreamedUnaryMethod_StartHelpMate()
  2556. {
  2557. ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2558. { return this->StreamedStartHelpMate(context, streamer); }));
  2559. }
  2560. ~WithStreamedUnaryMethod_StartHelpMate() override
  2561. {
  2562. BaseClassMustBeDerivedFromService(this);
  2563. }
  2564. // disable regular version of this method
  2565. ::grpc::Status StartHelpMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2566. {
  2567. abort();
  2568. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2569. }
  2570. // replace default version of method with streamed unary
  2571. virtual ::grpc::Status StreamedStartHelpMate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2572. };
  2573. template<class BaseClass>
  2574. class WithStreamedUnaryMethod_StartHealMate : public BaseClass
  2575. {
  2576. private:
  2577. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2578. {
  2579. }
  2580. public:
  2581. WithStreamedUnaryMethod_StartHealMate()
  2582. {
  2583. ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2584. { return this->StreamedStartHealMate(context, streamer); }));
  2585. }
  2586. ~WithStreamedUnaryMethod_StartHealMate() override
  2587. {
  2588. BaseClassMustBeDerivedFromService(this);
  2589. }
  2590. // disable regular version of this method
  2591. ::grpc::Status StartHealMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2592. {
  2593. abort();
  2594. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2595. }
  2596. // replace default version of method with streamed unary
  2597. virtual ::grpc::Status StreamedStartHealMate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2598. };
  2599. template<class BaseClass>
  2600. class WithStreamedUnaryMethod_Trick : public BaseClass
  2601. {
  2602. private:
  2603. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2604. {
  2605. }
  2606. public:
  2607. WithStreamedUnaryMethod_Trick()
  2608. {
  2609. ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler<::protobuf::TrickMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::TrickMsg, ::protobuf::BoolRes>* streamer)
  2610. { return this->StreamedTrick(context, streamer); }));
  2611. }
  2612. ~WithStreamedUnaryMethod_Trick() override
  2613. {
  2614. BaseClassMustBeDerivedFromService(this);
  2615. }
  2616. // disable regular version of this method
  2617. ::grpc::Status Trick(::grpc::ServerContext* /*context*/, const ::protobuf::TrickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2618. {
  2619. abort();
  2620. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2621. }
  2622. // replace default version of method with streamed unary
  2623. virtual ::grpc::Status StreamedTrick(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::TrickMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2624. };
  2625. template<class BaseClass>
  2626. class WithStreamedUnaryMethod_Graduate : public BaseClass
  2627. {
  2628. private:
  2629. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2630. {
  2631. }
  2632. public:
  2633. WithStreamedUnaryMethod_Graduate()
  2634. {
  2635. ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2636. { return this->StreamedGraduate(context, streamer); }));
  2637. }
  2638. ~WithStreamedUnaryMethod_Graduate() override
  2639. {
  2640. BaseClassMustBeDerivedFromService(this);
  2641. }
  2642. // disable regular version of this method
  2643. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2644. {
  2645. abort();
  2646. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2647. }
  2648. // replace default version of method with streamed unary
  2649. virtual ::grpc::Status StreamedGraduate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2650. };
  2651. typedef WithStreamedUnaryMethod_TryConnection<WithStreamedUnaryMethod_Move<WithStreamedUnaryMethod_PickProp<WithStreamedUnaryMethod_UseProp<WithStreamedUnaryMethod_UseSkill<WithStreamedUnaryMethod_SendMessage<WithStreamedUnaryMethod_StartLearning<WithStreamedUnaryMethod_StartHelpMate<WithStreamedUnaryMethod_StartHealMate<WithStreamedUnaryMethod_Trick<WithStreamedUnaryMethod_Graduate<Service>>>>>>>>>>> StreamedUnaryService;
  2652. template<class BaseClass>
  2653. class WithSplitStreamingMethod_AddPlayer : public BaseClass
  2654. {
  2655. private:
  2656. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2657. {
  2658. }
  2659. public:
  2660. WithSplitStreamingMethod_AddPlayer()
  2661. {
  2662. ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler<::protobuf::PlayerMsg, ::protobuf::MessageToClient>([this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::PlayerMsg, ::protobuf::MessageToClient>* streamer)
  2663. { return this->StreamedAddPlayer(context, streamer); }));
  2664. }
  2665. ~WithSplitStreamingMethod_AddPlayer() override
  2666. {
  2667. BaseClassMustBeDerivedFromService(this);
  2668. }
  2669. // disable regular version of this method
  2670. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  2671. {
  2672. abort();
  2673. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2674. }
  2675. // replace default version of method with split streamed
  2676. virtual ::grpc::Status StreamedAddPlayer(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::PlayerMsg, ::protobuf::MessageToClient>* server_split_streamer) = 0;
  2677. };
  2678. template<class BaseClass>
  2679. class WithSplitStreamingMethod_GetMessage : public BaseClass
  2680. {
  2681. private:
  2682. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2683. {
  2684. }
  2685. public:
  2686. WithSplitStreamingMethod_GetMessage()
  2687. {
  2688. ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::SplitServerStreamingHandler<::protobuf::IDMsg, ::protobuf::MsgRes>([this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::IDMsg, ::protobuf::MsgRes>* streamer)
  2689. { return this->StreamedGetMessage(context, streamer); }));
  2690. }
  2691. ~WithSplitStreamingMethod_GetMessage() override
  2692. {
  2693. BaseClassMustBeDerivedFromService(this);
  2694. }
  2695. // disable regular version of this method
  2696. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MsgRes>* /*writer*/) override
  2697. {
  2698. abort();
  2699. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2700. }
  2701. // replace default version of method with split streamed
  2702. virtual ::grpc::Status StreamedGetMessage(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::IDMsg, ::protobuf::MsgRes>* server_split_streamer) = 0;
  2703. };
  2704. typedef WithSplitStreamingMethod_AddPlayer<WithSplitStreamingMethod_GetMessage<Service>> SplitStreamedService;
  2705. typedef WithStreamedUnaryMethod_TryConnection<WithSplitStreamingMethod_AddPlayer<WithStreamedUnaryMethod_Move<WithStreamedUnaryMethod_PickProp<WithStreamedUnaryMethod_UseProp<WithStreamedUnaryMethod_UseSkill<WithStreamedUnaryMethod_SendMessage<WithSplitStreamingMethod_GetMessage<WithStreamedUnaryMethod_StartLearning<WithStreamedUnaryMethod_StartHelpMate<WithStreamedUnaryMethod_StartHealMate<WithStreamedUnaryMethod_Trick<WithStreamedUnaryMethod_Graduate<Service>>>>>>>>>>>>> StreamedService;
  2706. };
  2707. } // namespace protobuf
  2708. #endif // GRPC_Services_2eproto__INCLUDED