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

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