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.

Message2Clients.pb.cc 206 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Message2Clients.proto
  3. #include "Message2Clients.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  16. namespace _pbi = _pb::internal;
  17. namespace protobuf
  18. {
  19. PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent(
  20. ::_pbi::ConstantInitialized
  21. ) :
  22. _impl_{
  23. /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.determination_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.fail_num_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.student_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.fail_time_)*/ 0, /*decltype(_impl_.state_)*/ 0, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.emo_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  24. {
  25. }
  26. struct MessageOfStudentDefaultTypeInternal
  27. {
  28. PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() :
  29. _instance(::_pbi::ConstantInitialized{})
  30. {
  31. }
  32. ~MessageOfStudentDefaultTypeInternal()
  33. {
  34. }
  35. union
  36. {
  37. MessageOfStudent _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_;
  41. PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker(
  42. ::_pbi::ConstantInitialized
  43. ) :
  44. _impl_{
  45. /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.tricker_type_)*/ 0, /*decltype(_impl_.movable_)*/ false, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  46. {
  47. }
  48. struct MessageOfTrickerDefaultTypeInternal
  49. {
  50. PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() :
  51. _instance(::_pbi::ConstantInitialized{})
  52. {
  53. }
  54. ~MessageOfTrickerDefaultTypeInternal()
  55. {
  56. }
  57. union
  58. {
  59. MessageOfTricker _instance;
  60. };
  61. };
  62. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_;
  63. PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet(
  64. ::_pbi::ConstantInitialized
  65. ) :
  66. _impl_{
  67. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.parent_team_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  68. {
  69. }
  70. struct MessageOfBulletDefaultTypeInternal
  71. {
  72. PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() :
  73. _instance(::_pbi::ConstantInitialized{})
  74. {
  75. }
  76. ~MessageOfBulletDefaultTypeInternal()
  77. {
  78. }
  79. union
  80. {
  81. MessageOfBullet _instance;
  82. };
  83. };
  84. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_;
  85. PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet(
  86. ::_pbi::ConstantInitialized
  87. ) :
  88. _impl_{
  89. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  90. {
  91. }
  92. struct MessageOfBombedBulletDefaultTypeInternal
  93. {
  94. PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() :
  95. _instance(::_pbi::ConstantInitialized{})
  96. {
  97. }
  98. ~MessageOfBombedBulletDefaultTypeInternal()
  99. {
  100. }
  101. union
  102. {
  103. MessageOfBombedBullet _instance;
  104. };
  105. };
  106. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_;
  107. PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp(
  108. ::_pbi::ConstantInitialized
  109. ) :
  110. _impl_{
  111. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.size_)*/ 0, /*decltype(_impl_.is_moving_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  112. {
  113. }
  114. struct MessageOfPropDefaultTypeInternal
  115. {
  116. PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() :
  117. _instance(::_pbi::ConstantInitialized{})
  118. {
  119. }
  120. ~MessageOfPropDefaultTypeInternal()
  121. {
  122. }
  123. union
  124. {
  125. MessageOfProp _instance;
  126. };
  127. };
  128. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
  129. PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp(
  130. ::_pbi::ConstantInitialized
  131. ) :
  132. _impl_{
  133. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  134. {
  135. }
  136. struct MessageOfPickedPropDefaultTypeInternal
  137. {
  138. PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() :
  139. _instance(::_pbi::ConstantInitialized{})
  140. {
  141. }
  142. ~MessageOfPickedPropDefaultTypeInternal()
  143. {
  144. }
  145. union
  146. {
  147. MessageOfPickedProp _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
  151. PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(
  152. ::_pbi::ConstantInitialized
  153. ) :
  154. _impl_{
  155. /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}
  156. {
  157. }
  158. struct MessageOfMap_RowDefaultTypeInternal
  159. {
  160. PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() :
  161. _instance(::_pbi::ConstantInitialized{})
  162. {
  163. }
  164. ~MessageOfMap_RowDefaultTypeInternal()
  165. {
  166. }
  167. union
  168. {
  169. MessageOfMap_Row _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
  173. PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(
  174. ::_pbi::ConstantInitialized
  175. ) :
  176. _impl_{
  177. /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}}
  178. {
  179. }
  180. struct MessageOfMapDefaultTypeInternal
  181. {
  182. PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() :
  183. _instance(::_pbi::ConstantInitialized{})
  184. {
  185. }
  186. ~MessageOfMapDefaultTypeInternal()
  187. {
  188. }
  189. union
  190. {
  191. MessageOfMap _instance;
  192. };
  193. };
  194. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
  195. PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(
  196. ::_pbi::ConstantInitialized
  197. ) :
  198. _impl_{
  199. /*decltype(_impl_.student_message_)*/ {}, /*decltype(_impl_.tricker_message_)*/ {}, /*decltype(_impl_.prop_message_)*/ {}, /*decltype(_impl_.map_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  200. {
  201. }
  202. struct MessageToClientDefaultTypeInternal
  203. {
  204. PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() :
  205. _instance(::_pbi::ConstantInitialized{})
  206. {
  207. }
  208. ~MessageToClientDefaultTypeInternal()
  209. {
  210. }
  211. union
  212. {
  213. MessageToClient _instance;
  214. };
  215. };
  216. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
  217. PROTOBUF_CONSTEXPR MoveRes::MoveRes(
  218. ::_pbi::ConstantInitialized
  219. ) :
  220. _impl_{
  221. /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  222. {
  223. }
  224. struct MoveResDefaultTypeInternal
  225. {
  226. PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() :
  227. _instance(::_pbi::ConstantInitialized{})
  228. {
  229. }
  230. ~MoveResDefaultTypeInternal()
  231. {
  232. }
  233. union
  234. {
  235. MoveRes _instance;
  236. };
  237. };
  238. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_;
  239. PROTOBUF_CONSTEXPR BoolRes::BoolRes(
  240. ::_pbi::ConstantInitialized
  241. ) :
  242. _impl_{
  243. /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  244. {
  245. }
  246. struct BoolResDefaultTypeInternal
  247. {
  248. PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() :
  249. _instance(::_pbi::ConstantInitialized{})
  250. {
  251. }
  252. ~BoolResDefaultTypeInternal()
  253. {
  254. }
  255. union
  256. {
  257. BoolRes _instance;
  258. };
  259. };
  260. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_;
  261. PROTOBUF_CONSTEXPR MsgRes::MsgRes(
  262. ::_pbi::ConstantInitialized
  263. ) :
  264. _impl_{
  265. /*decltype(_impl_.message_received_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.from_player_id_)*/ int64_t{0}, /*decltype(_impl_.have_message_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  266. {
  267. }
  268. struct MsgResDefaultTypeInternal
  269. {
  270. PROTOBUF_CONSTEXPR MsgResDefaultTypeInternal() :
  271. _instance(::_pbi::ConstantInitialized{})
  272. {
  273. }
  274. ~MsgResDefaultTypeInternal()
  275. {
  276. }
  277. union
  278. {
  279. MsgRes _instance;
  280. };
  281. };
  282. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgResDefaultTypeInternal _MsgRes_default_instance_;
  283. } // namespace protobuf
  284. static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[12];
  285. static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
  286. static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
  287. const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  288. ~0u, // no _has_bits_
  289. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _internal_metadata_),
  290. ~0u, // no _extensions_
  291. ~0u, // no _oneof_case_
  292. ~0u, // no _weak_field_map_
  293. ~0u, // no _inlined_string_donated_
  294. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_),
  295. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_),
  296. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_),
  297. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_),
  298. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_num_),
  299. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_),
  300. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_),
  301. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_),
  302. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_),
  303. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_),
  304. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.state_),
  305. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_time_),
  306. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.emo_time_),
  307. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_),
  308. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_),
  309. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_),
  310. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.damage_),
  311. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_),
  312. ~0u, // no _has_bits_
  313. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_),
  314. ~0u, // no _extensions_
  315. ~0u, // no _oneof_case_
  316. ~0u, // no _weak_field_map_
  317. ~0u, // no _inlined_string_donated_
  318. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_),
  319. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_),
  320. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_),
  321. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.damage_),
  322. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_),
  323. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_),
  324. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_),
  325. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_),
  326. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_),
  327. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.movable_),
  328. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_),
  329. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_),
  330. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_),
  331. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_),
  332. ~0u, // no _has_bits_
  333. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _internal_metadata_),
  334. ~0u, // no _extensions_
  335. ~0u, // no _oneof_case_
  336. ~0u, // no _weak_field_map_
  337. ~0u, // no _inlined_string_donated_
  338. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.type_),
  339. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.x_),
  340. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.y_),
  341. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.facing_direction_),
  342. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.guid_),
  343. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.parent_team_id_),
  344. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.place_),
  345. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.bomb_range_),
  346. ~0u, // no _has_bits_
  347. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _internal_metadata_),
  348. ~0u, // no _extensions_
  349. ~0u, // no _oneof_case_
  350. ~0u, // no _weak_field_map_
  351. ~0u, // no _inlined_string_donated_
  352. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.type_),
  353. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.x_),
  354. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.y_),
  355. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.facing_direction_),
  356. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.mapping_id_),
  357. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.bomb_range_),
  358. ~0u, // no _has_bits_
  359. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
  360. ~0u, // no _extensions_
  361. ~0u, // no _oneof_case_
  362. ~0u, // no _weak_field_map_
  363. ~0u, // no _inlined_string_donated_
  364. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_),
  365. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_),
  366. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_),
  367. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_),
  368. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_),
  369. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_),
  370. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.size_),
  371. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.is_moving_),
  372. ~0u, // no _has_bits_
  373. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
  374. ~0u, // no _extensions_
  375. ~0u, // no _oneof_case_
  376. ~0u, // no _weak_field_map_
  377. ~0u, // no _inlined_string_donated_
  378. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_),
  379. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_),
  380. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_),
  381. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_),
  382. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_),
  383. ~0u, // no _has_bits_
  384. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
  385. ~0u, // no _extensions_
  386. ~0u, // no _oneof_case_
  387. ~0u, // no _weak_field_map_
  388. ~0u, // no _inlined_string_donated_
  389. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_),
  390. ~0u, // no _has_bits_
  391. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
  392. ~0u, // no _extensions_
  393. ~0u, // no _oneof_case_
  394. ~0u, // no _weak_field_map_
  395. ~0u, // no _inlined_string_donated_
  396. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_),
  397. ~0u, // no _has_bits_
  398. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
  399. ~0u, // no _extensions_
  400. ~0u, // no _oneof_case_
  401. ~0u, // no _weak_field_map_
  402. ~0u, // no _inlined_string_donated_
  403. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.student_message_),
  404. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.tricker_message_),
  405. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.prop_message_),
  406. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.map_message_),
  407. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_),
  408. ~0u, // no _has_bits_
  409. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
  410. ~0u, // no _extensions_
  411. ~0u, // no _oneof_case_
  412. ~0u, // no _weak_field_map_
  413. ~0u, // no _inlined_string_donated_
  414. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_),
  415. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_),
  416. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_),
  417. ~0u, // no _has_bits_
  418. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
  419. ~0u, // no _extensions_
  420. ~0u, // no _oneof_case_
  421. ~0u, // no _weak_field_map_
  422. ~0u, // no _inlined_string_donated_
  423. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_),
  424. ~0u, // no _has_bits_
  425. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _internal_metadata_),
  426. ~0u, // no _extensions_
  427. ~0u, // no _oneof_case_
  428. ~0u, // no _weak_field_map_
  429. ~0u, // no _inlined_string_donated_
  430. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.have_message_),
  431. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.from_player_id_),
  432. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.message_received_),
  433. };
  434. static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  435. {0, -1, -1, sizeof(::protobuf::MessageOfStudent)},
  436. {24, -1, -1, sizeof(::protobuf::MessageOfTricker)},
  437. {44, -1, -1, sizeof(::protobuf::MessageOfBullet)},
  438. {58, -1, -1, sizeof(::protobuf::MessageOfBombedBullet)},
  439. {70, -1, -1, sizeof(::protobuf::MessageOfProp)},
  440. {84, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
  441. {95, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
  442. {102, -1, -1, sizeof(::protobuf::MessageOfMap)},
  443. {109, -1, -1, sizeof(::protobuf::MessageToClient)},
  444. {120, -1, -1, sizeof(::protobuf::MoveRes)},
  445. {129, -1, -1, sizeof(::protobuf::BoolRes)},
  446. {136, -1, -1, sizeof(::protobuf::MsgRes)},
  447. };
  448. static const ::_pb::Message* const file_default_instances[] = {
  449. &::protobuf::_MessageOfStudent_default_instance_._instance,
  450. &::protobuf::_MessageOfTricker_default_instance_._instance,
  451. &::protobuf::_MessageOfBullet_default_instance_._instance,
  452. &::protobuf::_MessageOfBombedBullet_default_instance_._instance,
  453. &::protobuf::_MessageOfProp_default_instance_._instance,
  454. &::protobuf::_MessageOfPickedProp_default_instance_._instance,
  455. &::protobuf::_MessageOfMap_Row_default_instance_._instance,
  456. &::protobuf::_MessageOfMap_default_instance_._instance,
  457. &::protobuf::_MessageToClient_default_instance_._instance,
  458. &::protobuf::_MoveRes_default_instance_._instance,
  459. &::protobuf::_BoolRes_default_instance_._instance,
  460. &::protobuf::_MsgRes_default_instance_._instance,
  461. };
  462. const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  463. "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
  464. "geType.proto\"\301\003\n\020MessageOfStudent\022\t\n\001x\030\001"
  465. " \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\025\n\rdeterm"
  466. "ination\030\004 \001(\005\022\020\n\010fail_num\030\005 \001(\005\022\"\n\032time_"
  467. "until_skill_available\030\006 \001(\001\022\"\n\005place\030\007 \001"
  468. "(\0162\023.protobuf.PlaceType\022 \n\004prop\030\010 \001(\0162\022."
  469. "protobuf.PropType\022+\n\014student_type\030\t \001(\0162"
  470. "\025.protobuf.StudentType\022\014\n\004guid\030\n \001(\003\022%\n\005"
  471. "state\030\013 \001(\0162\026.protobuf.StudentState\022\021\n\tf"
  472. "ail_time\030\014 \001(\001\022\020\n\010emo_time\030\016 \001(\001\022\021\n\tplay"
  473. "er_id\030\017 \001(\003\022\022\n\nview_range\030\020 \001(\005\022\016\n\006radiu"
  474. "s\030\021 \001(\005\022\016\n\006damage\030\022 \001(\005\022\'\n\004buff\030\023 \003(\0162\031."
  475. "protobuf.StudentBuffType\"\335\002\n\020MessageOfTr"
  476. "icker\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001"
  477. "(\005\022\016\n\006damage\030\004 \001(\005\022\"\n\032time_until_skill_a"
  478. "vailable\030\005 \001(\001\022\"\n\005place\030\006 \001(\0162\023.protobuf"
  479. ".PlaceType\022 \n\004prop\030\007 \001(\0162\022.protobuf.Prop"
  480. "Type\022+\n\014tricker_type\030\010 \001(\0162\025.protobuf.Tr"
  481. "ickerType\022\014\n\004guid\030\t \001(\003\022\017\n\007movable\030\n \001(\010"
  482. "\022\021\n\tplayer_id\030\013 \001(\003\022\022\n\nview_range\030\014 \001(\005\022"
  483. "\016\n\006radius\030\r \001(\005\022\'\n\004buff\030\016 \003(\0162\031.protobuf"
  484. ".TrickerBuffType\"\303\001\n\017MessageOfBullet\022\"\n\004"
  485. "type\030\001 \001(\0162\024.protobuf.BulletType\022\t\n\001x\030\002 "
  486. "\001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001"
  487. "\022\014\n\004guid\030\005 \001(\003\022\026\n\016parent_team_id\030\006 \001(\003\022\""
  488. "\n\005place\030\007 \001(\0162\023.protobuf.PlaceType\022\022\n\nbo"
  489. "mb_range\030\010 \001(\001\"\223\001\n\025MessageOfBombedBullet"
  490. "\022\"\n\004type\030\001 \001(\0162\024.protobuf.BulletType\022\t\n\001"
  491. "x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004"
  492. " \001(\001\022\022\n\nmapping_id\030\005 \001(\003\022\022\n\nbomb_range\030\006"
  493. " \001(\001\"\264\001\n\rMessageOfProp\022 \n\004type\030\001 \001(\0162\022.p"
  494. "rotobuf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030"
  495. "\n\020facing_direction\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022\""
  496. "\n\005place\030\006 \001(\0162\023.protobuf.PlaceType\022\014\n\004si"
  497. "ze\030\007 \001(\005\022\021\n\tis_moving\030\010 \001(\010\"{\n\023MessageOf"
  498. "PickedProp\022 \n\004type\030\001 \001(\0162\022.protobuf.Prop"
  499. "Type\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_dir"
  500. "ection\030\004 \001(\001\022\022\n\nmapping_id\030\005 \001(\003\"`\n\014Mess"
  501. "ageOfMap\022\'\n\003row\030\002 \003(\0132\032.protobuf.Message"
  502. "OfMap.Row\032\'\n\003Row\022 \n\003col\030\001 \003(\0162\023.protobuf"
  503. ".PlaceType\"\200\002\n\017MessageToClient\0223\n\017studen"
  504. "t_message\030\001 \003(\0132\032.protobuf.MessageOfStud"
  505. "ent\0223\n\017tricker_message\030\002 \003(\0132\032.protobuf."
  506. "MessageOfTricker\022-\n\014prop_message\030\003 \003(\0132\027"
  507. ".protobuf.MessageOfProp\022+\n\013map_message\030\004"
  508. " \001(\0132\026.protobuf.MessageOfMap\022\'\n\ngame_sta"
  509. "te\030\005 \001(\0162\023.protobuf.GameState\"J\n\007MoveRes"
  510. "\022\024\n\014actual_speed\030\001 \001(\003\022\024\n\014actual_angle\030\002"
  511. " \001(\001\022\023\n\013act_success\030\003 \001(\010\"\036\n\007BoolRes\022\023\n\013"
  512. "act_success\030\001 \001(\010\"P\n\006MsgRes\022\024\n\014have_mess"
  513. "age\030\001 \001(\010\022\026\n\016from_player_id\030\002 \001(\003\022\030\n\020mes"
  514. "sage_received\030\003 \001(\tb\006proto3";
  515. static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = {
  516. &::descriptor_table_MessageType_2eproto,
  517. };
  518. static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once;
  519. const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = {
  520. false,
  521. false,
  522. 2067,
  523. descriptor_table_protodef_Message2Clients_2eproto,
  524. "Message2Clients.proto",
  525. &descriptor_table_Message2Clients_2eproto_once,
  526. descriptor_table_Message2Clients_2eproto_deps,
  527. 1,
  528. 12,
  529. schemas,
  530. file_default_instances,
  531. TableStruct_Message2Clients_2eproto::offsets,
  532. file_level_metadata_Message2Clients_2eproto,
  533. file_level_enum_descriptors_Message2Clients_2eproto,
  534. file_level_service_descriptors_Message2Clients_2eproto,
  535. };
  536. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
  537. {
  538. return &descriptor_table_Message2Clients_2eproto;
  539. }
  540. // Force running AddDescriptors() at dynamic initialization time.
  541. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
  542. namespace protobuf
  543. {
  544. // ===================================================================
  545. class MessageOfStudent::_Internal
  546. {
  547. public:
  548. };
  549. MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  550. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  551. {
  552. SharedCtor(arena, is_message_owned);
  553. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent)
  554. }
  555. MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) :
  556. ::PROTOBUF_NAMESPACE_ID::Message()
  557. {
  558. MessageOfStudent* const _this = this;
  559. (void)_this;
  560. new (&_impl_) Impl_{
  561. decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.determination_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.fail_num_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.student_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.fail_time_){}, decltype(_impl_.state_){}, decltype(_impl_.view_range_){}, decltype(_impl_.emo_time_){}, decltype(_impl_.player_id_){}, decltype(_impl_.radius_){}, decltype(_impl_.damage_){}, /*decltype(_impl_._cached_size_)*/ {}};
  562. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  563. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.damage_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.damage_));
  564. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent)
  565. }
  566. inline void MessageOfStudent::SharedCtor(
  567. ::_pb::Arena* arena, bool is_message_owned
  568. )
  569. {
  570. (void)arena;
  571. (void)is_message_owned;
  572. new (&_impl_) Impl_{
  573. decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.determination_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.fail_num_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.student_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.fail_time_){0}, decltype(_impl_.state_){0}, decltype(_impl_.view_range_){0}, decltype(_impl_.emo_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.radius_){0}, decltype(_impl_.damage_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  574. }
  575. MessageOfStudent::~MessageOfStudent()
  576. {
  577. // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent)
  578. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  579. {
  580. (void)arena;
  581. return;
  582. }
  583. SharedDtor();
  584. }
  585. inline void MessageOfStudent::SharedDtor()
  586. {
  587. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  588. _impl_.buff_.~RepeatedField();
  589. }
  590. void MessageOfStudent::SetCachedSize(int size) const
  591. {
  592. _impl_._cached_size_.Set(size);
  593. }
  594. void MessageOfStudent::Clear()
  595. {
  596. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfStudent)
  597. uint32_t cached_has_bits = 0;
  598. // Prevent compiler warnings about cached_has_bits being unused
  599. (void)cached_has_bits;
  600. _impl_.buff_.Clear();
  601. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.damage_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.damage_));
  602. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  603. }
  604. const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  605. {
  606. #define CHK_(x) \
  607. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  608. goto failure
  609. while (!ctx->Done(&ptr))
  610. {
  611. uint32_t tag;
  612. ptr = ::_pbi::ReadTag(ptr, &tag);
  613. switch (tag >> 3)
  614. {
  615. // int32 x = 1;
  616. case 1:
  617. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  618. {
  619. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  620. CHK_(ptr);
  621. }
  622. else
  623. goto handle_unusual;
  624. continue;
  625. // int32 y = 2;
  626. case 2:
  627. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  628. {
  629. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  630. CHK_(ptr);
  631. }
  632. else
  633. goto handle_unusual;
  634. continue;
  635. // int32 speed = 3;
  636. case 3:
  637. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  638. {
  639. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  640. CHK_(ptr);
  641. }
  642. else
  643. goto handle_unusual;
  644. continue;
  645. // int32 determination = 4;
  646. case 4:
  647. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  648. {
  649. _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  650. CHK_(ptr);
  651. }
  652. else
  653. goto handle_unusual;
  654. continue;
  655. // int32 fail_num = 5;
  656. case 5:
  657. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  658. {
  659. _impl_.fail_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  660. CHK_(ptr);
  661. }
  662. else
  663. goto handle_unusual;
  664. continue;
  665. // double time_until_skill_available = 6;
  666. case 6:
  667. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  668. {
  669. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  670. ptr += sizeof(double);
  671. }
  672. else
  673. goto handle_unusual;
  674. continue;
  675. // .protobuf.PlaceType place = 7;
  676. case 7:
  677. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  678. {
  679. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  680. CHK_(ptr);
  681. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  682. }
  683. else
  684. goto handle_unusual;
  685. continue;
  686. // .protobuf.PropType prop = 8;
  687. case 8:
  688. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  689. {
  690. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  691. CHK_(ptr);
  692. _internal_set_prop(static_cast<::protobuf::PropType>(val));
  693. }
  694. else
  695. goto handle_unusual;
  696. continue;
  697. // .protobuf.StudentType student_type = 9;
  698. case 9:
  699. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  700. {
  701. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  702. CHK_(ptr);
  703. _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
  704. }
  705. else
  706. goto handle_unusual;
  707. continue;
  708. // int64 guid = 10;
  709. case 10:
  710. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  711. {
  712. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  713. CHK_(ptr);
  714. }
  715. else
  716. goto handle_unusual;
  717. continue;
  718. // .protobuf.StudentState state = 11;
  719. case 11:
  720. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  721. {
  722. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  723. CHK_(ptr);
  724. _internal_set_state(static_cast<::protobuf::StudentState>(val));
  725. }
  726. else
  727. goto handle_unusual;
  728. continue;
  729. // double fail_time = 12;
  730. case 12:
  731. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 97))
  732. {
  733. _impl_.fail_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  734. ptr += sizeof(double);
  735. }
  736. else
  737. goto handle_unusual;
  738. continue;
  739. // double emo_time = 14;
  740. case 14:
  741. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113))
  742. {
  743. _impl_.emo_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  744. ptr += sizeof(double);
  745. }
  746. else
  747. goto handle_unusual;
  748. continue;
  749. // int64 player_id = 15;
  750. case 15:
  751. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
  752. {
  753. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  754. CHK_(ptr);
  755. }
  756. else
  757. goto handle_unusual;
  758. continue;
  759. // int32 view_range = 16;
  760. case 16:
  761. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
  762. {
  763. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  764. CHK_(ptr);
  765. }
  766. else
  767. goto handle_unusual;
  768. continue;
  769. // int32 radius = 17;
  770. case 17:
  771. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136))
  772. {
  773. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  774. CHK_(ptr);
  775. }
  776. else
  777. goto handle_unusual;
  778. continue;
  779. // int32 damage = 18;
  780. case 18:
  781. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144))
  782. {
  783. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  784. CHK_(ptr);
  785. }
  786. else
  787. goto handle_unusual;
  788. continue;
  789. // repeated .protobuf.StudentBuffType buff = 19;
  790. case 19:
  791. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154))
  792. {
  793. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  794. CHK_(ptr);
  795. }
  796. else if (static_cast<uint8_t>(tag) == 152)
  797. {
  798. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  799. CHK_(ptr);
  800. _internal_add_buff(static_cast<::protobuf::StudentBuffType>(val));
  801. }
  802. else
  803. goto handle_unusual;
  804. continue;
  805. default:
  806. goto handle_unusual;
  807. } // switch
  808. handle_unusual:
  809. if ((tag == 0) || ((tag & 7) == 4))
  810. {
  811. CHK_(ptr);
  812. ctx->SetLastTag(tag);
  813. goto message_done;
  814. }
  815. ptr = UnknownFieldParse(
  816. tag,
  817. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  818. ptr,
  819. ctx
  820. );
  821. CHK_(ptr != nullptr);
  822. } // while
  823. message_done:
  824. return ptr;
  825. failure:
  826. ptr = nullptr;
  827. goto message_done;
  828. #undef CHK_
  829. }
  830. uint8_t* MessageOfStudent::_InternalSerialize(
  831. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  832. ) const
  833. {
  834. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfStudent)
  835. uint32_t cached_has_bits = 0;
  836. (void)cached_has_bits;
  837. // int32 x = 1;
  838. if (this->_internal_x() != 0)
  839. {
  840. target = stream->EnsureSpace(target);
  841. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  842. }
  843. // int32 y = 2;
  844. if (this->_internal_y() != 0)
  845. {
  846. target = stream->EnsureSpace(target);
  847. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  848. }
  849. // int32 speed = 3;
  850. if (this->_internal_speed() != 0)
  851. {
  852. target = stream->EnsureSpace(target);
  853. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  854. }
  855. // int32 determination = 4;
  856. if (this->_internal_determination() != 0)
  857. {
  858. target = stream->EnsureSpace(target);
  859. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target);
  860. }
  861. // int32 fail_num = 5;
  862. if (this->_internal_fail_num() != 0)
  863. {
  864. target = stream->EnsureSpace(target);
  865. target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_fail_num(), target);
  866. }
  867. // double time_until_skill_available = 6;
  868. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  869. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  870. uint64_t raw_time_until_skill_available;
  871. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  872. if (raw_time_until_skill_available != 0)
  873. {
  874. target = stream->EnsureSpace(target);
  875. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target);
  876. }
  877. // .protobuf.PlaceType place = 7;
  878. if (this->_internal_place() != 0)
  879. {
  880. target = stream->EnsureSpace(target);
  881. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  882. 7, this->_internal_place(), target
  883. );
  884. }
  885. // .protobuf.PropType prop = 8;
  886. if (this->_internal_prop() != 0)
  887. {
  888. target = stream->EnsureSpace(target);
  889. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  890. 8, this->_internal_prop(), target
  891. );
  892. }
  893. // .protobuf.StudentType student_type = 9;
  894. if (this->_internal_student_type() != 0)
  895. {
  896. target = stream->EnsureSpace(target);
  897. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  898. 9, this->_internal_student_type(), target
  899. );
  900. }
  901. // int64 guid = 10;
  902. if (this->_internal_guid() != 0)
  903. {
  904. target = stream->EnsureSpace(target);
  905. target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
  906. }
  907. // .protobuf.StudentState state = 11;
  908. if (this->_internal_state() != 0)
  909. {
  910. target = stream->EnsureSpace(target);
  911. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  912. 11, this->_internal_state(), target
  913. );
  914. }
  915. // double fail_time = 12;
  916. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  917. double tmp_fail_time = this->_internal_fail_time();
  918. uint64_t raw_fail_time;
  919. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  920. if (raw_fail_time != 0)
  921. {
  922. target = stream->EnsureSpace(target);
  923. target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_fail_time(), target);
  924. }
  925. // double emo_time = 14;
  926. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  927. double tmp_emo_time = this->_internal_emo_time();
  928. uint64_t raw_emo_time;
  929. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  930. if (raw_emo_time != 0)
  931. {
  932. target = stream->EnsureSpace(target);
  933. target = ::_pbi::WireFormatLite::WriteDoubleToArray(14, this->_internal_emo_time(), target);
  934. }
  935. // int64 player_id = 15;
  936. if (this->_internal_player_id() != 0)
  937. {
  938. target = stream->EnsureSpace(target);
  939. target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
  940. }
  941. // int32 view_range = 16;
  942. if (this->_internal_view_range() != 0)
  943. {
  944. target = stream->EnsureSpace(target);
  945. target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
  946. }
  947. // int32 radius = 17;
  948. if (this->_internal_radius() != 0)
  949. {
  950. target = stream->EnsureSpace(target);
  951. target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target);
  952. }
  953. // int32 damage = 18;
  954. if (this->_internal_damage() != 0)
  955. {
  956. target = stream->EnsureSpace(target);
  957. target = ::_pbi::WireFormatLite::WriteInt32ToArray(18, this->_internal_damage(), target);
  958. }
  959. // repeated .protobuf.StudentBuffType buff = 19;
  960. {
  961. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  962. if (byte_size > 0)
  963. {
  964. target = stream->WriteEnumPacked(
  965. 19, _impl_.buff_, byte_size, target
  966. );
  967. }
  968. }
  969. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  970. {
  971. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  972. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  973. );
  974. }
  975. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfStudent)
  976. return target;
  977. }
  978. size_t MessageOfStudent::ByteSizeLong() const
  979. {
  980. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfStudent)
  981. size_t total_size = 0;
  982. uint32_t cached_has_bits = 0;
  983. // Prevent compiler warnings about cached_has_bits being unused
  984. (void)cached_has_bits;
  985. // repeated .protobuf.StudentBuffType buff = 19;
  986. {
  987. size_t data_size = 0;
  988. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  989. for (unsigned int i = 0; i < count; i++)
  990. {
  991. data_size += ::_pbi::WireFormatLite::EnumSize(
  992. this->_internal_buff(static_cast<int>(i))
  993. );
  994. }
  995. if (data_size > 0)
  996. {
  997. total_size += 2 +
  998. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  999. }
  1000. int cached_size = ::_pbi::ToCachedSize(data_size);
  1001. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1002. total_size += data_size;
  1003. }
  1004. // int32 x = 1;
  1005. if (this->_internal_x() != 0)
  1006. {
  1007. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1008. }
  1009. // int32 y = 2;
  1010. if (this->_internal_y() != 0)
  1011. {
  1012. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1013. }
  1014. // int32 speed = 3;
  1015. if (this->_internal_speed() != 0)
  1016. {
  1017. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  1018. }
  1019. // int32 determination = 4;
  1020. if (this->_internal_determination() != 0)
  1021. {
  1022. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination());
  1023. }
  1024. // double time_until_skill_available = 6;
  1025. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1026. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1027. uint64_t raw_time_until_skill_available;
  1028. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1029. if (raw_time_until_skill_available != 0)
  1030. {
  1031. total_size += 1 + 8;
  1032. }
  1033. // int32 fail_num = 5;
  1034. if (this->_internal_fail_num() != 0)
  1035. {
  1036. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fail_num());
  1037. }
  1038. // .protobuf.PlaceType place = 7;
  1039. if (this->_internal_place() != 0)
  1040. {
  1041. total_size += 1 +
  1042. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1043. }
  1044. // .protobuf.PropType prop = 8;
  1045. if (this->_internal_prop() != 0)
  1046. {
  1047. total_size += 1 +
  1048. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
  1049. }
  1050. // .protobuf.StudentType student_type = 9;
  1051. if (this->_internal_student_type() != 0)
  1052. {
  1053. total_size += 1 +
  1054. ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
  1055. }
  1056. // int64 guid = 10;
  1057. if (this->_internal_guid() != 0)
  1058. {
  1059. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1060. }
  1061. // double fail_time = 12;
  1062. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1063. double tmp_fail_time = this->_internal_fail_time();
  1064. uint64_t raw_fail_time;
  1065. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1066. if (raw_fail_time != 0)
  1067. {
  1068. total_size += 1 + 8;
  1069. }
  1070. // .protobuf.StudentState state = 11;
  1071. if (this->_internal_state() != 0)
  1072. {
  1073. total_size += 1 +
  1074. ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
  1075. }
  1076. // int32 view_range = 16;
  1077. if (this->_internal_view_range() != 0)
  1078. {
  1079. total_size += 2 +
  1080. ::_pbi::WireFormatLite::Int32Size(
  1081. this->_internal_view_range()
  1082. );
  1083. }
  1084. // double emo_time = 14;
  1085. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1086. double tmp_emo_time = this->_internal_emo_time();
  1087. uint64_t raw_emo_time;
  1088. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1089. if (raw_emo_time != 0)
  1090. {
  1091. total_size += 1 + 8;
  1092. }
  1093. // int64 player_id = 15;
  1094. if (this->_internal_player_id() != 0)
  1095. {
  1096. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1097. }
  1098. // int32 radius = 17;
  1099. if (this->_internal_radius() != 0)
  1100. {
  1101. total_size += 2 +
  1102. ::_pbi::WireFormatLite::Int32Size(
  1103. this->_internal_radius()
  1104. );
  1105. }
  1106. // int32 damage = 18;
  1107. if (this->_internal_damage() != 0)
  1108. {
  1109. total_size += 2 +
  1110. ::_pbi::WireFormatLite::Int32Size(
  1111. this->_internal_damage()
  1112. );
  1113. }
  1114. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1115. }
  1116. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = {
  1117. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1118. MessageOfStudent::MergeImpl};
  1119. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const
  1120. {
  1121. return &_class_data_;
  1122. }
  1123. void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1124. {
  1125. auto* const _this = static_cast<MessageOfStudent*>(&to_msg);
  1126. auto& from = static_cast<const MessageOfStudent&>(from_msg);
  1127. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent)
  1128. GOOGLE_DCHECK_NE(&from, _this);
  1129. uint32_t cached_has_bits = 0;
  1130. (void)cached_has_bits;
  1131. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1132. if (from._internal_x() != 0)
  1133. {
  1134. _this->_internal_set_x(from._internal_x());
  1135. }
  1136. if (from._internal_y() != 0)
  1137. {
  1138. _this->_internal_set_y(from._internal_y());
  1139. }
  1140. if (from._internal_speed() != 0)
  1141. {
  1142. _this->_internal_set_speed(from._internal_speed());
  1143. }
  1144. if (from._internal_determination() != 0)
  1145. {
  1146. _this->_internal_set_determination(from._internal_determination());
  1147. }
  1148. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1149. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1150. uint64_t raw_time_until_skill_available;
  1151. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1152. if (raw_time_until_skill_available != 0)
  1153. {
  1154. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1155. }
  1156. if (from._internal_fail_num() != 0)
  1157. {
  1158. _this->_internal_set_fail_num(from._internal_fail_num());
  1159. }
  1160. if (from._internal_place() != 0)
  1161. {
  1162. _this->_internal_set_place(from._internal_place());
  1163. }
  1164. if (from._internal_prop() != 0)
  1165. {
  1166. _this->_internal_set_prop(from._internal_prop());
  1167. }
  1168. if (from._internal_student_type() != 0)
  1169. {
  1170. _this->_internal_set_student_type(from._internal_student_type());
  1171. }
  1172. if (from._internal_guid() != 0)
  1173. {
  1174. _this->_internal_set_guid(from._internal_guid());
  1175. }
  1176. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1177. double tmp_fail_time = from._internal_fail_time();
  1178. uint64_t raw_fail_time;
  1179. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1180. if (raw_fail_time != 0)
  1181. {
  1182. _this->_internal_set_fail_time(from._internal_fail_time());
  1183. }
  1184. if (from._internal_state() != 0)
  1185. {
  1186. _this->_internal_set_state(from._internal_state());
  1187. }
  1188. if (from._internal_view_range() != 0)
  1189. {
  1190. _this->_internal_set_view_range(from._internal_view_range());
  1191. }
  1192. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1193. double tmp_emo_time = from._internal_emo_time();
  1194. uint64_t raw_emo_time;
  1195. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1196. if (raw_emo_time != 0)
  1197. {
  1198. _this->_internal_set_emo_time(from._internal_emo_time());
  1199. }
  1200. if (from._internal_player_id() != 0)
  1201. {
  1202. _this->_internal_set_player_id(from._internal_player_id());
  1203. }
  1204. if (from._internal_radius() != 0)
  1205. {
  1206. _this->_internal_set_radius(from._internal_radius());
  1207. }
  1208. if (from._internal_damage() != 0)
  1209. {
  1210. _this->_internal_set_damage(from._internal_damage());
  1211. }
  1212. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1213. }
  1214. void MessageOfStudent::CopyFrom(const MessageOfStudent& from)
  1215. {
  1216. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfStudent)
  1217. if (&from == this)
  1218. return;
  1219. Clear();
  1220. MergeFrom(from);
  1221. }
  1222. bool MessageOfStudent::IsInitialized() const
  1223. {
  1224. return true;
  1225. }
  1226. void MessageOfStudent::InternalSwap(MessageOfStudent* other)
  1227. {
  1228. using std::swap;
  1229. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1230. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1231. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1232. PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.damage_) + sizeof(MessageOfStudent::_impl_.damage_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>(
  1233. reinterpret_cast<char*>(&_impl_.x_),
  1234. reinterpret_cast<char*>(&other->_impl_.x_)
  1235. );
  1236. }
  1237. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const
  1238. {
  1239. return ::_pbi::AssignDescriptors(
  1240. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
  1241. );
  1242. }
  1243. // ===================================================================
  1244. class MessageOfTricker::_Internal
  1245. {
  1246. public:
  1247. };
  1248. MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1249. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1250. {
  1251. SharedCtor(arena, is_message_owned);
  1252. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker)
  1253. }
  1254. MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) :
  1255. ::PROTOBUF_NAMESPACE_ID::Message()
  1256. {
  1257. MessageOfTricker* const _this = this;
  1258. (void)_this;
  1259. new (&_impl_) Impl_{
  1260. decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.damage_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.guid_){}, decltype(_impl_.tricker_type_){}, decltype(_impl_.movable_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1261. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1262. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  1263. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker)
  1264. }
  1265. inline void MessageOfTricker::SharedCtor(
  1266. ::_pb::Arena* arena, bool is_message_owned
  1267. )
  1268. {
  1269. (void)arena;
  1270. (void)is_message_owned;
  1271. new (&_impl_) Impl_{
  1272. decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.damage_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.tricker_type_){0}, decltype(_impl_.movable_){false}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1273. }
  1274. MessageOfTricker::~MessageOfTricker()
  1275. {
  1276. // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker)
  1277. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1278. {
  1279. (void)arena;
  1280. return;
  1281. }
  1282. SharedDtor();
  1283. }
  1284. inline void MessageOfTricker::SharedDtor()
  1285. {
  1286. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1287. _impl_.buff_.~RepeatedField();
  1288. }
  1289. void MessageOfTricker::SetCachedSize(int size) const
  1290. {
  1291. _impl_._cached_size_.Set(size);
  1292. }
  1293. void MessageOfTricker::Clear()
  1294. {
  1295. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTricker)
  1296. uint32_t cached_has_bits = 0;
  1297. // Prevent compiler warnings about cached_has_bits being unused
  1298. (void)cached_has_bits;
  1299. _impl_.buff_.Clear();
  1300. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  1301. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1302. }
  1303. const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1304. {
  1305. #define CHK_(x) \
  1306. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1307. goto failure
  1308. while (!ctx->Done(&ptr))
  1309. {
  1310. uint32_t tag;
  1311. ptr = ::_pbi::ReadTag(ptr, &tag);
  1312. switch (tag >> 3)
  1313. {
  1314. // int32 x = 1;
  1315. case 1:
  1316. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1317. {
  1318. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1319. CHK_(ptr);
  1320. }
  1321. else
  1322. goto handle_unusual;
  1323. continue;
  1324. // int32 y = 2;
  1325. case 2:
  1326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1327. {
  1328. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1329. CHK_(ptr);
  1330. }
  1331. else
  1332. goto handle_unusual;
  1333. continue;
  1334. // int32 speed = 3;
  1335. case 3:
  1336. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1337. {
  1338. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1339. CHK_(ptr);
  1340. }
  1341. else
  1342. goto handle_unusual;
  1343. continue;
  1344. // int32 damage = 4;
  1345. case 4:
  1346. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  1347. {
  1348. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1349. CHK_(ptr);
  1350. }
  1351. else
  1352. goto handle_unusual;
  1353. continue;
  1354. // double time_until_skill_available = 5;
  1355. case 5:
  1356. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41))
  1357. {
  1358. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1359. ptr += sizeof(double);
  1360. }
  1361. else
  1362. goto handle_unusual;
  1363. continue;
  1364. // .protobuf.PlaceType place = 6;
  1365. case 6:
  1366. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1367. {
  1368. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1369. CHK_(ptr);
  1370. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1371. }
  1372. else
  1373. goto handle_unusual;
  1374. continue;
  1375. // .protobuf.PropType prop = 7;
  1376. case 7:
  1377. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  1378. {
  1379. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1380. CHK_(ptr);
  1381. _internal_set_prop(static_cast<::protobuf::PropType>(val));
  1382. }
  1383. else
  1384. goto handle_unusual;
  1385. continue;
  1386. // .protobuf.TrickerType tricker_type = 8;
  1387. case 8:
  1388. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  1389. {
  1390. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1391. CHK_(ptr);
  1392. _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
  1393. }
  1394. else
  1395. goto handle_unusual;
  1396. continue;
  1397. // int64 guid = 9;
  1398. case 9:
  1399. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  1400. {
  1401. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1402. CHK_(ptr);
  1403. }
  1404. else
  1405. goto handle_unusual;
  1406. continue;
  1407. // bool movable = 10;
  1408. case 10:
  1409. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  1410. {
  1411. _impl_.movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1412. CHK_(ptr);
  1413. }
  1414. else
  1415. goto handle_unusual;
  1416. continue;
  1417. // int64 player_id = 11;
  1418. case 11:
  1419. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  1420. {
  1421. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1422. CHK_(ptr);
  1423. }
  1424. else
  1425. goto handle_unusual;
  1426. continue;
  1427. // int32 view_range = 12;
  1428. case 12:
  1429. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
  1430. {
  1431. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1432. CHK_(ptr);
  1433. }
  1434. else
  1435. goto handle_unusual;
  1436. continue;
  1437. // int32 radius = 13;
  1438. case 13:
  1439. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
  1440. {
  1441. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1442. CHK_(ptr);
  1443. }
  1444. else
  1445. goto handle_unusual;
  1446. continue;
  1447. // repeated .protobuf.TrickerBuffType buff = 14;
  1448. case 14:
  1449. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114))
  1450. {
  1451. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  1452. CHK_(ptr);
  1453. }
  1454. else if (static_cast<uint8_t>(tag) == 112)
  1455. {
  1456. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1457. CHK_(ptr);
  1458. _internal_add_buff(static_cast<::protobuf::TrickerBuffType>(val));
  1459. }
  1460. else
  1461. goto handle_unusual;
  1462. continue;
  1463. default:
  1464. goto handle_unusual;
  1465. } // switch
  1466. handle_unusual:
  1467. if ((tag == 0) || ((tag & 7) == 4))
  1468. {
  1469. CHK_(ptr);
  1470. ctx->SetLastTag(tag);
  1471. goto message_done;
  1472. }
  1473. ptr = UnknownFieldParse(
  1474. tag,
  1475. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1476. ptr,
  1477. ctx
  1478. );
  1479. CHK_(ptr != nullptr);
  1480. } // while
  1481. message_done:
  1482. return ptr;
  1483. failure:
  1484. ptr = nullptr;
  1485. goto message_done;
  1486. #undef CHK_
  1487. }
  1488. uint8_t* MessageOfTricker::_InternalSerialize(
  1489. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1490. ) const
  1491. {
  1492. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTricker)
  1493. uint32_t cached_has_bits = 0;
  1494. (void)cached_has_bits;
  1495. // int32 x = 1;
  1496. if (this->_internal_x() != 0)
  1497. {
  1498. target = stream->EnsureSpace(target);
  1499. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  1500. }
  1501. // int32 y = 2;
  1502. if (this->_internal_y() != 0)
  1503. {
  1504. target = stream->EnsureSpace(target);
  1505. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  1506. }
  1507. // int32 speed = 3;
  1508. if (this->_internal_speed() != 0)
  1509. {
  1510. target = stream->EnsureSpace(target);
  1511. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  1512. }
  1513. // int32 damage = 4;
  1514. if (this->_internal_damage() != 0)
  1515. {
  1516. target = stream->EnsureSpace(target);
  1517. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target);
  1518. }
  1519. // double time_until_skill_available = 5;
  1520. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1521. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1522. uint64_t raw_time_until_skill_available;
  1523. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1524. if (raw_time_until_skill_available != 0)
  1525. {
  1526. target = stream->EnsureSpace(target);
  1527. target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target);
  1528. }
  1529. // .protobuf.PlaceType place = 6;
  1530. if (this->_internal_place() != 0)
  1531. {
  1532. target = stream->EnsureSpace(target);
  1533. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1534. 6, this->_internal_place(), target
  1535. );
  1536. }
  1537. // .protobuf.PropType prop = 7;
  1538. if (this->_internal_prop() != 0)
  1539. {
  1540. target = stream->EnsureSpace(target);
  1541. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1542. 7, this->_internal_prop(), target
  1543. );
  1544. }
  1545. // .protobuf.TrickerType tricker_type = 8;
  1546. if (this->_internal_tricker_type() != 0)
  1547. {
  1548. target = stream->EnsureSpace(target);
  1549. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1550. 8, this->_internal_tricker_type(), target
  1551. );
  1552. }
  1553. // int64 guid = 9;
  1554. if (this->_internal_guid() != 0)
  1555. {
  1556. target = stream->EnsureSpace(target);
  1557. target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
  1558. }
  1559. // bool movable = 10;
  1560. if (this->_internal_movable() != 0)
  1561. {
  1562. target = stream->EnsureSpace(target);
  1563. target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target);
  1564. }
  1565. // int64 player_id = 11;
  1566. if (this->_internal_player_id() != 0)
  1567. {
  1568. target = stream->EnsureSpace(target);
  1569. target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target);
  1570. }
  1571. // int32 view_range = 12;
  1572. if (this->_internal_view_range() != 0)
  1573. {
  1574. target = stream->EnsureSpace(target);
  1575. target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
  1576. }
  1577. // int32 radius = 13;
  1578. if (this->_internal_radius() != 0)
  1579. {
  1580. target = stream->EnsureSpace(target);
  1581. target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target);
  1582. }
  1583. // repeated .protobuf.TrickerBuffType buff = 14;
  1584. {
  1585. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  1586. if (byte_size > 0)
  1587. {
  1588. target = stream->WriteEnumPacked(
  1589. 14, _impl_.buff_, byte_size, target
  1590. );
  1591. }
  1592. }
  1593. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1594. {
  1595. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1596. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1597. );
  1598. }
  1599. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTricker)
  1600. return target;
  1601. }
  1602. size_t MessageOfTricker::ByteSizeLong() const
  1603. {
  1604. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfTricker)
  1605. size_t total_size = 0;
  1606. uint32_t cached_has_bits = 0;
  1607. // Prevent compiler warnings about cached_has_bits being unused
  1608. (void)cached_has_bits;
  1609. // repeated .protobuf.TrickerBuffType buff = 14;
  1610. {
  1611. size_t data_size = 0;
  1612. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  1613. for (unsigned int i = 0; i < count; i++)
  1614. {
  1615. data_size += ::_pbi::WireFormatLite::EnumSize(
  1616. this->_internal_buff(static_cast<int>(i))
  1617. );
  1618. }
  1619. if (data_size > 0)
  1620. {
  1621. total_size += 1 +
  1622. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  1623. }
  1624. int cached_size = ::_pbi::ToCachedSize(data_size);
  1625. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1626. total_size += data_size;
  1627. }
  1628. // int32 x = 1;
  1629. if (this->_internal_x() != 0)
  1630. {
  1631. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1632. }
  1633. // int32 y = 2;
  1634. if (this->_internal_y() != 0)
  1635. {
  1636. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1637. }
  1638. // int32 speed = 3;
  1639. if (this->_internal_speed() != 0)
  1640. {
  1641. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  1642. }
  1643. // int32 damage = 4;
  1644. if (this->_internal_damage() != 0)
  1645. {
  1646. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_damage());
  1647. }
  1648. // double time_until_skill_available = 5;
  1649. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1650. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1651. uint64_t raw_time_until_skill_available;
  1652. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1653. if (raw_time_until_skill_available != 0)
  1654. {
  1655. total_size += 1 + 8;
  1656. }
  1657. // .protobuf.PlaceType place = 6;
  1658. if (this->_internal_place() != 0)
  1659. {
  1660. total_size += 1 +
  1661. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1662. }
  1663. // .protobuf.PropType prop = 7;
  1664. if (this->_internal_prop() != 0)
  1665. {
  1666. total_size += 1 +
  1667. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
  1668. }
  1669. // int64 guid = 9;
  1670. if (this->_internal_guid() != 0)
  1671. {
  1672. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1673. }
  1674. // .protobuf.TrickerType tricker_type = 8;
  1675. if (this->_internal_tricker_type() != 0)
  1676. {
  1677. total_size += 1 +
  1678. ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
  1679. }
  1680. // bool movable = 10;
  1681. if (this->_internal_movable() != 0)
  1682. {
  1683. total_size += 1 + 1;
  1684. }
  1685. // int64 player_id = 11;
  1686. if (this->_internal_player_id() != 0)
  1687. {
  1688. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1689. }
  1690. // int32 view_range = 12;
  1691. if (this->_internal_view_range() != 0)
  1692. {
  1693. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
  1694. }
  1695. // int32 radius = 13;
  1696. if (this->_internal_radius() != 0)
  1697. {
  1698. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius());
  1699. }
  1700. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1701. }
  1702. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = {
  1703. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1704. MessageOfTricker::MergeImpl};
  1705. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const
  1706. {
  1707. return &_class_data_;
  1708. }
  1709. void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1710. {
  1711. auto* const _this = static_cast<MessageOfTricker*>(&to_msg);
  1712. auto& from = static_cast<const MessageOfTricker&>(from_msg);
  1713. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker)
  1714. GOOGLE_DCHECK_NE(&from, _this);
  1715. uint32_t cached_has_bits = 0;
  1716. (void)cached_has_bits;
  1717. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1718. if (from._internal_x() != 0)
  1719. {
  1720. _this->_internal_set_x(from._internal_x());
  1721. }
  1722. if (from._internal_y() != 0)
  1723. {
  1724. _this->_internal_set_y(from._internal_y());
  1725. }
  1726. if (from._internal_speed() != 0)
  1727. {
  1728. _this->_internal_set_speed(from._internal_speed());
  1729. }
  1730. if (from._internal_damage() != 0)
  1731. {
  1732. _this->_internal_set_damage(from._internal_damage());
  1733. }
  1734. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1735. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1736. uint64_t raw_time_until_skill_available;
  1737. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1738. if (raw_time_until_skill_available != 0)
  1739. {
  1740. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1741. }
  1742. if (from._internal_place() != 0)
  1743. {
  1744. _this->_internal_set_place(from._internal_place());
  1745. }
  1746. if (from._internal_prop() != 0)
  1747. {
  1748. _this->_internal_set_prop(from._internal_prop());
  1749. }
  1750. if (from._internal_guid() != 0)
  1751. {
  1752. _this->_internal_set_guid(from._internal_guid());
  1753. }
  1754. if (from._internal_tricker_type() != 0)
  1755. {
  1756. _this->_internal_set_tricker_type(from._internal_tricker_type());
  1757. }
  1758. if (from._internal_movable() != 0)
  1759. {
  1760. _this->_internal_set_movable(from._internal_movable());
  1761. }
  1762. if (from._internal_player_id() != 0)
  1763. {
  1764. _this->_internal_set_player_id(from._internal_player_id());
  1765. }
  1766. if (from._internal_view_range() != 0)
  1767. {
  1768. _this->_internal_set_view_range(from._internal_view_range());
  1769. }
  1770. if (from._internal_radius() != 0)
  1771. {
  1772. _this->_internal_set_radius(from._internal_radius());
  1773. }
  1774. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1775. }
  1776. void MessageOfTricker::CopyFrom(const MessageOfTricker& from)
  1777. {
  1778. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfTricker)
  1779. if (&from == this)
  1780. return;
  1781. Clear();
  1782. MergeFrom(from);
  1783. }
  1784. bool MessageOfTricker::IsInitialized() const
  1785. {
  1786. return true;
  1787. }
  1788. void MessageOfTricker::InternalSwap(MessageOfTricker* other)
  1789. {
  1790. using std::swap;
  1791. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1792. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1793. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1794. PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.radius_) + sizeof(MessageOfTricker::_impl_.radius_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>(
  1795. reinterpret_cast<char*>(&_impl_.x_),
  1796. reinterpret_cast<char*>(&other->_impl_.x_)
  1797. );
  1798. }
  1799. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const
  1800. {
  1801. return ::_pbi::AssignDescriptors(
  1802. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
  1803. );
  1804. }
  1805. // ===================================================================
  1806. class MessageOfBullet::_Internal
  1807. {
  1808. public:
  1809. };
  1810. MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1811. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1812. {
  1813. SharedCtor(arena, is_message_owned);
  1814. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet)
  1815. }
  1816. MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) :
  1817. ::PROTOBUF_NAMESPACE_ID::Message()
  1818. {
  1819. MessageOfBullet* const _this = this;
  1820. (void)_this;
  1821. new (&_impl_) Impl_{
  1822. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.guid_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.parent_team_id_){}, decltype(_impl_.bomb_range_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1823. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1824. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bomb_range_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.bomb_range_));
  1825. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet)
  1826. }
  1827. inline void MessageOfBullet::SharedCtor(
  1828. ::_pb::Arena* arena, bool is_message_owned
  1829. )
  1830. {
  1831. (void)arena;
  1832. (void)is_message_owned;
  1833. new (&_impl_) Impl_{
  1834. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.parent_team_id_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1835. }
  1836. MessageOfBullet::~MessageOfBullet()
  1837. {
  1838. // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet)
  1839. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1840. {
  1841. (void)arena;
  1842. return;
  1843. }
  1844. SharedDtor();
  1845. }
  1846. inline void MessageOfBullet::SharedDtor()
  1847. {
  1848. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1849. }
  1850. void MessageOfBullet::SetCachedSize(int size) const
  1851. {
  1852. _impl_._cached_size_.Set(size);
  1853. }
  1854. void MessageOfBullet::Clear()
  1855. {
  1856. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBullet)
  1857. uint32_t cached_has_bits = 0;
  1858. // Prevent compiler warnings about cached_has_bits being unused
  1859. (void)cached_has_bits;
  1860. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bomb_range_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.bomb_range_));
  1861. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1862. }
  1863. const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1864. {
  1865. #define CHK_(x) \
  1866. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1867. goto failure
  1868. while (!ctx->Done(&ptr))
  1869. {
  1870. uint32_t tag;
  1871. ptr = ::_pbi::ReadTag(ptr, &tag);
  1872. switch (tag >> 3)
  1873. {
  1874. // .protobuf.BulletType type = 1;
  1875. case 1:
  1876. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1877. {
  1878. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1879. CHK_(ptr);
  1880. _internal_set_type(static_cast<::protobuf::BulletType>(val));
  1881. }
  1882. else
  1883. goto handle_unusual;
  1884. continue;
  1885. // int32 x = 2;
  1886. case 2:
  1887. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1888. {
  1889. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1890. CHK_(ptr);
  1891. }
  1892. else
  1893. goto handle_unusual;
  1894. continue;
  1895. // int32 y = 3;
  1896. case 3:
  1897. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1898. {
  1899. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1900. CHK_(ptr);
  1901. }
  1902. else
  1903. goto handle_unusual;
  1904. continue;
  1905. // double facing_direction = 4;
  1906. case 4:
  1907. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  1908. {
  1909. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1910. ptr += sizeof(double);
  1911. }
  1912. else
  1913. goto handle_unusual;
  1914. continue;
  1915. // int64 guid = 5;
  1916. case 5:
  1917. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  1918. {
  1919. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1920. CHK_(ptr);
  1921. }
  1922. else
  1923. goto handle_unusual;
  1924. continue;
  1925. // int64 parent_team_id = 6;
  1926. case 6:
  1927. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1928. {
  1929. _impl_.parent_team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1930. CHK_(ptr);
  1931. }
  1932. else
  1933. goto handle_unusual;
  1934. continue;
  1935. // .protobuf.PlaceType place = 7;
  1936. case 7:
  1937. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  1938. {
  1939. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1940. CHK_(ptr);
  1941. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1942. }
  1943. else
  1944. goto handle_unusual;
  1945. continue;
  1946. // double bomb_range = 8;
  1947. case 8:
  1948. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65))
  1949. {
  1950. _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1951. ptr += sizeof(double);
  1952. }
  1953. else
  1954. goto handle_unusual;
  1955. continue;
  1956. default:
  1957. goto handle_unusual;
  1958. } // switch
  1959. handle_unusual:
  1960. if ((tag == 0) || ((tag & 7) == 4))
  1961. {
  1962. CHK_(ptr);
  1963. ctx->SetLastTag(tag);
  1964. goto message_done;
  1965. }
  1966. ptr = UnknownFieldParse(
  1967. tag,
  1968. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1969. ptr,
  1970. ctx
  1971. );
  1972. CHK_(ptr != nullptr);
  1973. } // while
  1974. message_done:
  1975. return ptr;
  1976. failure:
  1977. ptr = nullptr;
  1978. goto message_done;
  1979. #undef CHK_
  1980. }
  1981. uint8_t* MessageOfBullet::_InternalSerialize(
  1982. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1983. ) const
  1984. {
  1985. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBullet)
  1986. uint32_t cached_has_bits = 0;
  1987. (void)cached_has_bits;
  1988. // .protobuf.BulletType type = 1;
  1989. if (this->_internal_type() != 0)
  1990. {
  1991. target = stream->EnsureSpace(target);
  1992. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1993. 1, this->_internal_type(), target
  1994. );
  1995. }
  1996. // int32 x = 2;
  1997. if (this->_internal_x() != 0)
  1998. {
  1999. target = stream->EnsureSpace(target);
  2000. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2001. }
  2002. // int32 y = 3;
  2003. if (this->_internal_y() != 0)
  2004. {
  2005. target = stream->EnsureSpace(target);
  2006. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2007. }
  2008. // double facing_direction = 4;
  2009. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2010. double tmp_facing_direction = this->_internal_facing_direction();
  2011. uint64_t raw_facing_direction;
  2012. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2013. if (raw_facing_direction != 0)
  2014. {
  2015. target = stream->EnsureSpace(target);
  2016. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2017. }
  2018. // int64 guid = 5;
  2019. if (this->_internal_guid() != 0)
  2020. {
  2021. target = stream->EnsureSpace(target);
  2022. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  2023. }
  2024. // int64 parent_team_id = 6;
  2025. if (this->_internal_parent_team_id() != 0)
  2026. {
  2027. target = stream->EnsureSpace(target);
  2028. target = ::_pbi::WireFormatLite::WriteInt64ToArray(6, this->_internal_parent_team_id(), target);
  2029. }
  2030. // .protobuf.PlaceType place = 7;
  2031. if (this->_internal_place() != 0)
  2032. {
  2033. target = stream->EnsureSpace(target);
  2034. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2035. 7, this->_internal_place(), target
  2036. );
  2037. }
  2038. // double bomb_range = 8;
  2039. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2040. double tmp_bomb_range = this->_internal_bomb_range();
  2041. uint64_t raw_bomb_range;
  2042. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2043. if (raw_bomb_range != 0)
  2044. {
  2045. target = stream->EnsureSpace(target);
  2046. target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target);
  2047. }
  2048. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2049. {
  2050. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2051. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2052. );
  2053. }
  2054. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBullet)
  2055. return target;
  2056. }
  2057. size_t MessageOfBullet::ByteSizeLong() const
  2058. {
  2059. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBullet)
  2060. size_t total_size = 0;
  2061. uint32_t cached_has_bits = 0;
  2062. // Prevent compiler warnings about cached_has_bits being unused
  2063. (void)cached_has_bits;
  2064. // .protobuf.BulletType type = 1;
  2065. if (this->_internal_type() != 0)
  2066. {
  2067. total_size += 1 +
  2068. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2069. }
  2070. // int32 x = 2;
  2071. if (this->_internal_x() != 0)
  2072. {
  2073. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2074. }
  2075. // double facing_direction = 4;
  2076. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2077. double tmp_facing_direction = this->_internal_facing_direction();
  2078. uint64_t raw_facing_direction;
  2079. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2080. if (raw_facing_direction != 0)
  2081. {
  2082. total_size += 1 + 8;
  2083. }
  2084. // int64 guid = 5;
  2085. if (this->_internal_guid() != 0)
  2086. {
  2087. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  2088. }
  2089. // int32 y = 3;
  2090. if (this->_internal_y() != 0)
  2091. {
  2092. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2093. }
  2094. // .protobuf.PlaceType place = 7;
  2095. if (this->_internal_place() != 0)
  2096. {
  2097. total_size += 1 +
  2098. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  2099. }
  2100. // int64 parent_team_id = 6;
  2101. if (this->_internal_parent_team_id() != 0)
  2102. {
  2103. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_parent_team_id());
  2104. }
  2105. // double bomb_range = 8;
  2106. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2107. double tmp_bomb_range = this->_internal_bomb_range();
  2108. uint64_t raw_bomb_range;
  2109. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2110. if (raw_bomb_range != 0)
  2111. {
  2112. total_size += 1 + 8;
  2113. }
  2114. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2115. }
  2116. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = {
  2117. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2118. MessageOfBullet::MergeImpl};
  2119. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const
  2120. {
  2121. return &_class_data_;
  2122. }
  2123. void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2124. {
  2125. auto* const _this = static_cast<MessageOfBullet*>(&to_msg);
  2126. auto& from = static_cast<const MessageOfBullet&>(from_msg);
  2127. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBullet)
  2128. GOOGLE_DCHECK_NE(&from, _this);
  2129. uint32_t cached_has_bits = 0;
  2130. (void)cached_has_bits;
  2131. if (from._internal_type() != 0)
  2132. {
  2133. _this->_internal_set_type(from._internal_type());
  2134. }
  2135. if (from._internal_x() != 0)
  2136. {
  2137. _this->_internal_set_x(from._internal_x());
  2138. }
  2139. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2140. double tmp_facing_direction = from._internal_facing_direction();
  2141. uint64_t raw_facing_direction;
  2142. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2143. if (raw_facing_direction != 0)
  2144. {
  2145. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2146. }
  2147. if (from._internal_guid() != 0)
  2148. {
  2149. _this->_internal_set_guid(from._internal_guid());
  2150. }
  2151. if (from._internal_y() != 0)
  2152. {
  2153. _this->_internal_set_y(from._internal_y());
  2154. }
  2155. if (from._internal_place() != 0)
  2156. {
  2157. _this->_internal_set_place(from._internal_place());
  2158. }
  2159. if (from._internal_parent_team_id() != 0)
  2160. {
  2161. _this->_internal_set_parent_team_id(from._internal_parent_team_id());
  2162. }
  2163. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2164. double tmp_bomb_range = from._internal_bomb_range();
  2165. uint64_t raw_bomb_range;
  2166. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2167. if (raw_bomb_range != 0)
  2168. {
  2169. _this->_internal_set_bomb_range(from._internal_bomb_range());
  2170. }
  2171. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2172. }
  2173. void MessageOfBullet::CopyFrom(const MessageOfBullet& from)
  2174. {
  2175. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBullet)
  2176. if (&from == this)
  2177. return;
  2178. Clear();
  2179. MergeFrom(from);
  2180. }
  2181. bool MessageOfBullet::IsInitialized() const
  2182. {
  2183. return true;
  2184. }
  2185. void MessageOfBullet::InternalSwap(MessageOfBullet* other)
  2186. {
  2187. using std::swap;
  2188. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2189. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2190. PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.bomb_range_) + sizeof(MessageOfBullet::_impl_.bomb_range_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)>(
  2191. reinterpret_cast<char*>(&_impl_.type_),
  2192. reinterpret_cast<char*>(&other->_impl_.type_)
  2193. );
  2194. }
  2195. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const
  2196. {
  2197. return ::_pbi::AssignDescriptors(
  2198. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
  2199. );
  2200. }
  2201. // ===================================================================
  2202. class MessageOfBombedBullet::_Internal
  2203. {
  2204. public:
  2205. };
  2206. MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2207. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2208. {
  2209. SharedCtor(arena, is_message_owned);
  2210. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet)
  2211. }
  2212. MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) :
  2213. ::PROTOBUF_NAMESPACE_ID::Message()
  2214. {
  2215. MessageOfBombedBullet* const _this = this;
  2216. (void)_this;
  2217. new (&_impl_) Impl_{
  2218. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2219. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2220. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2221. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet)
  2222. }
  2223. inline void MessageOfBombedBullet::SharedCtor(
  2224. ::_pb::Arena* arena, bool is_message_owned
  2225. )
  2226. {
  2227. (void)arena;
  2228. (void)is_message_owned;
  2229. new (&_impl_) Impl_{
  2230. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2231. }
  2232. MessageOfBombedBullet::~MessageOfBombedBullet()
  2233. {
  2234. // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet)
  2235. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2236. {
  2237. (void)arena;
  2238. return;
  2239. }
  2240. SharedDtor();
  2241. }
  2242. inline void MessageOfBombedBullet::SharedDtor()
  2243. {
  2244. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2245. }
  2246. void MessageOfBombedBullet::SetCachedSize(int size) const
  2247. {
  2248. _impl_._cached_size_.Set(size);
  2249. }
  2250. void MessageOfBombedBullet::Clear()
  2251. {
  2252. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBombedBullet)
  2253. uint32_t cached_has_bits = 0;
  2254. // Prevent compiler warnings about cached_has_bits being unused
  2255. (void)cached_has_bits;
  2256. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2257. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2258. }
  2259. const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2260. {
  2261. #define CHK_(x) \
  2262. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2263. goto failure
  2264. while (!ctx->Done(&ptr))
  2265. {
  2266. uint32_t tag;
  2267. ptr = ::_pbi::ReadTag(ptr, &tag);
  2268. switch (tag >> 3)
  2269. {
  2270. // .protobuf.BulletType type = 1;
  2271. case 1:
  2272. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2273. {
  2274. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2275. CHK_(ptr);
  2276. _internal_set_type(static_cast<::protobuf::BulletType>(val));
  2277. }
  2278. else
  2279. goto handle_unusual;
  2280. continue;
  2281. // int32 x = 2;
  2282. case 2:
  2283. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2284. {
  2285. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2286. CHK_(ptr);
  2287. }
  2288. else
  2289. goto handle_unusual;
  2290. continue;
  2291. // int32 y = 3;
  2292. case 3:
  2293. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2294. {
  2295. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2296. CHK_(ptr);
  2297. }
  2298. else
  2299. goto handle_unusual;
  2300. continue;
  2301. // double facing_direction = 4;
  2302. case 4:
  2303. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2304. {
  2305. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2306. ptr += sizeof(double);
  2307. }
  2308. else
  2309. goto handle_unusual;
  2310. continue;
  2311. // int64 mapping_id = 5;
  2312. case 5:
  2313. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2314. {
  2315. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2316. CHK_(ptr);
  2317. }
  2318. else
  2319. goto handle_unusual;
  2320. continue;
  2321. // double bomb_range = 6;
  2322. case 6:
  2323. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  2324. {
  2325. _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2326. ptr += sizeof(double);
  2327. }
  2328. else
  2329. goto handle_unusual;
  2330. continue;
  2331. default:
  2332. goto handle_unusual;
  2333. } // switch
  2334. handle_unusual:
  2335. if ((tag == 0) || ((tag & 7) == 4))
  2336. {
  2337. CHK_(ptr);
  2338. ctx->SetLastTag(tag);
  2339. goto message_done;
  2340. }
  2341. ptr = UnknownFieldParse(
  2342. tag,
  2343. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2344. ptr,
  2345. ctx
  2346. );
  2347. CHK_(ptr != nullptr);
  2348. } // while
  2349. message_done:
  2350. return ptr;
  2351. failure:
  2352. ptr = nullptr;
  2353. goto message_done;
  2354. #undef CHK_
  2355. }
  2356. uint8_t* MessageOfBombedBullet::_InternalSerialize(
  2357. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2358. ) const
  2359. {
  2360. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBombedBullet)
  2361. uint32_t cached_has_bits = 0;
  2362. (void)cached_has_bits;
  2363. // .protobuf.BulletType type = 1;
  2364. if (this->_internal_type() != 0)
  2365. {
  2366. target = stream->EnsureSpace(target);
  2367. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2368. 1, this->_internal_type(), target
  2369. );
  2370. }
  2371. // int32 x = 2;
  2372. if (this->_internal_x() != 0)
  2373. {
  2374. target = stream->EnsureSpace(target);
  2375. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2376. }
  2377. // int32 y = 3;
  2378. if (this->_internal_y() != 0)
  2379. {
  2380. target = stream->EnsureSpace(target);
  2381. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2382. }
  2383. // double facing_direction = 4;
  2384. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2385. double tmp_facing_direction = this->_internal_facing_direction();
  2386. uint64_t raw_facing_direction;
  2387. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2388. if (raw_facing_direction != 0)
  2389. {
  2390. target = stream->EnsureSpace(target);
  2391. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2392. }
  2393. // int64 mapping_id = 5;
  2394. if (this->_internal_mapping_id() != 0)
  2395. {
  2396. target = stream->EnsureSpace(target);
  2397. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  2398. }
  2399. // double bomb_range = 6;
  2400. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2401. double tmp_bomb_range = this->_internal_bomb_range();
  2402. uint64_t raw_bomb_range;
  2403. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2404. if (raw_bomb_range != 0)
  2405. {
  2406. target = stream->EnsureSpace(target);
  2407. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target);
  2408. }
  2409. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2410. {
  2411. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2412. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2413. );
  2414. }
  2415. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBombedBullet)
  2416. return target;
  2417. }
  2418. size_t MessageOfBombedBullet::ByteSizeLong() const
  2419. {
  2420. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBombedBullet)
  2421. size_t total_size = 0;
  2422. uint32_t cached_has_bits = 0;
  2423. // Prevent compiler warnings about cached_has_bits being unused
  2424. (void)cached_has_bits;
  2425. // .protobuf.BulletType type = 1;
  2426. if (this->_internal_type() != 0)
  2427. {
  2428. total_size += 1 +
  2429. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2430. }
  2431. // int32 x = 2;
  2432. if (this->_internal_x() != 0)
  2433. {
  2434. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2435. }
  2436. // double facing_direction = 4;
  2437. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2438. double tmp_facing_direction = this->_internal_facing_direction();
  2439. uint64_t raw_facing_direction;
  2440. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2441. if (raw_facing_direction != 0)
  2442. {
  2443. total_size += 1 + 8;
  2444. }
  2445. // int64 mapping_id = 5;
  2446. if (this->_internal_mapping_id() != 0)
  2447. {
  2448. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  2449. }
  2450. // double bomb_range = 6;
  2451. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2452. double tmp_bomb_range = this->_internal_bomb_range();
  2453. uint64_t raw_bomb_range;
  2454. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2455. if (raw_bomb_range != 0)
  2456. {
  2457. total_size += 1 + 8;
  2458. }
  2459. // int32 y = 3;
  2460. if (this->_internal_y() != 0)
  2461. {
  2462. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2463. }
  2464. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2465. }
  2466. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = {
  2467. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2468. MessageOfBombedBullet::MergeImpl};
  2469. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const
  2470. {
  2471. return &_class_data_;
  2472. }
  2473. void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2474. {
  2475. auto* const _this = static_cast<MessageOfBombedBullet*>(&to_msg);
  2476. auto& from = static_cast<const MessageOfBombedBullet&>(from_msg);
  2477. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBombedBullet)
  2478. GOOGLE_DCHECK_NE(&from, _this);
  2479. uint32_t cached_has_bits = 0;
  2480. (void)cached_has_bits;
  2481. if (from._internal_type() != 0)
  2482. {
  2483. _this->_internal_set_type(from._internal_type());
  2484. }
  2485. if (from._internal_x() != 0)
  2486. {
  2487. _this->_internal_set_x(from._internal_x());
  2488. }
  2489. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2490. double tmp_facing_direction = from._internal_facing_direction();
  2491. uint64_t raw_facing_direction;
  2492. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2493. if (raw_facing_direction != 0)
  2494. {
  2495. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2496. }
  2497. if (from._internal_mapping_id() != 0)
  2498. {
  2499. _this->_internal_set_mapping_id(from._internal_mapping_id());
  2500. }
  2501. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2502. double tmp_bomb_range = from._internal_bomb_range();
  2503. uint64_t raw_bomb_range;
  2504. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2505. if (raw_bomb_range != 0)
  2506. {
  2507. _this->_internal_set_bomb_range(from._internal_bomb_range());
  2508. }
  2509. if (from._internal_y() != 0)
  2510. {
  2511. _this->_internal_set_y(from._internal_y());
  2512. }
  2513. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2514. }
  2515. void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from)
  2516. {
  2517. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBombedBullet)
  2518. if (&from == this)
  2519. return;
  2520. Clear();
  2521. MergeFrom(from);
  2522. }
  2523. bool MessageOfBombedBullet::IsInitialized() const
  2524. {
  2525. return true;
  2526. }
  2527. void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* other)
  2528. {
  2529. using std::swap;
  2530. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2531. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2532. PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_) + sizeof(MessageOfBombedBullet::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)>(
  2533. reinterpret_cast<char*>(&_impl_.type_),
  2534. reinterpret_cast<char*>(&other->_impl_.type_)
  2535. );
  2536. }
  2537. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const
  2538. {
  2539. return ::_pbi::AssignDescriptors(
  2540. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
  2541. );
  2542. }
  2543. // ===================================================================
  2544. class MessageOfProp::_Internal
  2545. {
  2546. public:
  2547. };
  2548. MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2549. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2550. {
  2551. SharedCtor(arena, is_message_owned);
  2552. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
  2553. }
  2554. MessageOfProp::MessageOfProp(const MessageOfProp& from) :
  2555. ::PROTOBUF_NAMESPACE_ID::Message()
  2556. {
  2557. MessageOfProp* const _this = this;
  2558. (void)_this;
  2559. new (&_impl_) Impl_{
  2560. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.size_){}, decltype(_impl_.is_moving_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2561. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2562. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  2563. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
  2564. }
  2565. inline void MessageOfProp::SharedCtor(
  2566. ::_pb::Arena* arena, bool is_message_owned
  2567. )
  2568. {
  2569. (void)arena;
  2570. (void)is_message_owned;
  2571. new (&_impl_) Impl_{
  2572. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.size_){0}, decltype(_impl_.is_moving_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  2573. }
  2574. MessageOfProp::~MessageOfProp()
  2575. {
  2576. // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
  2577. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2578. {
  2579. (void)arena;
  2580. return;
  2581. }
  2582. SharedDtor();
  2583. }
  2584. inline void MessageOfProp::SharedDtor()
  2585. {
  2586. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2587. }
  2588. void MessageOfProp::SetCachedSize(int size) const
  2589. {
  2590. _impl_._cached_size_.Set(size);
  2591. }
  2592. void MessageOfProp::Clear()
  2593. {
  2594. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
  2595. uint32_t cached_has_bits = 0;
  2596. // Prevent compiler warnings about cached_has_bits being unused
  2597. (void)cached_has_bits;
  2598. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  2599. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2600. }
  2601. const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2602. {
  2603. #define CHK_(x) \
  2604. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2605. goto failure
  2606. while (!ctx->Done(&ptr))
  2607. {
  2608. uint32_t tag;
  2609. ptr = ::_pbi::ReadTag(ptr, &tag);
  2610. switch (tag >> 3)
  2611. {
  2612. // .protobuf.PropType type = 1;
  2613. case 1:
  2614. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2615. {
  2616. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2617. CHK_(ptr);
  2618. _internal_set_type(static_cast<::protobuf::PropType>(val));
  2619. }
  2620. else
  2621. goto handle_unusual;
  2622. continue;
  2623. // int32 x = 2;
  2624. case 2:
  2625. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2626. {
  2627. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2628. CHK_(ptr);
  2629. }
  2630. else
  2631. goto handle_unusual;
  2632. continue;
  2633. // int32 y = 3;
  2634. case 3:
  2635. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2636. {
  2637. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2638. CHK_(ptr);
  2639. }
  2640. else
  2641. goto handle_unusual;
  2642. continue;
  2643. // double facing_direction = 4;
  2644. case 4:
  2645. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2646. {
  2647. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2648. ptr += sizeof(double);
  2649. }
  2650. else
  2651. goto handle_unusual;
  2652. continue;
  2653. // int64 guid = 5;
  2654. case 5:
  2655. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2656. {
  2657. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2658. CHK_(ptr);
  2659. }
  2660. else
  2661. goto handle_unusual;
  2662. continue;
  2663. // .protobuf.PlaceType place = 6;
  2664. case 6:
  2665. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  2666. {
  2667. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2668. CHK_(ptr);
  2669. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  2670. }
  2671. else
  2672. goto handle_unusual;
  2673. continue;
  2674. // int32 size = 7;
  2675. case 7:
  2676. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  2677. {
  2678. _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2679. CHK_(ptr);
  2680. }
  2681. else
  2682. goto handle_unusual;
  2683. continue;
  2684. // bool is_moving = 8;
  2685. case 8:
  2686. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  2687. {
  2688. _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2689. CHK_(ptr);
  2690. }
  2691. else
  2692. goto handle_unusual;
  2693. continue;
  2694. default:
  2695. goto handle_unusual;
  2696. } // switch
  2697. handle_unusual:
  2698. if ((tag == 0) || ((tag & 7) == 4))
  2699. {
  2700. CHK_(ptr);
  2701. ctx->SetLastTag(tag);
  2702. goto message_done;
  2703. }
  2704. ptr = UnknownFieldParse(
  2705. tag,
  2706. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2707. ptr,
  2708. ctx
  2709. );
  2710. CHK_(ptr != nullptr);
  2711. } // while
  2712. message_done:
  2713. return ptr;
  2714. failure:
  2715. ptr = nullptr;
  2716. goto message_done;
  2717. #undef CHK_
  2718. }
  2719. uint8_t* MessageOfProp::_InternalSerialize(
  2720. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2721. ) const
  2722. {
  2723. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
  2724. uint32_t cached_has_bits = 0;
  2725. (void)cached_has_bits;
  2726. // .protobuf.PropType type = 1;
  2727. if (this->_internal_type() != 0)
  2728. {
  2729. target = stream->EnsureSpace(target);
  2730. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2731. 1, this->_internal_type(), target
  2732. );
  2733. }
  2734. // int32 x = 2;
  2735. if (this->_internal_x() != 0)
  2736. {
  2737. target = stream->EnsureSpace(target);
  2738. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2739. }
  2740. // int32 y = 3;
  2741. if (this->_internal_y() != 0)
  2742. {
  2743. target = stream->EnsureSpace(target);
  2744. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2745. }
  2746. // double facing_direction = 4;
  2747. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2748. double tmp_facing_direction = this->_internal_facing_direction();
  2749. uint64_t raw_facing_direction;
  2750. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2751. if (raw_facing_direction != 0)
  2752. {
  2753. target = stream->EnsureSpace(target);
  2754. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2755. }
  2756. // int64 guid = 5;
  2757. if (this->_internal_guid() != 0)
  2758. {
  2759. target = stream->EnsureSpace(target);
  2760. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  2761. }
  2762. // .protobuf.PlaceType place = 6;
  2763. if (this->_internal_place() != 0)
  2764. {
  2765. target = stream->EnsureSpace(target);
  2766. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2767. 6, this->_internal_place(), target
  2768. );
  2769. }
  2770. // int32 size = 7;
  2771. if (this->_internal_size() != 0)
  2772. {
  2773. target = stream->EnsureSpace(target);
  2774. target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_size(), target);
  2775. }
  2776. // bool is_moving = 8;
  2777. if (this->_internal_is_moving() != 0)
  2778. {
  2779. target = stream->EnsureSpace(target);
  2780. target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_moving(), target);
  2781. }
  2782. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2783. {
  2784. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2785. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2786. );
  2787. }
  2788. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
  2789. return target;
  2790. }
  2791. size_t MessageOfProp::ByteSizeLong() const
  2792. {
  2793. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
  2794. size_t total_size = 0;
  2795. uint32_t cached_has_bits = 0;
  2796. // Prevent compiler warnings about cached_has_bits being unused
  2797. (void)cached_has_bits;
  2798. // .protobuf.PropType type = 1;
  2799. if (this->_internal_type() != 0)
  2800. {
  2801. total_size += 1 +
  2802. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2803. }
  2804. // int32 x = 2;
  2805. if (this->_internal_x() != 0)
  2806. {
  2807. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2808. }
  2809. // double facing_direction = 4;
  2810. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2811. double tmp_facing_direction = this->_internal_facing_direction();
  2812. uint64_t raw_facing_direction;
  2813. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2814. if (raw_facing_direction != 0)
  2815. {
  2816. total_size += 1 + 8;
  2817. }
  2818. // int32 y = 3;
  2819. if (this->_internal_y() != 0)
  2820. {
  2821. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2822. }
  2823. // .protobuf.PlaceType place = 6;
  2824. if (this->_internal_place() != 0)
  2825. {
  2826. total_size += 1 +
  2827. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  2828. }
  2829. // int64 guid = 5;
  2830. if (this->_internal_guid() != 0)
  2831. {
  2832. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  2833. }
  2834. // int32 size = 7;
  2835. if (this->_internal_size() != 0)
  2836. {
  2837. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_size());
  2838. }
  2839. // bool is_moving = 8;
  2840. if (this->_internal_is_moving() != 0)
  2841. {
  2842. total_size += 1 + 1;
  2843. }
  2844. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2845. }
  2846. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
  2847. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2848. MessageOfProp::MergeImpl};
  2849. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
  2850. {
  2851. return &_class_data_;
  2852. }
  2853. void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2854. {
  2855. auto* const _this = static_cast<MessageOfProp*>(&to_msg);
  2856. auto& from = static_cast<const MessageOfProp&>(from_msg);
  2857. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
  2858. GOOGLE_DCHECK_NE(&from, _this);
  2859. uint32_t cached_has_bits = 0;
  2860. (void)cached_has_bits;
  2861. if (from._internal_type() != 0)
  2862. {
  2863. _this->_internal_set_type(from._internal_type());
  2864. }
  2865. if (from._internal_x() != 0)
  2866. {
  2867. _this->_internal_set_x(from._internal_x());
  2868. }
  2869. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2870. double tmp_facing_direction = from._internal_facing_direction();
  2871. uint64_t raw_facing_direction;
  2872. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2873. if (raw_facing_direction != 0)
  2874. {
  2875. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2876. }
  2877. if (from._internal_y() != 0)
  2878. {
  2879. _this->_internal_set_y(from._internal_y());
  2880. }
  2881. if (from._internal_place() != 0)
  2882. {
  2883. _this->_internal_set_place(from._internal_place());
  2884. }
  2885. if (from._internal_guid() != 0)
  2886. {
  2887. _this->_internal_set_guid(from._internal_guid());
  2888. }
  2889. if (from._internal_size() != 0)
  2890. {
  2891. _this->_internal_set_size(from._internal_size());
  2892. }
  2893. if (from._internal_is_moving() != 0)
  2894. {
  2895. _this->_internal_set_is_moving(from._internal_is_moving());
  2896. }
  2897. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2898. }
  2899. void MessageOfProp::CopyFrom(const MessageOfProp& from)
  2900. {
  2901. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
  2902. if (&from == this)
  2903. return;
  2904. Clear();
  2905. MergeFrom(from);
  2906. }
  2907. bool MessageOfProp::IsInitialized() const
  2908. {
  2909. return true;
  2910. }
  2911. void MessageOfProp::InternalSwap(MessageOfProp* other)
  2912. {
  2913. using std::swap;
  2914. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2915. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2916. PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.is_moving_) + sizeof(MessageOfProp::_impl_.is_moving_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>(
  2917. reinterpret_cast<char*>(&_impl_.type_),
  2918. reinterpret_cast<char*>(&other->_impl_.type_)
  2919. );
  2920. }
  2921. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
  2922. {
  2923. return ::_pbi::AssignDescriptors(
  2924. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
  2925. );
  2926. }
  2927. // ===================================================================
  2928. class MessageOfPickedProp::_Internal
  2929. {
  2930. public:
  2931. };
  2932. MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2933. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2934. {
  2935. SharedCtor(arena, is_message_owned);
  2936. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
  2937. }
  2938. MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
  2939. ::PROTOBUF_NAMESPACE_ID::Message()
  2940. {
  2941. MessageOfPickedProp* const _this = this;
  2942. (void)_this;
  2943. new (&_impl_) Impl_{
  2944. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2945. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2946. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2947. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
  2948. }
  2949. inline void MessageOfPickedProp::SharedCtor(
  2950. ::_pb::Arena* arena, bool is_message_owned
  2951. )
  2952. {
  2953. (void)arena;
  2954. (void)is_message_owned;
  2955. new (&_impl_) Impl_{
  2956. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2957. }
  2958. MessageOfPickedProp::~MessageOfPickedProp()
  2959. {
  2960. // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
  2961. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2962. {
  2963. (void)arena;
  2964. return;
  2965. }
  2966. SharedDtor();
  2967. }
  2968. inline void MessageOfPickedProp::SharedDtor()
  2969. {
  2970. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2971. }
  2972. void MessageOfPickedProp::SetCachedSize(int size) const
  2973. {
  2974. _impl_._cached_size_.Set(size);
  2975. }
  2976. void MessageOfPickedProp::Clear()
  2977. {
  2978. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
  2979. uint32_t cached_has_bits = 0;
  2980. // Prevent compiler warnings about cached_has_bits being unused
  2981. (void)cached_has_bits;
  2982. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2983. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2984. }
  2985. const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2986. {
  2987. #define CHK_(x) \
  2988. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2989. goto failure
  2990. while (!ctx->Done(&ptr))
  2991. {
  2992. uint32_t tag;
  2993. ptr = ::_pbi::ReadTag(ptr, &tag);
  2994. switch (tag >> 3)
  2995. {
  2996. // .protobuf.PropType type = 1;
  2997. case 1:
  2998. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2999. {
  3000. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3001. CHK_(ptr);
  3002. _internal_set_type(static_cast<::protobuf::PropType>(val));
  3003. }
  3004. else
  3005. goto handle_unusual;
  3006. continue;
  3007. // int32 x = 2;
  3008. case 2:
  3009. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  3010. {
  3011. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3012. CHK_(ptr);
  3013. }
  3014. else
  3015. goto handle_unusual;
  3016. continue;
  3017. // int32 y = 3;
  3018. case 3:
  3019. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  3020. {
  3021. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3022. CHK_(ptr);
  3023. }
  3024. else
  3025. goto handle_unusual;
  3026. continue;
  3027. // double facing_direction = 4;
  3028. case 4:
  3029. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  3030. {
  3031. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  3032. ptr += sizeof(double);
  3033. }
  3034. else
  3035. goto handle_unusual;
  3036. continue;
  3037. // int64 mapping_id = 5;
  3038. case 5:
  3039. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  3040. {
  3041. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3042. CHK_(ptr);
  3043. }
  3044. else
  3045. goto handle_unusual;
  3046. continue;
  3047. default:
  3048. goto handle_unusual;
  3049. } // switch
  3050. handle_unusual:
  3051. if ((tag == 0) || ((tag & 7) == 4))
  3052. {
  3053. CHK_(ptr);
  3054. ctx->SetLastTag(tag);
  3055. goto message_done;
  3056. }
  3057. ptr = UnknownFieldParse(
  3058. tag,
  3059. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3060. ptr,
  3061. ctx
  3062. );
  3063. CHK_(ptr != nullptr);
  3064. } // while
  3065. message_done:
  3066. return ptr;
  3067. failure:
  3068. ptr = nullptr;
  3069. goto message_done;
  3070. #undef CHK_
  3071. }
  3072. uint8_t* MessageOfPickedProp::_InternalSerialize(
  3073. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3074. ) const
  3075. {
  3076. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
  3077. uint32_t cached_has_bits = 0;
  3078. (void)cached_has_bits;
  3079. // .protobuf.PropType type = 1;
  3080. if (this->_internal_type() != 0)
  3081. {
  3082. target = stream->EnsureSpace(target);
  3083. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3084. 1, this->_internal_type(), target
  3085. );
  3086. }
  3087. // int32 x = 2;
  3088. if (this->_internal_x() != 0)
  3089. {
  3090. target = stream->EnsureSpace(target);
  3091. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  3092. }
  3093. // int32 y = 3;
  3094. if (this->_internal_y() != 0)
  3095. {
  3096. target = stream->EnsureSpace(target);
  3097. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  3098. }
  3099. // double facing_direction = 4;
  3100. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3101. double tmp_facing_direction = this->_internal_facing_direction();
  3102. uint64_t raw_facing_direction;
  3103. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3104. if (raw_facing_direction != 0)
  3105. {
  3106. target = stream->EnsureSpace(target);
  3107. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  3108. }
  3109. // int64 mapping_id = 5;
  3110. if (this->_internal_mapping_id() != 0)
  3111. {
  3112. target = stream->EnsureSpace(target);
  3113. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  3114. }
  3115. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3116. {
  3117. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3118. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3119. );
  3120. }
  3121. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
  3122. return target;
  3123. }
  3124. size_t MessageOfPickedProp::ByteSizeLong() const
  3125. {
  3126. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
  3127. size_t total_size = 0;
  3128. uint32_t cached_has_bits = 0;
  3129. // Prevent compiler warnings about cached_has_bits being unused
  3130. (void)cached_has_bits;
  3131. // .protobuf.PropType type = 1;
  3132. if (this->_internal_type() != 0)
  3133. {
  3134. total_size += 1 +
  3135. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  3136. }
  3137. // int32 x = 2;
  3138. if (this->_internal_x() != 0)
  3139. {
  3140. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  3141. }
  3142. // double facing_direction = 4;
  3143. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3144. double tmp_facing_direction = this->_internal_facing_direction();
  3145. uint64_t raw_facing_direction;
  3146. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3147. if (raw_facing_direction != 0)
  3148. {
  3149. total_size += 1 + 8;
  3150. }
  3151. // int64 mapping_id = 5;
  3152. if (this->_internal_mapping_id() != 0)
  3153. {
  3154. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  3155. }
  3156. // int32 y = 3;
  3157. if (this->_internal_y() != 0)
  3158. {
  3159. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  3160. }
  3161. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3162. }
  3163. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
  3164. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3165. MessageOfPickedProp::MergeImpl};
  3166. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
  3167. {
  3168. return &_class_data_;
  3169. }
  3170. void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3171. {
  3172. auto* const _this = static_cast<MessageOfPickedProp*>(&to_msg);
  3173. auto& from = static_cast<const MessageOfPickedProp&>(from_msg);
  3174. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
  3175. GOOGLE_DCHECK_NE(&from, _this);
  3176. uint32_t cached_has_bits = 0;
  3177. (void)cached_has_bits;
  3178. if (from._internal_type() != 0)
  3179. {
  3180. _this->_internal_set_type(from._internal_type());
  3181. }
  3182. if (from._internal_x() != 0)
  3183. {
  3184. _this->_internal_set_x(from._internal_x());
  3185. }
  3186. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3187. double tmp_facing_direction = from._internal_facing_direction();
  3188. uint64_t raw_facing_direction;
  3189. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3190. if (raw_facing_direction != 0)
  3191. {
  3192. _this->_internal_set_facing_direction(from._internal_facing_direction());
  3193. }
  3194. if (from._internal_mapping_id() != 0)
  3195. {
  3196. _this->_internal_set_mapping_id(from._internal_mapping_id());
  3197. }
  3198. if (from._internal_y() != 0)
  3199. {
  3200. _this->_internal_set_y(from._internal_y());
  3201. }
  3202. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3203. }
  3204. void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
  3205. {
  3206. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
  3207. if (&from == this)
  3208. return;
  3209. Clear();
  3210. MergeFrom(from);
  3211. }
  3212. bool MessageOfPickedProp::IsInitialized() const
  3213. {
  3214. return true;
  3215. }
  3216. void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
  3217. {
  3218. using std::swap;
  3219. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3220. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3221. PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>(
  3222. reinterpret_cast<char*>(&_impl_.type_),
  3223. reinterpret_cast<char*>(&other->_impl_.type_)
  3224. );
  3225. }
  3226. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
  3227. {
  3228. return ::_pbi::AssignDescriptors(
  3229. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
  3230. );
  3231. }
  3232. // ===================================================================
  3233. class MessageOfMap_Row::_Internal
  3234. {
  3235. public:
  3236. };
  3237. MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3238. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3239. {
  3240. SharedCtor(arena, is_message_owned);
  3241. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
  3242. }
  3243. MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
  3244. ::PROTOBUF_NAMESPACE_ID::Message()
  3245. {
  3246. MessageOfMap_Row* const _this = this;
  3247. (void)_this;
  3248. new (&_impl_) Impl_{
  3249. decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  3250. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3251. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
  3252. }
  3253. inline void MessageOfMap_Row::SharedCtor(
  3254. ::_pb::Arena* arena, bool is_message_owned
  3255. )
  3256. {
  3257. (void)arena;
  3258. (void)is_message_owned;
  3259. new (&_impl_) Impl_{
  3260. decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  3261. }
  3262. MessageOfMap_Row::~MessageOfMap_Row()
  3263. {
  3264. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
  3265. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3266. {
  3267. (void)arena;
  3268. return;
  3269. }
  3270. SharedDtor();
  3271. }
  3272. inline void MessageOfMap_Row::SharedDtor()
  3273. {
  3274. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3275. _impl_.col_.~RepeatedField();
  3276. }
  3277. void MessageOfMap_Row::SetCachedSize(int size) const
  3278. {
  3279. _impl_._cached_size_.Set(size);
  3280. }
  3281. void MessageOfMap_Row::Clear()
  3282. {
  3283. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
  3284. uint32_t cached_has_bits = 0;
  3285. // Prevent compiler warnings about cached_has_bits being unused
  3286. (void)cached_has_bits;
  3287. _impl_.col_.Clear();
  3288. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3289. }
  3290. const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3291. {
  3292. #define CHK_(x) \
  3293. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3294. goto failure
  3295. while (!ctx->Done(&ptr))
  3296. {
  3297. uint32_t tag;
  3298. ptr = ::_pbi::ReadTag(ptr, &tag);
  3299. switch (tag >> 3)
  3300. {
  3301. // repeated .protobuf.PlaceType col = 1;
  3302. case 1:
  3303. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  3304. {
  3305. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
  3306. CHK_(ptr);
  3307. }
  3308. else if (static_cast<uint8_t>(tag) == 8)
  3309. {
  3310. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3311. CHK_(ptr);
  3312. _internal_add_col(static_cast<::protobuf::PlaceType>(val));
  3313. }
  3314. else
  3315. goto handle_unusual;
  3316. continue;
  3317. default:
  3318. goto handle_unusual;
  3319. } // switch
  3320. handle_unusual:
  3321. if ((tag == 0) || ((tag & 7) == 4))
  3322. {
  3323. CHK_(ptr);
  3324. ctx->SetLastTag(tag);
  3325. goto message_done;
  3326. }
  3327. ptr = UnknownFieldParse(
  3328. tag,
  3329. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3330. ptr,
  3331. ctx
  3332. );
  3333. CHK_(ptr != nullptr);
  3334. } // while
  3335. message_done:
  3336. return ptr;
  3337. failure:
  3338. ptr = nullptr;
  3339. goto message_done;
  3340. #undef CHK_
  3341. }
  3342. uint8_t* MessageOfMap_Row::_InternalSerialize(
  3343. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3344. ) const
  3345. {
  3346. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
  3347. uint32_t cached_has_bits = 0;
  3348. (void)cached_has_bits;
  3349. // repeated .protobuf.PlaceType col = 1;
  3350. {
  3351. int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed);
  3352. if (byte_size > 0)
  3353. {
  3354. target = stream->WriteEnumPacked(
  3355. 1, _impl_.col_, byte_size, target
  3356. );
  3357. }
  3358. }
  3359. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3360. {
  3361. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3362. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3363. );
  3364. }
  3365. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
  3366. return target;
  3367. }
  3368. size_t MessageOfMap_Row::ByteSizeLong() const
  3369. {
  3370. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
  3371. size_t total_size = 0;
  3372. uint32_t cached_has_bits = 0;
  3373. // Prevent compiler warnings about cached_has_bits being unused
  3374. (void)cached_has_bits;
  3375. // repeated .protobuf.PlaceType col = 1;
  3376. {
  3377. size_t data_size = 0;
  3378. unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
  3379. for (unsigned int i = 0; i < count; i++)
  3380. {
  3381. data_size += ::_pbi::WireFormatLite::EnumSize(
  3382. this->_internal_col(static_cast<int>(i))
  3383. );
  3384. }
  3385. if (data_size > 0)
  3386. {
  3387. total_size += 1 +
  3388. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  3389. }
  3390. int cached_size = ::_pbi::ToCachedSize(data_size);
  3391. _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  3392. total_size += data_size;
  3393. }
  3394. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3395. }
  3396. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
  3397. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3398. MessageOfMap_Row::MergeImpl};
  3399. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
  3400. {
  3401. return &_class_data_;
  3402. }
  3403. void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3404. {
  3405. auto* const _this = static_cast<MessageOfMap_Row*>(&to_msg);
  3406. auto& from = static_cast<const MessageOfMap_Row&>(from_msg);
  3407. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
  3408. GOOGLE_DCHECK_NE(&from, _this);
  3409. uint32_t cached_has_bits = 0;
  3410. (void)cached_has_bits;
  3411. _this->_impl_.col_.MergeFrom(from._impl_.col_);
  3412. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3413. }
  3414. void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
  3415. {
  3416. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
  3417. if (&from == this)
  3418. return;
  3419. Clear();
  3420. MergeFrom(from);
  3421. }
  3422. bool MessageOfMap_Row::IsInitialized() const
  3423. {
  3424. return true;
  3425. }
  3426. void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
  3427. {
  3428. using std::swap;
  3429. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3430. _impl_.col_.InternalSwap(&other->_impl_.col_);
  3431. }
  3432. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
  3433. {
  3434. return ::_pbi::AssignDescriptors(
  3435. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
  3436. );
  3437. }
  3438. // ===================================================================
  3439. class MessageOfMap::_Internal
  3440. {
  3441. public:
  3442. };
  3443. MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3444. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3445. {
  3446. SharedCtor(arena, is_message_owned);
  3447. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
  3448. }
  3449. MessageOfMap::MessageOfMap(const MessageOfMap& from) :
  3450. ::PROTOBUF_NAMESPACE_ID::Message()
  3451. {
  3452. MessageOfMap* const _this = this;
  3453. (void)_this;
  3454. new (&_impl_) Impl_{
  3455. decltype(_impl_.row_){from._impl_.row_}, /*decltype(_impl_._cached_size_)*/ {}};
  3456. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3457. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
  3458. }
  3459. inline void MessageOfMap::SharedCtor(
  3460. ::_pb::Arena* arena, bool is_message_owned
  3461. )
  3462. {
  3463. (void)arena;
  3464. (void)is_message_owned;
  3465. new (&_impl_) Impl_{
  3466. decltype(_impl_.row_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
  3467. }
  3468. MessageOfMap::~MessageOfMap()
  3469. {
  3470. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
  3471. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3472. {
  3473. (void)arena;
  3474. return;
  3475. }
  3476. SharedDtor();
  3477. }
  3478. inline void MessageOfMap::SharedDtor()
  3479. {
  3480. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3481. _impl_.row_.~RepeatedPtrField();
  3482. }
  3483. void MessageOfMap::SetCachedSize(int size) const
  3484. {
  3485. _impl_._cached_size_.Set(size);
  3486. }
  3487. void MessageOfMap::Clear()
  3488. {
  3489. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
  3490. uint32_t cached_has_bits = 0;
  3491. // Prevent compiler warnings about cached_has_bits being unused
  3492. (void)cached_has_bits;
  3493. _impl_.row_.Clear();
  3494. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3495. }
  3496. const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3497. {
  3498. #define CHK_(x) \
  3499. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3500. goto failure
  3501. while (!ctx->Done(&ptr))
  3502. {
  3503. uint32_t tag;
  3504. ptr = ::_pbi::ReadTag(ptr, &tag);
  3505. switch (tag >> 3)
  3506. {
  3507. // repeated .protobuf.MessageOfMap.Row row = 2;
  3508. case 2:
  3509. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  3510. {
  3511. ptr -= 1;
  3512. do
  3513. {
  3514. ptr += 1;
  3515. ptr = ctx->ParseMessage(_internal_add_row(), ptr);
  3516. CHK_(ptr);
  3517. if (!ctx->DataAvailable(ptr))
  3518. break;
  3519. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  3520. }
  3521. else
  3522. goto handle_unusual;
  3523. continue;
  3524. default:
  3525. goto handle_unusual;
  3526. } // switch
  3527. handle_unusual:
  3528. if ((tag == 0) || ((tag & 7) == 4))
  3529. {
  3530. CHK_(ptr);
  3531. ctx->SetLastTag(tag);
  3532. goto message_done;
  3533. }
  3534. ptr = UnknownFieldParse(
  3535. tag,
  3536. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3537. ptr,
  3538. ctx
  3539. );
  3540. CHK_(ptr != nullptr);
  3541. } // while
  3542. message_done:
  3543. return ptr;
  3544. failure:
  3545. ptr = nullptr;
  3546. goto message_done;
  3547. #undef CHK_
  3548. }
  3549. uint8_t* MessageOfMap::_InternalSerialize(
  3550. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3551. ) const
  3552. {
  3553. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
  3554. uint32_t cached_has_bits = 0;
  3555. (void)cached_has_bits;
  3556. // repeated .protobuf.MessageOfMap.Row row = 2;
  3557. for (unsigned i = 0,
  3558. n = static_cast<unsigned>(this->_internal_row_size());
  3559. i < n;
  3560. i++)
  3561. {
  3562. const auto& repfield = this->_internal_row(i);
  3563. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3564. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  3565. }
  3566. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3567. {
  3568. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3569. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3570. );
  3571. }
  3572. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
  3573. return target;
  3574. }
  3575. size_t MessageOfMap::ByteSizeLong() const
  3576. {
  3577. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
  3578. size_t total_size = 0;
  3579. uint32_t cached_has_bits = 0;
  3580. // Prevent compiler warnings about cached_has_bits being unused
  3581. (void)cached_has_bits;
  3582. // repeated .protobuf.MessageOfMap.Row row = 2;
  3583. total_size += 1UL * this->_internal_row_size();
  3584. for (const auto& msg : this->_impl_.row_)
  3585. {
  3586. total_size +=
  3587. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3588. }
  3589. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3590. }
  3591. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
  3592. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3593. MessageOfMap::MergeImpl};
  3594. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
  3595. {
  3596. return &_class_data_;
  3597. }
  3598. void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3599. {
  3600. auto* const _this = static_cast<MessageOfMap*>(&to_msg);
  3601. auto& from = static_cast<const MessageOfMap&>(from_msg);
  3602. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
  3603. GOOGLE_DCHECK_NE(&from, _this);
  3604. uint32_t cached_has_bits = 0;
  3605. (void)cached_has_bits;
  3606. _this->_impl_.row_.MergeFrom(from._impl_.row_);
  3607. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3608. }
  3609. void MessageOfMap::CopyFrom(const MessageOfMap& from)
  3610. {
  3611. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
  3612. if (&from == this)
  3613. return;
  3614. Clear();
  3615. MergeFrom(from);
  3616. }
  3617. bool MessageOfMap::IsInitialized() const
  3618. {
  3619. return true;
  3620. }
  3621. void MessageOfMap::InternalSwap(MessageOfMap* other)
  3622. {
  3623. using std::swap;
  3624. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3625. _impl_.row_.InternalSwap(&other->_impl_.row_);
  3626. }
  3627. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
  3628. {
  3629. return ::_pbi::AssignDescriptors(
  3630. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
  3631. );
  3632. }
  3633. // ===================================================================
  3634. class MessageToClient::_Internal
  3635. {
  3636. public:
  3637. static const ::protobuf::MessageOfMap& map_message(const MessageToClient* msg);
  3638. };
  3639. const ::protobuf::MessageOfMap&
  3640. MessageToClient::_Internal::map_message(const MessageToClient* msg)
  3641. {
  3642. return *msg->_impl_.map_message_;
  3643. }
  3644. MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3645. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3646. {
  3647. SharedCtor(arena, is_message_owned);
  3648. // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
  3649. }
  3650. MessageToClient::MessageToClient(const MessageToClient& from) :
  3651. ::PROTOBUF_NAMESPACE_ID::Message()
  3652. {
  3653. MessageToClient* const _this = this;
  3654. (void)_this;
  3655. new (&_impl_) Impl_{
  3656. decltype(_impl_.student_message_){from._impl_.student_message_}, decltype(_impl_.tricker_message_){from._impl_.tricker_message_}, decltype(_impl_.prop_message_){from._impl_.prop_message_}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3657. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3658. if (from._internal_has_map_message())
  3659. {
  3660. _this->_impl_.map_message_ = new ::protobuf::MessageOfMap(*from._impl_.map_message_);
  3661. }
  3662. _this->_impl_.game_state_ = from._impl_.game_state_;
  3663. // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
  3664. }
  3665. inline void MessageToClient::SharedCtor(
  3666. ::_pb::Arena* arena, bool is_message_owned
  3667. )
  3668. {
  3669. (void)arena;
  3670. (void)is_message_owned;
  3671. new (&_impl_) Impl_{
  3672. decltype(_impl_.student_message_){arena}, decltype(_impl_.tricker_message_){arena}, decltype(_impl_.prop_message_){arena}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  3673. }
  3674. MessageToClient::~MessageToClient()
  3675. {
  3676. // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
  3677. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3678. {
  3679. (void)arena;
  3680. return;
  3681. }
  3682. SharedDtor();
  3683. }
  3684. inline void MessageToClient::SharedDtor()
  3685. {
  3686. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3687. _impl_.student_message_.~RepeatedPtrField();
  3688. _impl_.tricker_message_.~RepeatedPtrField();
  3689. _impl_.prop_message_.~RepeatedPtrField();
  3690. if (this != internal_default_instance())
  3691. delete _impl_.map_message_;
  3692. }
  3693. void MessageToClient::SetCachedSize(int size) const
  3694. {
  3695. _impl_._cached_size_.Set(size);
  3696. }
  3697. void MessageToClient::Clear()
  3698. {
  3699. // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
  3700. uint32_t cached_has_bits = 0;
  3701. // Prevent compiler warnings about cached_has_bits being unused
  3702. (void)cached_has_bits;
  3703. _impl_.student_message_.Clear();
  3704. _impl_.tricker_message_.Clear();
  3705. _impl_.prop_message_.Clear();
  3706. if (GetArenaForAllocation() == nullptr && _impl_.map_message_ != nullptr)
  3707. {
  3708. delete _impl_.map_message_;
  3709. }
  3710. _impl_.map_message_ = nullptr;
  3711. _impl_.game_state_ = 0;
  3712. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3713. }
  3714. const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3715. {
  3716. #define CHK_(x) \
  3717. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3718. goto failure
  3719. while (!ctx->Done(&ptr))
  3720. {
  3721. uint32_t tag;
  3722. ptr = ::_pbi::ReadTag(ptr, &tag);
  3723. switch (tag >> 3)
  3724. {
  3725. // repeated .protobuf.MessageOfStudent student_message = 1;
  3726. case 1:
  3727. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  3728. {
  3729. ptr -= 1;
  3730. do
  3731. {
  3732. ptr += 1;
  3733. ptr = ctx->ParseMessage(_internal_add_student_message(), ptr);
  3734. CHK_(ptr);
  3735. if (!ctx->DataAvailable(ptr))
  3736. break;
  3737. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  3738. }
  3739. else
  3740. goto handle_unusual;
  3741. continue;
  3742. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3743. case 2:
  3744. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  3745. {
  3746. ptr -= 1;
  3747. do
  3748. {
  3749. ptr += 1;
  3750. ptr = ctx->ParseMessage(_internal_add_tricker_message(), ptr);
  3751. CHK_(ptr);
  3752. if (!ctx->DataAvailable(ptr))
  3753. break;
  3754. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  3755. }
  3756. else
  3757. goto handle_unusual;
  3758. continue;
  3759. // repeated .protobuf.MessageOfProp prop_message = 3;
  3760. case 3:
  3761. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  3762. {
  3763. ptr -= 1;
  3764. do
  3765. {
  3766. ptr += 1;
  3767. ptr = ctx->ParseMessage(_internal_add_prop_message(), ptr);
  3768. CHK_(ptr);
  3769. if (!ctx->DataAvailable(ptr))
  3770. break;
  3771. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  3772. }
  3773. else
  3774. goto handle_unusual;
  3775. continue;
  3776. // .protobuf.MessageOfMap map_message = 4;
  3777. case 4:
  3778. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  3779. {
  3780. ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr);
  3781. CHK_(ptr);
  3782. }
  3783. else
  3784. goto handle_unusual;
  3785. continue;
  3786. // .protobuf.GameState game_state = 5;
  3787. case 5:
  3788. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  3789. {
  3790. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3791. CHK_(ptr);
  3792. _internal_set_game_state(static_cast<::protobuf::GameState>(val));
  3793. }
  3794. else
  3795. goto handle_unusual;
  3796. continue;
  3797. default:
  3798. goto handle_unusual;
  3799. } // switch
  3800. handle_unusual:
  3801. if ((tag == 0) || ((tag & 7) == 4))
  3802. {
  3803. CHK_(ptr);
  3804. ctx->SetLastTag(tag);
  3805. goto message_done;
  3806. }
  3807. ptr = UnknownFieldParse(
  3808. tag,
  3809. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3810. ptr,
  3811. ctx
  3812. );
  3813. CHK_(ptr != nullptr);
  3814. } // while
  3815. message_done:
  3816. return ptr;
  3817. failure:
  3818. ptr = nullptr;
  3819. goto message_done;
  3820. #undef CHK_
  3821. }
  3822. uint8_t* MessageToClient::_InternalSerialize(
  3823. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3824. ) const
  3825. {
  3826. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
  3827. uint32_t cached_has_bits = 0;
  3828. (void)cached_has_bits;
  3829. // repeated .protobuf.MessageOfStudent student_message = 1;
  3830. for (unsigned i = 0,
  3831. n = static_cast<unsigned>(this->_internal_student_message_size());
  3832. i < n;
  3833. i++)
  3834. {
  3835. const auto& repfield = this->_internal_student_message(i);
  3836. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3837. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  3838. }
  3839. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3840. for (unsigned i = 0,
  3841. n = static_cast<unsigned>(this->_internal_tricker_message_size());
  3842. i < n;
  3843. i++)
  3844. {
  3845. const auto& repfield = this->_internal_tricker_message(i);
  3846. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3847. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  3848. }
  3849. // repeated .protobuf.MessageOfProp prop_message = 3;
  3850. for (unsigned i = 0,
  3851. n = static_cast<unsigned>(this->_internal_prop_message_size());
  3852. i < n;
  3853. i++)
  3854. {
  3855. const auto& repfield = this->_internal_prop_message(i);
  3856. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3857. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  3858. }
  3859. // .protobuf.MessageOfMap map_message = 4;
  3860. if (this->_internal_has_map_message())
  3861. {
  3862. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3863. InternalWriteMessage(4, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream);
  3864. }
  3865. // .protobuf.GameState game_state = 5;
  3866. if (this->_internal_game_state() != 0)
  3867. {
  3868. target = stream->EnsureSpace(target);
  3869. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3870. 5, this->_internal_game_state(), target
  3871. );
  3872. }
  3873. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3874. {
  3875. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3876. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3877. );
  3878. }
  3879. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
  3880. return target;
  3881. }
  3882. size_t MessageToClient::ByteSizeLong() const
  3883. {
  3884. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
  3885. size_t total_size = 0;
  3886. uint32_t cached_has_bits = 0;
  3887. // Prevent compiler warnings about cached_has_bits being unused
  3888. (void)cached_has_bits;
  3889. // repeated .protobuf.MessageOfStudent student_message = 1;
  3890. total_size += 1UL * this->_internal_student_message_size();
  3891. for (const auto& msg : this->_impl_.student_message_)
  3892. {
  3893. total_size +=
  3894. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3895. }
  3896. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3897. total_size += 1UL * this->_internal_tricker_message_size();
  3898. for (const auto& msg : this->_impl_.tricker_message_)
  3899. {
  3900. total_size +=
  3901. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3902. }
  3903. // repeated .protobuf.MessageOfProp prop_message = 3;
  3904. total_size += 1UL * this->_internal_prop_message_size();
  3905. for (const auto& msg : this->_impl_.prop_message_)
  3906. {
  3907. total_size +=
  3908. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3909. }
  3910. // .protobuf.MessageOfMap map_message = 4;
  3911. if (this->_internal_has_map_message())
  3912. {
  3913. total_size += 1 +
  3914. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3915. *_impl_.map_message_
  3916. );
  3917. }
  3918. // .protobuf.GameState game_state = 5;
  3919. if (this->_internal_game_state() != 0)
  3920. {
  3921. total_size += 1 +
  3922. ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state());
  3923. }
  3924. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3925. }
  3926. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
  3927. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3928. MessageToClient::MergeImpl};
  3929. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
  3930. {
  3931. return &_class_data_;
  3932. }
  3933. void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3934. {
  3935. auto* const _this = static_cast<MessageToClient*>(&to_msg);
  3936. auto& from = static_cast<const MessageToClient&>(from_msg);
  3937. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
  3938. GOOGLE_DCHECK_NE(&from, _this);
  3939. uint32_t cached_has_bits = 0;
  3940. (void)cached_has_bits;
  3941. _this->_impl_.student_message_.MergeFrom(from._impl_.student_message_);
  3942. _this->_impl_.tricker_message_.MergeFrom(from._impl_.tricker_message_);
  3943. _this->_impl_.prop_message_.MergeFrom(from._impl_.prop_message_);
  3944. if (from._internal_has_map_message())
  3945. {
  3946. _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
  3947. from._internal_map_message()
  3948. );
  3949. }
  3950. if (from._internal_game_state() != 0)
  3951. {
  3952. _this->_internal_set_game_state(from._internal_game_state());
  3953. }
  3954. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3955. }
  3956. void MessageToClient::CopyFrom(const MessageToClient& from)
  3957. {
  3958. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
  3959. if (&from == this)
  3960. return;
  3961. Clear();
  3962. MergeFrom(from);
  3963. }
  3964. bool MessageToClient::IsInitialized() const
  3965. {
  3966. return true;
  3967. }
  3968. void MessageToClient::InternalSwap(MessageToClient* other)
  3969. {
  3970. using std::swap;
  3971. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3972. _impl_.student_message_.InternalSwap(&other->_impl_.student_message_);
  3973. _impl_.tricker_message_.InternalSwap(&other->_impl_.tricker_message_);
  3974. _impl_.prop_message_.InternalSwap(&other->_impl_.prop_message_);
  3975. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3976. PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.map_message_)>(
  3977. reinterpret_cast<char*>(&_impl_.map_message_),
  3978. reinterpret_cast<char*>(&other->_impl_.map_message_)
  3979. );
  3980. }
  3981. ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
  3982. {
  3983. return ::_pbi::AssignDescriptors(
  3984. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
  3985. );
  3986. }
  3987. // ===================================================================
  3988. class MoveRes::_Internal
  3989. {
  3990. public:
  3991. };
  3992. MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3993. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3994. {
  3995. SharedCtor(arena, is_message_owned);
  3996. // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
  3997. }
  3998. MoveRes::MoveRes(const MoveRes& from) :
  3999. ::PROTOBUF_NAMESPACE_ID::Message()
  4000. {
  4001. MoveRes* const _this = this;
  4002. (void)_this;
  4003. new (&_impl_) Impl_{
  4004. decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4005. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4006. ::memcpy(&_impl_.actual_speed_, &from._impl_.actual_speed_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
  4007. // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
  4008. }
  4009. inline void MoveRes::SharedCtor(
  4010. ::_pb::Arena* arena, bool is_message_owned
  4011. )
  4012. {
  4013. (void)arena;
  4014. (void)is_message_owned;
  4015. new (&_impl_) Impl_{
  4016. decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4017. }
  4018. MoveRes::~MoveRes()
  4019. {
  4020. // @@protoc_insertion_point(destructor:protobuf.MoveRes)
  4021. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4022. {
  4023. (void)arena;
  4024. return;
  4025. }
  4026. SharedDtor();
  4027. }
  4028. inline void MoveRes::SharedDtor()
  4029. {
  4030. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4031. }
  4032. void MoveRes::SetCachedSize(int size) const
  4033. {
  4034. _impl_._cached_size_.Set(size);
  4035. }
  4036. void MoveRes::Clear()
  4037. {
  4038. // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
  4039. uint32_t cached_has_bits = 0;
  4040. // Prevent compiler warnings about cached_has_bits being unused
  4041. (void)cached_has_bits;
  4042. ::memset(&_impl_.actual_speed_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
  4043. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4044. }
  4045. const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4046. {
  4047. #define CHK_(x) \
  4048. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4049. goto failure
  4050. while (!ctx->Done(&ptr))
  4051. {
  4052. uint32_t tag;
  4053. ptr = ::_pbi::ReadTag(ptr, &tag);
  4054. switch (tag >> 3)
  4055. {
  4056. // int64 actual_speed = 1;
  4057. case 1:
  4058. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4059. {
  4060. _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4061. CHK_(ptr);
  4062. }
  4063. else
  4064. goto handle_unusual;
  4065. continue;
  4066. // double actual_angle = 2;
  4067. case 2:
  4068. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  4069. {
  4070. _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  4071. ptr += sizeof(double);
  4072. }
  4073. else
  4074. goto handle_unusual;
  4075. continue;
  4076. // bool act_success = 3;
  4077. case 3:
  4078. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  4079. {
  4080. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4081. CHK_(ptr);
  4082. }
  4083. else
  4084. goto handle_unusual;
  4085. continue;
  4086. default:
  4087. goto handle_unusual;
  4088. } // switch
  4089. handle_unusual:
  4090. if ((tag == 0) || ((tag & 7) == 4))
  4091. {
  4092. CHK_(ptr);
  4093. ctx->SetLastTag(tag);
  4094. goto message_done;
  4095. }
  4096. ptr = UnknownFieldParse(
  4097. tag,
  4098. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4099. ptr,
  4100. ctx
  4101. );
  4102. CHK_(ptr != nullptr);
  4103. } // while
  4104. message_done:
  4105. return ptr;
  4106. failure:
  4107. ptr = nullptr;
  4108. goto message_done;
  4109. #undef CHK_
  4110. }
  4111. uint8_t* MoveRes::_InternalSerialize(
  4112. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4113. ) const
  4114. {
  4115. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
  4116. uint32_t cached_has_bits = 0;
  4117. (void)cached_has_bits;
  4118. // int64 actual_speed = 1;
  4119. if (this->_internal_actual_speed() != 0)
  4120. {
  4121. target = stream->EnsureSpace(target);
  4122. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
  4123. }
  4124. // double actual_angle = 2;
  4125. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  4126. double tmp_actual_angle = this->_internal_actual_angle();
  4127. uint64_t raw_actual_angle;
  4128. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  4129. if (raw_actual_angle != 0)
  4130. {
  4131. target = stream->EnsureSpace(target);
  4132. target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
  4133. }
  4134. // bool act_success = 3;
  4135. if (this->_internal_act_success() != 0)
  4136. {
  4137. target = stream->EnsureSpace(target);
  4138. target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target);
  4139. }
  4140. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4141. {
  4142. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4143. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4144. );
  4145. }
  4146. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
  4147. return target;
  4148. }
  4149. size_t MoveRes::ByteSizeLong() const
  4150. {
  4151. // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
  4152. size_t total_size = 0;
  4153. uint32_t cached_has_bits = 0;
  4154. // Prevent compiler warnings about cached_has_bits being unused
  4155. (void)cached_has_bits;
  4156. // int64 actual_speed = 1;
  4157. if (this->_internal_actual_speed() != 0)
  4158. {
  4159. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
  4160. }
  4161. // double actual_angle = 2;
  4162. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  4163. double tmp_actual_angle = this->_internal_actual_angle();
  4164. uint64_t raw_actual_angle;
  4165. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  4166. if (raw_actual_angle != 0)
  4167. {
  4168. total_size += 1 + 8;
  4169. }
  4170. // bool act_success = 3;
  4171. if (this->_internal_act_success() != 0)
  4172. {
  4173. total_size += 1 + 1;
  4174. }
  4175. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4176. }
  4177. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
  4178. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4179. MoveRes::MergeImpl};
  4180. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
  4181. {
  4182. return &_class_data_;
  4183. }
  4184. void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4185. {
  4186. auto* const _this = static_cast<MoveRes*>(&to_msg);
  4187. auto& from = static_cast<const MoveRes&>(from_msg);
  4188. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
  4189. GOOGLE_DCHECK_NE(&from, _this);
  4190. uint32_t cached_has_bits = 0;
  4191. (void)cached_has_bits;
  4192. if (from._internal_actual_speed() != 0)
  4193. {
  4194. _this->_internal_set_actual_speed(from._internal_actual_speed());
  4195. }
  4196. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  4197. double tmp_actual_angle = from._internal_actual_angle();
  4198. uint64_t raw_actual_angle;
  4199. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  4200. if (raw_actual_angle != 0)
  4201. {
  4202. _this->_internal_set_actual_angle(from._internal_actual_angle());
  4203. }
  4204. if (from._internal_act_success() != 0)
  4205. {
  4206. _this->_internal_set_act_success(from._internal_act_success());
  4207. }
  4208. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4209. }
  4210. void MoveRes::CopyFrom(const MoveRes& from)
  4211. {
  4212. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
  4213. if (&from == this)
  4214. return;
  4215. Clear();
  4216. MergeFrom(from);
  4217. }
  4218. bool MoveRes::IsInitialized() const
  4219. {
  4220. return true;
  4221. }
  4222. void MoveRes::InternalSwap(MoveRes* other)
  4223. {
  4224. using std::swap;
  4225. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4226. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4227. PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>(
  4228. reinterpret_cast<char*>(&_impl_.actual_speed_),
  4229. reinterpret_cast<char*>(&other->_impl_.actual_speed_)
  4230. );
  4231. }
  4232. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
  4233. {
  4234. return ::_pbi::AssignDescriptors(
  4235. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
  4236. );
  4237. }
  4238. // ===================================================================
  4239. class BoolRes::_Internal
  4240. {
  4241. public:
  4242. };
  4243. BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4244. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4245. {
  4246. SharedCtor(arena, is_message_owned);
  4247. // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
  4248. }
  4249. BoolRes::BoolRes(const BoolRes& from) :
  4250. ::PROTOBUF_NAMESPACE_ID::Message()
  4251. {
  4252. BoolRes* const _this = this;
  4253. (void)_this;
  4254. new (&_impl_) Impl_{
  4255. decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4256. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4257. _this->_impl_.act_success_ = from._impl_.act_success_;
  4258. // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
  4259. }
  4260. inline void BoolRes::SharedCtor(
  4261. ::_pb::Arena* arena, bool is_message_owned
  4262. )
  4263. {
  4264. (void)arena;
  4265. (void)is_message_owned;
  4266. new (&_impl_) Impl_{
  4267. decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4268. }
  4269. BoolRes::~BoolRes()
  4270. {
  4271. // @@protoc_insertion_point(destructor:protobuf.BoolRes)
  4272. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4273. {
  4274. (void)arena;
  4275. return;
  4276. }
  4277. SharedDtor();
  4278. }
  4279. inline void BoolRes::SharedDtor()
  4280. {
  4281. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4282. }
  4283. void BoolRes::SetCachedSize(int size) const
  4284. {
  4285. _impl_._cached_size_.Set(size);
  4286. }
  4287. void BoolRes::Clear()
  4288. {
  4289. // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
  4290. uint32_t cached_has_bits = 0;
  4291. // Prevent compiler warnings about cached_has_bits being unused
  4292. (void)cached_has_bits;
  4293. _impl_.act_success_ = false;
  4294. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4295. }
  4296. const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4297. {
  4298. #define CHK_(x) \
  4299. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4300. goto failure
  4301. while (!ctx->Done(&ptr))
  4302. {
  4303. uint32_t tag;
  4304. ptr = ::_pbi::ReadTag(ptr, &tag);
  4305. switch (tag >> 3)
  4306. {
  4307. // bool act_success = 1;
  4308. case 1:
  4309. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4310. {
  4311. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4312. CHK_(ptr);
  4313. }
  4314. else
  4315. goto handle_unusual;
  4316. continue;
  4317. default:
  4318. goto handle_unusual;
  4319. } // switch
  4320. handle_unusual:
  4321. if ((tag == 0) || ((tag & 7) == 4))
  4322. {
  4323. CHK_(ptr);
  4324. ctx->SetLastTag(tag);
  4325. goto message_done;
  4326. }
  4327. ptr = UnknownFieldParse(
  4328. tag,
  4329. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4330. ptr,
  4331. ctx
  4332. );
  4333. CHK_(ptr != nullptr);
  4334. } // while
  4335. message_done:
  4336. return ptr;
  4337. failure:
  4338. ptr = nullptr;
  4339. goto message_done;
  4340. #undef CHK_
  4341. }
  4342. uint8_t* BoolRes::_InternalSerialize(
  4343. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4344. ) const
  4345. {
  4346. // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
  4347. uint32_t cached_has_bits = 0;
  4348. (void)cached_has_bits;
  4349. // bool act_success = 1;
  4350. if (this->_internal_act_success() != 0)
  4351. {
  4352. target = stream->EnsureSpace(target);
  4353. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
  4354. }
  4355. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4356. {
  4357. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4358. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4359. );
  4360. }
  4361. // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
  4362. return target;
  4363. }
  4364. size_t BoolRes::ByteSizeLong() const
  4365. {
  4366. // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
  4367. size_t total_size = 0;
  4368. uint32_t cached_has_bits = 0;
  4369. // Prevent compiler warnings about cached_has_bits being unused
  4370. (void)cached_has_bits;
  4371. // bool act_success = 1;
  4372. if (this->_internal_act_success() != 0)
  4373. {
  4374. total_size += 1 + 1;
  4375. }
  4376. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4377. }
  4378. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
  4379. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4380. BoolRes::MergeImpl};
  4381. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
  4382. {
  4383. return &_class_data_;
  4384. }
  4385. void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4386. {
  4387. auto* const _this = static_cast<BoolRes*>(&to_msg);
  4388. auto& from = static_cast<const BoolRes&>(from_msg);
  4389. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
  4390. GOOGLE_DCHECK_NE(&from, _this);
  4391. uint32_t cached_has_bits = 0;
  4392. (void)cached_has_bits;
  4393. if (from._internal_act_success() != 0)
  4394. {
  4395. _this->_internal_set_act_success(from._internal_act_success());
  4396. }
  4397. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4398. }
  4399. void BoolRes::CopyFrom(const BoolRes& from)
  4400. {
  4401. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
  4402. if (&from == this)
  4403. return;
  4404. Clear();
  4405. MergeFrom(from);
  4406. }
  4407. bool BoolRes::IsInitialized() const
  4408. {
  4409. return true;
  4410. }
  4411. void BoolRes::InternalSwap(BoolRes* other)
  4412. {
  4413. using std::swap;
  4414. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4415. swap(_impl_.act_success_, other->_impl_.act_success_);
  4416. }
  4417. ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
  4418. {
  4419. return ::_pbi::AssignDescriptors(
  4420. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10]
  4421. );
  4422. }
  4423. // ===================================================================
  4424. class MsgRes::_Internal
  4425. {
  4426. public:
  4427. };
  4428. MsgRes::MsgRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4429. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4430. {
  4431. SharedCtor(arena, is_message_owned);
  4432. // @@protoc_insertion_point(arena_constructor:protobuf.MsgRes)
  4433. }
  4434. MsgRes::MsgRes(const MsgRes& from) :
  4435. ::PROTOBUF_NAMESPACE_ID::Message()
  4436. {
  4437. MsgRes* const _this = this;
  4438. (void)_this;
  4439. new (&_impl_) Impl_{
  4440. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){}, decltype(_impl_.have_message_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4441. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4442. _impl_.message_received_.InitDefault();
  4443. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4444. _impl_.message_received_.Set("", GetArenaForAllocation());
  4445. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4446. if (!from._internal_message_received().empty())
  4447. {
  4448. _this->_impl_.message_received_.Set(from._internal_message_received(), _this->GetArenaForAllocation());
  4449. }
  4450. ::memcpy(&_impl_.from_player_id_, &from._impl_.from_player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  4451. // @@protoc_insertion_point(copy_constructor:protobuf.MsgRes)
  4452. }
  4453. inline void MsgRes::SharedCtor(
  4454. ::_pb::Arena* arena, bool is_message_owned
  4455. )
  4456. {
  4457. (void)arena;
  4458. (void)is_message_owned;
  4459. new (&_impl_) Impl_{
  4460. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){int64_t{0}}, decltype(_impl_.have_message_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4461. _impl_.message_received_.InitDefault();
  4462. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4463. _impl_.message_received_.Set("", GetArenaForAllocation());
  4464. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4465. }
  4466. MsgRes::~MsgRes()
  4467. {
  4468. // @@protoc_insertion_point(destructor:protobuf.MsgRes)
  4469. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4470. {
  4471. (void)arena;
  4472. return;
  4473. }
  4474. SharedDtor();
  4475. }
  4476. inline void MsgRes::SharedDtor()
  4477. {
  4478. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4479. _impl_.message_received_.Destroy();
  4480. }
  4481. void MsgRes::SetCachedSize(int size) const
  4482. {
  4483. _impl_._cached_size_.Set(size);
  4484. }
  4485. void MsgRes::Clear()
  4486. {
  4487. // @@protoc_insertion_point(message_clear_start:protobuf.MsgRes)
  4488. uint32_t cached_has_bits = 0;
  4489. // Prevent compiler warnings about cached_has_bits being unused
  4490. (void)cached_has_bits;
  4491. _impl_.message_received_.ClearToEmpty();
  4492. ::memset(&_impl_.from_player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  4493. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4494. }
  4495. const char* MsgRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4496. {
  4497. #define CHK_(x) \
  4498. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4499. goto failure
  4500. while (!ctx->Done(&ptr))
  4501. {
  4502. uint32_t tag;
  4503. ptr = ::_pbi::ReadTag(ptr, &tag);
  4504. switch (tag >> 3)
  4505. {
  4506. // bool have_message = 1;
  4507. case 1:
  4508. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4509. {
  4510. _impl_.have_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4511. CHK_(ptr);
  4512. }
  4513. else
  4514. goto handle_unusual;
  4515. continue;
  4516. // int64 from_player_id = 2;
  4517. case 2:
  4518. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  4519. {
  4520. _impl_.from_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4521. CHK_(ptr);
  4522. }
  4523. else
  4524. goto handle_unusual;
  4525. continue;
  4526. // string message_received = 3;
  4527. case 3:
  4528. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  4529. {
  4530. auto str = _internal_mutable_message_received();
  4531. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  4532. CHK_(ptr);
  4533. CHK_(::_pbi::VerifyUTF8(str, "protobuf.MsgRes.message_received"));
  4534. }
  4535. else
  4536. goto handle_unusual;
  4537. continue;
  4538. default:
  4539. goto handle_unusual;
  4540. } // switch
  4541. handle_unusual:
  4542. if ((tag == 0) || ((tag & 7) == 4))
  4543. {
  4544. CHK_(ptr);
  4545. ctx->SetLastTag(tag);
  4546. goto message_done;
  4547. }
  4548. ptr = UnknownFieldParse(
  4549. tag,
  4550. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4551. ptr,
  4552. ctx
  4553. );
  4554. CHK_(ptr != nullptr);
  4555. } // while
  4556. message_done:
  4557. return ptr;
  4558. failure:
  4559. ptr = nullptr;
  4560. goto message_done;
  4561. #undef CHK_
  4562. }
  4563. uint8_t* MsgRes::_InternalSerialize(
  4564. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4565. ) const
  4566. {
  4567. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MsgRes)
  4568. uint32_t cached_has_bits = 0;
  4569. (void)cached_has_bits;
  4570. // bool have_message = 1;
  4571. if (this->_internal_have_message() != 0)
  4572. {
  4573. target = stream->EnsureSpace(target);
  4574. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_have_message(), target);
  4575. }
  4576. // int64 from_player_id = 2;
  4577. if (this->_internal_from_player_id() != 0)
  4578. {
  4579. target = stream->EnsureSpace(target);
  4580. target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_player_id(), target);
  4581. }
  4582. // string message_received = 3;
  4583. if (!this->_internal_message_received().empty())
  4584. {
  4585. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4586. this->_internal_message_received().data(), static_cast<int>(this->_internal_message_received().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MsgRes.message_received"
  4587. );
  4588. target = stream->WriteStringMaybeAliased(
  4589. 3, this->_internal_message_received(), target
  4590. );
  4591. }
  4592. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4593. {
  4594. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4595. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4596. );
  4597. }
  4598. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MsgRes)
  4599. return target;
  4600. }
  4601. size_t MsgRes::ByteSizeLong() const
  4602. {
  4603. // @@protoc_insertion_point(message_byte_size_start:protobuf.MsgRes)
  4604. size_t total_size = 0;
  4605. uint32_t cached_has_bits = 0;
  4606. // Prevent compiler warnings about cached_has_bits being unused
  4607. (void)cached_has_bits;
  4608. // string message_received = 3;
  4609. if (!this->_internal_message_received().empty())
  4610. {
  4611. total_size += 1 +
  4612. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4613. this->_internal_message_received()
  4614. );
  4615. }
  4616. // int64 from_player_id = 2;
  4617. if (this->_internal_from_player_id() != 0)
  4618. {
  4619. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_player_id());
  4620. }
  4621. // bool have_message = 1;
  4622. if (this->_internal_have_message() != 0)
  4623. {
  4624. total_size += 1 + 1;
  4625. }
  4626. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4627. }
  4628. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgRes::_class_data_ = {
  4629. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4630. MsgRes::MergeImpl};
  4631. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MsgRes::GetClassData() const
  4632. {
  4633. return &_class_data_;
  4634. }
  4635. void MsgRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4636. {
  4637. auto* const _this = static_cast<MsgRes*>(&to_msg);
  4638. auto& from = static_cast<const MsgRes&>(from_msg);
  4639. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MsgRes)
  4640. GOOGLE_DCHECK_NE(&from, _this);
  4641. uint32_t cached_has_bits = 0;
  4642. (void)cached_has_bits;
  4643. if (!from._internal_message_received().empty())
  4644. {
  4645. _this->_internal_set_message_received(from._internal_message_received());
  4646. }
  4647. if (from._internal_from_player_id() != 0)
  4648. {
  4649. _this->_internal_set_from_player_id(from._internal_from_player_id());
  4650. }
  4651. if (from._internal_have_message() != 0)
  4652. {
  4653. _this->_internal_set_have_message(from._internal_have_message());
  4654. }
  4655. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4656. }
  4657. void MsgRes::CopyFrom(const MsgRes& from)
  4658. {
  4659. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MsgRes)
  4660. if (&from == this)
  4661. return;
  4662. Clear();
  4663. MergeFrom(from);
  4664. }
  4665. bool MsgRes::IsInitialized() const
  4666. {
  4667. return true;
  4668. }
  4669. void MsgRes::InternalSwap(MsgRes* other)
  4670. {
  4671. using std::swap;
  4672. auto* lhs_arena = GetArenaForAllocation();
  4673. auto* rhs_arena = other->GetArenaForAllocation();
  4674. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4675. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4676. &_impl_.message_received_, lhs_arena, &other->_impl_.message_received_, rhs_arena
  4677. );
  4678. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4679. PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.have_message_) + sizeof(MsgRes::_impl_.have_message_) - PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.from_player_id_)>(
  4680. reinterpret_cast<char*>(&_impl_.from_player_id_),
  4681. reinterpret_cast<char*>(&other->_impl_.from_player_id_)
  4682. );
  4683. }
  4684. ::PROTOBUF_NAMESPACE_ID::Metadata MsgRes::GetMetadata() const
  4685. {
  4686. return ::_pbi::AssignDescriptors(
  4687. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11]
  4688. );
  4689. }
  4690. // @@protoc_insertion_point(namespace_scope)
  4691. } // namespace protobuf
  4692. PROTOBUF_NAMESPACE_OPEN
  4693. template<>
  4694. PROTOBUF_NOINLINE ::protobuf::MessageOfStudent*
  4695. Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena)
  4696. {
  4697. return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena);
  4698. }
  4699. template<>
  4700. PROTOBUF_NOINLINE ::protobuf::MessageOfTricker*
  4701. Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena)
  4702. {
  4703. return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena);
  4704. }
  4705. template<>
  4706. PROTOBUF_NOINLINE ::protobuf::MessageOfBullet*
  4707. Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena)
  4708. {
  4709. return Arena::CreateMessageInternal<::protobuf::MessageOfBullet>(arena);
  4710. }
  4711. template<>
  4712. PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet*
  4713. Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena)
  4714. {
  4715. return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena);
  4716. }
  4717. template<>
  4718. PROTOBUF_NOINLINE ::protobuf::MessageOfProp*
  4719. Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
  4720. {
  4721. return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
  4722. }
  4723. template<>
  4724. PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp*
  4725. Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
  4726. {
  4727. return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
  4728. }
  4729. template<>
  4730. PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row*
  4731. Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
  4732. {
  4733. return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
  4734. }
  4735. template<>
  4736. PROTOBUF_NOINLINE ::protobuf::MessageOfMap*
  4737. Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
  4738. {
  4739. return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
  4740. }
  4741. template<>
  4742. PROTOBUF_NOINLINE ::protobuf::MessageToClient*
  4743. Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
  4744. {
  4745. return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
  4746. }
  4747. template<>
  4748. PROTOBUF_NOINLINE ::protobuf::MoveRes*
  4749. Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
  4750. {
  4751. return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
  4752. }
  4753. template<>
  4754. PROTOBUF_NOINLINE ::protobuf::BoolRes*
  4755. Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
  4756. {
  4757. return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
  4758. }
  4759. template<>
  4760. PROTOBUF_NOINLINE ::protobuf::MsgRes*
  4761. Arena::CreateMaybeMessage<::protobuf::MsgRes>(Arena* arena)
  4762. {
  4763. return Arena::CreateMessageInternal<::protobuf::MsgRes>(arena);
  4764. }
  4765. PROTOBUF_NAMESPACE_CLOSE
  4766. // @@protoc_insertion_point(global_scope)
  4767. #include <google/protobuf/port_undef.inc>