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

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