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

Services.grpc.pb.h 236 kB

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