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

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