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.

Message2Clients.grpc.pb.h 157 kB

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