|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: Message2Clients.proto
-
- #include "Message2Clients.pb.h"
-
- #include <algorithm>
-
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
-
- PROTOBUF_PRAGMA_INIT_SEG
- namespace protobuf
- {
- constexpr MessageOfHuman::MessageOfHuman(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- buff_(),
- _buff_cached_byte_size_(0),
- x_(0),
- y_(0),
- speed_(0),
- life_(0),
- time_until_skill_available_(0),
- hanged_time_(0),
- place_(0)
-
- ,
- prop_(0)
-
- ,
- human_type_(0)
-
- ,
- guid_(int64_t{0}),
- chair_time_(0),
- on_chair_(false),
- on_ground_(false),
- view_range_(0),
- ground_time_(0),
- player_id_(int64_t{0})
- {
- }
- struct MessageOfHumanDefaultTypeInternal
- {
- constexpr MessageOfHumanDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageOfHumanDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfHuman _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfHumanDefaultTypeInternal _MessageOfHuman_default_instance_;
- constexpr MessageOfButcher::MessageOfButcher(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- buff_(),
- _buff_cached_byte_size_(0),
- x_(0),
- y_(0),
- speed_(0),
- damage_(0),
- time_until_skill_available_(0),
- place_(0)
-
- ,
- prop_(0)
-
- ,
- guid_(int64_t{0}),
- butcher_type_(0)
-
- ,
- movable_(false),
- playerid_(int64_t{0}),
- view_range_(0)
- {
- }
- struct MessageOfButcherDefaultTypeInternal
- {
- constexpr MessageOfButcherDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageOfButcherDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfButcher _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfButcherDefaultTypeInternal _MessageOfButcher_default_instance_;
- constexpr MessageOfProp::MessageOfProp(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- type_(0)
-
- ,
- x_(0),
- facing_direction_(0),
- y_(0),
- place_(0)
-
- ,
- guid_(int64_t{0}),
- size_(0),
- is_moving_(false)
- {
- }
- struct MessageOfPropDefaultTypeInternal
- {
- constexpr MessageOfPropDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageOfPropDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfProp _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
- constexpr MessageOfPickedProp::MessageOfPickedProp(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- type_(0)
-
- ,
- x_(0),
- facing_direction_(0),
- mapping_id_(int64_t{0}),
- y_(0)
- {
- }
- struct MessageOfPickedPropDefaultTypeInternal
- {
- constexpr MessageOfPickedPropDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageOfPickedPropDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfPickedProp _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
- constexpr MessageOfMap_Row::MessageOfMap_Row(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- col_(),
- _col_cached_byte_size_(0)
- {
- }
- struct MessageOfMap_RowDefaultTypeInternal
- {
- constexpr MessageOfMap_RowDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageOfMap_RowDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfMap_Row _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
- constexpr MessageOfMap::MessageOfMap(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- row_()
- {
- }
- struct MessageOfMapDefaultTypeInternal
- {
- constexpr MessageOfMapDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageOfMapDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfMap _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
- constexpr MessageToClient::MessageToClient(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- human_message_(),
- butcher_message_(),
- prop_message_(),
- map_massage_(nullptr)
- {
- }
- struct MessageToClientDefaultTypeInternal
- {
- constexpr MessageToClientDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MessageToClientDefaultTypeInternal()
- {
- }
- union
- {
- MessageToClient _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
- constexpr MoveRes::MoveRes(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- actual_speed_(int64_t{0}),
- actual_angle_(0)
- {
- }
- struct MoveResDefaultTypeInternal
- {
- constexpr MoveResDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MoveResDefaultTypeInternal()
- {
- }
- union
- {
- MoveRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveResDefaultTypeInternal _MoveRes_default_instance_;
- constexpr BoolRes::BoolRes(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- act_success_(false)
- {
- }
- struct BoolResDefaultTypeInternal
- {
- constexpr BoolResDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~BoolResDefaultTypeInternal()
- {
- }
- union
- {
- BoolRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BoolResDefaultTypeInternal _BoolRes_default_instance_;
- constexpr MsgRes::MsgRes(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- ) :
- message_received_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string),
- from_player_id_(int64_t{0}),
- have_message_(false)
- {
- }
- struct MsgResDefaultTypeInternal
- {
- constexpr MsgResDefaultTypeInternal() :
- _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
- {
- }
- ~MsgResDefaultTypeInternal()
- {
- }
- union
- {
- MsgRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MsgResDefaultTypeInternal _MsgRes_default_instance_;
- } // namespace protobuf
- static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Message2Clients_2eproto[10];
- static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
- static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
-
- const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, life_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, hanged_time_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, time_until_skill_available_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, prop_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, human_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, on_chair_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, chair_time_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, on_ground_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, ground_time_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, view_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, buff_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, damage_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, time_until_skill_available_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, prop_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, butcher_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, movable_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, playerid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, view_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, buff_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, size_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, is_moving_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, mapping_id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, col_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, row_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, human_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, butcher_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, prop_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, map_massage_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_angle_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, act_success_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, have_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, from_player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, message_received_),
- };
- static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::protobuf::MessageOfHuman)},
- {23, -1, -1, sizeof(::protobuf::MessageOfButcher)},
- {42, -1, -1, sizeof(::protobuf::MessageOfProp)},
- {56, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
- {67, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
- {74, -1, -1, sizeof(::protobuf::MessageOfMap)},
- {81, -1, -1, sizeof(::protobuf::MessageToClient)},
- {91, -1, -1, sizeof(::protobuf::MoveRes)},
- {99, -1, -1, sizeof(::protobuf::BoolRes)},
- {106, -1, -1, sizeof(::protobuf::MsgRes)},
- };
-
- static ::PROTOBUF_NAMESPACE_ID::Message const* const file_default_instances[] = {
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageOfHuman_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageOfButcher_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageOfProp_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageOfPickedProp_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageOfMap_Row_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageOfMap_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MessageToClient_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MoveRes_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_BoolRes_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MsgRes_default_instance_),
- };
-
- const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
- "geType.proto\032\024Message2Server.proto\"\225\003\n\016M"
- "essageOfHuman\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005s"
- "peed\030\003 \001(\005\022\014\n\004life\030\004 \001(\005\022\023\n\013hanged_time\030"
- "\005 \001(\005\022\"\n\032time_until_skill_available\030\006 \001("
- "\001\022\"\n\005place\030\007 \001(\0162\023.protobuf.PlaceType\022 \n"
- "\004prop\030\010 \001(\0162\022.protobuf.PropType\022\'\n\nhuman"
- "_type\030\t \001(\0162\023.protobuf.HumanType\022\014\n\004guid"
- "\030\n \001(\003\022\020\n\010on_chair\030\013 \001(\010\022\022\n\nchair_time\030\014"
- " \001(\001\022\021\n\ton_ground\030\r \001(\010\022\023\n\013ground_time\030\016"
- " \001(\001\022\021\n\tplayer_id\030\017 \001(\003\022\022\n\nview_range\030\020 "
- "\001(\005\022%\n\004buff\030\021 \003(\0162\027.protobuf.HumanBuffTy"
- "pe\"\314\002\n\020MessageOfButcher\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030"
- "\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\016\n\006damage\030\004 \001(\005\022\"\n\032"
- "time_until_skill_available\030\005 \001(\001\022\"\n\005plac"
- "e\030\006 \001(\0162\023.protobuf.PlaceType\022 \n\004prop\030\007 \001"
- "(\0162\022.protobuf.PropType\022+\n\014butcher_type\030\010"
- " \001(\0162\025.protobuf.ButcherType\022\014\n\004guid\030\t \001("
- "\003\022\017\n\007movable\030\n \001(\010\022\020\n\010playerID\030\013 \001(\003\022\022\n\n"
- "view_range\030\014 \001(\005\022\'\n\004buff\030\r \003(\0162\031.protobu"
- "f.ButcherBuffType\"\264\001\n\rMessageOfProp\022 \n\004t"
- "ype\030\001 \001(\0162\022.protobuf.PropType\022\t\n\001x\030\002 \001(\005"
- "\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001\022\014\n"
- "\004guid\030\005 \001(\003\022\"\n\005place\030\006 \001(\0162\023.protobuf.Pl"
- "aceType\022\014\n\004size\030\007 \001(\005\022\021\n\tis_moving\030\010 \001(\010"
- "\"{\n\023MessageOfPickedProp\022 \n\004type\030\001 \001(\0162\022."
- "protobuf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022"
- "\030\n\020facing_direction\030\004 \001(\001\022\022\n\nmapping_id\030"
- "\005 \001(\003\"`\n\014MessageOfMap\022\'\n\003row\030\002 \003(\0132\032.pro"
- "tobuf.MessageOfMap.Row\032\'\n\003Row\022 \n\003col\030\001 \003"
- "(\0162\023.protobuf.PlaceType\"\323\001\n\017MessageToCli"
- "ent\022/\n\rhuman_message\030\001 \003(\0132\030.protobuf.Me"
- "ssageOfHuman\0223\n\017butcher_message\030\002 \003(\0132\032."
- "protobuf.MessageOfButcher\022-\n\014prop_messag"
- "e\030\003 \003(\0132\027.protobuf.MessageOfProp\022+\n\013map_"
- "massage\030\004 \001(\0132\026.protobuf.MessageOfMap\"5\n"
- "\007MoveRes\022\024\n\014actual_speed\030\001 \001(\003\022\024\n\014actual"
- "_angle\030\002 \001(\001\"\036\n\007BoolRes\022\023\n\013act_success\030\001"
- " \001(\010\"P\n\006MsgRes\022\024\n\014have_message\030\001 \001(\010\022\026\n\016"
- "from_player_id\030\002 \001(\003\022\030\n\020message_received"
- "\030\003 \001(\t2\300\006\n\020AvailableService\0223\n\rTryConnec"
- "tion\022\017.protobuf.IDMsg\032\021.protobuf.BoolRes"
- "\022=\n\tAddPlayer\022\023.protobuf.PlayerMsg\032\031.pro"
- "tobuf.MessageToClient0\001\022,\n\004Move\022\021.protob"
- "uf.MoveMsg\032\021.protobuf.MoveRes\0220\n\010PickPro"
- "p\022\021.protobuf.PickMsg\032\021.protobuf.BoolRes\022"
- "-\n\007UseProp\022\017.protobuf.IDMsg\032\021.protobuf.B"
- "oolRes\022.\n\010UseSkill\022\017.protobuf.IDMsg\032\021.pr"
- "otobuf.BoolRes\0223\n\013SendMessage\022\021.protobuf"
- ".SendMsg\032\021.protobuf.BoolRes\0221\n\013HaveMessa"
- "ge\022\017.protobuf.IDMsg\032\021.protobuf.BoolRes\022/"
- "\n\nGetMessage\022\017.protobuf.IDMsg\032\020.protobuf"
- ".MsgRes\0224\n\nFixMachine\022\017.protobuf.IDMsg\032\021"
- ".protobuf.BoolRes(\0010\001\0223\n\tSaveHuman\022\017.pro"
- "tobuf.IDMsg\032\021.protobuf.BoolRes(\0010\001\0220\n\006At"
- "tack\022\023.protobuf.AttackMsg\032\021.protobuf.Boo"
- "lRes\0220\n\nCarryHuman\022\017.protobuf.IDMsg\032\021.pr"
- "otobuf.BoolRes\0222\n\014ReleaseHuman\022\017.protobu"
- "f.IDMsg\032\021.protobuf.BoolRes\022/\n\tHangHuman\022"
- "\017.protobuf.IDMsg\032\021.protobuf.BoolRes\022,\n\006E"
- "scape\022\017.protobuf.IDMsg\032\021.protobuf.BoolRe"
- "sb\006proto3";
- static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[2] = {
- &::descriptor_table_Message2Server_2eproto,
- &::descriptor_table_MessageType_2eproto,
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Clients_2eproto_once;
- const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto = {
- false,
- false,
- 2449,
- descriptor_table_protodef_Message2Clients_2eproto,
- "Message2Clients.proto",
- &descriptor_table_Message2Clients_2eproto_once,
- descriptor_table_Message2Clients_2eproto_deps,
- 2,
- 10,
- schemas,
- file_default_instances,
- TableStruct_Message2Clients_2eproto::offsets,
- file_level_metadata_Message2Clients_2eproto,
- file_level_enum_descriptors_Message2Clients_2eproto,
- file_level_service_descriptors_Message2Clients_2eproto,
- };
- PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
- {
- return &descriptor_table_Message2Clients_2eproto;
- }
-
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
- namespace protobuf
- {
-
- // ===================================================================
-
- class MessageOfHuman::_Internal
- {
- public:
- };
-
- MessageOfHuman::MessageOfHuman(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- buff_(arena)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfHuman)
- }
- MessageOfHuman::MessageOfHuman(const MessageOfHuman& from) :
- ::PROTOBUF_NAMESPACE_ID::Message(),
- buff_(from.buff_)
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&x_, &from.x_, static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(&x_)) + sizeof(player_id_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfHuman)
- }
-
- inline void MessageOfHuman::SharedCtor()
- {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(&x_)) + sizeof(player_id_));
- }
-
- MessageOfHuman::~MessageOfHuman()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfHuman)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageOfHuman::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfHuman::ArenaDtor(void* object)
- {
- MessageOfHuman* _this = reinterpret_cast<MessageOfHuman*>(object);
- (void)_this;
- }
- void MessageOfHuman::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageOfHuman::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageOfHuman::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfHuman)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- buff_.Clear();
- ::memset(&x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(&x_)) + sizeof(player_id_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfHuman::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 life = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- life_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 hanged_time = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- hanged_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double time_until_skill_available = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
- {
- time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PropType prop = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_prop(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.HumanType human_type = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_human_type(static_cast<::protobuf::HumanType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
- {
- guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool on_chair = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
- {
- on_chair_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double chair_time = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 97))
- {
- chair_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // bool on_ground = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
- {
- on_ground_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double ground_time = 14;
- case 14:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113))
- {
- ground_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 player_id = 15;
- case 15:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
- {
- player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 view_range = 16;
- case 16:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
- {
- view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.HumanBuffType buff = 17;
- case 17:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 136)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_buff(static_cast<::protobuf::HumanBuffType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfHuman::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfHuman)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
- }
-
- // int32 life = 4;
- if (this->_internal_life() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_life(), target);
- }
-
- // int32 hanged_time = 5;
- if (this->_internal_hanged_time() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_hanged_time(), target);
- }
-
- // double time_until_skill_available = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target);
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_place(), target
- );
- }
-
- // .protobuf.PropType prop = 8;
- if (this->_internal_prop() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 8, this->_internal_prop(), target
- );
- }
-
- // .protobuf.HumanType human_type = 9;
- if (this->_internal_human_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 9, this->_internal_human_type(), target
- );
- }
-
- // int64 guid = 10;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
- }
-
- // bool on_chair = 11;
- if (this->_internal_on_chair() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_on_chair(), target);
- }
-
- // double chair_time = 12;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_chair_time = this->_internal_chair_time();
- uint64_t raw_chair_time;
- memcpy(&raw_chair_time, &tmp_chair_time, sizeof(tmp_chair_time));
- if (raw_chair_time != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(12, this->_internal_chair_time(), target);
- }
-
- // bool on_ground = 13;
- if (this->_internal_on_ground() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_on_ground(), target);
- }
-
- // double ground_time = 14;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_ground_time = this->_internal_ground_time();
- uint64_t raw_ground_time;
- memcpy(&raw_ground_time, &tmp_ground_time, sizeof(tmp_ground_time));
- if (raw_ground_time != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(14, this->_internal_ground_time(), target);
- }
-
- // int64 player_id = 15;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
- }
-
- // int32 view_range = 16;
- if (this->_internal_view_range() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
- }
-
- // repeated .protobuf.HumanBuffType buff = 17;
- {
- int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 17, buff_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfHuman)
- return target;
- }
-
- size_t MessageOfHuman::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfHuman)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.HumanBuffType buff = 17;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(
- this->_internal_buff(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 2 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- static_cast<int32_t>(data_size)
- );
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
- _buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- // int32 life = 4;
- if (this->_internal_life() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_life());
- }
-
- // double time_until_skill_available = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 hanged_time = 5;
- if (this->_internal_hanged_time() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hanged_time());
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // .protobuf.PropType prop = 8;
- if (this->_internal_prop() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop());
- }
-
- // .protobuf.HumanType human_type = 9;
- if (this->_internal_human_type() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_human_type());
- }
-
- // int64 guid = 10;
- if (this->_internal_guid() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // double chair_time = 12;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_chair_time = this->_internal_chair_time();
- uint64_t raw_chair_time;
- memcpy(&raw_chair_time, &tmp_chair_time, sizeof(tmp_chair_time));
- if (raw_chair_time != 0)
- {
- total_size += 1 + 8;
- }
-
- // bool on_chair = 11;
- if (this->_internal_on_chair() != 0)
- {
- total_size += 1 + 1;
- }
-
- // bool on_ground = 13;
- if (this->_internal_on_ground() != 0)
- {
- total_size += 1 + 1;
- }
-
- // int32 view_range = 16;
- if (this->_internal_view_range() != 0)
- {
- total_size += 2 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_view_range()
- );
- }
-
- // double ground_time = 14;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_ground_time = this->_internal_ground_time();
- uint64_t raw_ground_time;
- memcpy(&raw_ground_time, &tmp_ground_time, sizeof(tmp_ground_time));
- if (raw_ground_time != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 player_id = 15;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfHuman::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageOfHuman::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfHuman::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfHuman::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageOfHuman*>(to)->MergeFrom(
- static_cast<const MessageOfHuman&>(from)
- );
- }
-
- void MessageOfHuman::MergeFrom(const MessageOfHuman& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfHuman)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- buff_.MergeFrom(from.buff_);
- if (from._internal_x() != 0)
- {
- _internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _internal_set_y(from._internal_y());
- }
- if (from._internal_speed() != 0)
- {
- _internal_set_speed(from._internal_speed());
- }
- if (from._internal_life() != 0)
- {
- _internal_set_life(from._internal_life());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = from._internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- _internal_set_time_until_skill_available(from._internal_time_until_skill_available());
- }
- if (from._internal_hanged_time() != 0)
- {
- _internal_set_hanged_time(from._internal_hanged_time());
- }
- if (from._internal_place() != 0)
- {
- _internal_set_place(from._internal_place());
- }
- if (from._internal_prop() != 0)
- {
- _internal_set_prop(from._internal_prop());
- }
- if (from._internal_human_type() != 0)
- {
- _internal_set_human_type(from._internal_human_type());
- }
- if (from._internal_guid() != 0)
- {
- _internal_set_guid(from._internal_guid());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_chair_time = from._internal_chair_time();
- uint64_t raw_chair_time;
- memcpy(&raw_chair_time, &tmp_chair_time, sizeof(tmp_chair_time));
- if (raw_chair_time != 0)
- {
- _internal_set_chair_time(from._internal_chair_time());
- }
- if (from._internal_on_chair() != 0)
- {
- _internal_set_on_chair(from._internal_on_chair());
- }
- if (from._internal_on_ground() != 0)
- {
- _internal_set_on_ground(from._internal_on_ground());
- }
- if (from._internal_view_range() != 0)
- {
- _internal_set_view_range(from._internal_view_range());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_ground_time = from._internal_ground_time();
- uint64_t raw_ground_time;
- memcpy(&raw_ground_time, &tmp_ground_time, sizeof(tmp_ground_time));
- if (raw_ground_time != 0)
- {
- _internal_set_ground_time(from._internal_ground_time());
- }
- if (from._internal_player_id() != 0)
- {
- _internal_set_player_id(from._internal_player_id());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfHuman::CopyFrom(const MessageOfHuman& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfHuman)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfHuman::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfHuman::InternalSwap(MessageOfHuman* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- buff_.InternalSwap(&other->buff_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfHuman, player_id_) + sizeof(MessageOfHuman::player_id_) - PROTOBUF_FIELD_OFFSET(MessageOfHuman, x_)>(
- reinterpret_cast<char*>(&x_),
- reinterpret_cast<char*>(&other->x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfHuman::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
- );
- }
-
- // ===================================================================
-
- class MessageOfButcher::_Internal
- {
- public:
- };
-
- MessageOfButcher::MessageOfButcher(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- buff_(arena)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfButcher)
- }
- MessageOfButcher::MessageOfButcher(const MessageOfButcher& from) :
- ::PROTOBUF_NAMESPACE_ID::Message(),
- buff_(from.buff_)
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&x_, &from.x_, static_cast<size_t>(reinterpret_cast<char*>(&view_range_) - reinterpret_cast<char*>(&x_)) + sizeof(view_range_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfButcher)
- }
-
- inline void MessageOfButcher::SharedCtor()
- {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&view_range_) - reinterpret_cast<char*>(&x_)) + sizeof(view_range_));
- }
-
- MessageOfButcher::~MessageOfButcher()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfButcher)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageOfButcher::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfButcher::ArenaDtor(void* object)
- {
- MessageOfButcher* _this = reinterpret_cast<MessageOfButcher*>(object);
- (void)_this;
- }
- void MessageOfButcher::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageOfButcher::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageOfButcher::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfButcher)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- buff_.Clear();
- ::memset(&x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&view_range_) - reinterpret_cast<char*>(&x_)) + sizeof(view_range_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfButcher::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 damage = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double time_until_skill_available = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41))
- {
- time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PropType prop = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_prop(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.ButcherType butcher_type = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_butcher_type(static_cast<::protobuf::ButcherType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool movable = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
- {
- movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 playerID = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
- {
- playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 view_range = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
- {
- view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.ButcherBuffType buff = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 104)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_buff(static_cast<::protobuf::ButcherBuffType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfButcher::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfButcher)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
- }
-
- // int32 damage = 4;
- if (this->_internal_damage() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target);
- }
-
- // double time_until_skill_available = 5;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target);
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_place(), target
- );
- }
-
- // .protobuf.PropType prop = 7;
- if (this->_internal_prop() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_prop(), target
- );
- }
-
- // .protobuf.ButcherType butcher_type = 8;
- if (this->_internal_butcher_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 8, this->_internal_butcher_type(), target
- );
- }
-
- // int64 guid = 9;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
- }
-
- // bool movable = 10;
- if (this->_internal_movable() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target);
- }
-
- // int64 playerID = 11;
- if (this->_internal_playerid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_playerid(), target);
- }
-
- // int32 view_range = 12;
- if (this->_internal_view_range() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
- }
-
- // repeated .protobuf.ButcherBuffType buff = 13;
- {
- int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 13, buff_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfButcher)
- return target;
- }
-
- size_t MessageOfButcher::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfButcher)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.ButcherBuffType buff = 13;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(
- this->_internal_buff(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- static_cast<int32_t>(data_size)
- );
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
- _buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- // int32 damage = 4;
- if (this->_internal_damage() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_damage());
- }
-
- // double time_until_skill_available = 5;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- total_size += 1 + 8;
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // .protobuf.PropType prop = 7;
- if (this->_internal_prop() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop());
- }
-
- // int64 guid = 9;
- if (this->_internal_guid() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // .protobuf.ButcherType butcher_type = 8;
- if (this->_internal_butcher_type() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_butcher_type());
- }
-
- // bool movable = 10;
- if (this->_internal_movable() != 0)
- {
- total_size += 1 + 1;
- }
-
- // int64 playerID = 11;
- if (this->_internal_playerid() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_playerid());
- }
-
- // int32 view_range = 12;
- if (this->_internal_view_range() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfButcher::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageOfButcher::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfButcher::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfButcher::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageOfButcher*>(to)->MergeFrom(
- static_cast<const MessageOfButcher&>(from)
- );
- }
-
- void MessageOfButcher::MergeFrom(const MessageOfButcher& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfButcher)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- buff_.MergeFrom(from.buff_);
- if (from._internal_x() != 0)
- {
- _internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _internal_set_y(from._internal_y());
- }
- if (from._internal_speed() != 0)
- {
- _internal_set_speed(from._internal_speed());
- }
- if (from._internal_damage() != 0)
- {
- _internal_set_damage(from._internal_damage());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = from._internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- _internal_set_time_until_skill_available(from._internal_time_until_skill_available());
- }
- if (from._internal_place() != 0)
- {
- _internal_set_place(from._internal_place());
- }
- if (from._internal_prop() != 0)
- {
- _internal_set_prop(from._internal_prop());
- }
- if (from._internal_guid() != 0)
- {
- _internal_set_guid(from._internal_guid());
- }
- if (from._internal_butcher_type() != 0)
- {
- _internal_set_butcher_type(from._internal_butcher_type());
- }
- if (from._internal_movable() != 0)
- {
- _internal_set_movable(from._internal_movable());
- }
- if (from._internal_playerid() != 0)
- {
- _internal_set_playerid(from._internal_playerid());
- }
- if (from._internal_view_range() != 0)
- {
- _internal_set_view_range(from._internal_view_range());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfButcher::CopyFrom(const MessageOfButcher& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfButcher)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfButcher::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfButcher::InternalSwap(MessageOfButcher* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- buff_.InternalSwap(&other->buff_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfButcher, view_range_) + sizeof(MessageOfButcher::view_range_) - PROTOBUF_FIELD_OFFSET(MessageOfButcher, x_)>(
- reinterpret_cast<char*>(&x_),
- reinterpret_cast<char*>(&other->x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfButcher::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
- );
- }
-
- // ===================================================================
-
- class MessageOfProp::_Internal
- {
- public:
- };
-
- MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
- }
- MessageOfProp::MessageOfProp(const MessageOfProp& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&type_, &from.type_, static_cast<size_t>(reinterpret_cast<char*>(&is_moving_) - reinterpret_cast<char*>(&type_)) + sizeof(is_moving_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
- }
-
- inline void MessageOfProp::SharedCtor()
- {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&is_moving_) - reinterpret_cast<char*>(&type_)) + sizeof(is_moving_));
- }
-
- MessageOfProp::~MessageOfProp()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageOfProp::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfProp::ArenaDtor(void* object)
- {
- MessageOfProp* _this = reinterpret_cast<MessageOfProp*>(object);
- (void)_this;
- }
- void MessageOfProp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageOfProp::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageOfProp::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&is_moving_) - reinterpret_cast<char*>(&type_)) + sizeof(is_moving_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.PropType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 size = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool is_moving = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfProp::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_place(), target
- );
- }
-
- // int32 size = 7;
- if (this->_internal_size() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_size(), target);
- }
-
- // bool is_moving = 8;
- if (this->_internal_is_moving() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_is_moving(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
- return target;
- }
-
- size_t MessageOfProp::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // int32 size = 7;
- if (this->_internal_size() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_size());
- }
-
- // bool is_moving = 8;
- if (this->_internal_is_moving() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageOfProp::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageOfProp*>(to)->MergeFrom(
- static_cast<const MessageOfProp&>(from)
- );
- }
-
- void MessageOfProp::MergeFrom(const MessageOfProp& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_y() != 0)
- {
- _internal_set_y(from._internal_y());
- }
- if (from._internal_place() != 0)
- {
- _internal_set_place(from._internal_place());
- }
- if (from._internal_guid() != 0)
- {
- _internal_set_guid(from._internal_guid());
- }
- if (from._internal_size() != 0)
- {
- _internal_set_size(from._internal_size());
- }
- if (from._internal_is_moving() != 0)
- {
- _internal_set_is_moving(from._internal_is_moving());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfProp::CopyFrom(const MessageOfProp& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfProp::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfProp::InternalSwap(MessageOfProp* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfProp, is_moving_) + sizeof(MessageOfProp::is_moving_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, type_)>(
- reinterpret_cast<char*>(&type_),
- reinterpret_cast<char*>(&other->type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
- );
- }
-
- // ===================================================================
-
- class MessageOfPickedProp::_Internal
- {
- public:
- };
-
- MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
- }
- MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&type_, &from.type_, static_cast<size_t>(reinterpret_cast<char*>(&y_) - reinterpret_cast<char*>(&type_)) + sizeof(y_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
- }
-
- inline void MessageOfPickedProp::SharedCtor()
- {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) - reinterpret_cast<char*>(&type_)) + sizeof(y_));
- }
-
- MessageOfPickedProp::~MessageOfPickedProp()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageOfPickedProp::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfPickedProp::ArenaDtor(void* object)
- {
- MessageOfPickedProp* _this = reinterpret_cast<MessageOfPickedProp*>(object);
- (void)_this;
- }
- void MessageOfPickedProp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageOfPickedProp::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageOfPickedProp::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) - reinterpret_cast<char*>(&type_)) + sizeof(y_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.PropType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 mapping_id = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfPickedProp::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
- return target;
- }
-
- size_t MessageOfPickedProp::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageOfPickedProp::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageOfPickedProp*>(to)->MergeFrom(
- static_cast<const MessageOfPickedProp&>(from)
- );
- }
-
- void MessageOfPickedProp::MergeFrom(const MessageOfPickedProp& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_mapping_id() != 0)
- {
- _internal_set_mapping_id(from._internal_mapping_id());
- }
- if (from._internal_y() != 0)
- {
- _internal_set_y(from._internal_y());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfPickedProp::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, y_) + sizeof(MessageOfPickedProp::y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, type_)>(
- reinterpret_cast<char*>(&type_),
- reinterpret_cast<char*>(&other->type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
- );
- }
-
- // ===================================================================
-
- class MessageOfMap_Row::_Internal
- {
- public:
- };
-
- MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- col_(arena)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
- }
- MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
- ::PROTOBUF_NAMESPACE_ID::Message(),
- col_(from.col_)
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
- }
-
- inline void MessageOfMap_Row::SharedCtor()
- {
- }
-
- MessageOfMap_Row::~MessageOfMap_Row()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageOfMap_Row::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfMap_Row::ArenaDtor(void* object)
- {
- MessageOfMap_Row* _this = reinterpret_cast<MessageOfMap_Row*>(object);
- (void)_this;
- }
- void MessageOfMap_Row::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageOfMap_Row::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageOfMap_Row::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- col_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.PlaceType col = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 8)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_col(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfMap_Row::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.PlaceType col = 1;
- {
- int byte_size = _col_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 1, col_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
- return target;
- }
-
- size_t MessageOfMap_Row::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.PlaceType col = 1;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(
- this->_internal_col(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- static_cast<int32_t>(data_size)
- );
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
- _col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageOfMap_Row::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageOfMap_Row*>(to)->MergeFrom(
- static_cast<const MessageOfMap_Row&>(from)
- );
- }
-
- void MessageOfMap_Row::MergeFrom(const MessageOfMap_Row& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- col_.MergeFrom(from.col_);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfMap_Row::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- col_.InternalSwap(&other->col_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
- );
- }
-
- // ===================================================================
-
- class MessageOfMap::_Internal
- {
- public:
- };
-
- MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- row_(arena)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
- }
- MessageOfMap::MessageOfMap(const MessageOfMap& from) :
- ::PROTOBUF_NAMESPACE_ID::Message(),
- row_(from.row_)
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
- }
-
- inline void MessageOfMap::SharedCtor()
- {
- }
-
- MessageOfMap::~MessageOfMap()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageOfMap::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfMap::ArenaDtor(void* object)
- {
- MessageOfMap* _this = reinterpret_cast<MessageOfMap*>(object);
- (void)_this;
- }
- void MessageOfMap::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageOfMap::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageOfMap::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- row_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfMap::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.MessageOfMap.Row row = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_row(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfMap::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfMap.Row row = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_row_size());
- i < n;
- i++)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, this->_internal_row(i), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
- return target;
- }
-
- size_t MessageOfMap::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfMap.Row row = 2;
- total_size += 1UL * this->_internal_row_size();
- for (const auto& msg : this->row_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageOfMap::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageOfMap*>(to)->MergeFrom(
- static_cast<const MessageOfMap&>(from)
- );
- }
-
- void MessageOfMap::MergeFrom(const MessageOfMap& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- row_.MergeFrom(from.row_);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfMap::CopyFrom(const MessageOfMap& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfMap::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfMap::InternalSwap(MessageOfMap* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- row_.InternalSwap(&other->row_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
- );
- }
-
- // ===================================================================
-
- class MessageToClient::_Internal
- {
- public:
- static const ::protobuf::MessageOfMap& map_massage(const MessageToClient* msg);
- };
-
- const ::protobuf::MessageOfMap&
- MessageToClient::_Internal::map_massage(const MessageToClient* msg)
- {
- return *msg->map_massage_;
- }
- MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- human_message_(arena),
- butcher_message_(arena),
- prop_message_(arena)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
- }
- MessageToClient::MessageToClient(const MessageToClient& from) :
- ::PROTOBUF_NAMESPACE_ID::Message(),
- human_message_(from.human_message_),
- butcher_message_(from.butcher_message_),
- prop_message_(from.prop_message_)
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_map_massage())
- {
- map_massage_ = new ::protobuf::MessageOfMap(*from.map_massage_);
- }
- else
- {
- map_massage_ = nullptr;
- }
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
- }
-
- inline void MessageToClient::SharedCtor()
- {
- map_massage_ = nullptr;
- }
-
- MessageToClient::~MessageToClient()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MessageToClient::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance())
- delete map_massage_;
- }
-
- void MessageToClient::ArenaDtor(void* object)
- {
- MessageToClient* _this = reinterpret_cast<MessageToClient*>(object);
- (void)_this;
- }
- void MessageToClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MessageToClient::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MessageToClient::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- human_message_.Clear();
- butcher_message_.Clear();
- prop_message_.Clear();
- if (GetArenaForAllocation() == nullptr && map_massage_ != nullptr)
- {
- delete map_massage_;
- }
- map_massage_ = nullptr;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.MessageOfHuman human_message = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_human_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.MessageOfButcher butcher_message = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_butcher_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.MessageOfProp prop_message = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_prop_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfMap map_massage = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
- {
- ptr = ctx->ParseMessage(_internal_mutable_map_massage(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageToClient::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfHuman human_message = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_human_message_size());
- i < n;
- i++)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_human_message(i), target, stream);
- }
-
- // repeated .protobuf.MessageOfButcher butcher_message = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_butcher_message_size());
- i < n;
- i++)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, this->_internal_butcher_message(i), target, stream);
- }
-
- // repeated .protobuf.MessageOfProp prop_message = 3;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_prop_message_size());
- i < n;
- i++)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, this->_internal_prop_message(i), target, stream);
- }
-
- // .protobuf.MessageOfMap map_massage = 4;
- if (this->_internal_has_map_massage())
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 4, _Internal::map_massage(this), target, stream
- );
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
- return target;
- }
-
- size_t MessageToClient::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfHuman human_message = 1;
- total_size += 1UL * this->_internal_human_message_size();
- for (const auto& msg : this->human_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // repeated .protobuf.MessageOfButcher butcher_message = 2;
- total_size += 1UL * this->_internal_butcher_message_size();
- for (const auto& msg : this->butcher_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // repeated .protobuf.MessageOfProp prop_message = 3;
- total_size += 1UL * this->_internal_prop_message_size();
- for (const auto& msg : this->prop_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // .protobuf.MessageOfMap map_massage = 4;
- if (this->_internal_has_map_massage())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *map_massage_
- );
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MessageToClient::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MessageToClient*>(to)->MergeFrom(
- static_cast<const MessageToClient&>(from)
- );
- }
-
- void MessageToClient::MergeFrom(const MessageToClient& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- human_message_.MergeFrom(from.human_message_);
- butcher_message_.MergeFrom(from.butcher_message_);
- prop_message_.MergeFrom(from.prop_message_);
- if (from._internal_has_map_massage())
- {
- _internal_mutable_map_massage()->::protobuf::MessageOfMap::MergeFrom(from._internal_map_massage());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageToClient::CopyFrom(const MessageToClient& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageToClient::IsInitialized() const
- {
- return true;
- }
-
- void MessageToClient::InternalSwap(MessageToClient* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- human_message_.InternalSwap(&other->human_message_);
- butcher_message_.InternalSwap(&other->butcher_message_);
- prop_message_.InternalSwap(&other->prop_message_);
- swap(map_massage_, other->map_massage_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
- );
- }
-
- // ===================================================================
-
- class MoveRes::_Internal
- {
- public:
- };
-
- MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
- }
- MoveRes::MoveRes(const MoveRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&actual_speed_, &from.actual_speed_, static_cast<size_t>(reinterpret_cast<char*>(&actual_angle_) - reinterpret_cast<char*>(&actual_speed_)) + sizeof(actual_angle_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
- }
-
- inline void MoveRes::SharedCtor()
- {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&actual_speed_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&actual_angle_) - reinterpret_cast<char*>(&actual_speed_)) + sizeof(actual_angle_));
- }
-
- MoveRes::~MoveRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.MoveRes)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MoveRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MoveRes::ArenaDtor(void* object)
- {
- MoveRes* _this = reinterpret_cast<MoveRes*>(object);
- (void)_this;
- }
- void MoveRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MoveRes::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MoveRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&actual_speed_, 0, static_cast<size_t>(reinterpret_cast<char*>(&actual_angle_) - reinterpret_cast<char*>(&actual_speed_)) + sizeof(actual_angle_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MoveRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int64 actual_speed = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double actual_angle = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
- {
- actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MoveRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 actual_speed = 1;
- if (this->_internal_actual_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
- }
-
- // double actual_angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = this->_internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
- return target;
- }
-
- size_t MoveRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int64 actual_speed = 1;
- if (this->_internal_actual_speed() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
- }
-
- // double actual_angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = this->_internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- total_size += 1 + 8;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MoveRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MoveRes*>(to)->MergeFrom(
- static_cast<const MoveRes&>(from)
- );
- }
-
- void MoveRes::MergeFrom(const MoveRes& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_actual_speed() != 0)
- {
- _internal_set_actual_speed(from._internal_actual_speed());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = from._internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- _internal_set_actual_angle(from._internal_actual_angle());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MoveRes::CopyFrom(const MoveRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MoveRes::IsInitialized() const
- {
- return true;
- }
-
- void MoveRes::InternalSwap(MoveRes* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MoveRes, actual_angle_) + sizeof(MoveRes::actual_angle_) - PROTOBUF_FIELD_OFFSET(MoveRes, actual_speed_)>(
- reinterpret_cast<char*>(&actual_speed_),
- reinterpret_cast<char*>(&other->actual_speed_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
- );
- }
-
- // ===================================================================
-
- class BoolRes::_Internal
- {
- public:
- };
-
- BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
- }
- BoolRes::BoolRes(const BoolRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- act_success_ = from.act_success_;
- // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
- }
-
- inline void BoolRes::SharedCtor()
- {
- act_success_ = false;
- }
-
- BoolRes::~BoolRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.BoolRes)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void BoolRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void BoolRes::ArenaDtor(void* object)
- {
- BoolRes* _this = reinterpret_cast<BoolRes*>(object);
- (void)_this;
- }
- void BoolRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void BoolRes::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void BoolRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- act_success_ = false;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* BoolRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // bool act_success = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* BoolRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // bool act_success = 1;
- if (this->_internal_act_success() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
- return target;
- }
-
- size_t BoolRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // bool act_success = 1;
- if (this->_internal_act_success() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- BoolRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<BoolRes*>(to)->MergeFrom(
- static_cast<const BoolRes&>(from)
- );
- }
-
- void BoolRes::MergeFrom(const BoolRes& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_act_success() != 0)
- {
- _internal_set_act_success(from._internal_act_success());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void BoolRes::CopyFrom(const BoolRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool BoolRes::IsInitialized() const
- {
- return true;
- }
-
- void BoolRes::InternalSwap(BoolRes* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(act_success_, other->act_success_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
- );
- }
-
- // ===================================================================
-
- class MsgRes::_Internal
- {
- public:
- };
-
- MsgRes::MsgRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor();
- if (!is_message_owned)
- {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:protobuf.MsgRes)
- }
- MsgRes::MsgRes(const MsgRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- message_received_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- message_received_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_message_received().empty())
- {
- message_received_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message_received(), GetArenaForAllocation());
- }
- ::memcpy(&from_player_id_, &from.from_player_id_, static_cast<size_t>(reinterpret_cast<char*>(&have_message_) - reinterpret_cast<char*>(&from_player_id_)) + sizeof(have_message_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MsgRes)
- }
-
- inline void MsgRes::SharedCtor()
- {
- message_received_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- message_received_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&from_player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&have_message_) - reinterpret_cast<char*>(&from_player_id_)) + sizeof(have_message_));
- }
-
- MsgRes::~MsgRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.MsgRes)
- if (GetArenaForAllocation() != nullptr)
- return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- inline void MsgRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- message_received_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
-
- void MsgRes::ArenaDtor(void* object)
- {
- MsgRes* _this = reinterpret_cast<MsgRes*>(object);
- (void)_this;
- }
- void MsgRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
- {
- }
- void MsgRes::SetCachedSize(int size) const
- {
- _cached_size_.Set(size);
- }
-
- void MsgRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MsgRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- message_received_.ClearToEmpty();
- ::memset(&from_player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&have_message_) - reinterpret_cast<char*>(&from_player_id_)) + sizeof(have_message_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MsgRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // bool have_message = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- have_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 from_player_id = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- from_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // string message_received = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- auto str = _internal_mutable_message_received();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.MsgRes.message_received"));
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MsgRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MsgRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // bool have_message = 1;
- if (this->_internal_have_message() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_have_message(), target);
- }
-
- // int64 from_player_id = 2;
- if (this->_internal_from_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_player_id(), target);
- }
-
- // string message_received = 3;
- if (!this->_internal_message_received().empty())
- {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_message_received().data(), static_cast<int>(this->_internal_message_received().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MsgRes.message_received"
- );
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_message_received(), target
- );
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MsgRes)
- return target;
- }
-
- size_t MsgRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MsgRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // string message_received = 3;
- if (!this->_internal_message_received().empty())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_message_received()
- );
- }
-
- // int64 from_player_id = 2;
- if (this->_internal_from_player_id() != 0)
- {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_from_player_id());
- }
-
- // bool have_message = 1;
- if (this->_internal_have_message() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- MsgRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MsgRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MsgRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
- {
- static_cast<MsgRes*>(to)->MergeFrom(
- static_cast<const MsgRes&>(from)
- );
- }
-
- void MsgRes::MergeFrom(const MsgRes& from)
- {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MsgRes)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (!from._internal_message_received().empty())
- {
- _internal_set_message_received(from._internal_message_received());
- }
- if (from._internal_from_player_id() != 0)
- {
- _internal_set_from_player_id(from._internal_from_player_id());
- }
- if (from._internal_have_message() != 0)
- {
- _internal_set_have_message(from._internal_have_message());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MsgRes::CopyFrom(const MsgRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MsgRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MsgRes::IsInitialized() const
- {
- return true;
- }
-
- void MsgRes::InternalSwap(MsgRes* other)
- {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &message_received_,
- lhs_arena,
- &other->message_received_,
- rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MsgRes, have_message_) + sizeof(MsgRes::have_message_) - PROTOBUF_FIELD_OFFSET(MsgRes, from_player_id_)>(
- reinterpret_cast<char*>(&from_player_id_),
- reinterpret_cast<char*>(&other->from_player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MsgRes::GetMetadata() const
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
- );
- }
-
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf
- PROTOBUF_NAMESPACE_OPEN
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfHuman* Arena::CreateMaybeMessage<::protobuf::MessageOfHuman>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfHuman>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfButcher* Arena::CreateMaybeMessage<::protobuf::MessageOfButcher>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfButcher>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfProp* Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp* Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row* Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfMap* Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageToClient* Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MoveRes* Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::BoolRes* Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MsgRes* Arena::CreateMaybeMessage<::protobuf::MsgRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MsgRes>(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
-
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|