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

Services.grpc.pb.h 237 kB

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