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

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