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

Services.grpc.pb.h 236 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046
  1. // Generated by the gRPC C++ plugin.
  2. // If you make any local change, they will be lost.
  3. // source: Services.proto
  4. #ifndef GRPC_Services_2eproto__INCLUDED
  5. #define GRPC_Services_2eproto__INCLUDED
  6. #include "Services.pb.h"
  7. #include <functional>
  8. #include <grpcpp/impl/codegen/async_generic_service.h>
  9. #include <grpcpp/impl/codegen/async_stream.h>
  10. #include <grpcpp/impl/codegen/async_unary_call.h>
  11. #include <grpcpp/impl/codegen/client_callback.h>
  12. #include <grpcpp/impl/codegen/client_context.h>
  13. #include <grpcpp/impl/codegen/completion_queue.h>
  14. #include <grpcpp/impl/codegen/message_allocator.h>
  15. #include <grpcpp/impl/codegen/method_handler.h>
  16. #include <grpcpp/impl/codegen/proto_utils.h>
  17. #include <grpcpp/impl/codegen/rpc_method.h>
  18. #include <grpcpp/impl/codegen/server_callback.h>
  19. #include <grpcpp/impl/codegen/server_callback_handlers.h>
  20. #include <grpcpp/impl/codegen/server_context.h>
  21. #include <grpcpp/impl/codegen/service_type.h>
  22. #include <grpcpp/impl/codegen/status.h>
  23. #include <grpcpp/impl/codegen/stub_options.h>
  24. #include <grpcpp/impl/codegen/sync_stream.h>
  25. namespace protobuf
  26. {
  27. class AvailableService final
  28. {
  29. public:
  30. static constexpr char const* service_full_name()
  31. {
  32. return "protobuf.AvailableService";
  33. }
  34. class StubInterface
  35. {
  36. public:
  37. virtual ~StubInterface()
  38. {
  39. }
  40. virtual ::grpc::Status TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  41. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  42. {
  43. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncTryConnectionRaw(context, request, cq));
  44. }
  45. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  46. {
  47. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncTryConnectionRaw(context, request, cq));
  48. }
  49. // 游戏开局调用一次的服务
  50. std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request)
  51. {
  52. return std::unique_ptr<::grpc::ClientReaderInterface<::protobuf::MessageToClient>>(AddPlayerRaw(context, request));
  53. }
  54. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  55. {
  56. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag));
  57. }
  58. std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq)
  59. {
  60. return std::unique_ptr<::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq));
  61. }
  62. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  63. // 游戏过程中玩家执行操作的服务
  64. virtual ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) = 0;
  65. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  66. {
  67. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq));
  68. }
  69. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  70. {
  71. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq));
  72. }
  73. virtual ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::protobuf::BoolRes* response) = 0;
  74. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  75. {
  76. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq));
  77. }
  78. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  79. {
  80. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq));
  81. }
  82. virtual ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::protobuf::BoolRes* response) = 0;
  83. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  84. {
  85. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq));
  86. }
  87. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  88. {
  89. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq));
  90. }
  91. virtual ::grpc::Status ThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::protobuf::BoolRes* response) = 0;
  92. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  93. {
  94. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncThrowPropRaw(context, request, cq));
  95. }
  96. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  97. {
  98. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncThrowPropRaw(context, request, cq));
  99. }
  100. virtual ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::protobuf::BoolRes* response) = 0;
  101. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq)
  102. {
  103. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq));
  104. }
  105. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq)
  106. {
  107. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq));
  108. }
  109. virtual ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) = 0;
  110. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  111. {
  112. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq));
  113. }
  114. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  115. {
  116. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq));
  117. }
  118. // rpc GetMessage (IDMsg) returns (stream MsgRes);
  119. virtual ::grpc::Status StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  120. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  121. {
  122. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartLearningRaw(context, request, cq));
  123. }
  124. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  125. {
  126. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartLearningRaw(context, request, cq));
  127. }
  128. // 开始修理机器
  129. virtual ::grpc::Status StartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  130. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  131. {
  132. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartRescueMateRaw(context, request, cq));
  133. }
  134. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  135. {
  136. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartRescueMateRaw(context, request, cq));
  137. }
  138. // 开始救人
  139. virtual ::grpc::Status StartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  140. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  141. {
  142. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartTreatMateRaw(context, request, cq));
  143. }
  144. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  145. {
  146. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartTreatMateRaw(context, request, cq));
  147. }
  148. virtual ::grpc::Status Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) = 0;
  149. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  150. {
  151. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncAttackRaw(context, request, cq));
  152. }
  153. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  154. {
  155. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncAttackRaw(context, request, cq));
  156. }
  157. // 攻击
  158. virtual ::grpc::Status Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  159. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  160. {
  161. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncGraduateRaw(context, request, cq));
  162. }
  163. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  164. {
  165. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncGraduateRaw(context, request, cq));
  166. }
  167. // 相当于逃跑
  168. virtual ::grpc::Status OpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  169. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncOpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  170. {
  171. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncOpenDoorRaw(context, request, cq));
  172. }
  173. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncOpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  174. {
  175. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncOpenDoorRaw(context, request, cq));
  176. }
  177. // 开门
  178. virtual ::grpc::Status CloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  179. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncCloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  180. {
  181. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncCloseDoorRaw(context, request, cq));
  182. }
  183. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncCloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  184. {
  185. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncCloseDoorRaw(context, request, cq));
  186. }
  187. // 关门
  188. virtual ::grpc::Status SkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  189. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncSkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  190. {
  191. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncSkipWindowRaw(context, request, cq));
  192. }
  193. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncSkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  194. {
  195. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncSkipWindowRaw(context, request, cq));
  196. }
  197. // 窗户
  198. virtual ::grpc::Status StartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  199. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  200. {
  201. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartOpenGateRaw(context, request, cq));
  202. }
  203. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  204. {
  205. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartOpenGateRaw(context, request, cq));
  206. }
  207. // 开闸门
  208. virtual ::grpc::Status StartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  209. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncStartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  210. {
  211. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncStartOpenChestRaw(context, request, cq));
  212. }
  213. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncStartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  214. {
  215. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncStartOpenChestRaw(context, request, cq));
  216. }
  217. virtual ::grpc::Status EndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0;
  218. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> AsyncEndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  219. {
  220. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(AsyncEndAllActionRaw(context, request, cq));
  221. }
  222. std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>> PrepareAsyncEndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  223. {
  224. return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>>(PrepareAsyncEndAllActionRaw(context, request, cq));
  225. }
  226. // 结束所有动作
  227. class async_interface
  228. {
  229. public:
  230. virtual ~async_interface()
  231. {
  232. }
  233. virtual void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  234. virtual void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  235. // 游戏开局调用一次的服务
  236. virtual void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor<::protobuf::MessageToClient>* reactor) = 0;
  237. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  238. // 游戏过程中玩家执行操作的服务
  239. virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function<void(::grpc::Status)>) = 0;
  240. virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  241. virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  242. virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  243. virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  244. virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  245. virtual void ThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  246. virtual void ThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  247. virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  248. virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  249. virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  250. virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  251. // rpc GetMessage (IDMsg) returns (stream MsgRes);
  252. virtual void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  253. virtual void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  254. // 开始修理机器
  255. virtual void StartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  256. virtual void StartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  257. // 开始救人
  258. virtual void StartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  259. virtual void StartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  260. virtual void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  261. virtual void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  262. // 攻击
  263. virtual void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  264. virtual void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  265. // 相当于逃跑
  266. virtual void OpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  267. virtual void OpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  268. // 开门
  269. virtual void CloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  270. virtual void CloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  271. // 关门
  272. virtual void SkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  273. virtual void SkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  274. // 窗户
  275. virtual void StartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  276. virtual void StartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  277. // 开闸门
  278. virtual void StartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  279. virtual void StartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  280. virtual void EndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) = 0;
  281. virtual void EndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0;
  282. // 结束所有动作
  283. };
  284. typedef class async_interface experimental_async_interface;
  285. virtual class async_interface* async()
  286. {
  287. return nullptr;
  288. }
  289. class async_interface* experimental_async()
  290. {
  291. return async();
  292. }
  293. private:
  294. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  295. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  296. virtual ::grpc::ClientReaderInterface<::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) = 0;
  297. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
  298. virtual ::grpc::ClientAsyncReaderInterface<::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) = 0;
  299. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0;
  300. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0;
  301. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) = 0;
  302. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) = 0;
  303. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) = 0;
  304. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) = 0;
  305. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncThrowPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) = 0;
  306. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncThrowPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) = 0;
  307. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq) = 0;
  308. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq) = 0;
  309. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0;
  310. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0;
  311. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  312. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  313. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartRescueMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  314. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartRescueMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  315. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartTreatMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  316. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartTreatMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  317. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) = 0;
  318. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) = 0;
  319. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  320. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  321. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncOpenDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  322. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncOpenDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  323. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncCloseDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  324. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncCloseDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  325. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncSkipWindowRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  326. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncSkipWindowRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  327. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartOpenGateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  328. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartOpenGateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  329. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncStartOpenChestRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  330. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncStartOpenChestRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  331. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* AsyncEndAllActionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  332. virtual ::grpc::ClientAsyncResponseReaderInterface<::protobuf::BoolRes>* PrepareAsyncEndAllActionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0;
  333. };
  334. class Stub final : public StubInterface
  335. {
  336. public:
  337. Stub(const std::shared_ptr<::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  338. ::grpc::Status TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  339. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  340. {
  341. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncTryConnectionRaw(context, request, cq));
  342. }
  343. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncTryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  344. {
  345. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncTryConnectionRaw(context, request, cq));
  346. }
  347. std::unique_ptr<::grpc::ClientReader<::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request)
  348. {
  349. return std::unique_ptr<::grpc::ClientReader<::protobuf::MessageToClient>>(AddPlayerRaw(context, request));
  350. }
  351. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag)
  352. {
  353. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag));
  354. }
  355. std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq)
  356. {
  357. return std::unique_ptr<::grpc::ClientAsyncReader<::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq));
  358. }
  359. ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) override;
  360. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  361. {
  362. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq));
  363. }
  364. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq)
  365. {
  366. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq));
  367. }
  368. ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::protobuf::BoolRes* response) override;
  369. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  370. {
  371. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq));
  372. }
  373. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  374. {
  375. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq));
  376. }
  377. ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::protobuf::BoolRes* response) override;
  378. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  379. {
  380. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq));
  381. }
  382. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  383. {
  384. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq));
  385. }
  386. ::grpc::Status ThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::protobuf::BoolRes* response) override;
  387. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  388. {
  389. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncThrowPropRaw(context, request, cq));
  390. }
  391. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq)
  392. {
  393. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncThrowPropRaw(context, request, cq));
  394. }
  395. ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::protobuf::BoolRes* response) override;
  396. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq)
  397. {
  398. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq));
  399. }
  400. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq)
  401. {
  402. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq));
  403. }
  404. ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) override;
  405. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  406. {
  407. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq));
  408. }
  409. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq)
  410. {
  411. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq));
  412. }
  413. ::grpc::Status StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  414. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  415. {
  416. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartLearningRaw(context, request, cq));
  417. }
  418. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  419. {
  420. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartLearningRaw(context, request, cq));
  421. }
  422. ::grpc::Status StartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  423. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  424. {
  425. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartRescueMateRaw(context, request, cq));
  426. }
  427. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  428. {
  429. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartRescueMateRaw(context, request, cq));
  430. }
  431. ::grpc::Status StartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  432. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  433. {
  434. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartTreatMateRaw(context, request, cq));
  435. }
  436. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  437. {
  438. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartTreatMateRaw(context, request, cq));
  439. }
  440. ::grpc::Status Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) override;
  441. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  442. {
  443. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncAttackRaw(context, request, cq));
  444. }
  445. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq)
  446. {
  447. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncAttackRaw(context, request, cq));
  448. }
  449. ::grpc::Status Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  450. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  451. {
  452. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncGraduateRaw(context, request, cq));
  453. }
  454. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncGraduate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  455. {
  456. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncGraduateRaw(context, request, cq));
  457. }
  458. ::grpc::Status OpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  459. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncOpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  460. {
  461. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncOpenDoorRaw(context, request, cq));
  462. }
  463. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncOpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  464. {
  465. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncOpenDoorRaw(context, request, cq));
  466. }
  467. ::grpc::Status CloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  468. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncCloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  469. {
  470. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncCloseDoorRaw(context, request, cq));
  471. }
  472. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncCloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  473. {
  474. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncCloseDoorRaw(context, request, cq));
  475. }
  476. ::grpc::Status SkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  477. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncSkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  478. {
  479. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncSkipWindowRaw(context, request, cq));
  480. }
  481. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncSkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  482. {
  483. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncSkipWindowRaw(context, request, cq));
  484. }
  485. ::grpc::Status StartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  486. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  487. {
  488. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartOpenGateRaw(context, request, cq));
  489. }
  490. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  491. {
  492. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartOpenGateRaw(context, request, cq));
  493. }
  494. ::grpc::Status StartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  495. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncStartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  496. {
  497. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncStartOpenChestRaw(context, request, cq));
  498. }
  499. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncStartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  500. {
  501. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncStartOpenChestRaw(context, request, cq));
  502. }
  503. ::grpc::Status EndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override;
  504. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> AsyncEndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  505. {
  506. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(AsyncEndAllActionRaw(context, request, cq));
  507. }
  508. std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>> PrepareAsyncEndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq)
  509. {
  510. return std::unique_ptr<::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>>(PrepareAsyncEndAllActionRaw(context, request, cq));
  511. }
  512. class async final :
  513. public StubInterface::async_interface
  514. {
  515. public:
  516. void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  517. void TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  518. void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor<::protobuf::MessageToClient>* reactor) override;
  519. void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function<void(::grpc::Status)>) override;
  520. void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  521. void PickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  522. void PickProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  523. void UseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  524. void UseProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  525. void ThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  526. void ThrowProp(::grpc::ClientContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  527. void UseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  528. void UseSkill(::grpc::ClientContext* context, const ::protobuf::SkillMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  529. void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  530. void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  531. void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  532. void StartLearning(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  533. void StartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  534. void StartRescueMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  535. void StartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  536. void StartTreatMate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  537. void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  538. void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  539. void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  540. void Graduate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  541. void OpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  542. void OpenDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  543. void CloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  544. void CloseDoor(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  545. void SkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  546. void SkipWindow(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  547. void StartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  548. void StartOpenGate(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  549. void StartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  550. void StartOpenChest(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  551. void EndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)>) override;
  552. void EndAllAction(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override;
  553. private:
  554. friend class Stub;
  555. explicit async(Stub* stub) :
  556. stub_(stub)
  557. {
  558. }
  559. Stub* stub()
  560. {
  561. return stub_;
  562. }
  563. Stub* stub_;
  564. };
  565. class async* async() override
  566. {
  567. return &async_stub_;
  568. }
  569. private:
  570. std::shared_ptr<::grpc::ChannelInterface> channel_;
  571. class async async_stub_
  572. {
  573. this
  574. };
  575. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  576. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  577. ::grpc::ClientReader<::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) override;
  578. ::grpc::ClientAsyncReader<::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) override;
  579. ::grpc::ClientAsyncReader<::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) override;
  580. ::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override;
  581. ::grpc::ClientAsyncResponseReader<::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override;
  582. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) override;
  583. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) override;
  584. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) override;
  585. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) override;
  586. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncThrowPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) override;
  587. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncThrowPropRaw(::grpc::ClientContext* context, const ::protobuf::PropMsg& request, ::grpc::CompletionQueue* cq) override;
  588. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq) override;
  589. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::SkillMsg& request, ::grpc::CompletionQueue* cq) override;
  590. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override;
  591. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override;
  592. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  593. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartLearningRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  594. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartRescueMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  595. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartRescueMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  596. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartTreatMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  597. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartTreatMateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  598. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) override;
  599. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) override;
  600. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  601. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncGraduateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  602. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncOpenDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  603. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncOpenDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  604. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncCloseDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  605. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncCloseDoorRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  606. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncSkipWindowRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  607. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncSkipWindowRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  608. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartOpenGateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  609. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartOpenGateRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  610. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncStartOpenChestRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  611. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncStartOpenChestRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  612. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AsyncEndAllActionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  613. ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* PrepareAsyncEndAllActionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override;
  614. const ::grpc::internal::RpcMethod rpcmethod_TryConnection_;
  615. const ::grpc::internal::RpcMethod rpcmethod_AddPlayer_;
  616. const ::grpc::internal::RpcMethod rpcmethod_Move_;
  617. const ::grpc::internal::RpcMethod rpcmethod_PickProp_;
  618. const ::grpc::internal::RpcMethod rpcmethod_UseProp_;
  619. const ::grpc::internal::RpcMethod rpcmethod_ThrowProp_;
  620. const ::grpc::internal::RpcMethod rpcmethod_UseSkill_;
  621. const ::grpc::internal::RpcMethod rpcmethod_SendMessage_;
  622. const ::grpc::internal::RpcMethod rpcmethod_StartLearning_;
  623. const ::grpc::internal::RpcMethod rpcmethod_StartRescueMate_;
  624. const ::grpc::internal::RpcMethod rpcmethod_StartTreatMate_;
  625. const ::grpc::internal::RpcMethod rpcmethod_Attack_;
  626. const ::grpc::internal::RpcMethod rpcmethod_Graduate_;
  627. const ::grpc::internal::RpcMethod rpcmethod_OpenDoor_;
  628. const ::grpc::internal::RpcMethod rpcmethod_CloseDoor_;
  629. const ::grpc::internal::RpcMethod rpcmethod_SkipWindow_;
  630. const ::grpc::internal::RpcMethod rpcmethod_StartOpenGate_;
  631. const ::grpc::internal::RpcMethod rpcmethod_StartOpenChest_;
  632. const ::grpc::internal::RpcMethod rpcmethod_EndAllAction_;
  633. };
  634. static std::unique_ptr<Stub> NewStub(const std::shared_ptr<::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  635. class Service : public ::grpc::Service
  636. {
  637. public:
  638. Service();
  639. virtual ~Service();
  640. virtual ::grpc::Status TryConnection(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  641. // 游戏开局调用一次的服务
  642. virtual ::grpc::Status AddPlayer(::grpc::ServerContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ServerWriter<::protobuf::MessageToClient>* writer);
  643. // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。
  644. // 游戏过程中玩家执行操作的服务
  645. virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response);
  646. virtual ::grpc::Status PickProp(::grpc::ServerContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response);
  647. virtual ::grpc::Status UseProp(::grpc::ServerContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response);
  648. virtual ::grpc::Status ThrowProp(::grpc::ServerContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response);
  649. virtual ::grpc::Status UseSkill(::grpc::ServerContext* context, const ::protobuf::SkillMsg* request, ::protobuf::BoolRes* response);
  650. virtual ::grpc::Status SendMessage(::grpc::ServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response);
  651. // rpc GetMessage (IDMsg) returns (stream MsgRes);
  652. virtual ::grpc::Status StartLearning(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  653. // 开始修理机器
  654. virtual ::grpc::Status StartRescueMate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  655. // 开始救人
  656. virtual ::grpc::Status StartTreatMate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  657. virtual ::grpc::Status Attack(::grpc::ServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response);
  658. // 攻击
  659. virtual ::grpc::Status Graduate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  660. // 相当于逃跑
  661. virtual ::grpc::Status OpenDoor(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  662. // 开门
  663. virtual ::grpc::Status CloseDoor(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  664. // 关门
  665. virtual ::grpc::Status SkipWindow(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  666. // 窗户
  667. virtual ::grpc::Status StartOpenGate(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  668. // 开闸门
  669. virtual ::grpc::Status StartOpenChest(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  670. virtual ::grpc::Status EndAllAction(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response);
  671. // 结束所有动作
  672. };
  673. template<class BaseClass>
  674. class WithAsyncMethod_TryConnection : public BaseClass
  675. {
  676. private:
  677. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  678. {
  679. }
  680. public:
  681. WithAsyncMethod_TryConnection()
  682. {
  683. ::grpc::Service::MarkMethodAsync(0);
  684. }
  685. ~WithAsyncMethod_TryConnection() override
  686. {
  687. BaseClassMustBeDerivedFromService(this);
  688. }
  689. // disable synchronous version of this method
  690. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  691. {
  692. abort();
  693. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  694. }
  695. void RequestTryConnection(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  696. {
  697. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  698. }
  699. };
  700. template<class BaseClass>
  701. class WithAsyncMethod_AddPlayer : public BaseClass
  702. {
  703. private:
  704. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  705. {
  706. }
  707. public:
  708. WithAsyncMethod_AddPlayer()
  709. {
  710. ::grpc::Service::MarkMethodAsync(1);
  711. }
  712. ~WithAsyncMethod_AddPlayer() override
  713. {
  714. BaseClassMustBeDerivedFromService(this);
  715. }
  716. // disable synchronous version of this method
  717. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  718. {
  719. abort();
  720. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  721. }
  722. void RequestAddPlayer(::grpc::ServerContext* context, ::protobuf::PlayerMsg* request, ::grpc::ServerAsyncWriter<::protobuf::MessageToClient>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  723. {
  724. ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
  725. }
  726. };
  727. template<class BaseClass>
  728. class WithAsyncMethod_Move : public BaseClass
  729. {
  730. private:
  731. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  732. {
  733. }
  734. public:
  735. WithAsyncMethod_Move()
  736. {
  737. ::grpc::Service::MarkMethodAsync(2);
  738. }
  739. ~WithAsyncMethod_Move() override
  740. {
  741. BaseClassMustBeDerivedFromService(this);
  742. }
  743. // disable synchronous version of this method
  744. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  745. {
  746. abort();
  747. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  748. }
  749. void RequestMove(::grpc::ServerContext* context, ::protobuf::MoveMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::MoveRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  750. {
  751. ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
  752. }
  753. };
  754. template<class BaseClass>
  755. class WithAsyncMethod_PickProp : public BaseClass
  756. {
  757. private:
  758. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  759. {
  760. }
  761. public:
  762. WithAsyncMethod_PickProp()
  763. {
  764. ::grpc::Service::MarkMethodAsync(3);
  765. }
  766. ~WithAsyncMethod_PickProp() override
  767. {
  768. BaseClassMustBeDerivedFromService(this);
  769. }
  770. // disable synchronous version of this method
  771. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  772. {
  773. abort();
  774. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  775. }
  776. void RequestPickProp(::grpc::ServerContext* context, ::protobuf::PropMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  777. {
  778. ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
  779. }
  780. };
  781. template<class BaseClass>
  782. class WithAsyncMethod_UseProp : public BaseClass
  783. {
  784. private:
  785. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  786. {
  787. }
  788. public:
  789. WithAsyncMethod_UseProp()
  790. {
  791. ::grpc::Service::MarkMethodAsync(4);
  792. }
  793. ~WithAsyncMethod_UseProp() override
  794. {
  795. BaseClassMustBeDerivedFromService(this);
  796. }
  797. // disable synchronous version of this method
  798. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  799. {
  800. abort();
  801. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  802. }
  803. void RequestUseProp(::grpc::ServerContext* context, ::protobuf::PropMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  804. {
  805. ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
  806. }
  807. };
  808. template<class BaseClass>
  809. class WithAsyncMethod_ThrowProp : public BaseClass
  810. {
  811. private:
  812. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  813. {
  814. }
  815. public:
  816. WithAsyncMethod_ThrowProp()
  817. {
  818. ::grpc::Service::MarkMethodAsync(5);
  819. }
  820. ~WithAsyncMethod_ThrowProp() override
  821. {
  822. BaseClassMustBeDerivedFromService(this);
  823. }
  824. // disable synchronous version of this method
  825. ::grpc::Status ThrowProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  826. {
  827. abort();
  828. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  829. }
  830. void RequestThrowProp(::grpc::ServerContext* context, ::protobuf::PropMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  831. {
  832. ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
  833. }
  834. };
  835. template<class BaseClass>
  836. class WithAsyncMethod_UseSkill : public BaseClass
  837. {
  838. private:
  839. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  840. {
  841. }
  842. public:
  843. WithAsyncMethod_UseSkill()
  844. {
  845. ::grpc::Service::MarkMethodAsync(6);
  846. }
  847. ~WithAsyncMethod_UseSkill() override
  848. {
  849. BaseClassMustBeDerivedFromService(this);
  850. }
  851. // disable synchronous version of this method
  852. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  853. {
  854. abort();
  855. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  856. }
  857. void RequestUseSkill(::grpc::ServerContext* context, ::protobuf::SkillMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  858. {
  859. ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
  860. }
  861. };
  862. template<class BaseClass>
  863. class WithAsyncMethod_SendMessage : public BaseClass
  864. {
  865. private:
  866. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  867. {
  868. }
  869. public:
  870. WithAsyncMethod_SendMessage()
  871. {
  872. ::grpc::Service::MarkMethodAsync(7);
  873. }
  874. ~WithAsyncMethod_SendMessage() override
  875. {
  876. BaseClassMustBeDerivedFromService(this);
  877. }
  878. // disable synchronous version of this method
  879. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  880. {
  881. abort();
  882. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  883. }
  884. void RequestSendMessage(::grpc::ServerContext* context, ::protobuf::SendMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  885. {
  886. ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag);
  887. }
  888. };
  889. template<class BaseClass>
  890. class WithAsyncMethod_StartLearning : public BaseClass
  891. {
  892. private:
  893. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  894. {
  895. }
  896. public:
  897. WithAsyncMethod_StartLearning()
  898. {
  899. ::grpc::Service::MarkMethodAsync(8);
  900. }
  901. ~WithAsyncMethod_StartLearning() override
  902. {
  903. BaseClassMustBeDerivedFromService(this);
  904. }
  905. // disable synchronous version of this method
  906. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  907. {
  908. abort();
  909. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  910. }
  911. void RequestStartLearning(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  912. {
  913. ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
  914. }
  915. };
  916. template<class BaseClass>
  917. class WithAsyncMethod_StartRescueMate : public BaseClass
  918. {
  919. private:
  920. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  921. {
  922. }
  923. public:
  924. WithAsyncMethod_StartRescueMate()
  925. {
  926. ::grpc::Service::MarkMethodAsync(9);
  927. }
  928. ~WithAsyncMethod_StartRescueMate() override
  929. {
  930. BaseClassMustBeDerivedFromService(this);
  931. }
  932. // disable synchronous version of this method
  933. ::grpc::Status StartRescueMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  934. {
  935. abort();
  936. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  937. }
  938. void RequestStartRescueMate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  939. {
  940. ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag);
  941. }
  942. };
  943. template<class BaseClass>
  944. class WithAsyncMethod_StartTreatMate : public BaseClass
  945. {
  946. private:
  947. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  948. {
  949. }
  950. public:
  951. WithAsyncMethod_StartTreatMate()
  952. {
  953. ::grpc::Service::MarkMethodAsync(10);
  954. }
  955. ~WithAsyncMethod_StartTreatMate() override
  956. {
  957. BaseClassMustBeDerivedFromService(this);
  958. }
  959. // disable synchronous version of this method
  960. ::grpc::Status StartTreatMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  961. {
  962. abort();
  963. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  964. }
  965. void RequestStartTreatMate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  966. {
  967. ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag);
  968. }
  969. };
  970. template<class BaseClass>
  971. class WithAsyncMethod_Attack : public BaseClass
  972. {
  973. private:
  974. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  975. {
  976. }
  977. public:
  978. WithAsyncMethod_Attack()
  979. {
  980. ::grpc::Service::MarkMethodAsync(11);
  981. }
  982. ~WithAsyncMethod_Attack() override
  983. {
  984. BaseClassMustBeDerivedFromService(this);
  985. }
  986. // disable synchronous version of this method
  987. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  988. {
  989. abort();
  990. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  991. }
  992. void RequestAttack(::grpc::ServerContext* context, ::protobuf::AttackMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  993. {
  994. ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
  995. }
  996. };
  997. template<class BaseClass>
  998. class WithAsyncMethod_Graduate : public BaseClass
  999. {
  1000. private:
  1001. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1002. {
  1003. }
  1004. public:
  1005. WithAsyncMethod_Graduate()
  1006. {
  1007. ::grpc::Service::MarkMethodAsync(12);
  1008. }
  1009. ~WithAsyncMethod_Graduate() override
  1010. {
  1011. BaseClassMustBeDerivedFromService(this);
  1012. }
  1013. // disable synchronous version of this method
  1014. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1015. {
  1016. abort();
  1017. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1018. }
  1019. void RequestGraduate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1020. {
  1021. ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
  1022. }
  1023. };
  1024. template<class BaseClass>
  1025. class WithAsyncMethod_OpenDoor : public BaseClass
  1026. {
  1027. private:
  1028. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1029. {
  1030. }
  1031. public:
  1032. WithAsyncMethod_OpenDoor()
  1033. {
  1034. ::grpc::Service::MarkMethodAsync(13);
  1035. }
  1036. ~WithAsyncMethod_OpenDoor() override
  1037. {
  1038. BaseClassMustBeDerivedFromService(this);
  1039. }
  1040. // disable synchronous version of this method
  1041. ::grpc::Status OpenDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1042. {
  1043. abort();
  1044. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1045. }
  1046. void RequestOpenDoor(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1047. {
  1048. ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag);
  1049. }
  1050. };
  1051. template<class BaseClass>
  1052. class WithAsyncMethod_CloseDoor : public BaseClass
  1053. {
  1054. private:
  1055. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1056. {
  1057. }
  1058. public:
  1059. WithAsyncMethod_CloseDoor()
  1060. {
  1061. ::grpc::Service::MarkMethodAsync(14);
  1062. }
  1063. ~WithAsyncMethod_CloseDoor() override
  1064. {
  1065. BaseClassMustBeDerivedFromService(this);
  1066. }
  1067. // disable synchronous version of this method
  1068. ::grpc::Status CloseDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1069. {
  1070. abort();
  1071. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1072. }
  1073. void RequestCloseDoor(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1074. {
  1075. ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag);
  1076. }
  1077. };
  1078. template<class BaseClass>
  1079. class WithAsyncMethod_SkipWindow : public BaseClass
  1080. {
  1081. private:
  1082. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1083. {
  1084. }
  1085. public:
  1086. WithAsyncMethod_SkipWindow()
  1087. {
  1088. ::grpc::Service::MarkMethodAsync(15);
  1089. }
  1090. ~WithAsyncMethod_SkipWindow() override
  1091. {
  1092. BaseClassMustBeDerivedFromService(this);
  1093. }
  1094. // disable synchronous version of this method
  1095. ::grpc::Status SkipWindow(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1096. {
  1097. abort();
  1098. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1099. }
  1100. void RequestSkipWindow(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1101. {
  1102. ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag);
  1103. }
  1104. };
  1105. template<class BaseClass>
  1106. class WithAsyncMethod_StartOpenGate : public BaseClass
  1107. {
  1108. private:
  1109. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1110. {
  1111. }
  1112. public:
  1113. WithAsyncMethod_StartOpenGate()
  1114. {
  1115. ::grpc::Service::MarkMethodAsync(16);
  1116. }
  1117. ~WithAsyncMethod_StartOpenGate() override
  1118. {
  1119. BaseClassMustBeDerivedFromService(this);
  1120. }
  1121. // disable synchronous version of this method
  1122. ::grpc::Status StartOpenGate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1123. {
  1124. abort();
  1125. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1126. }
  1127. void RequestStartOpenGate(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1128. {
  1129. ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag);
  1130. }
  1131. };
  1132. template<class BaseClass>
  1133. class WithAsyncMethod_StartOpenChest : public BaseClass
  1134. {
  1135. private:
  1136. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1137. {
  1138. }
  1139. public:
  1140. WithAsyncMethod_StartOpenChest()
  1141. {
  1142. ::grpc::Service::MarkMethodAsync(17);
  1143. }
  1144. ~WithAsyncMethod_StartOpenChest() override
  1145. {
  1146. BaseClassMustBeDerivedFromService(this);
  1147. }
  1148. // disable synchronous version of this method
  1149. ::grpc::Status StartOpenChest(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1150. {
  1151. abort();
  1152. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1153. }
  1154. void RequestStartOpenChest(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1155. {
  1156. ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag);
  1157. }
  1158. };
  1159. template<class BaseClass>
  1160. class WithAsyncMethod_EndAllAction : public BaseClass
  1161. {
  1162. private:
  1163. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1164. {
  1165. }
  1166. public:
  1167. WithAsyncMethod_EndAllAction()
  1168. {
  1169. ::grpc::Service::MarkMethodAsync(18);
  1170. }
  1171. ~WithAsyncMethod_EndAllAction() override
  1172. {
  1173. BaseClassMustBeDerivedFromService(this);
  1174. }
  1175. // disable synchronous version of this method
  1176. ::grpc::Status EndAllAction(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1177. {
  1178. abort();
  1179. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1180. }
  1181. void RequestEndAllAction(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter<::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  1182. {
  1183. ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag);
  1184. }
  1185. };
  1186. typedef WithAsyncMethod_TryConnection<WithAsyncMethod_AddPlayer<WithAsyncMethod_Move<WithAsyncMethod_PickProp<WithAsyncMethod_UseProp<WithAsyncMethod_ThrowProp<WithAsyncMethod_UseSkill<WithAsyncMethod_SendMessage<WithAsyncMethod_StartLearning<WithAsyncMethod_StartRescueMate<WithAsyncMethod_StartTreatMate<WithAsyncMethod_Attack<WithAsyncMethod_Graduate<WithAsyncMethod_OpenDoor<WithAsyncMethod_CloseDoor<WithAsyncMethod_SkipWindow<WithAsyncMethod_StartOpenGate<WithAsyncMethod_StartOpenChest<WithAsyncMethod_EndAllAction<Service>>>>>>>>>>>>>>>>>>> AsyncService;
  1187. template<class BaseClass>
  1188. class WithCallbackMethod_TryConnection : public BaseClass
  1189. {
  1190. private:
  1191. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1192. {
  1193. }
  1194. public:
  1195. WithCallbackMethod_TryConnection()
  1196. {
  1197. ::grpc::Service::MarkMethodCallback(0, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1198. { return this->TryConnection(context, request, response); }));
  1199. }
  1200. void SetMessageAllocatorFor_TryConnection(
  1201. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1202. )
  1203. {
  1204. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
  1205. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1206. ->SetMessageAllocator(allocator);
  1207. }
  1208. ~WithCallbackMethod_TryConnection() override
  1209. {
  1210. BaseClassMustBeDerivedFromService(this);
  1211. }
  1212. // disable synchronous version of this method
  1213. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1214. {
  1215. abort();
  1216. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1217. }
  1218. virtual ::grpc::ServerUnaryReactor* TryConnection(
  1219. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1220. )
  1221. {
  1222. return nullptr;
  1223. }
  1224. };
  1225. template<class BaseClass>
  1226. class WithCallbackMethod_AddPlayer : public BaseClass
  1227. {
  1228. private:
  1229. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1230. {
  1231. }
  1232. public:
  1233. WithCallbackMethod_AddPlayer()
  1234. {
  1235. ::grpc::Service::MarkMethodCallback(1, new ::grpc::internal::CallbackServerStreamingHandler<::protobuf::PlayerMsg, ::protobuf::MessageToClient>([this](::grpc::CallbackServerContext* context, const ::protobuf::PlayerMsg* request)
  1236. { return this->AddPlayer(context, request); }));
  1237. }
  1238. ~WithCallbackMethod_AddPlayer() override
  1239. {
  1240. BaseClassMustBeDerivedFromService(this);
  1241. }
  1242. // disable synchronous version of this method
  1243. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  1244. {
  1245. abort();
  1246. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1247. }
  1248. virtual ::grpc::ServerWriteReactor<::protobuf::MessageToClient>* AddPlayer(
  1249. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/
  1250. )
  1251. {
  1252. return nullptr;
  1253. }
  1254. };
  1255. template<class BaseClass>
  1256. class WithCallbackMethod_Move : public BaseClass
  1257. {
  1258. private:
  1259. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1260. {
  1261. }
  1262. public:
  1263. WithCallbackMethod_Move()
  1264. {
  1265. ::grpc::Service::MarkMethodCallback(2, new ::grpc::internal::CallbackUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response)
  1266. { return this->Move(context, request, response); }));
  1267. }
  1268. void SetMessageAllocatorFor_Move(
  1269. ::grpc::MessageAllocator<::protobuf::MoveMsg, ::protobuf::MoveRes>* allocator
  1270. )
  1271. {
  1272. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
  1273. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>*>(handler)
  1274. ->SetMessageAllocator(allocator);
  1275. }
  1276. ~WithCallbackMethod_Move() override
  1277. {
  1278. BaseClassMustBeDerivedFromService(this);
  1279. }
  1280. // disable synchronous version of this method
  1281. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  1282. {
  1283. abort();
  1284. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1285. }
  1286. virtual ::grpc::ServerUnaryReactor* Move(
  1287. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/
  1288. )
  1289. {
  1290. return nullptr;
  1291. }
  1292. };
  1293. template<class BaseClass>
  1294. class WithCallbackMethod_PickProp : public BaseClass
  1295. {
  1296. private:
  1297. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1298. {
  1299. }
  1300. public:
  1301. WithCallbackMethod_PickProp()
  1302. {
  1303. ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response)
  1304. { return this->PickProp(context, request, response); }));
  1305. }
  1306. void SetMessageAllocatorFor_PickProp(
  1307. ::grpc::MessageAllocator<::protobuf::PropMsg, ::protobuf::BoolRes>* allocator
  1308. )
  1309. {
  1310. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3);
  1311. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>*>(handler)
  1312. ->SetMessageAllocator(allocator);
  1313. }
  1314. ~WithCallbackMethod_PickProp() override
  1315. {
  1316. BaseClassMustBeDerivedFromService(this);
  1317. }
  1318. // disable synchronous version of this method
  1319. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1320. {
  1321. abort();
  1322. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1323. }
  1324. virtual ::grpc::ServerUnaryReactor* PickProp(
  1325. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1326. )
  1327. {
  1328. return nullptr;
  1329. }
  1330. };
  1331. template<class BaseClass>
  1332. class WithCallbackMethod_UseProp : public BaseClass
  1333. {
  1334. private:
  1335. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1336. {
  1337. }
  1338. public:
  1339. WithCallbackMethod_UseProp()
  1340. {
  1341. ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response)
  1342. { return this->UseProp(context, request, response); }));
  1343. }
  1344. void SetMessageAllocatorFor_UseProp(
  1345. ::grpc::MessageAllocator<::protobuf::PropMsg, ::protobuf::BoolRes>* allocator
  1346. )
  1347. {
  1348. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4);
  1349. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>*>(handler)
  1350. ->SetMessageAllocator(allocator);
  1351. }
  1352. ~WithCallbackMethod_UseProp() override
  1353. {
  1354. BaseClassMustBeDerivedFromService(this);
  1355. }
  1356. // disable synchronous version of this method
  1357. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1358. {
  1359. abort();
  1360. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1361. }
  1362. virtual ::grpc::ServerUnaryReactor* UseProp(
  1363. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1364. )
  1365. {
  1366. return nullptr;
  1367. }
  1368. };
  1369. template<class BaseClass>
  1370. class WithCallbackMethod_ThrowProp : public BaseClass
  1371. {
  1372. private:
  1373. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1374. {
  1375. }
  1376. public:
  1377. WithCallbackMethod_ThrowProp()
  1378. {
  1379. ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::PropMsg* request, ::protobuf::BoolRes* response)
  1380. { return this->ThrowProp(context, request, response); }));
  1381. }
  1382. void SetMessageAllocatorFor_ThrowProp(
  1383. ::grpc::MessageAllocator<::protobuf::PropMsg, ::protobuf::BoolRes>* allocator
  1384. )
  1385. {
  1386. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5);
  1387. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>*>(handler)
  1388. ->SetMessageAllocator(allocator);
  1389. }
  1390. ~WithCallbackMethod_ThrowProp() override
  1391. {
  1392. BaseClassMustBeDerivedFromService(this);
  1393. }
  1394. // disable synchronous version of this method
  1395. ::grpc::Status ThrowProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1396. {
  1397. abort();
  1398. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1399. }
  1400. virtual ::grpc::ServerUnaryReactor* ThrowProp(
  1401. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1402. )
  1403. {
  1404. return nullptr;
  1405. }
  1406. };
  1407. template<class BaseClass>
  1408. class WithCallbackMethod_UseSkill : public BaseClass
  1409. {
  1410. private:
  1411. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1412. {
  1413. }
  1414. public:
  1415. WithCallbackMethod_UseSkill()
  1416. {
  1417. ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler<::protobuf::SkillMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::SkillMsg* request, ::protobuf::BoolRes* response)
  1418. { return this->UseSkill(context, request, response); }));
  1419. }
  1420. void SetMessageAllocatorFor_UseSkill(
  1421. ::grpc::MessageAllocator<::protobuf::SkillMsg, ::protobuf::BoolRes>* allocator
  1422. )
  1423. {
  1424. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6);
  1425. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::SkillMsg, ::protobuf::BoolRes>*>(handler)
  1426. ->SetMessageAllocator(allocator);
  1427. }
  1428. ~WithCallbackMethod_UseSkill() override
  1429. {
  1430. BaseClassMustBeDerivedFromService(this);
  1431. }
  1432. // disable synchronous version of this method
  1433. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1434. {
  1435. abort();
  1436. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1437. }
  1438. virtual ::grpc::ServerUnaryReactor* UseSkill(
  1439. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1440. )
  1441. {
  1442. return nullptr;
  1443. }
  1444. };
  1445. template<class BaseClass>
  1446. class WithCallbackMethod_SendMessage : public BaseClass
  1447. {
  1448. private:
  1449. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1450. {
  1451. }
  1452. public:
  1453. WithCallbackMethod_SendMessage()
  1454. {
  1455. ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response)
  1456. { return this->SendMessage(context, request, response); }));
  1457. }
  1458. void SetMessageAllocatorFor_SendMessage(
  1459. ::grpc::MessageAllocator<::protobuf::SendMsg, ::protobuf::BoolRes>* allocator
  1460. )
  1461. {
  1462. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7);
  1463. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>*>(handler)
  1464. ->SetMessageAllocator(allocator);
  1465. }
  1466. ~WithCallbackMethod_SendMessage() override
  1467. {
  1468. BaseClassMustBeDerivedFromService(this);
  1469. }
  1470. // disable synchronous version of this method
  1471. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1472. {
  1473. abort();
  1474. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1475. }
  1476. virtual ::grpc::ServerUnaryReactor* SendMessage(
  1477. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1478. )
  1479. {
  1480. return nullptr;
  1481. }
  1482. };
  1483. template<class BaseClass>
  1484. class WithCallbackMethod_StartLearning : public BaseClass
  1485. {
  1486. private:
  1487. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1488. {
  1489. }
  1490. public:
  1491. WithCallbackMethod_StartLearning()
  1492. {
  1493. ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1494. { return this->StartLearning(context, request, response); }));
  1495. }
  1496. void SetMessageAllocatorFor_StartLearning(
  1497. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1498. )
  1499. {
  1500. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8);
  1501. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1502. ->SetMessageAllocator(allocator);
  1503. }
  1504. ~WithCallbackMethod_StartLearning() override
  1505. {
  1506. BaseClassMustBeDerivedFromService(this);
  1507. }
  1508. // disable synchronous version of this method
  1509. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1510. {
  1511. abort();
  1512. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1513. }
  1514. virtual ::grpc::ServerUnaryReactor* StartLearning(
  1515. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1516. )
  1517. {
  1518. return nullptr;
  1519. }
  1520. };
  1521. template<class BaseClass>
  1522. class WithCallbackMethod_StartRescueMate : public BaseClass
  1523. {
  1524. private:
  1525. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1526. {
  1527. }
  1528. public:
  1529. WithCallbackMethod_StartRescueMate()
  1530. {
  1531. ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1532. { return this->StartRescueMate(context, request, response); }));
  1533. }
  1534. void SetMessageAllocatorFor_StartRescueMate(
  1535. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1536. )
  1537. {
  1538. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9);
  1539. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1540. ->SetMessageAllocator(allocator);
  1541. }
  1542. ~WithCallbackMethod_StartRescueMate() override
  1543. {
  1544. BaseClassMustBeDerivedFromService(this);
  1545. }
  1546. // disable synchronous version of this method
  1547. ::grpc::Status StartRescueMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1548. {
  1549. abort();
  1550. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1551. }
  1552. virtual ::grpc::ServerUnaryReactor* StartRescueMate(
  1553. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1554. )
  1555. {
  1556. return nullptr;
  1557. }
  1558. };
  1559. template<class BaseClass>
  1560. class WithCallbackMethod_StartTreatMate : public BaseClass
  1561. {
  1562. private:
  1563. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1564. {
  1565. }
  1566. public:
  1567. WithCallbackMethod_StartTreatMate()
  1568. {
  1569. ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1570. { return this->StartTreatMate(context, request, response); }));
  1571. }
  1572. void SetMessageAllocatorFor_StartTreatMate(
  1573. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1574. )
  1575. {
  1576. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10);
  1577. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1578. ->SetMessageAllocator(allocator);
  1579. }
  1580. ~WithCallbackMethod_StartTreatMate() override
  1581. {
  1582. BaseClassMustBeDerivedFromService(this);
  1583. }
  1584. // disable synchronous version of this method
  1585. ::grpc::Status StartTreatMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1586. {
  1587. abort();
  1588. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1589. }
  1590. virtual ::grpc::ServerUnaryReactor* StartTreatMate(
  1591. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1592. )
  1593. {
  1594. return nullptr;
  1595. }
  1596. };
  1597. template<class BaseClass>
  1598. class WithCallbackMethod_Attack : public BaseClass
  1599. {
  1600. private:
  1601. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1602. {
  1603. }
  1604. public:
  1605. WithCallbackMethod_Attack()
  1606. {
  1607. ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler<::protobuf::AttackMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response)
  1608. { return this->Attack(context, request, response); }));
  1609. }
  1610. void SetMessageAllocatorFor_Attack(
  1611. ::grpc::MessageAllocator<::protobuf::AttackMsg, ::protobuf::BoolRes>* allocator
  1612. )
  1613. {
  1614. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11);
  1615. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::AttackMsg, ::protobuf::BoolRes>*>(handler)
  1616. ->SetMessageAllocator(allocator);
  1617. }
  1618. ~WithCallbackMethod_Attack() override
  1619. {
  1620. BaseClassMustBeDerivedFromService(this);
  1621. }
  1622. // disable synchronous version of this method
  1623. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1624. {
  1625. abort();
  1626. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1627. }
  1628. virtual ::grpc::ServerUnaryReactor* Attack(
  1629. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1630. )
  1631. {
  1632. return nullptr;
  1633. }
  1634. };
  1635. template<class BaseClass>
  1636. class WithCallbackMethod_Graduate : public BaseClass
  1637. {
  1638. private:
  1639. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1640. {
  1641. }
  1642. public:
  1643. WithCallbackMethod_Graduate()
  1644. {
  1645. ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1646. { return this->Graduate(context, request, response); }));
  1647. }
  1648. void SetMessageAllocatorFor_Graduate(
  1649. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1650. )
  1651. {
  1652. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12);
  1653. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1654. ->SetMessageAllocator(allocator);
  1655. }
  1656. ~WithCallbackMethod_Graduate() override
  1657. {
  1658. BaseClassMustBeDerivedFromService(this);
  1659. }
  1660. // disable synchronous version of this method
  1661. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1662. {
  1663. abort();
  1664. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1665. }
  1666. virtual ::grpc::ServerUnaryReactor* Graduate(
  1667. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1668. )
  1669. {
  1670. return nullptr;
  1671. }
  1672. };
  1673. template<class BaseClass>
  1674. class WithCallbackMethod_OpenDoor : public BaseClass
  1675. {
  1676. private:
  1677. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1678. {
  1679. }
  1680. public:
  1681. WithCallbackMethod_OpenDoor()
  1682. {
  1683. ::grpc::Service::MarkMethodCallback(13, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1684. { return this->OpenDoor(context, request, response); }));
  1685. }
  1686. void SetMessageAllocatorFor_OpenDoor(
  1687. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1688. )
  1689. {
  1690. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13);
  1691. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1692. ->SetMessageAllocator(allocator);
  1693. }
  1694. ~WithCallbackMethod_OpenDoor() override
  1695. {
  1696. BaseClassMustBeDerivedFromService(this);
  1697. }
  1698. // disable synchronous version of this method
  1699. ::grpc::Status OpenDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1700. {
  1701. abort();
  1702. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1703. }
  1704. virtual ::grpc::ServerUnaryReactor* OpenDoor(
  1705. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1706. )
  1707. {
  1708. return nullptr;
  1709. }
  1710. };
  1711. template<class BaseClass>
  1712. class WithCallbackMethod_CloseDoor : public BaseClass
  1713. {
  1714. private:
  1715. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1716. {
  1717. }
  1718. public:
  1719. WithCallbackMethod_CloseDoor()
  1720. {
  1721. ::grpc::Service::MarkMethodCallback(14, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1722. { return this->CloseDoor(context, request, response); }));
  1723. }
  1724. void SetMessageAllocatorFor_CloseDoor(
  1725. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1726. )
  1727. {
  1728. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14);
  1729. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1730. ->SetMessageAllocator(allocator);
  1731. }
  1732. ~WithCallbackMethod_CloseDoor() override
  1733. {
  1734. BaseClassMustBeDerivedFromService(this);
  1735. }
  1736. // disable synchronous version of this method
  1737. ::grpc::Status CloseDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1738. {
  1739. abort();
  1740. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1741. }
  1742. virtual ::grpc::ServerUnaryReactor* CloseDoor(
  1743. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1744. )
  1745. {
  1746. return nullptr;
  1747. }
  1748. };
  1749. template<class BaseClass>
  1750. class WithCallbackMethod_SkipWindow : public BaseClass
  1751. {
  1752. private:
  1753. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1754. {
  1755. }
  1756. public:
  1757. WithCallbackMethod_SkipWindow()
  1758. {
  1759. ::grpc::Service::MarkMethodCallback(15, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1760. { return this->SkipWindow(context, request, response); }));
  1761. }
  1762. void SetMessageAllocatorFor_SkipWindow(
  1763. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1764. )
  1765. {
  1766. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15);
  1767. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1768. ->SetMessageAllocator(allocator);
  1769. }
  1770. ~WithCallbackMethod_SkipWindow() override
  1771. {
  1772. BaseClassMustBeDerivedFromService(this);
  1773. }
  1774. // disable synchronous version of this method
  1775. ::grpc::Status SkipWindow(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1776. {
  1777. abort();
  1778. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1779. }
  1780. virtual ::grpc::ServerUnaryReactor* SkipWindow(
  1781. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1782. )
  1783. {
  1784. return nullptr;
  1785. }
  1786. };
  1787. template<class BaseClass>
  1788. class WithCallbackMethod_StartOpenGate : public BaseClass
  1789. {
  1790. private:
  1791. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1792. {
  1793. }
  1794. public:
  1795. WithCallbackMethod_StartOpenGate()
  1796. {
  1797. ::grpc::Service::MarkMethodCallback(16, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1798. { return this->StartOpenGate(context, request, response); }));
  1799. }
  1800. void SetMessageAllocatorFor_StartOpenGate(
  1801. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1802. )
  1803. {
  1804. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16);
  1805. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1806. ->SetMessageAllocator(allocator);
  1807. }
  1808. ~WithCallbackMethod_StartOpenGate() override
  1809. {
  1810. BaseClassMustBeDerivedFromService(this);
  1811. }
  1812. // disable synchronous version of this method
  1813. ::grpc::Status StartOpenGate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1814. {
  1815. abort();
  1816. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1817. }
  1818. virtual ::grpc::ServerUnaryReactor* StartOpenGate(
  1819. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1820. )
  1821. {
  1822. return nullptr;
  1823. }
  1824. };
  1825. template<class BaseClass>
  1826. class WithCallbackMethod_StartOpenChest : public BaseClass
  1827. {
  1828. private:
  1829. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1830. {
  1831. }
  1832. public:
  1833. WithCallbackMethod_StartOpenChest()
  1834. {
  1835. ::grpc::Service::MarkMethodCallback(17, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1836. { return this->StartOpenChest(context, request, response); }));
  1837. }
  1838. void SetMessageAllocatorFor_StartOpenChest(
  1839. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1840. )
  1841. {
  1842. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17);
  1843. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1844. ->SetMessageAllocator(allocator);
  1845. }
  1846. ~WithCallbackMethod_StartOpenChest() override
  1847. {
  1848. BaseClassMustBeDerivedFromService(this);
  1849. }
  1850. // disable synchronous version of this method
  1851. ::grpc::Status StartOpenChest(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1852. {
  1853. abort();
  1854. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1855. }
  1856. virtual ::grpc::ServerUnaryReactor* StartOpenChest(
  1857. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1858. )
  1859. {
  1860. return nullptr;
  1861. }
  1862. };
  1863. template<class BaseClass>
  1864. class WithCallbackMethod_EndAllAction : public BaseClass
  1865. {
  1866. private:
  1867. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1868. {
  1869. }
  1870. public:
  1871. WithCallbackMethod_EndAllAction()
  1872. {
  1873. ::grpc::Service::MarkMethodCallback(18, new ::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response)
  1874. { return this->EndAllAction(context, request, response); }));
  1875. }
  1876. void SetMessageAllocatorFor_EndAllAction(
  1877. ::grpc::MessageAllocator<::protobuf::IDMsg, ::protobuf::BoolRes>* allocator
  1878. )
  1879. {
  1880. ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18);
  1881. static_cast<::grpc::internal::CallbackUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler)
  1882. ->SetMessageAllocator(allocator);
  1883. }
  1884. ~WithCallbackMethod_EndAllAction() override
  1885. {
  1886. BaseClassMustBeDerivedFromService(this);
  1887. }
  1888. // disable synchronous version of this method
  1889. ::grpc::Status EndAllAction(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1890. {
  1891. abort();
  1892. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1893. }
  1894. virtual ::grpc::ServerUnaryReactor* EndAllAction(
  1895. ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/
  1896. )
  1897. {
  1898. return nullptr;
  1899. }
  1900. };
  1901. typedef WithCallbackMethod_TryConnection<WithCallbackMethod_AddPlayer<WithCallbackMethod_Move<WithCallbackMethod_PickProp<WithCallbackMethod_UseProp<WithCallbackMethod_ThrowProp<WithCallbackMethod_UseSkill<WithCallbackMethod_SendMessage<WithCallbackMethod_StartLearning<WithCallbackMethod_StartRescueMate<WithCallbackMethod_StartTreatMate<WithCallbackMethod_Attack<WithCallbackMethod_Graduate<WithCallbackMethod_OpenDoor<WithCallbackMethod_CloseDoor<WithCallbackMethod_SkipWindow<WithCallbackMethod_StartOpenGate<WithCallbackMethod_StartOpenChest<WithCallbackMethod_EndAllAction<Service>>>>>>>>>>>>>>>>>>> CallbackService;
  1902. typedef CallbackService ExperimentalCallbackService;
  1903. template<class BaseClass>
  1904. class WithGenericMethod_TryConnection : public BaseClass
  1905. {
  1906. private:
  1907. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1908. {
  1909. }
  1910. public:
  1911. WithGenericMethod_TryConnection()
  1912. {
  1913. ::grpc::Service::MarkMethodGeneric(0);
  1914. }
  1915. ~WithGenericMethod_TryConnection() override
  1916. {
  1917. BaseClassMustBeDerivedFromService(this);
  1918. }
  1919. // disable synchronous version of this method
  1920. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1921. {
  1922. abort();
  1923. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1924. }
  1925. };
  1926. template<class BaseClass>
  1927. class WithGenericMethod_AddPlayer : public BaseClass
  1928. {
  1929. private:
  1930. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1931. {
  1932. }
  1933. public:
  1934. WithGenericMethod_AddPlayer()
  1935. {
  1936. ::grpc::Service::MarkMethodGeneric(1);
  1937. }
  1938. ~WithGenericMethod_AddPlayer() override
  1939. {
  1940. BaseClassMustBeDerivedFromService(this);
  1941. }
  1942. // disable synchronous version of this method
  1943. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  1944. {
  1945. abort();
  1946. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1947. }
  1948. };
  1949. template<class BaseClass>
  1950. class WithGenericMethod_Move : public BaseClass
  1951. {
  1952. private:
  1953. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1954. {
  1955. }
  1956. public:
  1957. WithGenericMethod_Move()
  1958. {
  1959. ::grpc::Service::MarkMethodGeneric(2);
  1960. }
  1961. ~WithGenericMethod_Move() override
  1962. {
  1963. BaseClassMustBeDerivedFromService(this);
  1964. }
  1965. // disable synchronous version of this method
  1966. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  1967. {
  1968. abort();
  1969. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1970. }
  1971. };
  1972. template<class BaseClass>
  1973. class WithGenericMethod_PickProp : public BaseClass
  1974. {
  1975. private:
  1976. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  1977. {
  1978. }
  1979. public:
  1980. WithGenericMethod_PickProp()
  1981. {
  1982. ::grpc::Service::MarkMethodGeneric(3);
  1983. }
  1984. ~WithGenericMethod_PickProp() override
  1985. {
  1986. BaseClassMustBeDerivedFromService(this);
  1987. }
  1988. // disable synchronous version of this method
  1989. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  1990. {
  1991. abort();
  1992. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  1993. }
  1994. };
  1995. template<class BaseClass>
  1996. class WithGenericMethod_UseProp : public BaseClass
  1997. {
  1998. private:
  1999. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2000. {
  2001. }
  2002. public:
  2003. WithGenericMethod_UseProp()
  2004. {
  2005. ::grpc::Service::MarkMethodGeneric(4);
  2006. }
  2007. ~WithGenericMethod_UseProp() override
  2008. {
  2009. BaseClassMustBeDerivedFromService(this);
  2010. }
  2011. // disable synchronous version of this method
  2012. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2013. {
  2014. abort();
  2015. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2016. }
  2017. };
  2018. template<class BaseClass>
  2019. class WithGenericMethod_ThrowProp : public BaseClass
  2020. {
  2021. private:
  2022. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2023. {
  2024. }
  2025. public:
  2026. WithGenericMethod_ThrowProp()
  2027. {
  2028. ::grpc::Service::MarkMethodGeneric(5);
  2029. }
  2030. ~WithGenericMethod_ThrowProp() override
  2031. {
  2032. BaseClassMustBeDerivedFromService(this);
  2033. }
  2034. // disable synchronous version of this method
  2035. ::grpc::Status ThrowProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2036. {
  2037. abort();
  2038. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2039. }
  2040. };
  2041. template<class BaseClass>
  2042. class WithGenericMethod_UseSkill : public BaseClass
  2043. {
  2044. private:
  2045. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2046. {
  2047. }
  2048. public:
  2049. WithGenericMethod_UseSkill()
  2050. {
  2051. ::grpc::Service::MarkMethodGeneric(6);
  2052. }
  2053. ~WithGenericMethod_UseSkill() override
  2054. {
  2055. BaseClassMustBeDerivedFromService(this);
  2056. }
  2057. // disable synchronous version of this method
  2058. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2059. {
  2060. abort();
  2061. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2062. }
  2063. };
  2064. template<class BaseClass>
  2065. class WithGenericMethod_SendMessage : public BaseClass
  2066. {
  2067. private:
  2068. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2069. {
  2070. }
  2071. public:
  2072. WithGenericMethod_SendMessage()
  2073. {
  2074. ::grpc::Service::MarkMethodGeneric(7);
  2075. }
  2076. ~WithGenericMethod_SendMessage() override
  2077. {
  2078. BaseClassMustBeDerivedFromService(this);
  2079. }
  2080. // disable synchronous version of this method
  2081. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2082. {
  2083. abort();
  2084. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2085. }
  2086. };
  2087. template<class BaseClass>
  2088. class WithGenericMethod_StartLearning : public BaseClass
  2089. {
  2090. private:
  2091. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2092. {
  2093. }
  2094. public:
  2095. WithGenericMethod_StartLearning()
  2096. {
  2097. ::grpc::Service::MarkMethodGeneric(8);
  2098. }
  2099. ~WithGenericMethod_StartLearning() override
  2100. {
  2101. BaseClassMustBeDerivedFromService(this);
  2102. }
  2103. // disable synchronous version of this method
  2104. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2105. {
  2106. abort();
  2107. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2108. }
  2109. };
  2110. template<class BaseClass>
  2111. class WithGenericMethod_StartRescueMate : public BaseClass
  2112. {
  2113. private:
  2114. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2115. {
  2116. }
  2117. public:
  2118. WithGenericMethod_StartRescueMate()
  2119. {
  2120. ::grpc::Service::MarkMethodGeneric(9);
  2121. }
  2122. ~WithGenericMethod_StartRescueMate() override
  2123. {
  2124. BaseClassMustBeDerivedFromService(this);
  2125. }
  2126. // disable synchronous version of this method
  2127. ::grpc::Status StartRescueMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2128. {
  2129. abort();
  2130. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2131. }
  2132. };
  2133. template<class BaseClass>
  2134. class WithGenericMethod_StartTreatMate : public BaseClass
  2135. {
  2136. private:
  2137. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2138. {
  2139. }
  2140. public:
  2141. WithGenericMethod_StartTreatMate()
  2142. {
  2143. ::grpc::Service::MarkMethodGeneric(10);
  2144. }
  2145. ~WithGenericMethod_StartTreatMate() override
  2146. {
  2147. BaseClassMustBeDerivedFromService(this);
  2148. }
  2149. // disable synchronous version of this method
  2150. ::grpc::Status StartTreatMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2151. {
  2152. abort();
  2153. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2154. }
  2155. };
  2156. template<class BaseClass>
  2157. class WithGenericMethod_Attack : public BaseClass
  2158. {
  2159. private:
  2160. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2161. {
  2162. }
  2163. public:
  2164. WithGenericMethod_Attack()
  2165. {
  2166. ::grpc::Service::MarkMethodGeneric(11);
  2167. }
  2168. ~WithGenericMethod_Attack() override
  2169. {
  2170. BaseClassMustBeDerivedFromService(this);
  2171. }
  2172. // disable synchronous version of this method
  2173. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2174. {
  2175. abort();
  2176. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2177. }
  2178. };
  2179. template<class BaseClass>
  2180. class WithGenericMethod_Graduate : public BaseClass
  2181. {
  2182. private:
  2183. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2184. {
  2185. }
  2186. public:
  2187. WithGenericMethod_Graduate()
  2188. {
  2189. ::grpc::Service::MarkMethodGeneric(12);
  2190. }
  2191. ~WithGenericMethod_Graduate() override
  2192. {
  2193. BaseClassMustBeDerivedFromService(this);
  2194. }
  2195. // disable synchronous version of this method
  2196. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2197. {
  2198. abort();
  2199. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2200. }
  2201. };
  2202. template<class BaseClass>
  2203. class WithGenericMethod_OpenDoor : public BaseClass
  2204. {
  2205. private:
  2206. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2207. {
  2208. }
  2209. public:
  2210. WithGenericMethod_OpenDoor()
  2211. {
  2212. ::grpc::Service::MarkMethodGeneric(13);
  2213. }
  2214. ~WithGenericMethod_OpenDoor() override
  2215. {
  2216. BaseClassMustBeDerivedFromService(this);
  2217. }
  2218. // disable synchronous version of this method
  2219. ::grpc::Status OpenDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2220. {
  2221. abort();
  2222. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2223. }
  2224. };
  2225. template<class BaseClass>
  2226. class WithGenericMethod_CloseDoor : public BaseClass
  2227. {
  2228. private:
  2229. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2230. {
  2231. }
  2232. public:
  2233. WithGenericMethod_CloseDoor()
  2234. {
  2235. ::grpc::Service::MarkMethodGeneric(14);
  2236. }
  2237. ~WithGenericMethod_CloseDoor() override
  2238. {
  2239. BaseClassMustBeDerivedFromService(this);
  2240. }
  2241. // disable synchronous version of this method
  2242. ::grpc::Status CloseDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2243. {
  2244. abort();
  2245. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2246. }
  2247. };
  2248. template<class BaseClass>
  2249. class WithGenericMethod_SkipWindow : public BaseClass
  2250. {
  2251. private:
  2252. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2253. {
  2254. }
  2255. public:
  2256. WithGenericMethod_SkipWindow()
  2257. {
  2258. ::grpc::Service::MarkMethodGeneric(15);
  2259. }
  2260. ~WithGenericMethod_SkipWindow() override
  2261. {
  2262. BaseClassMustBeDerivedFromService(this);
  2263. }
  2264. // disable synchronous version of this method
  2265. ::grpc::Status SkipWindow(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2266. {
  2267. abort();
  2268. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2269. }
  2270. };
  2271. template<class BaseClass>
  2272. class WithGenericMethod_StartOpenGate : public BaseClass
  2273. {
  2274. private:
  2275. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2276. {
  2277. }
  2278. public:
  2279. WithGenericMethod_StartOpenGate()
  2280. {
  2281. ::grpc::Service::MarkMethodGeneric(16);
  2282. }
  2283. ~WithGenericMethod_StartOpenGate() override
  2284. {
  2285. BaseClassMustBeDerivedFromService(this);
  2286. }
  2287. // disable synchronous version of this method
  2288. ::grpc::Status StartOpenGate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2289. {
  2290. abort();
  2291. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2292. }
  2293. };
  2294. template<class BaseClass>
  2295. class WithGenericMethod_StartOpenChest : public BaseClass
  2296. {
  2297. private:
  2298. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2299. {
  2300. }
  2301. public:
  2302. WithGenericMethod_StartOpenChest()
  2303. {
  2304. ::grpc::Service::MarkMethodGeneric(17);
  2305. }
  2306. ~WithGenericMethod_StartOpenChest() override
  2307. {
  2308. BaseClassMustBeDerivedFromService(this);
  2309. }
  2310. // disable synchronous version of this method
  2311. ::grpc::Status StartOpenChest(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2312. {
  2313. abort();
  2314. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2315. }
  2316. };
  2317. template<class BaseClass>
  2318. class WithGenericMethod_EndAllAction : public BaseClass
  2319. {
  2320. private:
  2321. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2322. {
  2323. }
  2324. public:
  2325. WithGenericMethod_EndAllAction()
  2326. {
  2327. ::grpc::Service::MarkMethodGeneric(18);
  2328. }
  2329. ~WithGenericMethod_EndAllAction() override
  2330. {
  2331. BaseClassMustBeDerivedFromService(this);
  2332. }
  2333. // disable synchronous version of this method
  2334. ::grpc::Status EndAllAction(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2335. {
  2336. abort();
  2337. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2338. }
  2339. };
  2340. template<class BaseClass>
  2341. class WithRawMethod_TryConnection : public BaseClass
  2342. {
  2343. private:
  2344. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2345. {
  2346. }
  2347. public:
  2348. WithRawMethod_TryConnection()
  2349. {
  2350. ::grpc::Service::MarkMethodRaw(0);
  2351. }
  2352. ~WithRawMethod_TryConnection() override
  2353. {
  2354. BaseClassMustBeDerivedFromService(this);
  2355. }
  2356. // disable synchronous version of this method
  2357. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2358. {
  2359. abort();
  2360. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2361. }
  2362. void RequestTryConnection(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2363. {
  2364. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  2365. }
  2366. };
  2367. template<class BaseClass>
  2368. class WithRawMethod_AddPlayer : public BaseClass
  2369. {
  2370. private:
  2371. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2372. {
  2373. }
  2374. public:
  2375. WithRawMethod_AddPlayer()
  2376. {
  2377. ::grpc::Service::MarkMethodRaw(1);
  2378. }
  2379. ~WithRawMethod_AddPlayer() override
  2380. {
  2381. BaseClassMustBeDerivedFromService(this);
  2382. }
  2383. // disable synchronous version of this method
  2384. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  2385. {
  2386. abort();
  2387. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2388. }
  2389. void RequestAddPlayer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter<::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2390. {
  2391. ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
  2392. }
  2393. };
  2394. template<class BaseClass>
  2395. class WithRawMethod_Move : public BaseClass
  2396. {
  2397. private:
  2398. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2399. {
  2400. }
  2401. public:
  2402. WithRawMethod_Move()
  2403. {
  2404. ::grpc::Service::MarkMethodRaw(2);
  2405. }
  2406. ~WithRawMethod_Move() override
  2407. {
  2408. BaseClassMustBeDerivedFromService(this);
  2409. }
  2410. // disable synchronous version of this method
  2411. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2412. {
  2413. abort();
  2414. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2415. }
  2416. void RequestMove(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2417. {
  2418. ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
  2419. }
  2420. };
  2421. template<class BaseClass>
  2422. class WithRawMethod_PickProp : public BaseClass
  2423. {
  2424. private:
  2425. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2426. {
  2427. }
  2428. public:
  2429. WithRawMethod_PickProp()
  2430. {
  2431. ::grpc::Service::MarkMethodRaw(3);
  2432. }
  2433. ~WithRawMethod_PickProp() override
  2434. {
  2435. BaseClassMustBeDerivedFromService(this);
  2436. }
  2437. // disable synchronous version of this method
  2438. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2439. {
  2440. abort();
  2441. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2442. }
  2443. void RequestPickProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2444. {
  2445. ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
  2446. }
  2447. };
  2448. template<class BaseClass>
  2449. class WithRawMethod_UseProp : public BaseClass
  2450. {
  2451. private:
  2452. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2453. {
  2454. }
  2455. public:
  2456. WithRawMethod_UseProp()
  2457. {
  2458. ::grpc::Service::MarkMethodRaw(4);
  2459. }
  2460. ~WithRawMethod_UseProp() override
  2461. {
  2462. BaseClassMustBeDerivedFromService(this);
  2463. }
  2464. // disable synchronous version of this method
  2465. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2466. {
  2467. abort();
  2468. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2469. }
  2470. void RequestUseProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2471. {
  2472. ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
  2473. }
  2474. };
  2475. template<class BaseClass>
  2476. class WithRawMethod_ThrowProp : public BaseClass
  2477. {
  2478. private:
  2479. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2480. {
  2481. }
  2482. public:
  2483. WithRawMethod_ThrowProp()
  2484. {
  2485. ::grpc::Service::MarkMethodRaw(5);
  2486. }
  2487. ~WithRawMethod_ThrowProp() override
  2488. {
  2489. BaseClassMustBeDerivedFromService(this);
  2490. }
  2491. // disable synchronous version of this method
  2492. ::grpc::Status ThrowProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2493. {
  2494. abort();
  2495. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2496. }
  2497. void RequestThrowProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2498. {
  2499. ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
  2500. }
  2501. };
  2502. template<class BaseClass>
  2503. class WithRawMethod_UseSkill : public BaseClass
  2504. {
  2505. private:
  2506. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2507. {
  2508. }
  2509. public:
  2510. WithRawMethod_UseSkill()
  2511. {
  2512. ::grpc::Service::MarkMethodRaw(6);
  2513. }
  2514. ~WithRawMethod_UseSkill() override
  2515. {
  2516. BaseClassMustBeDerivedFromService(this);
  2517. }
  2518. // disable synchronous version of this method
  2519. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2520. {
  2521. abort();
  2522. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2523. }
  2524. void RequestUseSkill(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2525. {
  2526. ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
  2527. }
  2528. };
  2529. template<class BaseClass>
  2530. class WithRawMethod_SendMessage : public BaseClass
  2531. {
  2532. private:
  2533. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2534. {
  2535. }
  2536. public:
  2537. WithRawMethod_SendMessage()
  2538. {
  2539. ::grpc::Service::MarkMethodRaw(7);
  2540. }
  2541. ~WithRawMethod_SendMessage() override
  2542. {
  2543. BaseClassMustBeDerivedFromService(this);
  2544. }
  2545. // disable synchronous version of this method
  2546. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2547. {
  2548. abort();
  2549. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2550. }
  2551. void RequestSendMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2552. {
  2553. ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag);
  2554. }
  2555. };
  2556. template<class BaseClass>
  2557. class WithRawMethod_StartLearning : public BaseClass
  2558. {
  2559. private:
  2560. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2561. {
  2562. }
  2563. public:
  2564. WithRawMethod_StartLearning()
  2565. {
  2566. ::grpc::Service::MarkMethodRaw(8);
  2567. }
  2568. ~WithRawMethod_StartLearning() override
  2569. {
  2570. BaseClassMustBeDerivedFromService(this);
  2571. }
  2572. // disable synchronous version of this method
  2573. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2574. {
  2575. abort();
  2576. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2577. }
  2578. void RequestStartLearning(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2579. {
  2580. ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
  2581. }
  2582. };
  2583. template<class BaseClass>
  2584. class WithRawMethod_StartRescueMate : public BaseClass
  2585. {
  2586. private:
  2587. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2588. {
  2589. }
  2590. public:
  2591. WithRawMethod_StartRescueMate()
  2592. {
  2593. ::grpc::Service::MarkMethodRaw(9);
  2594. }
  2595. ~WithRawMethod_StartRescueMate() override
  2596. {
  2597. BaseClassMustBeDerivedFromService(this);
  2598. }
  2599. // disable synchronous version of this method
  2600. ::grpc::Status StartRescueMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2601. {
  2602. abort();
  2603. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2604. }
  2605. void RequestStartRescueMate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2606. {
  2607. ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag);
  2608. }
  2609. };
  2610. template<class BaseClass>
  2611. class WithRawMethod_StartTreatMate : public BaseClass
  2612. {
  2613. private:
  2614. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2615. {
  2616. }
  2617. public:
  2618. WithRawMethod_StartTreatMate()
  2619. {
  2620. ::grpc::Service::MarkMethodRaw(10);
  2621. }
  2622. ~WithRawMethod_StartTreatMate() override
  2623. {
  2624. BaseClassMustBeDerivedFromService(this);
  2625. }
  2626. // disable synchronous version of this method
  2627. ::grpc::Status StartTreatMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2628. {
  2629. abort();
  2630. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2631. }
  2632. void RequestStartTreatMate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2633. {
  2634. ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag);
  2635. }
  2636. };
  2637. template<class BaseClass>
  2638. class WithRawMethod_Attack : public BaseClass
  2639. {
  2640. private:
  2641. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2642. {
  2643. }
  2644. public:
  2645. WithRawMethod_Attack()
  2646. {
  2647. ::grpc::Service::MarkMethodRaw(11);
  2648. }
  2649. ~WithRawMethod_Attack() override
  2650. {
  2651. BaseClassMustBeDerivedFromService(this);
  2652. }
  2653. // disable synchronous version of this method
  2654. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2655. {
  2656. abort();
  2657. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2658. }
  2659. void RequestAttack(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2660. {
  2661. ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
  2662. }
  2663. };
  2664. template<class BaseClass>
  2665. class WithRawMethod_Graduate : public BaseClass
  2666. {
  2667. private:
  2668. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2669. {
  2670. }
  2671. public:
  2672. WithRawMethod_Graduate()
  2673. {
  2674. ::grpc::Service::MarkMethodRaw(12);
  2675. }
  2676. ~WithRawMethod_Graduate() override
  2677. {
  2678. BaseClassMustBeDerivedFromService(this);
  2679. }
  2680. // disable synchronous version of this method
  2681. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2682. {
  2683. abort();
  2684. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2685. }
  2686. void RequestGraduate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2687. {
  2688. ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
  2689. }
  2690. };
  2691. template<class BaseClass>
  2692. class WithRawMethod_OpenDoor : public BaseClass
  2693. {
  2694. private:
  2695. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2696. {
  2697. }
  2698. public:
  2699. WithRawMethod_OpenDoor()
  2700. {
  2701. ::grpc::Service::MarkMethodRaw(13);
  2702. }
  2703. ~WithRawMethod_OpenDoor() override
  2704. {
  2705. BaseClassMustBeDerivedFromService(this);
  2706. }
  2707. // disable synchronous version of this method
  2708. ::grpc::Status OpenDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2709. {
  2710. abort();
  2711. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2712. }
  2713. void RequestOpenDoor(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2714. {
  2715. ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag);
  2716. }
  2717. };
  2718. template<class BaseClass>
  2719. class WithRawMethod_CloseDoor : public BaseClass
  2720. {
  2721. private:
  2722. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2723. {
  2724. }
  2725. public:
  2726. WithRawMethod_CloseDoor()
  2727. {
  2728. ::grpc::Service::MarkMethodRaw(14);
  2729. }
  2730. ~WithRawMethod_CloseDoor() override
  2731. {
  2732. BaseClassMustBeDerivedFromService(this);
  2733. }
  2734. // disable synchronous version of this method
  2735. ::grpc::Status CloseDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2736. {
  2737. abort();
  2738. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2739. }
  2740. void RequestCloseDoor(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2741. {
  2742. ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag);
  2743. }
  2744. };
  2745. template<class BaseClass>
  2746. class WithRawMethod_SkipWindow : public BaseClass
  2747. {
  2748. private:
  2749. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2750. {
  2751. }
  2752. public:
  2753. WithRawMethod_SkipWindow()
  2754. {
  2755. ::grpc::Service::MarkMethodRaw(15);
  2756. }
  2757. ~WithRawMethod_SkipWindow() override
  2758. {
  2759. BaseClassMustBeDerivedFromService(this);
  2760. }
  2761. // disable synchronous version of this method
  2762. ::grpc::Status SkipWindow(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2763. {
  2764. abort();
  2765. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2766. }
  2767. void RequestSkipWindow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2768. {
  2769. ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag);
  2770. }
  2771. };
  2772. template<class BaseClass>
  2773. class WithRawMethod_StartOpenGate : public BaseClass
  2774. {
  2775. private:
  2776. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2777. {
  2778. }
  2779. public:
  2780. WithRawMethod_StartOpenGate()
  2781. {
  2782. ::grpc::Service::MarkMethodRaw(16);
  2783. }
  2784. ~WithRawMethod_StartOpenGate() override
  2785. {
  2786. BaseClassMustBeDerivedFromService(this);
  2787. }
  2788. // disable synchronous version of this method
  2789. ::grpc::Status StartOpenGate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2790. {
  2791. abort();
  2792. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2793. }
  2794. void RequestStartOpenGate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2795. {
  2796. ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag);
  2797. }
  2798. };
  2799. template<class BaseClass>
  2800. class WithRawMethod_StartOpenChest : public BaseClass
  2801. {
  2802. private:
  2803. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2804. {
  2805. }
  2806. public:
  2807. WithRawMethod_StartOpenChest()
  2808. {
  2809. ::grpc::Service::MarkMethodRaw(17);
  2810. }
  2811. ~WithRawMethod_StartOpenChest() override
  2812. {
  2813. BaseClassMustBeDerivedFromService(this);
  2814. }
  2815. // disable synchronous version of this method
  2816. ::grpc::Status StartOpenChest(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2817. {
  2818. abort();
  2819. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2820. }
  2821. void RequestStartOpenChest(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2822. {
  2823. ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag);
  2824. }
  2825. };
  2826. template<class BaseClass>
  2827. class WithRawMethod_EndAllAction : public BaseClass
  2828. {
  2829. private:
  2830. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2831. {
  2832. }
  2833. public:
  2834. WithRawMethod_EndAllAction()
  2835. {
  2836. ::grpc::Service::MarkMethodRaw(18);
  2837. }
  2838. ~WithRawMethod_EndAllAction() override
  2839. {
  2840. BaseClassMustBeDerivedFromService(this);
  2841. }
  2842. // disable synchronous version of this method
  2843. ::grpc::Status EndAllAction(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2844. {
  2845. abort();
  2846. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2847. }
  2848. void RequestEndAllAction(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter<::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void* tag)
  2849. {
  2850. ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag);
  2851. }
  2852. };
  2853. template<class BaseClass>
  2854. class WithRawCallbackMethod_TryConnection : public BaseClass
  2855. {
  2856. private:
  2857. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2858. {
  2859. }
  2860. public:
  2861. WithRawCallbackMethod_TryConnection()
  2862. {
  2863. ::grpc::Service::MarkMethodRawCallback(0, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2864. { return this->TryConnection(context, request, response); }));
  2865. }
  2866. ~WithRawCallbackMethod_TryConnection() override
  2867. {
  2868. BaseClassMustBeDerivedFromService(this);
  2869. }
  2870. // disable synchronous version of this method
  2871. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2872. {
  2873. abort();
  2874. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2875. }
  2876. virtual ::grpc::ServerUnaryReactor* TryConnection(
  2877. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2878. )
  2879. {
  2880. return nullptr;
  2881. }
  2882. };
  2883. template<class BaseClass>
  2884. class WithRawCallbackMethod_AddPlayer : public BaseClass
  2885. {
  2886. private:
  2887. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2888. {
  2889. }
  2890. public:
  2891. WithRawCallbackMethod_AddPlayer()
  2892. {
  2893. ::grpc::Service::MarkMethodRawCallback(1, new ::grpc::internal::CallbackServerStreamingHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request)
  2894. { return this->AddPlayer(context, request); }));
  2895. }
  2896. ~WithRawCallbackMethod_AddPlayer() override
  2897. {
  2898. BaseClassMustBeDerivedFromService(this);
  2899. }
  2900. // disable synchronous version of this method
  2901. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  2902. {
  2903. abort();
  2904. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2905. }
  2906. virtual ::grpc::ServerWriteReactor<::grpc::ByteBuffer>* AddPlayer(
  2907. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/
  2908. )
  2909. {
  2910. return nullptr;
  2911. }
  2912. };
  2913. template<class BaseClass>
  2914. class WithRawCallbackMethod_Move : public BaseClass
  2915. {
  2916. private:
  2917. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2918. {
  2919. }
  2920. public:
  2921. WithRawCallbackMethod_Move()
  2922. {
  2923. ::grpc::Service::MarkMethodRawCallback(2, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2924. { return this->Move(context, request, response); }));
  2925. }
  2926. ~WithRawCallbackMethod_Move() override
  2927. {
  2928. BaseClassMustBeDerivedFromService(this);
  2929. }
  2930. // disable synchronous version of this method
  2931. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  2932. {
  2933. abort();
  2934. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2935. }
  2936. virtual ::grpc::ServerUnaryReactor* Move(
  2937. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2938. )
  2939. {
  2940. return nullptr;
  2941. }
  2942. };
  2943. template<class BaseClass>
  2944. class WithRawCallbackMethod_PickProp : public BaseClass
  2945. {
  2946. private:
  2947. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2948. {
  2949. }
  2950. public:
  2951. WithRawCallbackMethod_PickProp()
  2952. {
  2953. ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2954. { return this->PickProp(context, request, response); }));
  2955. }
  2956. ~WithRawCallbackMethod_PickProp() override
  2957. {
  2958. BaseClassMustBeDerivedFromService(this);
  2959. }
  2960. // disable synchronous version of this method
  2961. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2962. {
  2963. abort();
  2964. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2965. }
  2966. virtual ::grpc::ServerUnaryReactor* PickProp(
  2967. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2968. )
  2969. {
  2970. return nullptr;
  2971. }
  2972. };
  2973. template<class BaseClass>
  2974. class WithRawCallbackMethod_UseProp : public BaseClass
  2975. {
  2976. private:
  2977. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  2978. {
  2979. }
  2980. public:
  2981. WithRawCallbackMethod_UseProp()
  2982. {
  2983. ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  2984. { return this->UseProp(context, request, response); }));
  2985. }
  2986. ~WithRawCallbackMethod_UseProp() override
  2987. {
  2988. BaseClassMustBeDerivedFromService(this);
  2989. }
  2990. // disable synchronous version of this method
  2991. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  2992. {
  2993. abort();
  2994. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  2995. }
  2996. virtual ::grpc::ServerUnaryReactor* UseProp(
  2997. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  2998. )
  2999. {
  3000. return nullptr;
  3001. }
  3002. };
  3003. template<class BaseClass>
  3004. class WithRawCallbackMethod_ThrowProp : public BaseClass
  3005. {
  3006. private:
  3007. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3008. {
  3009. }
  3010. public:
  3011. WithRawCallbackMethod_ThrowProp()
  3012. {
  3013. ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3014. { return this->ThrowProp(context, request, response); }));
  3015. }
  3016. ~WithRawCallbackMethod_ThrowProp() override
  3017. {
  3018. BaseClassMustBeDerivedFromService(this);
  3019. }
  3020. // disable synchronous version of this method
  3021. ::grpc::Status ThrowProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3022. {
  3023. abort();
  3024. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3025. }
  3026. virtual ::grpc::ServerUnaryReactor* ThrowProp(
  3027. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3028. )
  3029. {
  3030. return nullptr;
  3031. }
  3032. };
  3033. template<class BaseClass>
  3034. class WithRawCallbackMethod_UseSkill : public BaseClass
  3035. {
  3036. private:
  3037. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3038. {
  3039. }
  3040. public:
  3041. WithRawCallbackMethod_UseSkill()
  3042. {
  3043. ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3044. { return this->UseSkill(context, request, response); }));
  3045. }
  3046. ~WithRawCallbackMethod_UseSkill() override
  3047. {
  3048. BaseClassMustBeDerivedFromService(this);
  3049. }
  3050. // disable synchronous version of this method
  3051. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3052. {
  3053. abort();
  3054. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3055. }
  3056. virtual ::grpc::ServerUnaryReactor* UseSkill(
  3057. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3058. )
  3059. {
  3060. return nullptr;
  3061. }
  3062. };
  3063. template<class BaseClass>
  3064. class WithRawCallbackMethod_SendMessage : public BaseClass
  3065. {
  3066. private:
  3067. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3068. {
  3069. }
  3070. public:
  3071. WithRawCallbackMethod_SendMessage()
  3072. {
  3073. ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3074. { return this->SendMessage(context, request, response); }));
  3075. }
  3076. ~WithRawCallbackMethod_SendMessage() override
  3077. {
  3078. BaseClassMustBeDerivedFromService(this);
  3079. }
  3080. // disable synchronous version of this method
  3081. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3082. {
  3083. abort();
  3084. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3085. }
  3086. virtual ::grpc::ServerUnaryReactor* SendMessage(
  3087. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3088. )
  3089. {
  3090. return nullptr;
  3091. }
  3092. };
  3093. template<class BaseClass>
  3094. class WithRawCallbackMethod_StartLearning : public BaseClass
  3095. {
  3096. private:
  3097. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3098. {
  3099. }
  3100. public:
  3101. WithRawCallbackMethod_StartLearning()
  3102. {
  3103. ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3104. { return this->StartLearning(context, request, response); }));
  3105. }
  3106. ~WithRawCallbackMethod_StartLearning() override
  3107. {
  3108. BaseClassMustBeDerivedFromService(this);
  3109. }
  3110. // disable synchronous version of this method
  3111. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3112. {
  3113. abort();
  3114. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3115. }
  3116. virtual ::grpc::ServerUnaryReactor* StartLearning(
  3117. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3118. )
  3119. {
  3120. return nullptr;
  3121. }
  3122. };
  3123. template<class BaseClass>
  3124. class WithRawCallbackMethod_StartRescueMate : public BaseClass
  3125. {
  3126. private:
  3127. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3128. {
  3129. }
  3130. public:
  3131. WithRawCallbackMethod_StartRescueMate()
  3132. {
  3133. ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3134. { return this->StartRescueMate(context, request, response); }));
  3135. }
  3136. ~WithRawCallbackMethod_StartRescueMate() override
  3137. {
  3138. BaseClassMustBeDerivedFromService(this);
  3139. }
  3140. // disable synchronous version of this method
  3141. ::grpc::Status StartRescueMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3142. {
  3143. abort();
  3144. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3145. }
  3146. virtual ::grpc::ServerUnaryReactor* StartRescueMate(
  3147. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3148. )
  3149. {
  3150. return nullptr;
  3151. }
  3152. };
  3153. template<class BaseClass>
  3154. class WithRawCallbackMethod_StartTreatMate : public BaseClass
  3155. {
  3156. private:
  3157. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3158. {
  3159. }
  3160. public:
  3161. WithRawCallbackMethod_StartTreatMate()
  3162. {
  3163. ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3164. { return this->StartTreatMate(context, request, response); }));
  3165. }
  3166. ~WithRawCallbackMethod_StartTreatMate() override
  3167. {
  3168. BaseClassMustBeDerivedFromService(this);
  3169. }
  3170. // disable synchronous version of this method
  3171. ::grpc::Status StartTreatMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3172. {
  3173. abort();
  3174. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3175. }
  3176. virtual ::grpc::ServerUnaryReactor* StartTreatMate(
  3177. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3178. )
  3179. {
  3180. return nullptr;
  3181. }
  3182. };
  3183. template<class BaseClass>
  3184. class WithRawCallbackMethod_Attack : public BaseClass
  3185. {
  3186. private:
  3187. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3188. {
  3189. }
  3190. public:
  3191. WithRawCallbackMethod_Attack()
  3192. {
  3193. ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3194. { return this->Attack(context, request, response); }));
  3195. }
  3196. ~WithRawCallbackMethod_Attack() override
  3197. {
  3198. BaseClassMustBeDerivedFromService(this);
  3199. }
  3200. // disable synchronous version of this method
  3201. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3202. {
  3203. abort();
  3204. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3205. }
  3206. virtual ::grpc::ServerUnaryReactor* Attack(
  3207. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3208. )
  3209. {
  3210. return nullptr;
  3211. }
  3212. };
  3213. template<class BaseClass>
  3214. class WithRawCallbackMethod_Graduate : public BaseClass
  3215. {
  3216. private:
  3217. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3218. {
  3219. }
  3220. public:
  3221. WithRawCallbackMethod_Graduate()
  3222. {
  3223. ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3224. { return this->Graduate(context, request, response); }));
  3225. }
  3226. ~WithRawCallbackMethod_Graduate() override
  3227. {
  3228. BaseClassMustBeDerivedFromService(this);
  3229. }
  3230. // disable synchronous version of this method
  3231. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3232. {
  3233. abort();
  3234. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3235. }
  3236. virtual ::grpc::ServerUnaryReactor* Graduate(
  3237. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3238. )
  3239. {
  3240. return nullptr;
  3241. }
  3242. };
  3243. template<class BaseClass>
  3244. class WithRawCallbackMethod_OpenDoor : public BaseClass
  3245. {
  3246. private:
  3247. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3248. {
  3249. }
  3250. public:
  3251. WithRawCallbackMethod_OpenDoor()
  3252. {
  3253. ::grpc::Service::MarkMethodRawCallback(13, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3254. { return this->OpenDoor(context, request, response); }));
  3255. }
  3256. ~WithRawCallbackMethod_OpenDoor() override
  3257. {
  3258. BaseClassMustBeDerivedFromService(this);
  3259. }
  3260. // disable synchronous version of this method
  3261. ::grpc::Status OpenDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3262. {
  3263. abort();
  3264. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3265. }
  3266. virtual ::grpc::ServerUnaryReactor* OpenDoor(
  3267. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3268. )
  3269. {
  3270. return nullptr;
  3271. }
  3272. };
  3273. template<class BaseClass>
  3274. class WithRawCallbackMethod_CloseDoor : public BaseClass
  3275. {
  3276. private:
  3277. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3278. {
  3279. }
  3280. public:
  3281. WithRawCallbackMethod_CloseDoor()
  3282. {
  3283. ::grpc::Service::MarkMethodRawCallback(14, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3284. { return this->CloseDoor(context, request, response); }));
  3285. }
  3286. ~WithRawCallbackMethod_CloseDoor() override
  3287. {
  3288. BaseClassMustBeDerivedFromService(this);
  3289. }
  3290. // disable synchronous version of this method
  3291. ::grpc::Status CloseDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3292. {
  3293. abort();
  3294. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3295. }
  3296. virtual ::grpc::ServerUnaryReactor* CloseDoor(
  3297. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3298. )
  3299. {
  3300. return nullptr;
  3301. }
  3302. };
  3303. template<class BaseClass>
  3304. class WithRawCallbackMethod_SkipWindow : public BaseClass
  3305. {
  3306. private:
  3307. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3308. {
  3309. }
  3310. public:
  3311. WithRawCallbackMethod_SkipWindow()
  3312. {
  3313. ::grpc::Service::MarkMethodRawCallback(15, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3314. { return this->SkipWindow(context, request, response); }));
  3315. }
  3316. ~WithRawCallbackMethod_SkipWindow() override
  3317. {
  3318. BaseClassMustBeDerivedFromService(this);
  3319. }
  3320. // disable synchronous version of this method
  3321. ::grpc::Status SkipWindow(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3322. {
  3323. abort();
  3324. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3325. }
  3326. virtual ::grpc::ServerUnaryReactor* SkipWindow(
  3327. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3328. )
  3329. {
  3330. return nullptr;
  3331. }
  3332. };
  3333. template<class BaseClass>
  3334. class WithRawCallbackMethod_StartOpenGate : public BaseClass
  3335. {
  3336. private:
  3337. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3338. {
  3339. }
  3340. public:
  3341. WithRawCallbackMethod_StartOpenGate()
  3342. {
  3343. ::grpc::Service::MarkMethodRawCallback(16, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3344. { return this->StartOpenGate(context, request, response); }));
  3345. }
  3346. ~WithRawCallbackMethod_StartOpenGate() override
  3347. {
  3348. BaseClassMustBeDerivedFromService(this);
  3349. }
  3350. // disable synchronous version of this method
  3351. ::grpc::Status StartOpenGate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3352. {
  3353. abort();
  3354. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3355. }
  3356. virtual ::grpc::ServerUnaryReactor* StartOpenGate(
  3357. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3358. )
  3359. {
  3360. return nullptr;
  3361. }
  3362. };
  3363. template<class BaseClass>
  3364. class WithRawCallbackMethod_StartOpenChest : public BaseClass
  3365. {
  3366. private:
  3367. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3368. {
  3369. }
  3370. public:
  3371. WithRawCallbackMethod_StartOpenChest()
  3372. {
  3373. ::grpc::Service::MarkMethodRawCallback(17, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3374. { return this->StartOpenChest(context, request, response); }));
  3375. }
  3376. ~WithRawCallbackMethod_StartOpenChest() override
  3377. {
  3378. BaseClassMustBeDerivedFromService(this);
  3379. }
  3380. // disable synchronous version of this method
  3381. ::grpc::Status StartOpenChest(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3382. {
  3383. abort();
  3384. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3385. }
  3386. virtual ::grpc::ServerUnaryReactor* StartOpenChest(
  3387. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3388. )
  3389. {
  3390. return nullptr;
  3391. }
  3392. };
  3393. template<class BaseClass>
  3394. class WithRawCallbackMethod_EndAllAction : public BaseClass
  3395. {
  3396. private:
  3397. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3398. {
  3399. }
  3400. public:
  3401. WithRawCallbackMethod_EndAllAction()
  3402. {
  3403. ::grpc::Service::MarkMethodRawCallback(18, new ::grpc::internal::CallbackUnaryHandler<::grpc::ByteBuffer, ::grpc::ByteBuffer>([this](::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response)
  3404. { return this->EndAllAction(context, request, response); }));
  3405. }
  3406. ~WithRawCallbackMethod_EndAllAction() override
  3407. {
  3408. BaseClassMustBeDerivedFromService(this);
  3409. }
  3410. // disable synchronous version of this method
  3411. ::grpc::Status EndAllAction(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3412. {
  3413. abort();
  3414. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3415. }
  3416. virtual ::grpc::ServerUnaryReactor* EndAllAction(
  3417. ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/
  3418. )
  3419. {
  3420. return nullptr;
  3421. }
  3422. };
  3423. template<class BaseClass>
  3424. class WithStreamedUnaryMethod_TryConnection : public BaseClass
  3425. {
  3426. private:
  3427. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3428. {
  3429. }
  3430. public:
  3431. WithStreamedUnaryMethod_TryConnection()
  3432. {
  3433. ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3434. { return this->StreamedTryConnection(context, streamer); }));
  3435. }
  3436. ~WithStreamedUnaryMethod_TryConnection() override
  3437. {
  3438. BaseClassMustBeDerivedFromService(this);
  3439. }
  3440. // disable regular version of this method
  3441. ::grpc::Status TryConnection(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3442. {
  3443. abort();
  3444. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3445. }
  3446. // replace default version of method with streamed unary
  3447. virtual ::grpc::Status StreamedTryConnection(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3448. };
  3449. template<class BaseClass>
  3450. class WithStreamedUnaryMethod_Move : public BaseClass
  3451. {
  3452. private:
  3453. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3454. {
  3455. }
  3456. public:
  3457. WithStreamedUnaryMethod_Move()
  3458. {
  3459. ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler<::protobuf::MoveMsg, ::protobuf::MoveRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::MoveMsg, ::protobuf::MoveRes>* streamer)
  3460. { return this->StreamedMove(context, streamer); }));
  3461. }
  3462. ~WithStreamedUnaryMethod_Move() override
  3463. {
  3464. BaseClassMustBeDerivedFromService(this);
  3465. }
  3466. // disable regular version of this method
  3467. ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override
  3468. {
  3469. abort();
  3470. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3471. }
  3472. // replace default version of method with streamed unary
  3473. virtual ::grpc::Status StreamedMove(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::MoveMsg, ::protobuf::MoveRes>* server_unary_streamer) = 0;
  3474. };
  3475. template<class BaseClass>
  3476. class WithStreamedUnaryMethod_PickProp : public BaseClass
  3477. {
  3478. private:
  3479. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3480. {
  3481. }
  3482. public:
  3483. WithStreamedUnaryMethod_PickProp()
  3484. {
  3485. ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PropMsg, ::protobuf::BoolRes>* streamer)
  3486. { return this->StreamedPickProp(context, streamer); }));
  3487. }
  3488. ~WithStreamedUnaryMethod_PickProp() override
  3489. {
  3490. BaseClassMustBeDerivedFromService(this);
  3491. }
  3492. // disable regular version of this method
  3493. ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3494. {
  3495. abort();
  3496. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3497. }
  3498. // replace default version of method with streamed unary
  3499. virtual ::grpc::Status StreamedPickProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PropMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3500. };
  3501. template<class BaseClass>
  3502. class WithStreamedUnaryMethod_UseProp : public BaseClass
  3503. {
  3504. private:
  3505. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3506. {
  3507. }
  3508. public:
  3509. WithStreamedUnaryMethod_UseProp()
  3510. {
  3511. ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PropMsg, ::protobuf::BoolRes>* streamer)
  3512. { return this->StreamedUseProp(context, streamer); }));
  3513. }
  3514. ~WithStreamedUnaryMethod_UseProp() override
  3515. {
  3516. BaseClassMustBeDerivedFromService(this);
  3517. }
  3518. // disable regular version of this method
  3519. ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3520. {
  3521. abort();
  3522. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3523. }
  3524. // replace default version of method with streamed unary
  3525. virtual ::grpc::Status StreamedUseProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PropMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3526. };
  3527. template<class BaseClass>
  3528. class WithStreamedUnaryMethod_ThrowProp : public BaseClass
  3529. {
  3530. private:
  3531. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3532. {
  3533. }
  3534. public:
  3535. WithStreamedUnaryMethod_ThrowProp()
  3536. {
  3537. ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler<::protobuf::PropMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PropMsg, ::protobuf::BoolRes>* streamer)
  3538. { return this->StreamedThrowProp(context, streamer); }));
  3539. }
  3540. ~WithStreamedUnaryMethod_ThrowProp() override
  3541. {
  3542. BaseClassMustBeDerivedFromService(this);
  3543. }
  3544. // disable regular version of this method
  3545. ::grpc::Status ThrowProp(::grpc::ServerContext* /*context*/, const ::protobuf::PropMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3546. {
  3547. abort();
  3548. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3549. }
  3550. // replace default version of method with streamed unary
  3551. virtual ::grpc::Status StreamedThrowProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::PropMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3552. };
  3553. template<class BaseClass>
  3554. class WithStreamedUnaryMethod_UseSkill : public BaseClass
  3555. {
  3556. private:
  3557. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3558. {
  3559. }
  3560. public:
  3561. WithStreamedUnaryMethod_UseSkill()
  3562. {
  3563. ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler<::protobuf::SkillMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SkillMsg, ::protobuf::BoolRes>* streamer)
  3564. { return this->StreamedUseSkill(context, streamer); }));
  3565. }
  3566. ~WithStreamedUnaryMethod_UseSkill() override
  3567. {
  3568. BaseClassMustBeDerivedFromService(this);
  3569. }
  3570. // disable regular version of this method
  3571. ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::SkillMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3572. {
  3573. abort();
  3574. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3575. }
  3576. // replace default version of method with streamed unary
  3577. virtual ::grpc::Status StreamedUseSkill(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SkillMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3578. };
  3579. template<class BaseClass>
  3580. class WithStreamedUnaryMethod_SendMessage : public BaseClass
  3581. {
  3582. private:
  3583. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3584. {
  3585. }
  3586. public:
  3587. WithStreamedUnaryMethod_SendMessage()
  3588. {
  3589. ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler<::protobuf::SendMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SendMsg, ::protobuf::BoolRes>* streamer)
  3590. { return this->StreamedSendMessage(context, streamer); }));
  3591. }
  3592. ~WithStreamedUnaryMethod_SendMessage() override
  3593. {
  3594. BaseClassMustBeDerivedFromService(this);
  3595. }
  3596. // disable regular version of this method
  3597. ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3598. {
  3599. abort();
  3600. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3601. }
  3602. // replace default version of method with streamed unary
  3603. virtual ::grpc::Status StreamedSendMessage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::SendMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3604. };
  3605. template<class BaseClass>
  3606. class WithStreamedUnaryMethod_StartLearning : public BaseClass
  3607. {
  3608. private:
  3609. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3610. {
  3611. }
  3612. public:
  3613. WithStreamedUnaryMethod_StartLearning()
  3614. {
  3615. ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3616. { return this->StreamedStartLearning(context, streamer); }));
  3617. }
  3618. ~WithStreamedUnaryMethod_StartLearning() override
  3619. {
  3620. BaseClassMustBeDerivedFromService(this);
  3621. }
  3622. // disable regular version of this method
  3623. ::grpc::Status StartLearning(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3624. {
  3625. abort();
  3626. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3627. }
  3628. // replace default version of method with streamed unary
  3629. virtual ::grpc::Status StreamedStartLearning(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3630. };
  3631. template<class BaseClass>
  3632. class WithStreamedUnaryMethod_StartRescueMate : public BaseClass
  3633. {
  3634. private:
  3635. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3636. {
  3637. }
  3638. public:
  3639. WithStreamedUnaryMethod_StartRescueMate()
  3640. {
  3641. ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3642. { return this->StreamedStartRescueMate(context, streamer); }));
  3643. }
  3644. ~WithStreamedUnaryMethod_StartRescueMate() override
  3645. {
  3646. BaseClassMustBeDerivedFromService(this);
  3647. }
  3648. // disable regular version of this method
  3649. ::grpc::Status StartRescueMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3650. {
  3651. abort();
  3652. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3653. }
  3654. // replace default version of method with streamed unary
  3655. virtual ::grpc::Status StreamedStartRescueMate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3656. };
  3657. template<class BaseClass>
  3658. class WithStreamedUnaryMethod_StartTreatMate : public BaseClass
  3659. {
  3660. private:
  3661. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3662. {
  3663. }
  3664. public:
  3665. WithStreamedUnaryMethod_StartTreatMate()
  3666. {
  3667. ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3668. { return this->StreamedStartTreatMate(context, streamer); }));
  3669. }
  3670. ~WithStreamedUnaryMethod_StartTreatMate() override
  3671. {
  3672. BaseClassMustBeDerivedFromService(this);
  3673. }
  3674. // disable regular version of this method
  3675. ::grpc::Status StartTreatMate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3676. {
  3677. abort();
  3678. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3679. }
  3680. // replace default version of method with streamed unary
  3681. virtual ::grpc::Status StreamedStartTreatMate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3682. };
  3683. template<class BaseClass>
  3684. class WithStreamedUnaryMethod_Attack : public BaseClass
  3685. {
  3686. private:
  3687. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3688. {
  3689. }
  3690. public:
  3691. WithStreamedUnaryMethod_Attack()
  3692. {
  3693. ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler<::protobuf::AttackMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::AttackMsg, ::protobuf::BoolRes>* streamer)
  3694. { return this->StreamedAttack(context, streamer); }));
  3695. }
  3696. ~WithStreamedUnaryMethod_Attack() override
  3697. {
  3698. BaseClassMustBeDerivedFromService(this);
  3699. }
  3700. // disable regular version of this method
  3701. ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3702. {
  3703. abort();
  3704. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3705. }
  3706. // replace default version of method with streamed unary
  3707. virtual ::grpc::Status StreamedAttack(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::AttackMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3708. };
  3709. template<class BaseClass>
  3710. class WithStreamedUnaryMethod_Graduate : public BaseClass
  3711. {
  3712. private:
  3713. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3714. {
  3715. }
  3716. public:
  3717. WithStreamedUnaryMethod_Graduate()
  3718. {
  3719. ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3720. { return this->StreamedGraduate(context, streamer); }));
  3721. }
  3722. ~WithStreamedUnaryMethod_Graduate() override
  3723. {
  3724. BaseClassMustBeDerivedFromService(this);
  3725. }
  3726. // disable regular version of this method
  3727. ::grpc::Status Graduate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3728. {
  3729. abort();
  3730. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3731. }
  3732. // replace default version of method with streamed unary
  3733. virtual ::grpc::Status StreamedGraduate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3734. };
  3735. template<class BaseClass>
  3736. class WithStreamedUnaryMethod_OpenDoor : public BaseClass
  3737. {
  3738. private:
  3739. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3740. {
  3741. }
  3742. public:
  3743. WithStreamedUnaryMethod_OpenDoor()
  3744. {
  3745. ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3746. { return this->StreamedOpenDoor(context, streamer); }));
  3747. }
  3748. ~WithStreamedUnaryMethod_OpenDoor() override
  3749. {
  3750. BaseClassMustBeDerivedFromService(this);
  3751. }
  3752. // disable regular version of this method
  3753. ::grpc::Status OpenDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3754. {
  3755. abort();
  3756. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3757. }
  3758. // replace default version of method with streamed unary
  3759. virtual ::grpc::Status StreamedOpenDoor(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3760. };
  3761. template<class BaseClass>
  3762. class WithStreamedUnaryMethod_CloseDoor : public BaseClass
  3763. {
  3764. private:
  3765. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3766. {
  3767. }
  3768. public:
  3769. WithStreamedUnaryMethod_CloseDoor()
  3770. {
  3771. ::grpc::Service::MarkMethodStreamed(14, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3772. { return this->StreamedCloseDoor(context, streamer); }));
  3773. }
  3774. ~WithStreamedUnaryMethod_CloseDoor() override
  3775. {
  3776. BaseClassMustBeDerivedFromService(this);
  3777. }
  3778. // disable regular version of this method
  3779. ::grpc::Status CloseDoor(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3780. {
  3781. abort();
  3782. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3783. }
  3784. // replace default version of method with streamed unary
  3785. virtual ::grpc::Status StreamedCloseDoor(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3786. };
  3787. template<class BaseClass>
  3788. class WithStreamedUnaryMethod_SkipWindow : public BaseClass
  3789. {
  3790. private:
  3791. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3792. {
  3793. }
  3794. public:
  3795. WithStreamedUnaryMethod_SkipWindow()
  3796. {
  3797. ::grpc::Service::MarkMethodStreamed(15, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3798. { return this->StreamedSkipWindow(context, streamer); }));
  3799. }
  3800. ~WithStreamedUnaryMethod_SkipWindow() override
  3801. {
  3802. BaseClassMustBeDerivedFromService(this);
  3803. }
  3804. // disable regular version of this method
  3805. ::grpc::Status SkipWindow(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3806. {
  3807. abort();
  3808. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3809. }
  3810. // replace default version of method with streamed unary
  3811. virtual ::grpc::Status StreamedSkipWindow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3812. };
  3813. template<class BaseClass>
  3814. class WithStreamedUnaryMethod_StartOpenGate : public BaseClass
  3815. {
  3816. private:
  3817. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3818. {
  3819. }
  3820. public:
  3821. WithStreamedUnaryMethod_StartOpenGate()
  3822. {
  3823. ::grpc::Service::MarkMethodStreamed(16, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3824. { return this->StreamedStartOpenGate(context, streamer); }));
  3825. }
  3826. ~WithStreamedUnaryMethod_StartOpenGate() override
  3827. {
  3828. BaseClassMustBeDerivedFromService(this);
  3829. }
  3830. // disable regular version of this method
  3831. ::grpc::Status StartOpenGate(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3832. {
  3833. abort();
  3834. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3835. }
  3836. // replace default version of method with streamed unary
  3837. virtual ::grpc::Status StreamedStartOpenGate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3838. };
  3839. template<class BaseClass>
  3840. class WithStreamedUnaryMethod_StartOpenChest : public BaseClass
  3841. {
  3842. private:
  3843. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3844. {
  3845. }
  3846. public:
  3847. WithStreamedUnaryMethod_StartOpenChest()
  3848. {
  3849. ::grpc::Service::MarkMethodStreamed(17, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3850. { return this->StreamedStartOpenChest(context, streamer); }));
  3851. }
  3852. ~WithStreamedUnaryMethod_StartOpenChest() override
  3853. {
  3854. BaseClassMustBeDerivedFromService(this);
  3855. }
  3856. // disable regular version of this method
  3857. ::grpc::Status StartOpenChest(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3858. {
  3859. abort();
  3860. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3861. }
  3862. // replace default version of method with streamed unary
  3863. virtual ::grpc::Status StreamedStartOpenChest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3864. };
  3865. template<class BaseClass>
  3866. class WithStreamedUnaryMethod_EndAllAction : public BaseClass
  3867. {
  3868. private:
  3869. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3870. {
  3871. }
  3872. public:
  3873. WithStreamedUnaryMethod_EndAllAction()
  3874. {
  3875. ::grpc::Service::MarkMethodStreamed(18, new ::grpc::internal::StreamedUnaryHandler<::protobuf::IDMsg, ::protobuf::BoolRes>([this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* streamer)
  3876. { return this->StreamedEndAllAction(context, streamer); }));
  3877. }
  3878. ~WithStreamedUnaryMethod_EndAllAction() override
  3879. {
  3880. BaseClassMustBeDerivedFromService(this);
  3881. }
  3882. // disable regular version of this method
  3883. ::grpc::Status EndAllAction(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override
  3884. {
  3885. abort();
  3886. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3887. }
  3888. // replace default version of method with streamed unary
  3889. virtual ::grpc::Status StreamedEndAllAction(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer<::protobuf::IDMsg, ::protobuf::BoolRes>* server_unary_streamer) = 0;
  3890. };
  3891. typedef WithStreamedUnaryMethod_TryConnection<WithStreamedUnaryMethod_Move<WithStreamedUnaryMethod_PickProp<WithStreamedUnaryMethod_UseProp<WithStreamedUnaryMethod_ThrowProp<WithStreamedUnaryMethod_UseSkill<WithStreamedUnaryMethod_SendMessage<WithStreamedUnaryMethod_StartLearning<WithStreamedUnaryMethod_StartRescueMate<WithStreamedUnaryMethod_StartTreatMate<WithStreamedUnaryMethod_Attack<WithStreamedUnaryMethod_Graduate<WithStreamedUnaryMethod_OpenDoor<WithStreamedUnaryMethod_CloseDoor<WithStreamedUnaryMethod_SkipWindow<WithStreamedUnaryMethod_StartOpenGate<WithStreamedUnaryMethod_StartOpenChest<WithStreamedUnaryMethod_EndAllAction<Service>>>>>>>>>>>>>>>>>> StreamedUnaryService;
  3892. template<class BaseClass>
  3893. class WithSplitStreamingMethod_AddPlayer : public BaseClass
  3894. {
  3895. private:
  3896. void BaseClassMustBeDerivedFromService(const Service* /*service*/)
  3897. {
  3898. }
  3899. public:
  3900. WithSplitStreamingMethod_AddPlayer()
  3901. {
  3902. ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler<::protobuf::PlayerMsg, ::protobuf::MessageToClient>([this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::PlayerMsg, ::protobuf::MessageToClient>* streamer)
  3903. { return this->StreamedAddPlayer(context, streamer); }));
  3904. }
  3905. ~WithSplitStreamingMethod_AddPlayer() override
  3906. {
  3907. BaseClassMustBeDerivedFromService(this);
  3908. }
  3909. // disable regular version of this method
  3910. ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter<::protobuf::MessageToClient>* /*writer*/) override
  3911. {
  3912. abort();
  3913. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  3914. }
  3915. // replace default version of method with split streamed
  3916. virtual ::grpc::Status StreamedAddPlayer(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer<::protobuf::PlayerMsg, ::protobuf::MessageToClient>* server_split_streamer) = 0;
  3917. };
  3918. typedef WithSplitStreamingMethod_AddPlayer<Service> SplitStreamedService;
  3919. typedef WithStreamedUnaryMethod_TryConnection<WithSplitStreamingMethod_AddPlayer<WithStreamedUnaryMethod_Move<WithStreamedUnaryMethod_PickProp<WithStreamedUnaryMethod_UseProp<WithStreamedUnaryMethod_ThrowProp<WithStreamedUnaryMethod_UseSkill<WithStreamedUnaryMethod_SendMessage<WithStreamedUnaryMethod_StartLearning<WithStreamedUnaryMethod_StartRescueMate<WithStreamedUnaryMethod_StartTreatMate<WithStreamedUnaryMethod_Attack<WithStreamedUnaryMethod_Graduate<WithStreamedUnaryMethod_OpenDoor<WithStreamedUnaryMethod_CloseDoor<WithStreamedUnaryMethod_SkipWindow<WithStreamedUnaryMethod_StartOpenGate<WithStreamedUnaryMethod_StartOpenChest<WithStreamedUnaryMethod_EndAllAction<Service>>>>>>>>>>>>>>>>>>> StreamedService;
  3920. };
  3921. } // namespace protobuf
  3922. #endif // GRPC_Services_2eproto__INCLUDED