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 194 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348
  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. virtual ::grpc::Status TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  43. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  44. {
  45. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncTryConnectionRaw(context, request, cq));
  46. }
  47. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  48. {
  49. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncTryConnectionRaw(context, request, cq));
  50. }
  51. // 游戏开局调用一次的服务
  52. std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request)
  53. {
  54. return std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MessageToClient>>(AddPlayerRaw(context, request));
  55. }
  56. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  57. {
  58. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag));
  59. }
  60. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq)
  61. {
  62. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq));
  63. }
  64. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  65. // 游戏过程中玩家执行操作的服务
  66. virtual ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) = 0;
  67. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  68. {
  69. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq));
  70. }
  71. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  72. {
  73. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq));
  74. }
  75. virtual ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) = 0;
  76. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  77. {
  78. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq));
  79. }
  80. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  81. {
  82. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq));
  83. }
  84. virtual ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  85. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  86. {
  87. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq));
  88. }
  89. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  90. {
  91. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq));
  92. }
  93. virtual ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  94. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  95. {
  96. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq));
  97. }
  98. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  99. {
  100. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq));
  101. }
  102. virtual ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) = 0;
  103. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  104. {
  105. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq));
  106. }
  107. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  108. {
  109. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq));
  110. }
  111. virtual ::grpc::Status HaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  112. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncHaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  113. {
  114. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncHaveMessageRaw(context, request, cq));
  115. }
  116. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncHaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  117. {
  118. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncHaveMessageRaw(context, request, cq));
  119. }
  120. virtual ::grpc::Status GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::MsgRes* response) = 0;
  121. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MsgRes>> AsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  122. {
  123. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MsgRes>>(AsyncGetMessageRaw(context, request, cq));
  124. }
  125. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MsgRes>> PrepareAsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  126. {
  127. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MsgRes>>(PrepareAsyncGetMessageRaw(context, request, cq));
  128. }
  129. std::unique_ptr<::grpc::ClientReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>> FixMachine(::grpc::ClientContext* context)
  130. {
  131. return std::unique_ptr<::grpc::ClientReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>>(FixMachineRaw(context));
  132. }
  133. std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag)
  134. {
  135. return std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncFixMachineRaw(context, cq, tag));
  136. }
  137. std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq)
  138. {
  139. return std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncFixMachineRaw(context, cq));
  140. }
  141. // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同
  142. std::unique_ptr<::grpc::ClientReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>> SaveHuman(::grpc::ClientContext* context)
  143. {
  144. return std::unique_ptr<::grpc::ClientReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>>(SaveHumanRaw(context));
  145. }
  146. std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag)
  147. {
  148. return std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncSaveHumanRaw(context, cq, tag));
  149. }
  150. std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq)
  151. {
  152. return std::unique_ptr<::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncSaveHumanRaw(context, cq));
  153. }
  154. virtual ::grpc::Status Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) = 0;
  155. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  156. {
  157. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncAttackRaw(context, request, cq));
  158. }
  159. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  160. {
  161. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncAttackRaw(context, request, cq));
  162. }
  163. virtual ::grpc::Status CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  164. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  165. {
  166. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncCarryHumanRaw(context, request, cq));
  167. }
  168. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  169. {
  170. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncCarryHumanRaw(context, request, cq));
  171. }
  172. virtual ::grpc::Status ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  173. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  174. {
  175. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncReleaseHumanRaw(context, request, cq));
  176. }
  177. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  178. {
  179. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncReleaseHumanRaw(context, request, cq));
  180. }
  181. virtual ::grpc::Status HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  182. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  183. {
  184. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncHangHumanRaw(context, request, cq));
  185. }
  186. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  187. {
  188. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncHangHumanRaw(context, request, cq));
  189. }
  190. virtual ::grpc::Status Escape(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  191. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncEscape(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  192. {
  193. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncEscapeRaw(context, request, cq));
  194. }
  195. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncEscape(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  196. {
  197. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncEscapeRaw(context, request, cq));
  198. }
  199. class async_interface
  200. {
  201. public:
  202. virtual ~async_interface()
  203. {
  204. }
  205. virtual void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  206. virtual void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  207. // 游戏开局调用一次的服务
  208. virtual void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor<::protobuf::MessageToClient>* reactor) = 0;
  209. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  210. // 游戏过程中玩家执行操作的服务
  211. virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function<void(::grpc::Status)>) = 0;
  212. virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  213. virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  214. virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  215. virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  216. virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  217. virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  218. virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  219. virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  220. virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  221. virtual void HaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  222. virtual void HaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  223. virtual void GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::MsgRes* response, std::function<void(::grpc::Status)>) = 0;
  224. virtual void GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::MsgRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  225. virtual void FixMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* reactor) = 0;
  226. // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同
  227. virtual void SaveHuman(::grpc::ClientContext* context, ::grpc::ClientBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* reactor) = 0;
  228. virtual void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  229. virtual void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  230. virtual void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  231. virtual void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  232. virtual void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  233. virtual void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  234. virtual void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  235. virtual void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  236. virtual void Escape(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  237. virtual void Escape(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  238. };
  239. typedef class async_interface experimental_async_interface;
  240. virtual class async_interface* async()
  241. {
  242. return nullptr;
  243. }
  244. class async_interface* experimental_async()
  245. {
  246. return async();
  247. }
  248. private:
  249. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  250. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  251. virtual ::grpc::ClientReaderInterface<::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) = 0;
  252. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
  253. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) = 0;
  254. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0;
  255. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0;
  256. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) = 0;
  257. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) = 0;
  258. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  259. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  260. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  261. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  262. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0;
  263. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0;
  264. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncHaveMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  265. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncHaveMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  266. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MsgRes>* AsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  267. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MsgRes>* PrepareAsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  268. virtual ::grpc::ClientReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>* FixMachineRaw(::grpc::ClientContext* context) = 0;
  269. virtual ::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0;
  270. virtual ::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0;
  271. virtual ::grpc::ClientReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>* SaveHumanRaw(::grpc::ClientContext* context) = 0;
  272. virtual ::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0;
  273. virtual ::grpc::ClientAsyncReaderWriterInterface<::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0;
  274. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) = 0;
  275. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) = 0;
  276. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  277. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  278. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  279. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  280. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  281. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  282. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncEscapeRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  283. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncEscapeRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  284. };
  285. class Stub final : public StubInterface
  286. {
  287. public:
  288. Stub(const std::shared_ptr<::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  289. ::grpc::Status TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  290. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  291. {
  292. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncTryConnectionRaw(context, request, cq));
  293. }
  294. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  295. {
  296. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncTryConnectionRaw(context, request, cq));
  297. }
  298. std::unique_ptr<::grpc::ClientReader<::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request)
  299. {
  300. return std::unique_ptr<::grpc::ClientReader<::protobuf::MessageToClient>>(AddPlayerRaw(context, request));
  301. }
  302. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  303. {
  304. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag));
  305. }
  306. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq)
  307. {
  308. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq));
  309. }
  310. ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) override;
  311. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  312. {
  313. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq));
  314. }
  315. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  316. {
  317. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq));
  318. }
  319. ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) override;
  320. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  321. {
  322. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq));
  323. }
  324. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq)
  325. {
  326. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq));
  327. }
  328. ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  329. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  330. {
  331. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq));
  332. }
  333. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  334. {
  335. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq));
  336. }
  337. ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  338. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  339. {
  340. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq));
  341. }
  342. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  343. {
  344. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq));
  345. }
  346. ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) override;
  347. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  348. {
  349. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq));
  350. }
  351. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  352. {
  353. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq));
  354. }
  355. ::grpc::Status HaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  356. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncHaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  357. {
  358. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncHaveMessageRaw(context, request, cq));
  359. }
  360. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncHaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  361. {
  362. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncHaveMessageRaw(context, request, cq));
  363. }
  364. ::grpc::Status GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::MsgRes* response) override;
  365. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MsgRes>> AsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  366. {
  367. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MsgRes>>(AsyncGetMessageRaw(context, request, cq));
  368. }
  369. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MsgRes>> PrepareAsyncGetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  370. {
  371. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MsgRes>>(PrepareAsyncGetMessageRaw(context, request, cq));
  372. }
  373. std::unique_ptr<::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>> FixMachine(::grpc::ClientContext* context)
  374. {
  375. return std::unique_ptr<::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>>(FixMachineRaw(context));
  376. }
  377. std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag)
  378. {
  379. return std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncFixMachineRaw(context, cq, tag));
  380. }
  381. std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq)
  382. {
  383. return std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncFixMachineRaw(context, cq));
  384. }
  385. std::unique_ptr<::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>> SaveHuman(::grpc::ClientContext* context)
  386. {
  387. return std::unique_ptr<::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>>(SaveHumanRaw(context));
  388. }
  389. std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag)
  390. {
  391. return std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncSaveHumanRaw(context, cq, tag));
  392. }
  393. std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq)
  394. {
  395. return std::unique_ptr<::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncSaveHumanRaw(context, cq));
  396. }
  397. ::grpc::Status Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) override;
  398. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  399. {
  400. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncAttackRaw(context, request, cq));
  401. }
  402. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  403. {
  404. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncAttackRaw(context, request, cq));
  405. }
  406. ::grpc::Status CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  407. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  408. {
  409. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncCarryHumanRaw(context, request, cq));
  410. }
  411. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  412. {
  413. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncCarryHumanRaw(context, request, cq));
  414. }
  415. ::grpc::Status ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  416. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  417. {
  418. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncReleaseHumanRaw(context, request, cq));
  419. }
  420. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  421. {
  422. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncReleaseHumanRaw(context, request, cq));
  423. }
  424. ::grpc::Status HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  425. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  426. {
  427. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncHangHumanRaw(context, request, cq));
  428. }
  429. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  430. {
  431. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncHangHumanRaw(context, request, cq));
  432. }
  433. ::grpc::Status Escape(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  434. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncEscape(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  435. {
  436. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncEscapeRaw(context, request, cq));
  437. }
  438. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncEscape(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  439. {
  440. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncEscapeRaw(context, request, cq));
  441. }
  442. class async final :
  443. public StubInterface::async_interface
  444. {
  445. public:
  446. void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  447. void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  448. void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor<::protobuf::MessageToClient>* reactor) override;
  449. void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function<void(::grpc::Status)>) override;
  450. void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  451. void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  452. void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  453. void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  454. void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  455. void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  456. void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  457. void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  458. void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  459. void HaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  460. void HaveMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  461. void GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::MsgRes* response, std::function<void(::grpc::Status)>) override;
  462. void GetMessage(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::MsgRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  463. void FixMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* reactor) override;
  464. void SaveHuman(::grpc::ClientContext* context, ::grpc::ClientBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* reactor) override;
  465. void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  466. void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  467. void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  468. void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  469. void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  470. void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  471. void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  472. void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  473. void Escape(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  474. void Escape(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  475. private:
  476. friend class Stub;
  477. explicit async(Stub* stub) :
  478. stub_(stub)
  479. {
  480. }
  481. Stub* stub()
  482. {
  483. return stub_;
  484. }
  485. Stub* stub_;
  486. };
  487. class async* async() override
  488. {
  489. return &async_stub_;
  490. }
  491. private:
  492. std::shared_ptr<::grpc::ChannelInterface> channel_;
  493. class async async_stub_
  494. {
  495. this
  496. };
  497. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  498. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  499. ::grpc::ClientReader<::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) override;
  500. ::grpc::ClientAsyncReader<::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) override;
  501. ::grpc::ClientAsyncReader<::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) override;
  502. ::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override;
  503. ::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override;
  504. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) override;
  505. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) override;
  506. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  507. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  508. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  509. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  510. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override;
  511. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override;
  512. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncHaveMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  513. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncHaveMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  514. ::grpc::ClientAsyncResponseReader<::protobuf::MsgRes>* AsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  515. ::grpc::ClientAsyncResponseReader<::protobuf::MsgRes>* PrepareAsyncGetMessageRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  516. ::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* FixMachineRaw(::grpc::ClientContext* context) override;
  517. ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override;
  518. ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override;
  519. ::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* SaveHumanRaw(::grpc::ClientContext* context) override;
  520. ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override;
  521. ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override;
  522. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) override;
  523. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) override;
  524. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  525. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  526. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  527. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  528. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  529. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  530. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncEscapeRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  531. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncEscapeRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  532. const ::grpc::internal::RpcMethod rpcmethod_TryConnection_;
  533. const ::grpc::internal::RpcMethod rpcmethod_AddPlayer_;
  534. const ::grpc::internal::RpcMethod rpcmethod_Move_;
  535. const ::grpc::internal::RpcMethod rpcmethod_PickProp_;
  536. const ::grpc::internal::RpcMethod rpcmethod_UseProp_;
  537. const ::grpc::internal::RpcMethod rpcmethod_UseSkill_;
  538. const ::grpc::internal::RpcMethod rpcmethod_SendMessage_;
  539. const ::grpc::internal::RpcMethod rpcmethod_HaveMessage_;
  540. const ::grpc::internal::RpcMethod rpcmethod_GetMessage_;
  541. const ::grpc::internal::RpcMethod rpcmethod_FixMachine_;
  542. const ::grpc::internal::RpcMethod rpcmethod_SaveHuman_;
  543. const ::grpc::internal::RpcMethod rpcmethod_Attack_;
  544. const ::grpc::internal::RpcMethod rpcmethod_CarryHuman_;
  545. const ::grpc::internal::RpcMethod rpcmethod_ReleaseHuman_;
  546. const ::grpc::internal::RpcMethod rpcmethod_HangHuman_;
  547. const ::grpc::internal::RpcMethod rpcmethod_Escape_;
  548. };
  549. static std::unique_ptr<Stub> NewStub(const std::shared_ptr<::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  550. class Service : public ::grpc::Service
  551. {
  552. public:
  553. Service();
  554. virtual ~Service();
  555. virtual ::grpc::Status TryConnection(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  556. // 游戏开局调用一次的服务
  557. virtual ::grpc::Status AddPlayer(::grpc::ServerContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ServerWriter<::protobuf::MessageToClient>* writer);
  558. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  559. // 游戏过程中玩家执行操作的服务
  560. virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response);
  561. virtual ::grpc::Status PickProp(::grpc::ServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response);
  562. virtual ::grpc::Status UseProp(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  563. virtual ::grpc::Status UseSkill(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  564. virtual ::grpc::Status SendMessage(::grpc::ServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response);
  565. virtual ::grpc::Status HaveMessage(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  566. virtual ::grpc::Status GetMessage(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::MsgRes* response);
  567. virtual ::grpc::Status FixMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream);
  568. // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同
  569. virtual ::grpc::Status SaveHuman(::grpc::ServerContext* context, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream);
  570. virtual ::grpc::Status Attack(::grpc::ServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response);
  571. virtual ::grpc::Status CarryHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  572. virtual ::grpc::Status ReleaseHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  573. virtual ::grpc::Status HangHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  574. virtual ::grpc::Status Escape(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  575. };
  576. template<class BaseClass>
  577. class WithAsyncMethod_TryConnection : public BaseClass
  578. {
  579. private:
  580. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  581. {
  582. }
  583. public:
  584. WithAsyncMethod_TryConnection()
  585. {
  586. ::grpc::Service::MarkMethodAsync(0);
  587. }
  588. ~WithAsyncMethod_TryConnection() override
  589. {
  590. BaseClassMustBeDerivedFromService(this);
  591. }
  592. // disable synchronous version of this method
  593. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  594. {
  595. abort();
  596. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  597. }
  598. void RequestTryConnection(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  599. {
  600. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  601. }
  602. };
  603. template<class BaseClass>
  604. class WithAsyncMethod_AddPlayer : public BaseClass
  605. {
  606. private:
  607. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  608. {
  609. }
  610. public:
  611. WithAsyncMethod_AddPlayer()
  612. {
  613. ::grpc::Service::MarkMethodAsync(1);
  614. }
  615. ~WithAsyncMethod_AddPlayer() override
  616. {
  617. BaseClassMustBeDerivedFromService(this);
  618. }
  619. // disable synchronous version of this method
  620. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  621. {
  622. abort();
  623. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  624. }
  625. void RequestAddPlayer(::grpc::ServerContext* context, ::protobuf::PlayerMsg* request, ::grpc::ServerAsyncWriter<::protobuf::MessageToClient>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  626. {
  627. ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
  628. }
  629. };
  630. template<class BaseClass>
  631. class WithAsyncMethod_Move : public BaseClass
  632. {
  633. private:
  634. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  635. {
  636. }
  637. public:
  638. WithAsyncMethod_Move()
  639. {
  640. ::grpc::Service::MarkMethodAsync(2);
  641. }
  642. ~WithAsyncMethod_Move() override
  643. {
  644. BaseClassMustBeDerivedFromService(this);
  645. }
  646. // disable synchronous version of this method
  647. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  648. {
  649. abort();
  650. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  651. }
  652. void RequestMove(::grpc::ServerContext* context, ::protobuf::MoveMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::MoveRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  653. {
  654. ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
  655. }
  656. };
  657. template<class BaseClass>
  658. class WithAsyncMethod_PickProp : public BaseClass
  659. {
  660. private:
  661. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  662. {
  663. }
  664. public:
  665. WithAsyncMethod_PickProp()
  666. {
  667. ::grpc::Service::MarkMethodAsync(3);
  668. }
  669. ~WithAsyncMethod_PickProp() override
  670. {
  671. BaseClassMustBeDerivedFromService(this);
  672. }
  673. // disable synchronous version of this method
  674. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  675. {
  676. abort();
  677. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  678. }
  679. void RequestPickProp(::grpc::ServerContext* context, ::protobuf::PickMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  680. {
  681. ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
  682. }
  683. };
  684. template<class BaseClass>
  685. class WithAsyncMethod_UseProp : public BaseClass
  686. {
  687. private:
  688. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  689. {
  690. }
  691. public:
  692. WithAsyncMethod_UseProp()
  693. {
  694. ::grpc::Service::MarkMethodAsync(4);
  695. }
  696. ~WithAsyncMethod_UseProp() override
  697. {
  698. BaseClassMustBeDerivedFromService(this);
  699. }
  700. // disable synchronous version of this method
  701. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  702. {
  703. abort();
  704. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  705. }
  706. void RequestUseProp(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  707. {
  708. ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
  709. }
  710. };
  711. template<class BaseClass>
  712. class WithAsyncMethod_UseSkill : public BaseClass
  713. {
  714. private:
  715. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  716. {
  717. }
  718. public:
  719. WithAsyncMethod_UseSkill()
  720. {
  721. ::grpc::Service::MarkMethodAsync(5);
  722. }
  723. ~WithAsyncMethod_UseSkill() override
  724. {
  725. BaseClassMustBeDerivedFromService(this);
  726. }
  727. // disable synchronous version of this method
  728. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  729. {
  730. abort();
  731. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  732. }
  733. void RequestUseSkill(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  734. {
  735. ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
  736. }
  737. };
  738. template<class BaseClass>
  739. class WithAsyncMethod_SendMessage : public BaseClass
  740. {
  741. private:
  742. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  743. {
  744. }
  745. public:
  746. WithAsyncMethod_SendMessage()
  747. {
  748. ::grpc::Service::MarkMethodAsync(6);
  749. }
  750. ~WithAsyncMethod_SendMessage() override
  751. {
  752. BaseClassMustBeDerivedFromService(this);
  753. }
  754. // disable synchronous version of this method
  755. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  756. {
  757. abort();
  758. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  759. }
  760. void RequestSendMessage(::grpc::ServerContext* context, ::protobuf::SendMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  761. {
  762. ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
  763. }
  764. };
  765. template<class BaseClass>
  766. class WithAsyncMethod_HaveMessage : public BaseClass
  767. {
  768. private:
  769. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  770. {
  771. }
  772. public:
  773. WithAsyncMethod_HaveMessage()
  774. {
  775. ::grpc::Service::MarkMethodAsync(7);
  776. }
  777. ~WithAsyncMethod_HaveMessage() override
  778. {
  779. BaseClassMustBeDerivedFromService(this);
  780. }
  781. // disable synchronous version of this method
  782. ::grpc::Status HaveMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  783. {
  784. abort();
  785. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  786. }
  787. void RequestHaveMessage(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  788. {
  789. ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag);
  790. }
  791. };
  792. template<class BaseClass>
  793. class WithAsyncMethod_GetMessage : public BaseClass
  794. {
  795. private:
  796. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  797. {
  798. }
  799. public:
  800. WithAsyncMethod_GetMessage()
  801. {
  802. ::grpc::Service::MarkMethodAsync(8);
  803. }
  804. ~WithAsyncMethod_GetMessage() override
  805. {
  806. BaseClassMustBeDerivedFromService(this);
  807. }
  808. // disable synchronous version of this method
  809. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/) override
  810. {
  811. abort();
  812. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  813. }
  814. void RequestGetMessage(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::MsgRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  815. {
  816. ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
  817. }
  818. };
  819. template<class BaseClass>
  820. class WithAsyncMethod_FixMachine : public BaseClass
  821. {
  822. private:
  823. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  824. {
  825. }
  826. public:
  827. WithAsyncMethod_FixMachine()
  828. {
  829. ::grpc::Service::MarkMethodAsync(9);
  830. }
  831. ~WithAsyncMethod_FixMachine() override
  832. {
  833. BaseClassMustBeDerivedFromService(this);
  834. }
  835. // disable synchronous version of this method
  836. ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  837. {
  838. abort();
  839. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  840. }
  841. void RequestFixMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  842. {
  843. ::grpc::Service::RequestAsyncBidiStreaming(9, context, stream, new_call_cq, notification_cq, tag);
  844. }
  845. };
  846. template<class BaseClass>
  847. class WithAsyncMethod_SaveHuman : public BaseClass
  848. {
  849. private:
  850. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  851. {
  852. }
  853. public:
  854. WithAsyncMethod_SaveHuman()
  855. {
  856. ::grpc::Service::MarkMethodAsync(10);
  857. }
  858. ~WithAsyncMethod_SaveHuman() override
  859. {
  860. BaseClassMustBeDerivedFromService(this);
  861. }
  862. // disable synchronous version of this method
  863. ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  864. {
  865. abort();
  866. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  867. }
  868. void RequestSaveHuman(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  869. {
  870. ::grpc::Service::RequestAsyncBidiStreaming(10, context, stream, new_call_cq, notification_cq, tag);
  871. }
  872. };
  873. template<class BaseClass>
  874. class WithAsyncMethod_Attack : public BaseClass
  875. {
  876. private:
  877. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  878. {
  879. }
  880. public:
  881. WithAsyncMethod_Attack()
  882. {
  883. ::grpc::Service::MarkMethodAsync(11);
  884. }
  885. ~WithAsyncMethod_Attack() override
  886. {
  887. BaseClassMustBeDerivedFromService(this);
  888. }
  889. // disable synchronous version of this method
  890. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  891. {
  892. abort();
  893. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  894. }
  895. void RequestAttack(::grpc::ServerContext* context, ::protobuf::AttackMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  896. {
  897. ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
  898. }
  899. };
  900. template<class BaseClass>
  901. class WithAsyncMethod_CarryHuman : public BaseClass
  902. {
  903. private:
  904. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  905. {
  906. }
  907. public:
  908. WithAsyncMethod_CarryHuman()
  909. {
  910. ::grpc::Service::MarkMethodAsync(12);
  911. }
  912. ~WithAsyncMethod_CarryHuman() override
  913. {
  914. BaseClassMustBeDerivedFromService(this);
  915. }
  916. // disable synchronous version of this method
  917. ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  918. {
  919. abort();
  920. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  921. }
  922. void RequestCarryHuman(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  923. {
  924. ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
  925. }
  926. };
  927. template<class BaseClass>
  928. class WithAsyncMethod_ReleaseHuman : public BaseClass
  929. {
  930. private:
  931. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  932. {
  933. }
  934. public:
  935. WithAsyncMethod_ReleaseHuman()
  936. {
  937. ::grpc::Service::MarkMethodAsync(13);
  938. }
  939. ~WithAsyncMethod_ReleaseHuman() override
  940. {
  941. BaseClassMustBeDerivedFromService(this);
  942. }
  943. // disable synchronous version of this method
  944. ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  945. {
  946. abort();
  947. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  948. }
  949. void RequestReleaseHuman(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  950. {
  951. ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag);
  952. }
  953. };
  954. template<class BaseClass>
  955. class WithAsyncMethod_HangHuman : public BaseClass
  956. {
  957. private:
  958. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  959. {
  960. }
  961. public:
  962. WithAsyncMethod_HangHuman()
  963. {
  964. ::grpc::Service::MarkMethodAsync(14);
  965. }
  966. ~WithAsyncMethod_HangHuman() override
  967. {
  968. BaseClassMustBeDerivedFromService(this);
  969. }
  970. // disable synchronous version of this method
  971. ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  972. {
  973. abort();
  974. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  975. }
  976. void RequestHangHuman(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  977. {
  978. ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag);
  979. }
  980. };
  981. template<class BaseClass>
  982. class WithAsyncMethod_Escape : public BaseClass
  983. {
  984. private:
  985. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  986. {
  987. }
  988. public:
  989. WithAsyncMethod_Escape()
  990. {
  991. ::grpc::Service::MarkMethodAsync(15);
  992. }
  993. ~WithAsyncMethod_Escape() override
  994. {
  995. BaseClassMustBeDerivedFromService(this);
  996. }
  997. // disable synchronous version of this method
  998. ::grpc::Status Escape(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  999. {
  1000. abort();
  1001. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1002. }
  1003. void RequestEscape(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1004. {
  1005. ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag);
  1006. }
  1007. };
  1008. typedef WithAsyncMethod_TryConnection<WithAsyncMethod_AddPlayer<WithAsyncMethod_Move<WithAsyncMethod_PickProp<WithAsyncMethod_UseProp<WithAsyncMethod_UseSkill<WithAsyncMethod_SendMessage<WithAsyncMethod_HaveMessage<WithAsyncMethod_GetMessage<WithAsyncMethod_FixMachine<WithAsyncMethod_SaveHuman<WithAsyncMethod_Attack<WithAsyncMethod_CarryHuman<WithAsyncMethod_ReleaseHuman<WithAsyncMethod_HangHuman<WithAsyncMethod_Escape<Service>>>>>>>>>>>>>>>> AsyncService;
  1009. template<class BaseClass>
  1010. class WithCallbackMethod_TryConnection : public BaseClass
  1011. {
  1012. private:
  1013. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1014. {
  1015. }
  1016. public:
  1017. WithCallbackMethod_TryConnection()
  1018. {
  1019. ::grpc::Service::MarkMethodCallback(0, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1020. { return this->TryConnection(context, request, response); }));
  1021. }
  1022. void SetMessageAllocatorFor_TryConnection(
  1023. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1024. )
  1025. {
  1026. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
  1027. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1028. ->SetMessageAllocator(allocator);
  1029. }
  1030. ~WithCallbackMethod_TryConnection() override
  1031. {
  1032. BaseClassMustBeDerivedFromService(this);
  1033. }
  1034. // disable synchronous version of this method
  1035. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1036. {
  1037. abort();
  1038. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1039. }
  1040. virtual ::grpc::ServerUnaryReactor* TryConnection(
  1041. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1042. )
  1043. {
  1044. return nullptr;
  1045. }
  1046. };
  1047. template<class BaseClass>
  1048. class WithCallbackMethod_AddPlayer : public BaseClass
  1049. {
  1050. private:
  1051. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1052. {
  1053. }
  1054. public:
  1055. WithCallbackMethod_AddPlayer()
  1056. {
  1057. ::grpc::Service::MarkMethodCallback(1, new ::grpc::internal::CallbackServerStreamingHandler<::protobuf::PlayerMsg, ::protobuf::MessageToClient>([this](::grpc::CallbackServerContext* context, const ::protobuf::PlayerMsg* request)
  1058. { return this->AddPlayer(context, request); }));
  1059. }
  1060. ~WithCallbackMethod_AddPlayer() override
  1061. {
  1062. BaseClassMustBeDerivedFromService(this);
  1063. }
  1064. // disable synchronous version of this method
  1065. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  1066. {
  1067. abort();
  1068. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1069. }
  1070. virtual ::grpc::ServerWriteReactor<::protobuf::MessageToClient>* AddPlayer(
  1071. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/
  1072. )
  1073. {
  1074. return nullptr;
  1075. }
  1076. };
  1077. template<class BaseClass>
  1078. class WithCallbackMethod_Move : public BaseClass
  1079. {
  1080. private:
  1081. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1082. {
  1083. }
  1084. public:
  1085. WithCallbackMethod_Move()
  1086. {
  1087. ::grpc::Service::MarkMethodCallback(2, new ::grpc::internal::CallbackUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response)
  1088. { return this->Move(context, request, response); }));
  1089. }
  1090. void SetMessageAllocatorFor_Move(
  1091. ::grpc::MessageAllocator<::protobuf::MoveMsg, ::protobuf::MoveRes>* allocator
  1092. )
  1093. {
  1094. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
  1095. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>*>(handler)
  1096. ->SetMessageAllocator(allocator);
  1097. }
  1098. ~WithCallbackMethod_Move() override
  1099. {
  1100. BaseClassMustBeDerivedFromService(this);
  1101. }
  1102. // disable synchronous version of this method
  1103. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  1104. {
  1105. abort();
  1106. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1107. }
  1108. virtual ::grpc::ServerUnaryReactor* Move(
  1109. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/
  1110. )
  1111. {
  1112. return nullptr;
  1113. }
  1114. };
  1115. template<class BaseClass>
  1116. class WithCallbackMethod_PickProp : public BaseClass
  1117. {
  1118. private:
  1119. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1120. {
  1121. }
  1122. public:
  1123. WithCallbackMethod_PickProp()
  1124. {
  1125. ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler<::protobuf::PickMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response)
  1126. { return this->PickProp(context, request, response); }));
  1127. }
  1128. void SetMessageAllocatorFor_PickProp(
  1129. ::grpc::MessageAllocator<::protobuf::PickMsg, ::protobuf::BoolRes>* allocator
  1130. )
  1131. {
  1132. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3);
  1133. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::PickMsg, ::protobuf::BoolRes>*>(handler)
  1134. ->SetMessageAllocator(allocator);
  1135. }
  1136. ~WithCallbackMethod_PickProp() override
  1137. {
  1138. BaseClassMustBeDerivedFromService(this);
  1139. }
  1140. // disable synchronous version of this method
  1141. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1142. {
  1143. abort();
  1144. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1145. }
  1146. virtual ::grpc::ServerUnaryReactor* PickProp(
  1147. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1148. )
  1149. {
  1150. return nullptr;
  1151. }
  1152. };
  1153. template<class BaseClass>
  1154. class WithCallbackMethod_UseProp : public BaseClass
  1155. {
  1156. private:
  1157. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1158. {
  1159. }
  1160. public:
  1161. WithCallbackMethod_UseProp()
  1162. {
  1163. ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1164. { return this->UseProp(context, request, response); }));
  1165. }
  1166. void SetMessageAllocatorFor_UseProp(
  1167. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1168. )
  1169. {
  1170. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4);
  1171. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1172. ->SetMessageAllocator(allocator);
  1173. }
  1174. ~WithCallbackMethod_UseProp() override
  1175. {
  1176. BaseClassMustBeDerivedFromService(this);
  1177. }
  1178. // disable synchronous version of this method
  1179. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1180. {
  1181. abort();
  1182. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1183. }
  1184. virtual ::grpc::ServerUnaryReactor* UseProp(
  1185. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1186. )
  1187. {
  1188. return nullptr;
  1189. }
  1190. };
  1191. template<class BaseClass>
  1192. class WithCallbackMethod_UseSkill : public BaseClass
  1193. {
  1194. private:
  1195. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1196. {
  1197. }
  1198. public:
  1199. WithCallbackMethod_UseSkill()
  1200. {
  1201. ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1202. { return this->UseSkill(context, request, response); }));
  1203. }
  1204. void SetMessageAllocatorFor_UseSkill(
  1205. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1206. )
  1207. {
  1208. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5);
  1209. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1210. ->SetMessageAllocator(allocator);
  1211. }
  1212. ~WithCallbackMethod_UseSkill() override
  1213. {
  1214. BaseClassMustBeDerivedFromService(this);
  1215. }
  1216. // disable synchronous version of this method
  1217. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1218. {
  1219. abort();
  1220. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1221. }
  1222. virtual ::grpc::ServerUnaryReactor* UseSkill(
  1223. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1224. )
  1225. {
  1226. return nullptr;
  1227. }
  1228. };
  1229. template<class BaseClass>
  1230. class WithCallbackMethod_SendMessage : public BaseClass
  1231. {
  1232. private:
  1233. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1234. {
  1235. }
  1236. public:
  1237. WithCallbackMethod_SendMessage()
  1238. {
  1239. ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response)
  1240. { return this->SendMessage(context, request, response); }));
  1241. }
  1242. void SetMessageAllocatorFor_SendMessage(
  1243. ::grpc::MessageAllocator<::protobuf::SendMsg, ::protobuf::BoolRes>* allocator
  1244. )
  1245. {
  1246. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6);
  1247. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>*>(handler)
  1248. ->SetMessageAllocator(allocator);
  1249. }
  1250. ~WithCallbackMethod_SendMessage() override
  1251. {
  1252. BaseClassMustBeDerivedFromService(this);
  1253. }
  1254. // disable synchronous version of this method
  1255. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1256. {
  1257. abort();
  1258. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1259. }
  1260. virtual ::grpc::ServerUnaryReactor* SendMessage(
  1261. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1262. )
  1263. {
  1264. return nullptr;
  1265. }
  1266. };
  1267. template<class BaseClass>
  1268. class WithCallbackMethod_HaveMessage : public BaseClass
  1269. {
  1270. private:
  1271. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1272. {
  1273. }
  1274. public:
  1275. WithCallbackMethod_HaveMessage()
  1276. {
  1277. ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1278. { return this->HaveMessage(context, request, response); }));
  1279. }
  1280. void SetMessageAllocatorFor_HaveMessage(
  1281. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1282. )
  1283. {
  1284. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7);
  1285. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1286. ->SetMessageAllocator(allocator);
  1287. }
  1288. ~WithCallbackMethod_HaveMessage() override
  1289. {
  1290. BaseClassMustBeDerivedFromService(this);
  1291. }
  1292. // disable synchronous version of this method
  1293. ::grpc::Status HaveMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1294. {
  1295. abort();
  1296. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1297. }
  1298. virtual ::grpc::ServerUnaryReactor* HaveMessage(
  1299. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1300. )
  1301. {
  1302. return nullptr;
  1303. }
  1304. };
  1305. template<class BaseClass>
  1306. class WithCallbackMethod_GetMessage : public BaseClass
  1307. {
  1308. private:
  1309. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1310. {
  1311. }
  1312. public:
  1313. WithCallbackMethod_GetMessage()
  1314. {
  1315. ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::MsgRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::MsgRes* response)
  1316. { return this->GetMessage(context, request, response); }));
  1317. }
  1318. void SetMessageAllocatorFor_GetMessage(
  1319. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::MsgRes>* allocator
  1320. )
  1321. {
  1322. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8);
  1323. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::MsgRes>*>(handler)
  1324. ->SetMessageAllocator(allocator);
  1325. }
  1326. ~WithCallbackMethod_GetMessage() override
  1327. {
  1328. BaseClassMustBeDerivedFromService(this);
  1329. }
  1330. // disable synchronous version of this method
  1331. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/) override
  1332. {
  1333. abort();
  1334. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1335. }
  1336. virtual ::grpc::ServerUnaryReactor* GetMessage(
  1337. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/
  1338. )
  1339. {
  1340. return nullptr;
  1341. }
  1342. };
  1343. template<class BaseClass>
  1344. class WithCallbackMethod_FixMachine : public BaseClass
  1345. {
  1346. private:
  1347. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1348. {
  1349. }
  1350. public:
  1351. WithCallbackMethod_FixMachine()
  1352. {
  1353. ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackBidiHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context)
  1354. { return this->FixMachine(context); }));
  1355. }
  1356. ~WithCallbackMethod_FixMachine() override
  1357. {
  1358. BaseClassMustBeDerivedFromService(this);
  1359. }
  1360. // disable synchronous version of this method
  1361. ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  1362. {
  1363. abort();
  1364. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1365. }
  1366. virtual ::grpc::ServerBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* FixMachine(
  1367. ::grpc::CallbackServerContext* /*context*/
  1368. )
  1369. {
  1370. return nullptr;
  1371. }
  1372. };
  1373. template<class BaseClass>
  1374. class WithCallbackMethod_SaveHuman : public BaseClass
  1375. {
  1376. private:
  1377. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1378. {
  1379. }
  1380. public:
  1381. WithCallbackMethod_SaveHuman()
  1382. {
  1383. ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackBidiHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context)
  1384. { return this->SaveHuman(context); }));
  1385. }
  1386. ~WithCallbackMethod_SaveHuman() override
  1387. {
  1388. BaseClassMustBeDerivedFromService(this);
  1389. }
  1390. // disable synchronous version of this method
  1391. ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  1392. {
  1393. abort();
  1394. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1395. }
  1396. virtual ::grpc::ServerBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* SaveHuman(
  1397. ::grpc::CallbackServerContext* /*context*/
  1398. )
  1399. {
  1400. return nullptr;
  1401. }
  1402. };
  1403. template<class BaseClass>
  1404. class WithCallbackMethod_Attack : public BaseClass
  1405. {
  1406. private:
  1407. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1408. {
  1409. }
  1410. public:
  1411. WithCallbackMethod_Attack()
  1412. {
  1413. ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler<::protobuf::AttackMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response)
  1414. { return this->Attack(context, request, response); }));
  1415. }
  1416. void SetMessageAllocatorFor_Attack(
  1417. ::grpc::MessageAllocator<::protobuf::AttackMsg, ::protobuf::BoolRes>* allocator
  1418. )
  1419. {
  1420. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11);
  1421. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::AttackMsg, ::protobuf::BoolRes>*>(handler)
  1422. ->SetMessageAllocator(allocator);
  1423. }
  1424. ~WithCallbackMethod_Attack() override
  1425. {
  1426. BaseClassMustBeDerivedFromService(this);
  1427. }
  1428. // disable synchronous version of this method
  1429. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1430. {
  1431. abort();
  1432. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1433. }
  1434. virtual ::grpc::ServerUnaryReactor* Attack(
  1435. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1436. )
  1437. {
  1438. return nullptr;
  1439. }
  1440. };
  1441. template<class BaseClass>
  1442. class WithCallbackMethod_CarryHuman : public BaseClass
  1443. {
  1444. private:
  1445. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1446. {
  1447. }
  1448. public:
  1449. WithCallbackMethod_CarryHuman()
  1450. {
  1451. ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1452. { return this->CarryHuman(context, request, response); }));
  1453. }
  1454. void SetMessageAllocatorFor_CarryHuman(
  1455. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1456. )
  1457. {
  1458. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12);
  1459. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1460. ->SetMessageAllocator(allocator);
  1461. }
  1462. ~WithCallbackMethod_CarryHuman() override
  1463. {
  1464. BaseClassMustBeDerivedFromService(this);
  1465. }
  1466. // disable synchronous version of this method
  1467. ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1468. {
  1469. abort();
  1470. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1471. }
  1472. virtual ::grpc::ServerUnaryReactor* CarryHuman(
  1473. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1474. )
  1475. {
  1476. return nullptr;
  1477. }
  1478. };
  1479. template<class BaseClass>
  1480. class WithCallbackMethod_ReleaseHuman : public BaseClass
  1481. {
  1482. private:
  1483. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1484. {
  1485. }
  1486. public:
  1487. WithCallbackMethod_ReleaseHuman()
  1488. {
  1489. ::grpc::Service::MarkMethodCallback(13, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1490. { return this->ReleaseHuman(context, request, response); }));
  1491. }
  1492. void SetMessageAllocatorFor_ReleaseHuman(
  1493. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1494. )
  1495. {
  1496. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13);
  1497. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1498. ->SetMessageAllocator(allocator);
  1499. }
  1500. ~WithCallbackMethod_ReleaseHuman() override
  1501. {
  1502. BaseClassMustBeDerivedFromService(this);
  1503. }
  1504. // disable synchronous version of this method
  1505. ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1506. {
  1507. abort();
  1508. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1509. }
  1510. virtual ::grpc::ServerUnaryReactor* ReleaseHuman(
  1511. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1512. )
  1513. {
  1514. return nullptr;
  1515. }
  1516. };
  1517. template<class BaseClass>
  1518. class WithCallbackMethod_HangHuman : public BaseClass
  1519. {
  1520. private:
  1521. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1522. {
  1523. }
  1524. public:
  1525. WithCallbackMethod_HangHuman()
  1526. {
  1527. ::grpc::Service::MarkMethodCallback(14, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1528. { return this->HangHuman(context, request, response); }));
  1529. }
  1530. void SetMessageAllocatorFor_HangHuman(
  1531. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1532. )
  1533. {
  1534. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14);
  1535. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1536. ->SetMessageAllocator(allocator);
  1537. }
  1538. ~WithCallbackMethod_HangHuman() override
  1539. {
  1540. BaseClassMustBeDerivedFromService(this);
  1541. }
  1542. // disable synchronous version of this method
  1543. ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1544. {
  1545. abort();
  1546. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1547. }
  1548. virtual ::grpc::ServerUnaryReactor* HangHuman(
  1549. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1550. )
  1551. {
  1552. return nullptr;
  1553. }
  1554. };
  1555. template<class BaseClass>
  1556. class WithCallbackMethod_Escape : public BaseClass
  1557. {
  1558. private:
  1559. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1560. {
  1561. }
  1562. public:
  1563. WithCallbackMethod_Escape()
  1564. {
  1565. ::grpc::Service::MarkMethodCallback(15, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1566. { return this->Escape(context, request, response); }));
  1567. }
  1568. void SetMessageAllocatorFor_Escape(
  1569. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1570. )
  1571. {
  1572. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15);
  1573. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1574. ->SetMessageAllocator(allocator);
  1575. }
  1576. ~WithCallbackMethod_Escape() override
  1577. {
  1578. BaseClassMustBeDerivedFromService(this);
  1579. }
  1580. // disable synchronous version of this method
  1581. ::grpc::Status Escape(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1582. {
  1583. abort();
  1584. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1585. }
  1586. virtual ::grpc::ServerUnaryReactor* Escape(
  1587. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1588. )
  1589. {
  1590. return nullptr;
  1591. }
  1592. };
  1593. typedef WithCallbackMethod_TryConnection<WithCallbackMethod_AddPlayer<WithCallbackMethod_Move<WithCallbackMethod_PickProp<WithCallbackMethod_UseProp<WithCallbackMethod_UseSkill<WithCallbackMethod_SendMessage<WithCallbackMethod_HaveMessage<WithCallbackMethod_GetMessage<WithCallbackMethod_FixMachine<WithCallbackMethod_SaveHuman<WithCallbackMethod_Attack<WithCallbackMethod_CarryHuman<WithCallbackMethod_ReleaseHuman<WithCallbackMethod_HangHuman<WithCallbackMethod_Escape<Service>>>>>>>>>>>>>>>> CallbackService;
  1594. typedef CallbackService ExperimentalCallbackService;
  1595. template<class BaseClass>
  1596. class WithGenericMethod_TryConnection : public BaseClass
  1597. {
  1598. private:
  1599. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1600. {
  1601. }
  1602. public:
  1603. WithGenericMethod_TryConnection()
  1604. {
  1605. ::grpc::Service::MarkMethodGeneric(0);
  1606. }
  1607. ~WithGenericMethod_TryConnection() override
  1608. {
  1609. BaseClassMustBeDerivedFromService(this);
  1610. }
  1611. // disable synchronous version of this method
  1612. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1613. {
  1614. abort();
  1615. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1616. }
  1617. };
  1618. template<class BaseClass>
  1619. class WithGenericMethod_AddPlayer : public BaseClass
  1620. {
  1621. private:
  1622. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1623. {
  1624. }
  1625. public:
  1626. WithGenericMethod_AddPlayer()
  1627. {
  1628. ::grpc::Service::MarkMethodGeneric(1);
  1629. }
  1630. ~WithGenericMethod_AddPlayer() override
  1631. {
  1632. BaseClassMustBeDerivedFromService(this);
  1633. }
  1634. // disable synchronous version of this method
  1635. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  1636. {
  1637. abort();
  1638. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1639. }
  1640. };
  1641. template<class BaseClass>
  1642. class WithGenericMethod_Move : public BaseClass
  1643. {
  1644. private:
  1645. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1646. {
  1647. }
  1648. public:
  1649. WithGenericMethod_Move()
  1650. {
  1651. ::grpc::Service::MarkMethodGeneric(2);
  1652. }
  1653. ~WithGenericMethod_Move() override
  1654. {
  1655. BaseClassMustBeDerivedFromService(this);
  1656. }
  1657. // disable synchronous version of this method
  1658. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  1659. {
  1660. abort();
  1661. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1662. }
  1663. };
  1664. template<class BaseClass>
  1665. class WithGenericMethod_PickProp : public BaseClass
  1666. {
  1667. private:
  1668. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1669. {
  1670. }
  1671. public:
  1672. WithGenericMethod_PickProp()
  1673. {
  1674. ::grpc::Service::MarkMethodGeneric(3);
  1675. }
  1676. ~WithGenericMethod_PickProp() override
  1677. {
  1678. BaseClassMustBeDerivedFromService(this);
  1679. }
  1680. // disable synchronous version of this method
  1681. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1682. {
  1683. abort();
  1684. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1685. }
  1686. };
  1687. template<class BaseClass>
  1688. class WithGenericMethod_UseProp : public BaseClass
  1689. {
  1690. private:
  1691. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1692. {
  1693. }
  1694. public:
  1695. WithGenericMethod_UseProp()
  1696. {
  1697. ::grpc::Service::MarkMethodGeneric(4);
  1698. }
  1699. ~WithGenericMethod_UseProp() override
  1700. {
  1701. BaseClassMustBeDerivedFromService(this);
  1702. }
  1703. // disable synchronous version of this method
  1704. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1705. {
  1706. abort();
  1707. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1708. }
  1709. };
  1710. template<class BaseClass>
  1711. class WithGenericMethod_UseSkill : public BaseClass
  1712. {
  1713. private:
  1714. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1715. {
  1716. }
  1717. public:
  1718. WithGenericMethod_UseSkill()
  1719. {
  1720. ::grpc::Service::MarkMethodGeneric(5);
  1721. }
  1722. ~WithGenericMethod_UseSkill() override
  1723. {
  1724. BaseClassMustBeDerivedFromService(this);
  1725. }
  1726. // disable synchronous version of this method
  1727. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1728. {
  1729. abort();
  1730. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1731. }
  1732. };
  1733. template<class BaseClass>
  1734. class WithGenericMethod_SendMessage : public BaseClass
  1735. {
  1736. private:
  1737. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1738. {
  1739. }
  1740. public:
  1741. WithGenericMethod_SendMessage()
  1742. {
  1743. ::grpc::Service::MarkMethodGeneric(6);
  1744. }
  1745. ~WithGenericMethod_SendMessage() override
  1746. {
  1747. BaseClassMustBeDerivedFromService(this);
  1748. }
  1749. // disable synchronous version of this method
  1750. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1751. {
  1752. abort();
  1753. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1754. }
  1755. };
  1756. template<class BaseClass>
  1757. class WithGenericMethod_HaveMessage : public BaseClass
  1758. {
  1759. private:
  1760. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1761. {
  1762. }
  1763. public:
  1764. WithGenericMethod_HaveMessage()
  1765. {
  1766. ::grpc::Service::MarkMethodGeneric(7);
  1767. }
  1768. ~WithGenericMethod_HaveMessage() override
  1769. {
  1770. BaseClassMustBeDerivedFromService(this);
  1771. }
  1772. // disable synchronous version of this method
  1773. ::grpc::Status HaveMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1774. {
  1775. abort();
  1776. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1777. }
  1778. };
  1779. template<class BaseClass>
  1780. class WithGenericMethod_GetMessage : public BaseClass
  1781. {
  1782. private:
  1783. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1784. {
  1785. }
  1786. public:
  1787. WithGenericMethod_GetMessage()
  1788. {
  1789. ::grpc::Service::MarkMethodGeneric(8);
  1790. }
  1791. ~WithGenericMethod_GetMessage() override
  1792. {
  1793. BaseClassMustBeDerivedFromService(this);
  1794. }
  1795. // disable synchronous version of this method
  1796. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/) override
  1797. {
  1798. abort();
  1799. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1800. }
  1801. };
  1802. template<class BaseClass>
  1803. class WithGenericMethod_FixMachine : public BaseClass
  1804. {
  1805. private:
  1806. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1807. {
  1808. }
  1809. public:
  1810. WithGenericMethod_FixMachine()
  1811. {
  1812. ::grpc::Service::MarkMethodGeneric(9);
  1813. }
  1814. ~WithGenericMethod_FixMachine() override
  1815. {
  1816. BaseClassMustBeDerivedFromService(this);
  1817. }
  1818. // disable synchronous version of this method
  1819. ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  1820. {
  1821. abort();
  1822. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1823. }
  1824. };
  1825. template<class BaseClass>
  1826. class WithGenericMethod_SaveHuman : public BaseClass
  1827. {
  1828. private:
  1829. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1830. {
  1831. }
  1832. public:
  1833. WithGenericMethod_SaveHuman()
  1834. {
  1835. ::grpc::Service::MarkMethodGeneric(10);
  1836. }
  1837. ~WithGenericMethod_SaveHuman() override
  1838. {
  1839. BaseClassMustBeDerivedFromService(this);
  1840. }
  1841. // disable synchronous version of this method
  1842. ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  1843. {
  1844. abort();
  1845. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1846. }
  1847. };
  1848. template<class BaseClass>
  1849. class WithGenericMethod_Attack : public BaseClass
  1850. {
  1851. private:
  1852. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1853. {
  1854. }
  1855. public:
  1856. WithGenericMethod_Attack()
  1857. {
  1858. ::grpc::Service::MarkMethodGeneric(11);
  1859. }
  1860. ~WithGenericMethod_Attack() override
  1861. {
  1862. BaseClassMustBeDerivedFromService(this);
  1863. }
  1864. // disable synchronous version of this method
  1865. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1866. {
  1867. abort();
  1868. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1869. }
  1870. };
  1871. template<class BaseClass>
  1872. class WithGenericMethod_CarryHuman : public BaseClass
  1873. {
  1874. private:
  1875. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1876. {
  1877. }
  1878. public:
  1879. WithGenericMethod_CarryHuman()
  1880. {
  1881. ::grpc::Service::MarkMethodGeneric(12);
  1882. }
  1883. ~WithGenericMethod_CarryHuman() override
  1884. {
  1885. BaseClassMustBeDerivedFromService(this);
  1886. }
  1887. // disable synchronous version of this method
  1888. ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1889. {
  1890. abort();
  1891. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1892. }
  1893. };
  1894. template<class BaseClass>
  1895. class WithGenericMethod_ReleaseHuman : public BaseClass
  1896. {
  1897. private:
  1898. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1899. {
  1900. }
  1901. public:
  1902. WithGenericMethod_ReleaseHuman()
  1903. {
  1904. ::grpc::Service::MarkMethodGeneric(13);
  1905. }
  1906. ~WithGenericMethod_ReleaseHuman() override
  1907. {
  1908. BaseClassMustBeDerivedFromService(this);
  1909. }
  1910. // disable synchronous version of this method
  1911. ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1912. {
  1913. abort();
  1914. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1915. }
  1916. };
  1917. template<class BaseClass>
  1918. class WithGenericMethod_HangHuman : public BaseClass
  1919. {
  1920. private:
  1921. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1922. {
  1923. }
  1924. public:
  1925. WithGenericMethod_HangHuman()
  1926. {
  1927. ::grpc::Service::MarkMethodGeneric(14);
  1928. }
  1929. ~WithGenericMethod_HangHuman() override
  1930. {
  1931. BaseClassMustBeDerivedFromService(this);
  1932. }
  1933. // disable synchronous version of this method
  1934. ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1935. {
  1936. abort();
  1937. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1938. }
  1939. };
  1940. template<class BaseClass>
  1941. class WithGenericMethod_Escape : public BaseClass
  1942. {
  1943. private:
  1944. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1945. {
  1946. }
  1947. public:
  1948. WithGenericMethod_Escape()
  1949. {
  1950. ::grpc::Service::MarkMethodGeneric(15);
  1951. }
  1952. ~WithGenericMethod_Escape() override
  1953. {
  1954. BaseClassMustBeDerivedFromService(this);
  1955. }
  1956. // disable synchronous version of this method
  1957. ::grpc::Status Escape(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1958. {
  1959. abort();
  1960. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1961. }
  1962. };
  1963. template<class BaseClass>
  1964. class WithRawMethod_TryConnection : public BaseClass
  1965. {
  1966. private:
  1967. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1968. {
  1969. }
  1970. public:
  1971. WithRawMethod_TryConnection()
  1972. {
  1973. ::grpc::Service::MarkMethodRaw(0);
  1974. }
  1975. ~WithRawMethod_TryConnection() override
  1976. {
  1977. BaseClassMustBeDerivedFromService(this);
  1978. }
  1979. // disable synchronous version of this method
  1980. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1981. {
  1982. abort();
  1983. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1984. }
  1985. void RequestTryConnection(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1986. {
  1987. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  1988. }
  1989. };
  1990. template<class BaseClass>
  1991. class WithRawMethod_AddPlayer : public BaseClass
  1992. {
  1993. private:
  1994. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1995. {
  1996. }
  1997. public:
  1998. WithRawMethod_AddPlayer()
  1999. {
  2000. ::grpc::Service::MarkMethodRaw(1);
  2001. }
  2002. ~WithRawMethod_AddPlayer() override
  2003. {
  2004. BaseClassMustBeDerivedFromService(this);
  2005. }
  2006. // disable synchronous version of this method
  2007. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  2008. {
  2009. abort();
  2010. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2011. }
  2012. void RequestAddPlayer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter<::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2013. {
  2014. ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
  2015. }
  2016. };
  2017. template<class BaseClass>
  2018. class WithRawMethod_Move : public BaseClass
  2019. {
  2020. private:
  2021. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2022. {
  2023. }
  2024. public:
  2025. WithRawMethod_Move()
  2026. {
  2027. ::grpc::Service::MarkMethodRaw(2);
  2028. }
  2029. ~WithRawMethod_Move() override
  2030. {
  2031. BaseClassMustBeDerivedFromService(this);
  2032. }
  2033. // disable synchronous version of this method
  2034. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2035. {
  2036. abort();
  2037. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2038. }
  2039. void RequestMove(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2040. {
  2041. ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
  2042. }
  2043. };
  2044. template<class BaseClass>
  2045. class WithRawMethod_PickProp : public BaseClass
  2046. {
  2047. private:
  2048. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2049. {
  2050. }
  2051. public:
  2052. WithRawMethod_PickProp()
  2053. {
  2054. ::grpc::Service::MarkMethodRaw(3);
  2055. }
  2056. ~WithRawMethod_PickProp() override
  2057. {
  2058. BaseClassMustBeDerivedFromService(this);
  2059. }
  2060. // disable synchronous version of this method
  2061. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2062. {
  2063. abort();
  2064. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2065. }
  2066. void RequestPickProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2067. {
  2068. ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
  2069. }
  2070. };
  2071. template<class BaseClass>
  2072. class WithRawMethod_UseProp : public BaseClass
  2073. {
  2074. private:
  2075. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2076. {
  2077. }
  2078. public:
  2079. WithRawMethod_UseProp()
  2080. {
  2081. ::grpc::Service::MarkMethodRaw(4);
  2082. }
  2083. ~WithRawMethod_UseProp() override
  2084. {
  2085. BaseClassMustBeDerivedFromService(this);
  2086. }
  2087. // disable synchronous version of this method
  2088. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2089. {
  2090. abort();
  2091. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2092. }
  2093. void RequestUseProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2094. {
  2095. ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
  2096. }
  2097. };
  2098. template<class BaseClass>
  2099. class WithRawMethod_UseSkill : public BaseClass
  2100. {
  2101. private:
  2102. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2103. {
  2104. }
  2105. public:
  2106. WithRawMethod_UseSkill()
  2107. {
  2108. ::grpc::Service::MarkMethodRaw(5);
  2109. }
  2110. ~WithRawMethod_UseSkill() override
  2111. {
  2112. BaseClassMustBeDerivedFromService(this);
  2113. }
  2114. // disable synchronous version of this method
  2115. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2116. {
  2117. abort();
  2118. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2119. }
  2120. void RequestUseSkill(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2121. {
  2122. ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
  2123. }
  2124. };
  2125. template<class BaseClass>
  2126. class WithRawMethod_SendMessage : public BaseClass
  2127. {
  2128. private:
  2129. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2130. {
  2131. }
  2132. public:
  2133. WithRawMethod_SendMessage()
  2134. {
  2135. ::grpc::Service::MarkMethodRaw(6);
  2136. }
  2137. ~WithRawMethod_SendMessage() override
  2138. {
  2139. BaseClassMustBeDerivedFromService(this);
  2140. }
  2141. // disable synchronous version of this method
  2142. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2143. {
  2144. abort();
  2145. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2146. }
  2147. void RequestSendMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2148. {
  2149. ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
  2150. }
  2151. };
  2152. template<class BaseClass>
  2153. class WithRawMethod_HaveMessage : public BaseClass
  2154. {
  2155. private:
  2156. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2157. {
  2158. }
  2159. public:
  2160. WithRawMethod_HaveMessage()
  2161. {
  2162. ::grpc::Service::MarkMethodRaw(7);
  2163. }
  2164. ~WithRawMethod_HaveMessage() override
  2165. {
  2166. BaseClassMustBeDerivedFromService(this);
  2167. }
  2168. // disable synchronous version of this method
  2169. ::grpc::Status HaveMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2170. {
  2171. abort();
  2172. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2173. }
  2174. void RequestHaveMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2175. {
  2176. ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag);
  2177. }
  2178. };
  2179. template<class BaseClass>
  2180. class WithRawMethod_GetMessage : public BaseClass
  2181. {
  2182. private:
  2183. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2184. {
  2185. }
  2186. public:
  2187. WithRawMethod_GetMessage()
  2188. {
  2189. ::grpc::Service::MarkMethodRaw(8);
  2190. }
  2191. ~WithRawMethod_GetMessage() override
  2192. {
  2193. BaseClassMustBeDerivedFromService(this);
  2194. }
  2195. // disable synchronous version of this method
  2196. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/) override
  2197. {
  2198. abort();
  2199. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2200. }
  2201. void RequestGetMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2202. {
  2203. ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
  2204. }
  2205. };
  2206. template<class BaseClass>
  2207. class WithRawMethod_FixMachine : public BaseClass
  2208. {
  2209. private:
  2210. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2211. {
  2212. }
  2213. public:
  2214. WithRawMethod_FixMachine()
  2215. {
  2216. ::grpc::Service::MarkMethodRaw(9);
  2217. }
  2218. ~WithRawMethod_FixMachine() override
  2219. {
  2220. BaseClassMustBeDerivedFromService(this);
  2221. }
  2222. // disable synchronous version of this method
  2223. ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  2224. {
  2225. abort();
  2226. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2227. }
  2228. void RequestFixMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter<::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2229. {
  2230. ::grpc::Service::RequestAsyncBidiStreaming(9, context, stream, new_call_cq, notification_cq, tag);
  2231. }
  2232. };
  2233. template<class BaseClass>
  2234. class WithRawMethod_SaveHuman : public BaseClass
  2235. {
  2236. private:
  2237. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2238. {
  2239. }
  2240. public:
  2241. WithRawMethod_SaveHuman()
  2242. {
  2243. ::grpc::Service::MarkMethodRaw(10);
  2244. }
  2245. ~WithRawMethod_SaveHuman() override
  2246. {
  2247. BaseClassMustBeDerivedFromService(this);
  2248. }
  2249. // disable synchronous version of this method
  2250. ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  2251. {
  2252. abort();
  2253. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2254. }
  2255. void RequestSaveHuman(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter<::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2256. {
  2257. ::grpc::Service::RequestAsyncBidiStreaming(10, context, stream, new_call_cq, notification_cq, tag);
  2258. }
  2259. };
  2260. template<class BaseClass>
  2261. class WithRawMethod_Attack : public BaseClass
  2262. {
  2263. private:
  2264. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2265. {
  2266. }
  2267. public:
  2268. WithRawMethod_Attack()
  2269. {
  2270. ::grpc::Service::MarkMethodRaw(11);
  2271. }
  2272. ~WithRawMethod_Attack() override
  2273. {
  2274. BaseClassMustBeDerivedFromService(this);
  2275. }
  2276. // disable synchronous version of this method
  2277. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2278. {
  2279. abort();
  2280. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2281. }
  2282. void RequestAttack(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2283. {
  2284. ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
  2285. }
  2286. };
  2287. template<class BaseClass>
  2288. class WithRawMethod_CarryHuman : public BaseClass
  2289. {
  2290. private:
  2291. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2292. {
  2293. }
  2294. public:
  2295. WithRawMethod_CarryHuman()
  2296. {
  2297. ::grpc::Service::MarkMethodRaw(12);
  2298. }
  2299. ~WithRawMethod_CarryHuman() override
  2300. {
  2301. BaseClassMustBeDerivedFromService(this);
  2302. }
  2303. // disable synchronous version of this method
  2304. ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2305. {
  2306. abort();
  2307. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2308. }
  2309. void RequestCarryHuman(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2310. {
  2311. ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
  2312. }
  2313. };
  2314. template<class BaseClass>
  2315. class WithRawMethod_ReleaseHuman : public BaseClass
  2316. {
  2317. private:
  2318. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2319. {
  2320. }
  2321. public:
  2322. WithRawMethod_ReleaseHuman()
  2323. {
  2324. ::grpc::Service::MarkMethodRaw(13);
  2325. }
  2326. ~WithRawMethod_ReleaseHuman() override
  2327. {
  2328. BaseClassMustBeDerivedFromService(this);
  2329. }
  2330. // disable synchronous version of this method
  2331. ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2332. {
  2333. abort();
  2334. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2335. }
  2336. void RequestReleaseHuman(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2337. {
  2338. ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag);
  2339. }
  2340. };
  2341. template<class BaseClass>
  2342. class WithRawMethod_HangHuman : public BaseClass
  2343. {
  2344. private:
  2345. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2346. {
  2347. }
  2348. public:
  2349. WithRawMethod_HangHuman()
  2350. {
  2351. ::grpc::Service::MarkMethodRaw(14);
  2352. }
  2353. ~WithRawMethod_HangHuman() override
  2354. {
  2355. BaseClassMustBeDerivedFromService(this);
  2356. }
  2357. // disable synchronous version of this method
  2358. ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2359. {
  2360. abort();
  2361. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2362. }
  2363. void RequestHangHuman(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2364. {
  2365. ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag);
  2366. }
  2367. };
  2368. template<class BaseClass>
  2369. class WithRawMethod_Escape : public BaseClass
  2370. {
  2371. private:
  2372. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2373. {
  2374. }
  2375. public:
  2376. WithRawMethod_Escape()
  2377. {
  2378. ::grpc::Service::MarkMethodRaw(15);
  2379. }
  2380. ~WithRawMethod_Escape() override
  2381. {
  2382. BaseClassMustBeDerivedFromService(this);
  2383. }
  2384. // disable synchronous version of this method
  2385. ::grpc::Status Escape(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2386. {
  2387. abort();
  2388. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2389. }
  2390. void RequestEscape(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2391. {
  2392. ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag);
  2393. }
  2394. };
  2395. template<class BaseClass>
  2396. class WithRawCallbackMethod_TryConnection : public BaseClass
  2397. {
  2398. private:
  2399. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2400. {
  2401. }
  2402. public:
  2403. WithRawCallbackMethod_TryConnection()
  2404. {
  2405. ::grpc::Service::MarkMethodRawCallback(0, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2406. { return this->TryConnection(context, request, response); }));
  2407. }
  2408. ~WithRawCallbackMethod_TryConnection() override
  2409. {
  2410. BaseClassMustBeDerivedFromService(this);
  2411. }
  2412. // disable synchronous version of this method
  2413. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2414. {
  2415. abort();
  2416. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2417. }
  2418. virtual ::grpc::ServerUnaryReactor* TryConnection(
  2419. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2420. )
  2421. {
  2422. return nullptr;
  2423. }
  2424. };
  2425. template<class BaseClass>
  2426. class WithRawCallbackMethod_AddPlayer : public BaseClass
  2427. {
  2428. private:
  2429. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2430. {
  2431. }
  2432. public:
  2433. WithRawCallbackMethod_AddPlayer()
  2434. {
  2435. ::grpc::Service::MarkMethodRawCallback(1, new ::grpc::internal::CallbackServerStreamingHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request)
  2436. { return this->AddPlayer(context, request); }));
  2437. }
  2438. ~WithRawCallbackMethod_AddPlayer() override
  2439. {
  2440. BaseClassMustBeDerivedFromService(this);
  2441. }
  2442. // disable synchronous version of this method
  2443. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  2444. {
  2445. abort();
  2446. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2447. }
  2448. virtual ::grpc::ServerWriteReactor<::grpc::ByteBuffer>* AddPlayer(
  2449. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/
  2450. )
  2451. {
  2452. return nullptr;
  2453. }
  2454. };
  2455. template<class BaseClass>
  2456. class WithRawCallbackMethod_Move : public BaseClass
  2457. {
  2458. private:
  2459. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2460. {
  2461. }
  2462. public:
  2463. WithRawCallbackMethod_Move()
  2464. {
  2465. ::grpc::Service::MarkMethodRawCallback(2, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2466. { return this->Move(context, request, response); }));
  2467. }
  2468. ~WithRawCallbackMethod_Move() override
  2469. {
  2470. BaseClassMustBeDerivedFromService(this);
  2471. }
  2472. // disable synchronous version of this method
  2473. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2474. {
  2475. abort();
  2476. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2477. }
  2478. virtual ::grpc::ServerUnaryReactor* Move(
  2479. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2480. )
  2481. {
  2482. return nullptr;
  2483. }
  2484. };
  2485. template<class BaseClass>
  2486. class WithRawCallbackMethod_PickProp : public BaseClass
  2487. {
  2488. private:
  2489. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2490. {
  2491. }
  2492. public:
  2493. WithRawCallbackMethod_PickProp()
  2494. {
  2495. ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2496. { return this->PickProp(context, request, response); }));
  2497. }
  2498. ~WithRawCallbackMethod_PickProp() override
  2499. {
  2500. BaseClassMustBeDerivedFromService(this);
  2501. }
  2502. // disable synchronous version of this method
  2503. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2504. {
  2505. abort();
  2506. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2507. }
  2508. virtual ::grpc::ServerUnaryReactor* PickProp(
  2509. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2510. )
  2511. {
  2512. return nullptr;
  2513. }
  2514. };
  2515. template<class BaseClass>
  2516. class WithRawCallbackMethod_UseProp : public BaseClass
  2517. {
  2518. private:
  2519. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2520. {
  2521. }
  2522. public:
  2523. WithRawCallbackMethod_UseProp()
  2524. {
  2525. ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2526. { return this->UseProp(context, request, response); }));
  2527. }
  2528. ~WithRawCallbackMethod_UseProp() override
  2529. {
  2530. BaseClassMustBeDerivedFromService(this);
  2531. }
  2532. // disable synchronous version of this method
  2533. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2534. {
  2535. abort();
  2536. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2537. }
  2538. virtual ::grpc::ServerUnaryReactor* UseProp(
  2539. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2540. )
  2541. {
  2542. return nullptr;
  2543. }
  2544. };
  2545. template<class BaseClass>
  2546. class WithRawCallbackMethod_UseSkill : public BaseClass
  2547. {
  2548. private:
  2549. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2550. {
  2551. }
  2552. public:
  2553. WithRawCallbackMethod_UseSkill()
  2554. {
  2555. ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2556. { return this->UseSkill(context, request, response); }));
  2557. }
  2558. ~WithRawCallbackMethod_UseSkill() override
  2559. {
  2560. BaseClassMustBeDerivedFromService(this);
  2561. }
  2562. // disable synchronous version of this method
  2563. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2564. {
  2565. abort();
  2566. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2567. }
  2568. virtual ::grpc::ServerUnaryReactor* UseSkill(
  2569. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2570. )
  2571. {
  2572. return nullptr;
  2573. }
  2574. };
  2575. template<class BaseClass>
  2576. class WithRawCallbackMethod_SendMessage : public BaseClass
  2577. {
  2578. private:
  2579. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2580. {
  2581. }
  2582. public:
  2583. WithRawCallbackMethod_SendMessage()
  2584. {
  2585. ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2586. { return this->SendMessage(context, request, response); }));
  2587. }
  2588. ~WithRawCallbackMethod_SendMessage() override
  2589. {
  2590. BaseClassMustBeDerivedFromService(this);
  2591. }
  2592. // disable synchronous version of this method
  2593. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2594. {
  2595. abort();
  2596. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2597. }
  2598. virtual ::grpc::ServerUnaryReactor* SendMessage(
  2599. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2600. )
  2601. {
  2602. return nullptr;
  2603. }
  2604. };
  2605. template<class BaseClass>
  2606. class WithRawCallbackMethod_HaveMessage : public BaseClass
  2607. {
  2608. private:
  2609. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2610. {
  2611. }
  2612. public:
  2613. WithRawCallbackMethod_HaveMessage()
  2614. {
  2615. ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2616. { return this->HaveMessage(context, request, response); }));
  2617. }
  2618. ~WithRawCallbackMethod_HaveMessage() override
  2619. {
  2620. BaseClassMustBeDerivedFromService(this);
  2621. }
  2622. // disable synchronous version of this method
  2623. ::grpc::Status HaveMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2624. {
  2625. abort();
  2626. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2627. }
  2628. virtual ::grpc::ServerUnaryReactor* HaveMessage(
  2629. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2630. )
  2631. {
  2632. return nullptr;
  2633. }
  2634. };
  2635. template<class BaseClass>
  2636. class WithRawCallbackMethod_GetMessage : public BaseClass
  2637. {
  2638. private:
  2639. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2640. {
  2641. }
  2642. public:
  2643. WithRawCallbackMethod_GetMessage()
  2644. {
  2645. ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2646. { return this->GetMessage(context, request, response); }));
  2647. }
  2648. ~WithRawCallbackMethod_GetMessage() override
  2649. {
  2650. BaseClassMustBeDerivedFromService(this);
  2651. }
  2652. // disable synchronous version of this method
  2653. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/) override
  2654. {
  2655. abort();
  2656. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2657. }
  2658. virtual ::grpc::ServerUnaryReactor* GetMessage(
  2659. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2660. )
  2661. {
  2662. return nullptr;
  2663. }
  2664. };
  2665. template<class BaseClass>
  2666. class WithRawCallbackMethod_FixMachine : public BaseClass
  2667. {
  2668. private:
  2669. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2670. {
  2671. }
  2672. public:
  2673. WithRawCallbackMethod_FixMachine()
  2674. {
  2675. ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackBidiHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context)
  2676. { return this->FixMachine(context); }));
  2677. }
  2678. ~WithRawCallbackMethod_FixMachine() override
  2679. {
  2680. BaseClassMustBeDerivedFromService(this);
  2681. }
  2682. // disable synchronous version of this method
  2683. ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  2684. {
  2685. abort();
  2686. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2687. }
  2688. virtual ::grpc::ServerBidiReactor<::grpc::ByteBuffer, ::grpc::ByteBuffer>* FixMachine(
  2689. ::grpc::CallbackServerContext* /*context*/
  2690. )
  2691. {
  2692. return nullptr;
  2693. }
  2694. };
  2695. template<class BaseClass>
  2696. class WithRawCallbackMethod_SaveHuman : public BaseClass
  2697. {
  2698. private:
  2699. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2700. {
  2701. }
  2702. public:
  2703. WithRawCallbackMethod_SaveHuman()
  2704. {
  2705. ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackBidiHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context)
  2706. { return this->SaveHuman(context); }));
  2707. }
  2708. ~WithRawCallbackMethod_SaveHuman() override
  2709. {
  2710. BaseClassMustBeDerivedFromService(this);
  2711. }
  2712. // disable synchronous version of this method
  2713. ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override
  2714. {
  2715. abort();
  2716. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2717. }
  2718. virtual ::grpc::ServerBidiReactor<::grpc::ByteBuffer, ::grpc::ByteBuffer>* SaveHuman(
  2719. ::grpc::CallbackServerContext* /*context*/
  2720. )
  2721. {
  2722. return nullptr;
  2723. }
  2724. };
  2725. template<class BaseClass>
  2726. class WithRawCallbackMethod_Attack : public BaseClass
  2727. {
  2728. private:
  2729. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2730. {
  2731. }
  2732. public:
  2733. WithRawCallbackMethod_Attack()
  2734. {
  2735. ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2736. { return this->Attack(context, request, response); }));
  2737. }
  2738. ~WithRawCallbackMethod_Attack() override
  2739. {
  2740. BaseClassMustBeDerivedFromService(this);
  2741. }
  2742. // disable synchronous version of this method
  2743. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2744. {
  2745. abort();
  2746. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2747. }
  2748. virtual ::grpc::ServerUnaryReactor* Attack(
  2749. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2750. )
  2751. {
  2752. return nullptr;
  2753. }
  2754. };
  2755. template<class BaseClass>
  2756. class WithRawCallbackMethod_CarryHuman : public BaseClass
  2757. {
  2758. private:
  2759. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2760. {
  2761. }
  2762. public:
  2763. WithRawCallbackMethod_CarryHuman()
  2764. {
  2765. ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2766. { return this->CarryHuman(context, request, response); }));
  2767. }
  2768. ~WithRawCallbackMethod_CarryHuman() override
  2769. {
  2770. BaseClassMustBeDerivedFromService(this);
  2771. }
  2772. // disable synchronous version of this method
  2773. ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2774. {
  2775. abort();
  2776. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2777. }
  2778. virtual ::grpc::ServerUnaryReactor* CarryHuman(
  2779. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2780. )
  2781. {
  2782. return nullptr;
  2783. }
  2784. };
  2785. template<class BaseClass>
  2786. class WithRawCallbackMethod_ReleaseHuman : public BaseClass
  2787. {
  2788. private:
  2789. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2790. {
  2791. }
  2792. public:
  2793. WithRawCallbackMethod_ReleaseHuman()
  2794. {
  2795. ::grpc::Service::MarkMethodRawCallback(13, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2796. { return this->ReleaseHuman(context, request, response); }));
  2797. }
  2798. ~WithRawCallbackMethod_ReleaseHuman() override
  2799. {
  2800. BaseClassMustBeDerivedFromService(this);
  2801. }
  2802. // disable synchronous version of this method
  2803. ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2804. {
  2805. abort();
  2806. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2807. }
  2808. virtual ::grpc::ServerUnaryReactor* ReleaseHuman(
  2809. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2810. )
  2811. {
  2812. return nullptr;
  2813. }
  2814. };
  2815. template<class BaseClass>
  2816. class WithRawCallbackMethod_HangHuman : public BaseClass
  2817. {
  2818. private:
  2819. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2820. {
  2821. }
  2822. public:
  2823. WithRawCallbackMethod_HangHuman()
  2824. {
  2825. ::grpc::Service::MarkMethodRawCallback(14, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2826. { return this->HangHuman(context, request, response); }));
  2827. }
  2828. ~WithRawCallbackMethod_HangHuman() override
  2829. {
  2830. BaseClassMustBeDerivedFromService(this);
  2831. }
  2832. // disable synchronous version of this method
  2833. ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2834. {
  2835. abort();
  2836. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2837. }
  2838. virtual ::grpc::ServerUnaryReactor* HangHuman(
  2839. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2840. )
  2841. {
  2842. return nullptr;
  2843. }
  2844. };
  2845. template<class BaseClass>
  2846. class WithRawCallbackMethod_Escape : public BaseClass
  2847. {
  2848. private:
  2849. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2850. {
  2851. }
  2852. public:
  2853. WithRawCallbackMethod_Escape()
  2854. {
  2855. ::grpc::Service::MarkMethodRawCallback(15, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2856. { return this->Escape(context, request, response); }));
  2857. }
  2858. ~WithRawCallbackMethod_Escape() override
  2859. {
  2860. BaseClassMustBeDerivedFromService(this);
  2861. }
  2862. // disable synchronous version of this method
  2863. ::grpc::Status Escape(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2864. {
  2865. abort();
  2866. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2867. }
  2868. virtual ::grpc::ServerUnaryReactor* Escape(
  2869. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2870. )
  2871. {
  2872. return nullptr;
  2873. }
  2874. };
  2875. template<class BaseClass>
  2876. class WithStreamedUnaryMethod_TryConnection : public BaseClass
  2877. {
  2878. private:
  2879. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2880. {
  2881. }
  2882. public:
  2883. WithStreamedUnaryMethod_TryConnection()
  2884. {
  2885. ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2886. { return this->StreamedTryConnection(context, streamer); }));
  2887. }
  2888. ~WithStreamedUnaryMethod_TryConnection() override
  2889. {
  2890. BaseClassMustBeDerivedFromService(this);
  2891. }
  2892. // disable regular version of this method
  2893. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2894. {
  2895. abort();
  2896. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2897. }
  2898. // replace default version of method with streamed unary
  2899. virtual ::grpc::Status StreamedTryConnection(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2900. };
  2901. template<class BaseClass>
  2902. class WithStreamedUnaryMethod_Move : public BaseClass
  2903. {
  2904. private:
  2905. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2906. {
  2907. }
  2908. public:
  2909. WithStreamedUnaryMethod_Move()
  2910. {
  2911. ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::MoveMsg, ::protobuf::MoveRes>* streamer)
  2912. { return this->StreamedMove(context, streamer); }));
  2913. }
  2914. ~WithStreamedUnaryMethod_Move() override
  2915. {
  2916. BaseClassMustBeDerivedFromService(this);
  2917. }
  2918. // disable regular version of this method
  2919. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2920. {
  2921. abort();
  2922. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2923. }
  2924. // replace default version of method with streamed unary
  2925. virtual ::grpc::Status StreamedMove(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::MoveMsg, ::protobuf::MoveRes>* server_unary_streamer) = 0;
  2926. };
  2927. template<class BaseClass>
  2928. class WithStreamedUnaryMethod_PickProp : public BaseClass
  2929. {
  2930. private:
  2931. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2932. {
  2933. }
  2934. public:
  2935. WithStreamedUnaryMethod_PickProp()
  2936. {
  2937. ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler<::protobuf::PickMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PickMsg, ::protobuf::BoolRes>* streamer)
  2938. { return this->StreamedPickProp(context, streamer); }));
  2939. }
  2940. ~WithStreamedUnaryMethod_PickProp() override
  2941. {
  2942. BaseClassMustBeDerivedFromService(this);
  2943. }
  2944. // disable regular version of this method
  2945. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2946. {
  2947. abort();
  2948. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2949. }
  2950. // replace default version of method with streamed unary
  2951. virtual ::grpc::Status StreamedPickProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PickMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2952. };
  2953. template<class BaseClass>
  2954. class WithStreamedUnaryMethod_UseProp : public BaseClass
  2955. {
  2956. private:
  2957. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2958. {
  2959. }
  2960. public:
  2961. WithStreamedUnaryMethod_UseProp()
  2962. {
  2963. ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2964. { return this->StreamedUseProp(context, streamer); }));
  2965. }
  2966. ~WithStreamedUnaryMethod_UseProp() override
  2967. {
  2968. BaseClassMustBeDerivedFromService(this);
  2969. }
  2970. // disable regular version of this method
  2971. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2972. {
  2973. abort();
  2974. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2975. }
  2976. // replace default version of method with streamed unary
  2977. virtual ::grpc::Status StreamedUseProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  2978. };
  2979. template<class BaseClass>
  2980. class WithStreamedUnaryMethod_UseSkill : public BaseClass
  2981. {
  2982. private:
  2983. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2984. {
  2985. }
  2986. public:
  2987. WithStreamedUnaryMethod_UseSkill()
  2988. {
  2989. ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  2990. { return this->StreamedUseSkill(context, streamer); }));
  2991. }
  2992. ~WithStreamedUnaryMethod_UseSkill() override
  2993. {
  2994. BaseClassMustBeDerivedFromService(this);
  2995. }
  2996. // disable regular version of this method
  2997. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2998. {
  2999. abort();
  3000. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3001. }
  3002. // replace default version of method with streamed unary
  3003. virtual ::grpc::Status StreamedUseSkill(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3004. };
  3005. template<class BaseClass>
  3006. class WithStreamedUnaryMethod_SendMessage : public BaseClass
  3007. {
  3008. private:
  3009. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3010. {
  3011. }
  3012. public:
  3013. WithStreamedUnaryMethod_SendMessage()
  3014. {
  3015. ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SendMsg, ::protobuf::BoolRes>* streamer)
  3016. { return this->StreamedSendMessage(context, streamer); }));
  3017. }
  3018. ~WithStreamedUnaryMethod_SendMessage() override
  3019. {
  3020. BaseClassMustBeDerivedFromService(this);
  3021. }
  3022. // disable regular version of this method
  3023. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3024. {
  3025. abort();
  3026. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3027. }
  3028. // replace default version of method with streamed unary
  3029. virtual ::grpc::Status StreamedSendMessage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SendMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3030. };
  3031. template<class BaseClass>
  3032. class WithStreamedUnaryMethod_HaveMessage : public BaseClass
  3033. {
  3034. private:
  3035. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3036. {
  3037. }
  3038. public:
  3039. WithStreamedUnaryMethod_HaveMessage()
  3040. {
  3041. ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3042. { return this->StreamedHaveMessage(context, streamer); }));
  3043. }
  3044. ~WithStreamedUnaryMethod_HaveMessage() override
  3045. {
  3046. BaseClassMustBeDerivedFromService(this);
  3047. }
  3048. // disable regular version of this method
  3049. ::grpc::Status HaveMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3050. {
  3051. abort();
  3052. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3053. }
  3054. // replace default version of method with streamed unary
  3055. virtual ::grpc::Status StreamedHaveMessage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3056. };
  3057. template<class BaseClass>
  3058. class WithStreamedUnaryMethod_GetMessage : public BaseClass
  3059. {
  3060. private:
  3061. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3062. {
  3063. }
  3064. public:
  3065. WithStreamedUnaryMethod_GetMessage()
  3066. {
  3067. ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::MsgRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::MsgRes>* streamer)
  3068. { return this->StreamedGetMessage(context, streamer); }));
  3069. }
  3070. ~WithStreamedUnaryMethod_GetMessage() override
  3071. {
  3072. BaseClassMustBeDerivedFromService(this);
  3073. }
  3074. // disable regular version of this method
  3075. ::grpc::Status GetMessage(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::MsgRes* /*response*/) override
  3076. {
  3077. abort();
  3078. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3079. }
  3080. // replace default version of method with streamed unary
  3081. virtual ::grpc::Status StreamedGetMessage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::MsgRes>* server_unary_streamer) = 0;
  3082. };
  3083. template<class BaseClass>
  3084. class WithStreamedUnaryMethod_Attack : public BaseClass
  3085. {
  3086. private:
  3087. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3088. {
  3089. }
  3090. public:
  3091. WithStreamedUnaryMethod_Attack()
  3092. {
  3093. ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler<::protobuf::AttackMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::AttackMsg, ::protobuf::BoolRes>* streamer)
  3094. { return this->StreamedAttack(context, streamer); }));
  3095. }
  3096. ~WithStreamedUnaryMethod_Attack() override
  3097. {
  3098. BaseClassMustBeDerivedFromService(this);
  3099. }
  3100. // disable regular version of this method
  3101. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3102. {
  3103. abort();
  3104. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3105. }
  3106. // replace default version of method with streamed unary
  3107. virtual ::grpc::Status StreamedAttack(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::AttackMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3108. };
  3109. template<class BaseClass>
  3110. class WithStreamedUnaryMethod_CarryHuman : public BaseClass
  3111. {
  3112. private:
  3113. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3114. {
  3115. }
  3116. public:
  3117. WithStreamedUnaryMethod_CarryHuman()
  3118. {
  3119. ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3120. { return this->StreamedCarryHuman(context, streamer); }));
  3121. }
  3122. ~WithStreamedUnaryMethod_CarryHuman() override
  3123. {
  3124. BaseClassMustBeDerivedFromService(this);
  3125. }
  3126. // disable regular version of this method
  3127. ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3128. {
  3129. abort();
  3130. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3131. }
  3132. // replace default version of method with streamed unary
  3133. virtual ::grpc::Status StreamedCarryHuman(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3134. };
  3135. template<class BaseClass>
  3136. class WithStreamedUnaryMethod_ReleaseHuman : public BaseClass
  3137. {
  3138. private:
  3139. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3140. {
  3141. }
  3142. public:
  3143. WithStreamedUnaryMethod_ReleaseHuman()
  3144. {
  3145. ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3146. { return this->StreamedReleaseHuman(context, streamer); }));
  3147. }
  3148. ~WithStreamedUnaryMethod_ReleaseHuman() override
  3149. {
  3150. BaseClassMustBeDerivedFromService(this);
  3151. }
  3152. // disable regular version of this method
  3153. ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3154. {
  3155. abort();
  3156. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3157. }
  3158. // replace default version of method with streamed unary
  3159. virtual ::grpc::Status StreamedReleaseHuman(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3160. };
  3161. template<class BaseClass>
  3162. class WithStreamedUnaryMethod_HangHuman : public BaseClass
  3163. {
  3164. private:
  3165. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3166. {
  3167. }
  3168. public:
  3169. WithStreamedUnaryMethod_HangHuman()
  3170. {
  3171. ::grpc::Service::MarkMethodStreamed(14, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3172. { return this->StreamedHangHuman(context, streamer); }));
  3173. }
  3174. ~WithStreamedUnaryMethod_HangHuman() override
  3175. {
  3176. BaseClassMustBeDerivedFromService(this);
  3177. }
  3178. // disable regular version of this method
  3179. ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3180. {
  3181. abort();
  3182. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3183. }
  3184. // replace default version of method with streamed unary
  3185. virtual ::grpc::Status StreamedHangHuman(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3186. };
  3187. template<class BaseClass>
  3188. class WithStreamedUnaryMethod_Escape : public BaseClass
  3189. {
  3190. private:
  3191. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3192. {
  3193. }
  3194. public:
  3195. WithStreamedUnaryMethod_Escape()
  3196. {
  3197. ::grpc::Service::MarkMethodStreamed(15, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3198. { return this->StreamedEscape(context, streamer); }));
  3199. }
  3200. ~WithStreamedUnaryMethod_Escape() override
  3201. {
  3202. BaseClassMustBeDerivedFromService(this);
  3203. }
  3204. // disable regular version of this method
  3205. ::grpc::Status Escape(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3206. {
  3207. abort();
  3208. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3209. }
  3210. // replace default version of method with streamed unary
  3211. virtual ::grpc::Status StreamedEscape(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3212. };
  3213. typedef WithStreamedUnaryMethod_TryConnection<WithStreamedUnaryMethod_Move<WithStreamedUnaryMethod_PickProp<WithStreamedUnaryMethod_UseProp<WithStreamedUnaryMethod_UseSkill<WithStreamedUnaryMethod_SendMessage<WithStreamedUnaryMethod_HaveMessage<WithStreamedUnaryMethod_GetMessage<WithStreamedUnaryMethod_Attack<WithStreamedUnaryMethod_CarryHuman<WithStreamedUnaryMethod_ReleaseHuman<WithStreamedUnaryMethod_HangHuman<WithStreamedUnaryMethod_Escape<Service>>>>>>>>>>>>> StreamedUnaryService;
  3214. template<class BaseClass>
  3215. class WithSplitStreamingMethod_AddPlayer : public BaseClass
  3216. {
  3217. private:
  3218. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3219. {
  3220. }
  3221. public:
  3222. WithSplitStreamingMethod_AddPlayer()
  3223. {
  3224. ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler<::protobuf::PlayerMsg, ::protobuf::MessageToClient>([this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::PlayerMsg, ::protobuf::MessageToClient>* streamer)
  3225. { return this->StreamedAddPlayer(context, streamer); }));
  3226. }
  3227. ~WithSplitStreamingMethod_AddPlayer() override
  3228. {
  3229. BaseClassMustBeDerivedFromService(this);
  3230. }
  3231. // disable regular version of this method
  3232. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  3233. {
  3234. abort();
  3235. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3236. }
  3237. // replace default version of method with split streamed
  3238. virtual ::grpc::Status StreamedAddPlayer(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::PlayerMsg, ::protobuf::MessageToClient>* server_split_streamer) = 0;
  3239. };
  3240. typedef WithSplitStreamingMethod_AddPlayer<Service> SplitStreamedService;
  3241. typedef WithStreamedUnaryMethod_TryConnection<WithSplitStreamingMethod_AddPlayer<WithStreamedUnaryMethod_Move<WithStreamedUnaryMethod_PickProp<WithStreamedUnaryMethod_UseProp<WithStreamedUnaryMethod_UseSkill<WithStreamedUnaryMethod_SendMessage<WithStreamedUnaryMethod_HaveMessage<WithStreamedUnaryMethod_GetMessage<WithStreamedUnaryMethod_Attack<WithStreamedUnaryMethod_CarryHuman<WithStreamedUnaryMethod_ReleaseHuman<WithStreamedUnaryMethod_HangHuman<WithStreamedUnaryMethod_Escape<Service>>>>>>>>>>>>>> StreamedService;
  3242. };
  3243. } // namespace protobuf
  3244. #endif // GRPC_Message2Clients_2eproto__INCLUDED