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

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