dispatch_message.pb.cc 251 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dispatch_message.proto
  3. #include "dispatch_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_dispatch_5fmessage_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Carrier_data;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Catcher_data;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Passageway_data;
  22. } // namespace protobuf_dispatch_5fmessage_2eproto
  23. namespace protobuf_message_5fbase_2eproto {
  24. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
  25. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager;
  26. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct;
  27. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information;
  28. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Parkspace_info;
  29. } // namespace protobuf_message_5fbase_2eproto
  30. namespace message {
  31. class Dispatch_terminal_status_msgDefaultTypeInternal {
  32. public:
  33. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_terminal_status_msg>
  34. _instance;
  35. } _Dispatch_terminal_status_msg_default_instance_;
  36. class Dispatch_request_msgDefaultTypeInternal {
  37. public:
  38. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_request_msg>
  39. _instance;
  40. } _Dispatch_request_msg_default_instance_;
  41. class Dispatch_response_msgDefaultTypeInternal {
  42. public:
  43. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_response_msg>
  44. _instance;
  45. } _Dispatch_response_msg_default_instance_;
  46. class Catcher_dataDefaultTypeInternal {
  47. public:
  48. ::google::protobuf::internal::ExplicitlyConstructed<Catcher_data>
  49. _instance;
  50. } _Catcher_data_default_instance_;
  51. class Carrier_dataDefaultTypeInternal {
  52. public:
  53. ::google::protobuf::internal::ExplicitlyConstructed<Carrier_data>
  54. _instance;
  55. } _Carrier_data_default_instance_;
  56. class Passageway_dataDefaultTypeInternal {
  57. public:
  58. ::google::protobuf::internal::ExplicitlyConstructed<Passageway_data>
  59. _instance;
  60. } _Passageway_data_default_instance_;
  61. class Dispatch_manager_status_msgDefaultTypeInternal {
  62. public:
  63. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_status_msg>
  64. _instance;
  65. } _Dispatch_manager_status_msg_default_instance_;
  66. class Dispatch_manager_data_msgDefaultTypeInternal {
  67. public:
  68. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_data_msg>
  69. _instance;
  70. } _Dispatch_manager_data_msg_default_instance_;
  71. } // namespace message
  72. namespace protobuf_dispatch_5fmessage_2eproto {
  73. static void InitDefaultsDispatch_terminal_status_msg() {
  74. GOOGLE_PROTOBUF_VERIFY_VERSION;
  75. {
  76. void* ptr = &::message::_Dispatch_terminal_status_msg_default_instance_;
  77. new (ptr) ::message::Dispatch_terminal_status_msg();
  78. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  79. }
  80. ::message::Dispatch_terminal_status_msg::InitAsDefaultInstance();
  81. }
  82. ::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_terminal_status_msg =
  83. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_terminal_status_msg}, {
  84. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  85. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,}};
  86. static void InitDefaultsDispatch_request_msg() {
  87. GOOGLE_PROTOBUF_VERIFY_VERSION;
  88. {
  89. void* ptr = &::message::_Dispatch_request_msg_default_instance_;
  90. new (ptr) ::message::Dispatch_request_msg();
  91. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  92. }
  93. ::message::Dispatch_request_msg::InitAsDefaultInstance();
  94. }
  95. ::google::protobuf::internal::SCCInfo<4> scc_info_Dispatch_request_msg =
  96. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsDispatch_request_msg}, {
  97. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  98. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  99. &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base,
  100. &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base,}};
  101. static void InitDefaultsDispatch_response_msg() {
  102. GOOGLE_PROTOBUF_VERIFY_VERSION;
  103. {
  104. void* ptr = &::message::_Dispatch_response_msg_default_instance_;
  105. new (ptr) ::message::Dispatch_response_msg();
  106. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  107. }
  108. ::message::Dispatch_response_msg::InitAsDefaultInstance();
  109. }
  110. ::google::protobuf::internal::SCCInfo<5> scc_info_Dispatch_response_msg =
  111. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsDispatch_response_msg}, {
  112. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  113. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  114. &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base,
  115. &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base,
  116. &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
  117. static void InitDefaultsCatcher_data() {
  118. GOOGLE_PROTOBUF_VERIFY_VERSION;
  119. {
  120. void* ptr = &::message::_Catcher_data_default_instance_;
  121. new (ptr) ::message::Catcher_data();
  122. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  123. }
  124. ::message::Catcher_data::InitAsDefaultInstance();
  125. }
  126. ::google::protobuf::internal::SCCInfo<0> scc_info_Catcher_data =
  127. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCatcher_data}, {}};
  128. static void InitDefaultsCarrier_data() {
  129. GOOGLE_PROTOBUF_VERIFY_VERSION;
  130. {
  131. void* ptr = &::message::_Carrier_data_default_instance_;
  132. new (ptr) ::message::Carrier_data();
  133. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  134. }
  135. ::message::Carrier_data::InitAsDefaultInstance();
  136. }
  137. ::google::protobuf::internal::SCCInfo<0> scc_info_Carrier_data =
  138. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCarrier_data}, {}};
  139. static void InitDefaultsPassageway_data() {
  140. GOOGLE_PROTOBUF_VERIFY_VERSION;
  141. {
  142. void* ptr = &::message::_Passageway_data_default_instance_;
  143. new (ptr) ::message::Passageway_data();
  144. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  145. }
  146. ::message::Passageway_data::InitAsDefaultInstance();
  147. }
  148. ::google::protobuf::internal::SCCInfo<0> scc_info_Passageway_data =
  149. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPassageway_data}, {}};
  150. static void InitDefaultsDispatch_manager_status_msg() {
  151. GOOGLE_PROTOBUF_VERIFY_VERSION;
  152. {
  153. void* ptr = &::message::_Dispatch_manager_status_msg_default_instance_;
  154. new (ptr) ::message::Dispatch_manager_status_msg();
  155. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  156. }
  157. ::message::Dispatch_manager_status_msg::InitAsDefaultInstance();
  158. }
  159. ::google::protobuf::internal::SCCInfo<4> scc_info_Dispatch_manager_status_msg =
  160. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsDispatch_manager_status_msg}, {
  161. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  162. &protobuf_dispatch_5fmessage_2eproto::scc_info_Catcher_data.base,
  163. &protobuf_dispatch_5fmessage_2eproto::scc_info_Carrier_data.base,
  164. &protobuf_dispatch_5fmessage_2eproto::scc_info_Passageway_data.base,}};
  165. static void InitDefaultsDispatch_manager_data_msg() {
  166. GOOGLE_PROTOBUF_VERIFY_VERSION;
  167. {
  168. void* ptr = &::message::_Dispatch_manager_data_msg_default_instance_;
  169. new (ptr) ::message::Dispatch_manager_data_msg();
  170. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  171. }
  172. ::message::Dispatch_manager_data_msg::InitAsDefaultInstance();
  173. }
  174. ::google::protobuf::internal::SCCInfo<0> scc_info_Dispatch_manager_data_msg =
  175. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDispatch_manager_data_msg}, {}};
  176. void InitDefaults() {
  177. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_terminal_status_msg.base);
  178. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_request_msg.base);
  179. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_response_msg.base);
  180. ::google::protobuf::internal::InitSCC(&scc_info_Catcher_data.base);
  181. ::google::protobuf::internal::InitSCC(&scc_info_Carrier_data.base);
  182. ::google::protobuf::internal::InitSCC(&scc_info_Passageway_data.base);
  183. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_manager_status_msg.base);
  184. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_manager_data_msg.base);
  185. }
  186. ::google::protobuf::Metadata file_level_metadata[8];
  187. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[15];
  188. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _has_bits_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _internal_metadata_),
  191. ~0u, // no _extensions_
  192. ~0u, // no _oneof_case_
  193. ~0u, // no _weak_field_map_
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, base_info_),
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, id_struct_),
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_status_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, passageway_direction_),
  198. 0,
  199. 1,
  200. 2,
  201. 3,
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _has_bits_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _internal_metadata_),
  204. ~0u, // no _extensions_
  205. ~0u, // no _oneof_case_
  206. ~0u, // no _weak_field_map_
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, base_info_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_key_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, dispatch_motion_direction_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, id_struct_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, locate_information_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, parkspace_info_ex_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, car_type_),
  214. 1,
  215. 0,
  216. 4,
  217. 2,
  218. 3,
  219. ~0u,
  220. 5,
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _has_bits_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _internal_metadata_),
  223. ~0u, // no _extensions_
  224. ~0u, // no _oneof_case_
  225. ~0u, // no _weak_field_map_
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, base_info_),
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_key_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, dispatch_motion_direction_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, id_struct_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, locate_information_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, parkspace_info_ex_),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, car_type_),
  233. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, error_manager_),
  234. 1,
  235. 0,
  236. 5,
  237. 2,
  238. 3,
  239. ~0u,
  240. 6,
  241. 4,
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, _has_bits_),
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, _internal_metadata_),
  244. ~0u, // no _extensions_
  245. ~0u, // no _oneof_case_
  246. ~0u, // no _weak_field_map_
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, dispatch_device_type_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, dispatch_device_status_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, device_id_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_device_status_),
  251. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_load_status_),
  252. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_coordinates_id_),
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_x_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_y_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_b_),
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_z_),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_d1_),
  258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_d2_),
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion1_),
  260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion2_),
  261. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion3_),
  262. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_clamp_motion4_),
  263. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_error_code_),
  264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_warning_code_),
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Catcher_data, actual_error_description_),
  266. 18,
  267. 3,
  268. 4,
  269. 5,
  270. 6,
  271. 7,
  272. 8,
  273. 9,
  274. 10,
  275. 11,
  276. 12,
  277. 13,
  278. 14,
  279. 15,
  280. 16,
  281. 17,
  282. 0,
  283. 1,
  284. 2,
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, _has_bits_),
  286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, _internal_metadata_),
  287. ~0u, // no _extensions_
  288. ~0u, // no _oneof_case_
  289. ~0u, // no _weak_field_map_
  290. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, dispatch_device_type_),
  291. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, dispatch_device_status_),
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, device_id_),
  293. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_device_status_),
  294. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_load_status_),
  295. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_coordinates_id_),
  296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_x_),
  297. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_y_),
  298. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_z_),
  299. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_y1_),
  300. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_y2_),
  301. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_clamp_motion1_),
  302. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_clamp_motion2_),
  303. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_small_sports_car_motion_),
  304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_joint_motion_x1_),
  305. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_joint_motion_x2_),
  306. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_error_code_),
  307. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_warning_code_),
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_data, actual_error_description_),
  309. 18,
  310. 3,
  311. 4,
  312. 5,
  313. 6,
  314. 7,
  315. 8,
  316. 9,
  317. 10,
  318. 11,
  319. 12,
  320. 13,
  321. 14,
  322. 15,
  323. 16,
  324. 17,
  325. 0,
  326. 1,
  327. 2,
  328. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, _has_bits_),
  329. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, _internal_metadata_),
  330. ~0u, // no _extensions_
  331. ~0u, // no _oneof_case_
  332. ~0u, // no _weak_field_map_
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, dispatch_device_type_),
  334. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, dispatch_device_status_),
  335. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, device_id_),
  336. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_device_status_),
  337. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_inside_load_status_),
  338. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_outside_load_status_),
  339. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_front_overstep_the_boundary_),
  340. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_back_overstep_the_boundary_),
  341. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_height_overstep_the_boundary_),
  342. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_outside_door_sensor_),
  343. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_inside_door_motion_),
  344. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_outside_door_motion_),
  345. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_turntable_load_status_),
  346. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_turntable_direction_),
  347. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_error_code_),
  348. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_warning_code_),
  349. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Passageway_data, actual_error_description_),
  350. 16,
  351. 3,
  352. 4,
  353. 5,
  354. 6,
  355. 7,
  356. 8,
  357. 9,
  358. 10,
  359. 11,
  360. 12,
  361. 13,
  362. 14,
  363. 15,
  364. 0,
  365. 1,
  366. 2,
  367. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _has_bits_),
  368. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _internal_metadata_),
  369. ~0u, // no _extensions_
  370. ~0u, // no _oneof_case_
  371. ~0u, // no _weak_field_map_
  372. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, base_info_),
  373. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_id_),
  374. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_manager_status_),
  375. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, catcher_data_map_),
  376. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, carrier_data_map_),
  377. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_data_map_),
  378. 0,
  379. 1,
  380. 2,
  381. ~0u,
  382. ~0u,
  383. ~0u,
  384. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_data_msg, _has_bits_),
  385. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_data_msg, _internal_metadata_),
  386. ~0u, // no _extensions_
  387. ~0u, // no _oneof_case_
  388. ~0u, // no _weak_field_map_
  389. };
  390. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  391. { 0, 9, sizeof(::message::Dispatch_terminal_status_msg)},
  392. { 13, 25, sizeof(::message::Dispatch_request_msg)},
  393. { 32, 45, sizeof(::message::Dispatch_response_msg)},
  394. { 53, 77, sizeof(::message::Catcher_data)},
  395. { 96, 120, sizeof(::message::Carrier_data)},
  396. { 139, 161, sizeof(::message::Passageway_data)},
  397. { 178, 189, sizeof(::message::Dispatch_manager_status_msg)},
  398. { 195, 200, sizeof(::message::Dispatch_manager_data_msg)},
  399. };
  400. static ::google::protobuf::Message const * const file_default_instances[] = {
  401. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_terminal_status_msg_default_instance_),
  402. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_request_msg_default_instance_),
  403. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_response_msg_default_instance_),
  404. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Catcher_data_default_instance_),
  405. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Carrier_data_default_instance_),
  406. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Passageway_data_default_instance_),
  407. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_status_msg_default_instance_),
  408. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_data_msg_default_instance_),
  409. };
  410. void protobuf_AssignDescriptors() {
  411. AddDescriptors();
  412. AssignDescriptors(
  413. "dispatch_message.proto", schemas, file_default_instances, TableStruct::offsets,
  414. file_level_metadata, file_level_enum_descriptors, NULL);
  415. }
  416. void protobuf_AssignDescriptorsOnce() {
  417. static ::google::protobuf::internal::once_flag once;
  418. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  419. }
  420. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  421. void protobuf_RegisterTypes(const ::std::string&) {
  422. protobuf_AssignDescriptorsOnce();
  423. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8);
  424. }
  425. void AddDescriptorsImpl() {
  426. InitDefaults();
  427. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  428. "\n\026dispatch_message.proto\022\007message\032\022messa"
  429. "ge_base.proto\"\334\001\n\034Dispatch_terminal_stat"
  430. "us_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base"
  431. "_info\022%\n\tid_struct\030\002 \002(\0132\022.message.Id_st"
  432. "ruct\0221\n\017terminal_status\030\003 \002(\0162\030.message."
  433. "Terminal_status\022;\n\024passageway_direction\030"
  434. "\004 \002(\0162\035.message.Passageway_direction\"\322\002\n"
  435. "\024Dispatch_request_msg\022%\n\tbase_info\030\001 \002(\013"
  436. "2\022.message.Base_info\022\023\n\013command_key\030\002 \002("
  437. "\t\022E\n\031dispatch_motion_direction\030\003 \001(\0162\".m"
  438. "essage.Dispatch_motion_direction\022%\n\tid_s"
  439. "truct\030\004 \001(\0132\022.message.Id_struct\0227\n\022locat"
  440. "e_information\030\005 \001(\0132\033.message.Locate_inf"
  441. "ormation\0222\n\021parkspace_info_ex\030\006 \003(\0132\027.me"
  442. "ssage.Parkspace_info\022#\n\010car_type\030\007 \001(\0162\021"
  443. ".message.Car_type\"\202\003\n\025Dispatch_response_"
  444. "msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_in"
  445. "fo\022\023\n\013command_key\030\002 \002(\t\022E\n\031dispatch_moti"
  446. "on_direction\030\003 \001(\0162\".message.Dispatch_mo"
  447. "tion_direction\022%\n\tid_struct\030\004 \001(\0132\022.mess"
  448. "age.Id_struct\0227\n\022locate_information\030\005 \001("
  449. "\0132\033.message.Locate_information\0222\n\021parksp"
  450. "ace_info_ex\030\006 \003(\0132\027.message.Parkspace_in"
  451. "fo\022#\n\010car_type\030\007 \001(\0162\021.message.Car_type\022"
  452. "-\n\rerror_manager\030\010 \001(\0132\026.message.Error_m"
  453. "anager\"\313\005\n\014Catcher_data\022;\n\024dispatch_devi"
  454. "ce_type\030\001 \002(\0162\035.message.Dispatch_device_"
  455. "type\022\?\n\026dispatch_device_status\030\002 \002(\0162\037.m"
  456. "essage.Dispatch_device_status\022\021\n\tdevice_"
  457. "id\030\003 \002(\005\022=\n\024actual_device_status\030\004 \001(\0162\037"
  458. ".message.Hardware_device_status\0220\n\022actua"
  459. "l_load_status\030\005 \001(\0162\024.message.Load_statu"
  460. "s\022\035\n\025actual_coordinates_id\030\006 \001(\005\022\020\n\010actu"
  461. "al_x\030\007 \001(\002\022\020\n\010actual_y\030\010 \001(\002\022\020\n\010actual_b"
  462. "\030\t \001(\002\022\020\n\010actual_z\030\n \001(\002\022\021\n\tactual_d1\030\013 "
  463. "\001(\002\022\021\n\tactual_d2\030\014 \001(\002\0223\n\024actual_clamp_m"
  464. "otion1\030\r \001(\0162\025.message.Clamp_motion\0223\n\024a"
  465. "ctual_clamp_motion2\030\016 \001(\0162\025.message.Clam"
  466. "p_motion\0223\n\024actual_clamp_motion3\030\017 \001(\0162\025"
  467. ".message.Clamp_motion\0223\n\024actual_clamp_mo"
  468. "tion4\030\020 \001(\0162\025.message.Clamp_motion\022\031\n\021ac"
  469. "tual_error_code\030\021 \001(\t\022\033\n\023actual_warning_"
  470. "code\030\022 \001(\t\022 \n\030actual_error_description\030\023"
  471. " \001(\t\"\207\006\n\014Carrier_data\022;\n\024dispatch_device"
  472. "_type\030\001 \002(\0162\035.message.Dispatch_device_ty"
  473. "pe\022\?\n\026dispatch_device_status\030\002 \002(\0162\037.mes"
  474. "sage.Dispatch_device_status\022\021\n\tdevice_id"
  475. "\030\003 \002(\005\022=\n\024actual_device_status\030\004 \001(\0162\037.m"
  476. "essage.Hardware_device_status\0220\n\022actual_"
  477. "load_status\030\005 \001(\0162\024.message.Load_status\022"
  478. "\035\n\025actual_coordinates_id\030\006 \001(\005\022\020\n\010actual"
  479. "_x\030\007 \001(\002\022\020\n\010actual_y\030\010 \001(\002\022\020\n\010actual_z\030\t"
  480. " \001(\002\022\021\n\tactual_y1\030\n \001(\002\022\021\n\tactual_y2\030\013 \001"
  481. "(\002\0223\n\024actual_clamp_motion1\030\014 \001(\0162\025.messa"
  482. "ge.Clamp_motion\0223\n\024actual_clamp_motion2\030"
  483. "\r \001(\0162\025.message.Clamp_motion\022H\n\036actual_s"
  484. "mall_sports_car_motion\030\016 \001(\0162 .message.S"
  485. "mall_sports_car_motion\0225\n\026actual_joint_m"
  486. "otion_x1\030\017 \001(\0162\025.message.Joint_motion\0225\n"
  487. "\026actual_joint_motion_x2\030\020 \001(\0162\025.message."
  488. "Joint_motion\022\031\n\021actual_error_code\030\021 \001(\t\022"
  489. "\033\n\023actual_warning_code\030\022 \001(\t\022 \n\030actual_e"
  490. "rror_description\030\023 \001(\t\"\275\007\n\017Passageway_da"
  491. "ta\022;\n\024dispatch_device_type\030\001 \002(\0162\035.messa"
  492. "ge.Dispatch_device_type\022\?\n\026dispatch_devi"
  493. "ce_status\030\002 \002(\0162\037.message.Dispatch_devic"
  494. "e_status\022\021\n\tdevice_id\030\003 \002(\005\022=\n\024actual_de"
  495. "vice_status\030\004 \001(\0162\037.message.Hardware_dev"
  496. "ice_status\0227\n\031actual_inside_load_status\030"
  497. "\005 \001(\0162\024.message.Load_status\0228\n\032actual_ou"
  498. "tside_load_status\030\006 \001(\0162\024.message.Load_s"
  499. "tatus\022J\n\"actual_front_overstep_the_bound"
  500. "ary\030\007 \001(\0162\036.message.Overstep_the_boundar"
  501. "y\022I\n!actual_back_overstep_the_boundary\030\010"
  502. " \001(\0162\036.message.Overstep_the_boundary\022K\n#"
  503. "actual_height_overstep_the_boundary\030\t \001("
  504. "\0162\036.message.Overstep_the_boundary\0228\n\032act"
  505. "ual_outside_door_sensor\030\n \001(\0162\024.message."
  506. "Load_status\0227\n\031actual_inside_door_motion"
  507. "\030\013 \001(\0162\024.message.Door_motion\0228\n\032actual_o"
  508. "utside_door_motion\030\014 \001(\0162\024.message.Door_"
  509. "motion\022:\n\034actual_turntable_load_status\030\r"
  510. " \001(\0162\024.message.Load_status\022@\n\032actual_tur"
  511. "ntable_direction\030\016 \001(\0162\034.message.Turntab"
  512. "le_direction\022\031\n\021actual_error_code\030\017 \001(\t\022"
  513. "\033\n\023actual_warning_code\030\020 \001(\t\022 \n\030actual_e"
  514. "rror_description\030\021 \001(\t\"\265\002\n\033Dispatch_mana"
  515. "ger_status_msg\022%\n\tbase_info\030\001 \002(\0132\022.mess"
  516. "age.Base_info\022\023\n\013dispatch_id\030\002 \002(\005\022A\n\027di"
  517. "spatch_manager_status\030\003 \002(\0162 .message.Di"
  518. "spatch_manager_status\022/\n\020catcher_data_ma"
  519. "p\030\004 \003(\0132\025.message.Catcher_data\022/\n\020carrie"
  520. "r_data_map\030\005 \003(\0132\025.message.Carrier_data\022"
  521. "5\n\023passageway_data_map\030\006 \003(\0132\030.message.P"
  522. "assageway_data\"\033\n\031Dispatch_manager_data_"
  523. "msg*\201\001\n\017Terminal_status\022\025\n\021E_TERMINAL_UN"
  524. "KNOW\020\000\022\024\n\020E_TERMINAL_READY\020\001\022\024\n\020E_TERMIN"
  525. "AL_STORE\020\002\022\025\n\021E_TERMINAL_PICKUP\020\003\022\024\n\020E_T"
  526. "ERMINAL_FAULT\020\n*B\n\024Passageway_direction\022"
  527. "\013\n\007E_INLET\020\000\022\014\n\010E_OUTLET\020\001\022\017\n\013E_BILATERA"
  528. "L\020\002*>\n\031Dispatch_motion_direction\022\017\n\013E_ST"
  529. "ORE_CAR\020\000\022\020\n\014E_PICKUP_CAR\020\001*\261\001\n\027Dispatch"
  530. "_manager_status\022\035\n\031E_DISPATCH_MANAGER_UN"
  531. "KNOW\020\000\022\034\n\030E_DISPATCH_MANAGER_READY\020\001\022\034\n\030"
  532. "E_DISPATCH_MANAGER_STORE\020\002\022\035\n\031E_DISPATCH"
  533. "_MANAGER_PICKUP\020\003\022\034\n\030E_DISPATCH_MANAGER_"
  534. "FAULT\020d*\200\003\n\026Dispatch_device_status\022\032\n\026DI"
  535. "SPATCH_DEVICE_UNKNOW\020\000\022\031\n\025DISPATCH_DEVIC"
  536. "E_READY\020\001\022\030\n\024DISPATCH_DEVICE_BUSY\020\002\022\"\n\036D"
  537. "ISPATCH_DEVICE_ONE_LEVEL_OVER\020\003\022\"\n\036DISPA"
  538. "TCH_DEVICE_ONE_LEVEL_WORK\020\004\022\"\n\036DISPATCH_"
  539. "DEVICE_TWO_LEVEL_OVER\020\005\022\"\n\036DISPATCH_DEVI"
  540. "CE_TWO_LEVEL_WORK\020\006\022$\n DISPATCH_DEVICE_T"
  541. "HREE_LEVEL_OVER\020\007\022$\n DISPATCH_DEVICE_THR"
  542. "EE_LEVEL_WORK\020\010\022\031\n\025DISPATCH_DEVICE_FAULT"
  543. "\020d\022\036\n\032DISPATCH_DEVICE_DISCONNECT\020e*n\n\023Di"
  544. "spatch_task_level\022\033\n\027DISPATCH_TASK_ONE_L"
  545. "EVEL\020\001\022\033\n\027DISPATCH_TASK_TWO_LEVEL\020\002\022\035\n\031D"
  546. "ISPATCH_TASK_THREE_LEVEL\020\003*K\n\014Clamp_moti"
  547. "on\022\025\n\021E_CLAMP_NO_ACTION\020\000\022\021\n\rE_CLAMP_TIG"
  548. "HT\020\001\022\021\n\rE_CLAMP_LOOSE\020\002*R\n\014Joint_motion\022"
  549. "\025\n\021E_JOINT_NO_ACTION\020\000\022\024\n\020E_JOINT_HOLD_O"
  550. "UT\020\001\022\025\n\021E_JOINT_TAKE_BACK\020\002*y\n\027Small_spo"
  551. "rts_car_motion\022\034\n\030E_SMALL_SPORTS_NO_ACTI"
  552. "ON\020\000\022\037\n\033E_SMALL_SPORTS_CAR_GET_AWAY\020\001\022\037\n"
  553. "\033E_SMALL_SPORTS_CAR_GET_BACK\020\002*l\n\016Respon"
  554. "s_status\022\023\n\017RESPONS_WORKING\020\000\022\020\n\014RESPONS"
  555. "_OVER\020\001\022\027\n\023RESPONS_MINOR_ERROR\020d\022\032\n\026RESP"
  556. "ONS_CRITICAL_ERROR\020e*\252\001\n\026Hardware_device"
  557. "_status\022\022\n\016DEVICE_UNKNOWN\020\000\022\020\n\014DEVICE_RE"
  558. "ADY\020\001\022\022\n\016DEVICE_WORKING\020\002\022\031\n\025DEVICE_EMER"
  559. "GENCY_STOP\020\003\022\023\n\017DEVICE_UNSAFETY\020\004\022\024\n\020DEV"
  560. "ICE_COLLISION\020\005\022\020\n\014DEVICE_FAULT\020\006*9\n\013Loa"
  561. "d_status\022\020\n\014LOAD_UNKNOWN\020\000\022\014\n\010HAVE_CAR\020\001"
  562. "\022\n\n\006NO_CAR\020\002*w\n\023Turntable_direction\022\037\n\033T"
  563. "URNTABLE_DIRECTION_UNKNOWN\020\000\022\036\n\032TURNTABL"
  564. "E_DIRECTION_INSIDE\020\001\022\037\n\033TURNTABLE_DIRECT"
  565. "ION_OUTSIDE\020\002*N\n\013Door_motion\022\020\n\014DOOR_UNK"
  566. "NOWN\020\000\022\r\n\tDOOR_OPEN\020\001\022\016\n\nDOOR_CLOSE\020\002\022\016\n"
  567. "\nDOOR_ERROR\020\003*C\n\025Overstep_the_boundary\022\023"
  568. "\n\017BOUNDARY_NORMAL\020\000\022\025\n\021BOUNDARY_OVERSTEP"
  569. "\020\001"
  570. };
  571. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  572. descriptor, 5642);
  573. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  574. "dispatch_message.proto", &protobuf_RegisterTypes);
  575. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  576. }
  577. void AddDescriptors() {
  578. static ::google::protobuf::internal::once_flag once;
  579. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  580. }
  581. // Force AddDescriptors() to be called at dynamic initialization time.
  582. struct StaticDescriptorInitializer {
  583. StaticDescriptorInitializer() {
  584. AddDescriptors();
  585. }
  586. } static_descriptor_initializer;
  587. } // namespace protobuf_dispatch_5fmessage_2eproto
  588. namespace message {
  589. const ::google::protobuf::EnumDescriptor* Terminal_status_descriptor() {
  590. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  591. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[0];
  592. }
  593. bool Terminal_status_IsValid(int value) {
  594. switch (value) {
  595. case 0:
  596. case 1:
  597. case 2:
  598. case 3:
  599. case 10:
  600. return true;
  601. default:
  602. return false;
  603. }
  604. }
  605. const ::google::protobuf::EnumDescriptor* Passageway_direction_descriptor() {
  606. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  607. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[1];
  608. }
  609. bool Passageway_direction_IsValid(int value) {
  610. switch (value) {
  611. case 0:
  612. case 1:
  613. case 2:
  614. return true;
  615. default:
  616. return false;
  617. }
  618. }
  619. const ::google::protobuf::EnumDescriptor* Dispatch_motion_direction_descriptor() {
  620. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  621. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[2];
  622. }
  623. bool Dispatch_motion_direction_IsValid(int value) {
  624. switch (value) {
  625. case 0:
  626. case 1:
  627. return true;
  628. default:
  629. return false;
  630. }
  631. }
  632. const ::google::protobuf::EnumDescriptor* Dispatch_manager_status_descriptor() {
  633. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  634. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[3];
  635. }
  636. bool Dispatch_manager_status_IsValid(int value) {
  637. switch (value) {
  638. case 0:
  639. case 1:
  640. case 2:
  641. case 3:
  642. case 100:
  643. return true;
  644. default:
  645. return false;
  646. }
  647. }
  648. const ::google::protobuf::EnumDescriptor* Dispatch_device_status_descriptor() {
  649. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  650. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[4];
  651. }
  652. bool Dispatch_device_status_IsValid(int value) {
  653. switch (value) {
  654. case 0:
  655. case 1:
  656. case 2:
  657. case 3:
  658. case 4:
  659. case 5:
  660. case 6:
  661. case 7:
  662. case 8:
  663. case 100:
  664. case 101:
  665. return true;
  666. default:
  667. return false;
  668. }
  669. }
  670. const ::google::protobuf::EnumDescriptor* Dispatch_task_level_descriptor() {
  671. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  672. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[5];
  673. }
  674. bool Dispatch_task_level_IsValid(int value) {
  675. switch (value) {
  676. case 1:
  677. case 2:
  678. case 3:
  679. return true;
  680. default:
  681. return false;
  682. }
  683. }
  684. const ::google::protobuf::EnumDescriptor* Clamp_motion_descriptor() {
  685. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  686. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[6];
  687. }
  688. bool Clamp_motion_IsValid(int value) {
  689. switch (value) {
  690. case 0:
  691. case 1:
  692. case 2:
  693. return true;
  694. default:
  695. return false;
  696. }
  697. }
  698. const ::google::protobuf::EnumDescriptor* Joint_motion_descriptor() {
  699. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  700. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[7];
  701. }
  702. bool Joint_motion_IsValid(int value) {
  703. switch (value) {
  704. case 0:
  705. case 1:
  706. case 2:
  707. return true;
  708. default:
  709. return false;
  710. }
  711. }
  712. const ::google::protobuf::EnumDescriptor* Small_sports_car_motion_descriptor() {
  713. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  714. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[8];
  715. }
  716. bool Small_sports_car_motion_IsValid(int value) {
  717. switch (value) {
  718. case 0:
  719. case 1:
  720. case 2:
  721. return true;
  722. default:
  723. return false;
  724. }
  725. }
  726. const ::google::protobuf::EnumDescriptor* Respons_status_descriptor() {
  727. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  728. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[9];
  729. }
  730. bool Respons_status_IsValid(int value) {
  731. switch (value) {
  732. case 0:
  733. case 1:
  734. case 100:
  735. case 101:
  736. return true;
  737. default:
  738. return false;
  739. }
  740. }
  741. const ::google::protobuf::EnumDescriptor* Hardware_device_status_descriptor() {
  742. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  743. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[10];
  744. }
  745. bool Hardware_device_status_IsValid(int value) {
  746. switch (value) {
  747. case 0:
  748. case 1:
  749. case 2:
  750. case 3:
  751. case 4:
  752. case 5:
  753. case 6:
  754. return true;
  755. default:
  756. return false;
  757. }
  758. }
  759. const ::google::protobuf::EnumDescriptor* Load_status_descriptor() {
  760. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  761. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[11];
  762. }
  763. bool Load_status_IsValid(int value) {
  764. switch (value) {
  765. case 0:
  766. case 1:
  767. case 2:
  768. return true;
  769. default:
  770. return false;
  771. }
  772. }
  773. const ::google::protobuf::EnumDescriptor* Turntable_direction_descriptor() {
  774. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  775. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[12];
  776. }
  777. bool Turntable_direction_IsValid(int value) {
  778. switch (value) {
  779. case 0:
  780. case 1:
  781. case 2:
  782. return true;
  783. default:
  784. return false;
  785. }
  786. }
  787. const ::google::protobuf::EnumDescriptor* Door_motion_descriptor() {
  788. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  789. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[13];
  790. }
  791. bool Door_motion_IsValid(int value) {
  792. switch (value) {
  793. case 0:
  794. case 1:
  795. case 2:
  796. case 3:
  797. return true;
  798. default:
  799. return false;
  800. }
  801. }
  802. const ::google::protobuf::EnumDescriptor* Overstep_the_boundary_descriptor() {
  803. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  804. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[14];
  805. }
  806. bool Overstep_the_boundary_IsValid(int value) {
  807. switch (value) {
  808. case 0:
  809. case 1:
  810. return true;
  811. default:
  812. return false;
  813. }
  814. }
  815. // ===================================================================
  816. void Dispatch_terminal_status_msg::InitAsDefaultInstance() {
  817. ::message::_Dispatch_terminal_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  818. ::message::Base_info::internal_default_instance());
  819. ::message::_Dispatch_terminal_status_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  820. ::message::Id_struct::internal_default_instance());
  821. }
  822. void Dispatch_terminal_status_msg::clear_base_info() {
  823. if (base_info_ != NULL) base_info_->Clear();
  824. clear_has_base_info();
  825. }
  826. void Dispatch_terminal_status_msg::clear_id_struct() {
  827. if (id_struct_ != NULL) id_struct_->Clear();
  828. clear_has_id_struct();
  829. }
  830. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  831. const int Dispatch_terminal_status_msg::kBaseInfoFieldNumber;
  832. const int Dispatch_terminal_status_msg::kIdStructFieldNumber;
  833. const int Dispatch_terminal_status_msg::kTerminalStatusFieldNumber;
  834. const int Dispatch_terminal_status_msg::kPassagewayDirectionFieldNumber;
  835. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  836. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg()
  837. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  838. ::google::protobuf::internal::InitSCC(
  839. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_terminal_status_msg.base);
  840. SharedCtor();
  841. // @@protoc_insertion_point(constructor:message.Dispatch_terminal_status_msg)
  842. }
  843. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg(const Dispatch_terminal_status_msg& from)
  844. : ::google::protobuf::Message(),
  845. _internal_metadata_(NULL),
  846. _has_bits_(from._has_bits_) {
  847. _internal_metadata_.MergeFrom(from._internal_metadata_);
  848. if (from.has_base_info()) {
  849. base_info_ = new ::message::Base_info(*from.base_info_);
  850. } else {
  851. base_info_ = NULL;
  852. }
  853. if (from.has_id_struct()) {
  854. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  855. } else {
  856. id_struct_ = NULL;
  857. }
  858. ::memcpy(&terminal_status_, &from.terminal_status_,
  859. static_cast<size_t>(reinterpret_cast<char*>(&passageway_direction_) -
  860. reinterpret_cast<char*>(&terminal_status_)) + sizeof(passageway_direction_));
  861. // @@protoc_insertion_point(copy_constructor:message.Dispatch_terminal_status_msg)
  862. }
  863. void Dispatch_terminal_status_msg::SharedCtor() {
  864. ::memset(&base_info_, 0, static_cast<size_t>(
  865. reinterpret_cast<char*>(&passageway_direction_) -
  866. reinterpret_cast<char*>(&base_info_)) + sizeof(passageway_direction_));
  867. }
  868. Dispatch_terminal_status_msg::~Dispatch_terminal_status_msg() {
  869. // @@protoc_insertion_point(destructor:message.Dispatch_terminal_status_msg)
  870. SharedDtor();
  871. }
  872. void Dispatch_terminal_status_msg::SharedDtor() {
  873. if (this != internal_default_instance()) delete base_info_;
  874. if (this != internal_default_instance()) delete id_struct_;
  875. }
  876. void Dispatch_terminal_status_msg::SetCachedSize(int size) const {
  877. _cached_size_.Set(size);
  878. }
  879. const ::google::protobuf::Descriptor* Dispatch_terminal_status_msg::descriptor() {
  880. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  881. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  882. }
  883. const Dispatch_terminal_status_msg& Dispatch_terminal_status_msg::default_instance() {
  884. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_terminal_status_msg.base);
  885. return *internal_default_instance();
  886. }
  887. void Dispatch_terminal_status_msg::Clear() {
  888. // @@protoc_insertion_point(message_clear_start:message.Dispatch_terminal_status_msg)
  889. ::google::protobuf::uint32 cached_has_bits = 0;
  890. // Prevent compiler warnings about cached_has_bits being unused
  891. (void) cached_has_bits;
  892. cached_has_bits = _has_bits_[0];
  893. if (cached_has_bits & 3u) {
  894. if (cached_has_bits & 0x00000001u) {
  895. GOOGLE_DCHECK(base_info_ != NULL);
  896. base_info_->Clear();
  897. }
  898. if (cached_has_bits & 0x00000002u) {
  899. GOOGLE_DCHECK(id_struct_ != NULL);
  900. id_struct_->Clear();
  901. }
  902. }
  903. if (cached_has_bits & 12u) {
  904. ::memset(&terminal_status_, 0, static_cast<size_t>(
  905. reinterpret_cast<char*>(&passageway_direction_) -
  906. reinterpret_cast<char*>(&terminal_status_)) + sizeof(passageway_direction_));
  907. }
  908. _has_bits_.Clear();
  909. _internal_metadata_.Clear();
  910. }
  911. bool Dispatch_terminal_status_msg::MergePartialFromCodedStream(
  912. ::google::protobuf::io::CodedInputStream* input) {
  913. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  914. ::google::protobuf::uint32 tag;
  915. // @@protoc_insertion_point(parse_start:message.Dispatch_terminal_status_msg)
  916. for (;;) {
  917. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  918. tag = p.first;
  919. if (!p.second) goto handle_unusual;
  920. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  921. // required .message.Base_info base_info = 1;
  922. case 1: {
  923. if (static_cast< ::google::protobuf::uint8>(tag) ==
  924. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  925. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  926. input, mutable_base_info()));
  927. } else {
  928. goto handle_unusual;
  929. }
  930. break;
  931. }
  932. // required .message.Id_struct id_struct = 2;
  933. case 2: {
  934. if (static_cast< ::google::protobuf::uint8>(tag) ==
  935. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  936. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  937. input, mutable_id_struct()));
  938. } else {
  939. goto handle_unusual;
  940. }
  941. break;
  942. }
  943. // required .message.Terminal_status terminal_status = 3;
  944. case 3: {
  945. if (static_cast< ::google::protobuf::uint8>(tag) ==
  946. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  947. int value;
  948. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  949. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  950. input, &value)));
  951. if (::message::Terminal_status_IsValid(value)) {
  952. set_terminal_status(static_cast< ::message::Terminal_status >(value));
  953. } else {
  954. mutable_unknown_fields()->AddVarint(
  955. 3, static_cast< ::google::protobuf::uint64>(value));
  956. }
  957. } else {
  958. goto handle_unusual;
  959. }
  960. break;
  961. }
  962. // required .message.Passageway_direction passageway_direction = 4;
  963. case 4: {
  964. if (static_cast< ::google::protobuf::uint8>(tag) ==
  965. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  966. int value;
  967. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  968. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  969. input, &value)));
  970. if (::message::Passageway_direction_IsValid(value)) {
  971. set_passageway_direction(static_cast< ::message::Passageway_direction >(value));
  972. } else {
  973. mutable_unknown_fields()->AddVarint(
  974. 4, static_cast< ::google::protobuf::uint64>(value));
  975. }
  976. } else {
  977. goto handle_unusual;
  978. }
  979. break;
  980. }
  981. default: {
  982. handle_unusual:
  983. if (tag == 0) {
  984. goto success;
  985. }
  986. DO_(::google::protobuf::internal::WireFormat::SkipField(
  987. input, tag, _internal_metadata_.mutable_unknown_fields()));
  988. break;
  989. }
  990. }
  991. }
  992. success:
  993. // @@protoc_insertion_point(parse_success:message.Dispatch_terminal_status_msg)
  994. return true;
  995. failure:
  996. // @@protoc_insertion_point(parse_failure:message.Dispatch_terminal_status_msg)
  997. return false;
  998. #undef DO_
  999. }
  1000. void Dispatch_terminal_status_msg::SerializeWithCachedSizes(
  1001. ::google::protobuf::io::CodedOutputStream* output) const {
  1002. // @@protoc_insertion_point(serialize_start:message.Dispatch_terminal_status_msg)
  1003. ::google::protobuf::uint32 cached_has_bits = 0;
  1004. (void) cached_has_bits;
  1005. cached_has_bits = _has_bits_[0];
  1006. // required .message.Base_info base_info = 1;
  1007. if (cached_has_bits & 0x00000001u) {
  1008. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1009. 1, this->_internal_base_info(), output);
  1010. }
  1011. // required .message.Id_struct id_struct = 2;
  1012. if (cached_has_bits & 0x00000002u) {
  1013. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1014. 2, this->_internal_id_struct(), output);
  1015. }
  1016. // required .message.Terminal_status terminal_status = 3;
  1017. if (cached_has_bits & 0x00000004u) {
  1018. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1019. 3, this->terminal_status(), output);
  1020. }
  1021. // required .message.Passageway_direction passageway_direction = 4;
  1022. if (cached_has_bits & 0x00000008u) {
  1023. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1024. 4, this->passageway_direction(), output);
  1025. }
  1026. if (_internal_metadata_.have_unknown_fields()) {
  1027. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1028. _internal_metadata_.unknown_fields(), output);
  1029. }
  1030. // @@protoc_insertion_point(serialize_end:message.Dispatch_terminal_status_msg)
  1031. }
  1032. ::google::protobuf::uint8* Dispatch_terminal_status_msg::InternalSerializeWithCachedSizesToArray(
  1033. bool deterministic, ::google::protobuf::uint8* target) const {
  1034. (void)deterministic; // Unused
  1035. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_terminal_status_msg)
  1036. ::google::protobuf::uint32 cached_has_bits = 0;
  1037. (void) cached_has_bits;
  1038. cached_has_bits = _has_bits_[0];
  1039. // required .message.Base_info base_info = 1;
  1040. if (cached_has_bits & 0x00000001u) {
  1041. target = ::google::protobuf::internal::WireFormatLite::
  1042. InternalWriteMessageToArray(
  1043. 1, this->_internal_base_info(), deterministic, target);
  1044. }
  1045. // required .message.Id_struct id_struct = 2;
  1046. if (cached_has_bits & 0x00000002u) {
  1047. target = ::google::protobuf::internal::WireFormatLite::
  1048. InternalWriteMessageToArray(
  1049. 2, this->_internal_id_struct(), deterministic, target);
  1050. }
  1051. // required .message.Terminal_status terminal_status = 3;
  1052. if (cached_has_bits & 0x00000004u) {
  1053. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1054. 3, this->terminal_status(), target);
  1055. }
  1056. // required .message.Passageway_direction passageway_direction = 4;
  1057. if (cached_has_bits & 0x00000008u) {
  1058. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1059. 4, this->passageway_direction(), target);
  1060. }
  1061. if (_internal_metadata_.have_unknown_fields()) {
  1062. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1063. _internal_metadata_.unknown_fields(), target);
  1064. }
  1065. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_terminal_status_msg)
  1066. return target;
  1067. }
  1068. size_t Dispatch_terminal_status_msg::RequiredFieldsByteSizeFallback() const {
  1069. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_terminal_status_msg)
  1070. size_t total_size = 0;
  1071. if (has_base_info()) {
  1072. // required .message.Base_info base_info = 1;
  1073. total_size += 1 +
  1074. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1075. *base_info_);
  1076. }
  1077. if (has_id_struct()) {
  1078. // required .message.Id_struct id_struct = 2;
  1079. total_size += 1 +
  1080. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1081. *id_struct_);
  1082. }
  1083. if (has_terminal_status()) {
  1084. // required .message.Terminal_status terminal_status = 3;
  1085. total_size += 1 +
  1086. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  1087. }
  1088. if (has_passageway_direction()) {
  1089. // required .message.Passageway_direction passageway_direction = 4;
  1090. total_size += 1 +
  1091. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  1092. }
  1093. return total_size;
  1094. }
  1095. size_t Dispatch_terminal_status_msg::ByteSizeLong() const {
  1096. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_terminal_status_msg)
  1097. size_t total_size = 0;
  1098. if (_internal_metadata_.have_unknown_fields()) {
  1099. total_size +=
  1100. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1101. _internal_metadata_.unknown_fields());
  1102. }
  1103. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1104. // required .message.Base_info base_info = 1;
  1105. total_size += 1 +
  1106. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1107. *base_info_);
  1108. // required .message.Id_struct id_struct = 2;
  1109. total_size += 1 +
  1110. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1111. *id_struct_);
  1112. // required .message.Terminal_status terminal_status = 3;
  1113. total_size += 1 +
  1114. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  1115. // required .message.Passageway_direction passageway_direction = 4;
  1116. total_size += 1 +
  1117. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  1118. } else {
  1119. total_size += RequiredFieldsByteSizeFallback();
  1120. }
  1121. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1122. SetCachedSize(cached_size);
  1123. return total_size;
  1124. }
  1125. void Dispatch_terminal_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1126. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_terminal_status_msg)
  1127. GOOGLE_DCHECK_NE(&from, this);
  1128. const Dispatch_terminal_status_msg* source =
  1129. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_terminal_status_msg>(
  1130. &from);
  1131. if (source == NULL) {
  1132. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_terminal_status_msg)
  1133. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1134. } else {
  1135. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_terminal_status_msg)
  1136. MergeFrom(*source);
  1137. }
  1138. }
  1139. void Dispatch_terminal_status_msg::MergeFrom(const Dispatch_terminal_status_msg& from) {
  1140. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_terminal_status_msg)
  1141. GOOGLE_DCHECK_NE(&from, this);
  1142. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1143. ::google::protobuf::uint32 cached_has_bits = 0;
  1144. (void) cached_has_bits;
  1145. cached_has_bits = from._has_bits_[0];
  1146. if (cached_has_bits & 15u) {
  1147. if (cached_has_bits & 0x00000001u) {
  1148. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1149. }
  1150. if (cached_has_bits & 0x00000002u) {
  1151. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1152. }
  1153. if (cached_has_bits & 0x00000004u) {
  1154. terminal_status_ = from.terminal_status_;
  1155. }
  1156. if (cached_has_bits & 0x00000008u) {
  1157. passageway_direction_ = from.passageway_direction_;
  1158. }
  1159. _has_bits_[0] |= cached_has_bits;
  1160. }
  1161. }
  1162. void Dispatch_terminal_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1163. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_terminal_status_msg)
  1164. if (&from == this) return;
  1165. Clear();
  1166. MergeFrom(from);
  1167. }
  1168. void Dispatch_terminal_status_msg::CopyFrom(const Dispatch_terminal_status_msg& from) {
  1169. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_terminal_status_msg)
  1170. if (&from == this) return;
  1171. Clear();
  1172. MergeFrom(from);
  1173. }
  1174. bool Dispatch_terminal_status_msg::IsInitialized() const {
  1175. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1176. if (has_base_info()) {
  1177. if (!this->base_info_->IsInitialized()) return false;
  1178. }
  1179. return true;
  1180. }
  1181. void Dispatch_terminal_status_msg::Swap(Dispatch_terminal_status_msg* other) {
  1182. if (other == this) return;
  1183. InternalSwap(other);
  1184. }
  1185. void Dispatch_terminal_status_msg::InternalSwap(Dispatch_terminal_status_msg* other) {
  1186. using std::swap;
  1187. swap(base_info_, other->base_info_);
  1188. swap(id_struct_, other->id_struct_);
  1189. swap(terminal_status_, other->terminal_status_);
  1190. swap(passageway_direction_, other->passageway_direction_);
  1191. swap(_has_bits_[0], other->_has_bits_[0]);
  1192. _internal_metadata_.Swap(&other->_internal_metadata_);
  1193. }
  1194. ::google::protobuf::Metadata Dispatch_terminal_status_msg::GetMetadata() const {
  1195. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1196. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1197. }
  1198. // ===================================================================
  1199. void Dispatch_request_msg::InitAsDefaultInstance() {
  1200. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1201. ::message::Base_info::internal_default_instance());
  1202. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  1203. ::message::Id_struct::internal_default_instance());
  1204. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  1205. ::message::Locate_information::internal_default_instance());
  1206. }
  1207. void Dispatch_request_msg::clear_base_info() {
  1208. if (base_info_ != NULL) base_info_->Clear();
  1209. clear_has_base_info();
  1210. }
  1211. void Dispatch_request_msg::clear_id_struct() {
  1212. if (id_struct_ != NULL) id_struct_->Clear();
  1213. clear_has_id_struct();
  1214. }
  1215. void Dispatch_request_msg::clear_locate_information() {
  1216. if (locate_information_ != NULL) locate_information_->Clear();
  1217. clear_has_locate_information();
  1218. }
  1219. void Dispatch_request_msg::clear_parkspace_info_ex() {
  1220. parkspace_info_ex_.Clear();
  1221. }
  1222. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1223. const int Dispatch_request_msg::kBaseInfoFieldNumber;
  1224. const int Dispatch_request_msg::kCommandKeyFieldNumber;
  1225. const int Dispatch_request_msg::kDispatchMotionDirectionFieldNumber;
  1226. const int Dispatch_request_msg::kIdStructFieldNumber;
  1227. const int Dispatch_request_msg::kLocateInformationFieldNumber;
  1228. const int Dispatch_request_msg::kParkspaceInfoExFieldNumber;
  1229. const int Dispatch_request_msg::kCarTypeFieldNumber;
  1230. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1231. Dispatch_request_msg::Dispatch_request_msg()
  1232. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1233. ::google::protobuf::internal::InitSCC(
  1234. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_request_msg.base);
  1235. SharedCtor();
  1236. // @@protoc_insertion_point(constructor:message.Dispatch_request_msg)
  1237. }
  1238. Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
  1239. : ::google::protobuf::Message(),
  1240. _internal_metadata_(NULL),
  1241. _has_bits_(from._has_bits_),
  1242. parkspace_info_ex_(from.parkspace_info_ex_) {
  1243. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1244. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1245. if (from.has_command_key()) {
  1246. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1247. }
  1248. if (from.has_base_info()) {
  1249. base_info_ = new ::message::Base_info(*from.base_info_);
  1250. } else {
  1251. base_info_ = NULL;
  1252. }
  1253. if (from.has_id_struct()) {
  1254. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  1255. } else {
  1256. id_struct_ = NULL;
  1257. }
  1258. if (from.has_locate_information()) {
  1259. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  1260. } else {
  1261. locate_information_ = NULL;
  1262. }
  1263. ::memcpy(&dispatch_motion_direction_, &from.dispatch_motion_direction_,
  1264. static_cast<size_t>(reinterpret_cast<char*>(&car_type_) -
  1265. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(car_type_));
  1266. // @@protoc_insertion_point(copy_constructor:message.Dispatch_request_msg)
  1267. }
  1268. void Dispatch_request_msg::SharedCtor() {
  1269. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1270. ::memset(&base_info_, 0, static_cast<size_t>(
  1271. reinterpret_cast<char*>(&car_type_) -
  1272. reinterpret_cast<char*>(&base_info_)) + sizeof(car_type_));
  1273. }
  1274. Dispatch_request_msg::~Dispatch_request_msg() {
  1275. // @@protoc_insertion_point(destructor:message.Dispatch_request_msg)
  1276. SharedDtor();
  1277. }
  1278. void Dispatch_request_msg::SharedDtor() {
  1279. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1280. if (this != internal_default_instance()) delete base_info_;
  1281. if (this != internal_default_instance()) delete id_struct_;
  1282. if (this != internal_default_instance()) delete locate_information_;
  1283. }
  1284. void Dispatch_request_msg::SetCachedSize(int size) const {
  1285. _cached_size_.Set(size);
  1286. }
  1287. const ::google::protobuf::Descriptor* Dispatch_request_msg::descriptor() {
  1288. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1289. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1290. }
  1291. const Dispatch_request_msg& Dispatch_request_msg::default_instance() {
  1292. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_request_msg.base);
  1293. return *internal_default_instance();
  1294. }
  1295. void Dispatch_request_msg::Clear() {
  1296. // @@protoc_insertion_point(message_clear_start:message.Dispatch_request_msg)
  1297. ::google::protobuf::uint32 cached_has_bits = 0;
  1298. // Prevent compiler warnings about cached_has_bits being unused
  1299. (void) cached_has_bits;
  1300. parkspace_info_ex_.Clear();
  1301. cached_has_bits = _has_bits_[0];
  1302. if (cached_has_bits & 15u) {
  1303. if (cached_has_bits & 0x00000001u) {
  1304. command_key_.ClearNonDefaultToEmptyNoArena();
  1305. }
  1306. if (cached_has_bits & 0x00000002u) {
  1307. GOOGLE_DCHECK(base_info_ != NULL);
  1308. base_info_->Clear();
  1309. }
  1310. if (cached_has_bits & 0x00000004u) {
  1311. GOOGLE_DCHECK(id_struct_ != NULL);
  1312. id_struct_->Clear();
  1313. }
  1314. if (cached_has_bits & 0x00000008u) {
  1315. GOOGLE_DCHECK(locate_information_ != NULL);
  1316. locate_information_->Clear();
  1317. }
  1318. }
  1319. if (cached_has_bits & 48u) {
  1320. ::memset(&dispatch_motion_direction_, 0, static_cast<size_t>(
  1321. reinterpret_cast<char*>(&car_type_) -
  1322. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(car_type_));
  1323. }
  1324. _has_bits_.Clear();
  1325. _internal_metadata_.Clear();
  1326. }
  1327. bool Dispatch_request_msg::MergePartialFromCodedStream(
  1328. ::google::protobuf::io::CodedInputStream* input) {
  1329. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1330. ::google::protobuf::uint32 tag;
  1331. // @@protoc_insertion_point(parse_start:message.Dispatch_request_msg)
  1332. for (;;) {
  1333. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1334. tag = p.first;
  1335. if (!p.second) goto handle_unusual;
  1336. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1337. // required .message.Base_info base_info = 1;
  1338. case 1: {
  1339. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1340. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1341. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1342. input, mutable_base_info()));
  1343. } else {
  1344. goto handle_unusual;
  1345. }
  1346. break;
  1347. }
  1348. // required string command_key = 2;
  1349. case 2: {
  1350. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1351. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1352. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1353. input, this->mutable_command_key()));
  1354. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1355. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1356. ::google::protobuf::internal::WireFormat::PARSE,
  1357. "message.Dispatch_request_msg.command_key");
  1358. } else {
  1359. goto handle_unusual;
  1360. }
  1361. break;
  1362. }
  1363. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1364. case 3: {
  1365. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1366. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1367. int value;
  1368. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1369. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1370. input, &value)));
  1371. if (::message::Dispatch_motion_direction_IsValid(value)) {
  1372. set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
  1373. } else {
  1374. mutable_unknown_fields()->AddVarint(
  1375. 3, static_cast< ::google::protobuf::uint64>(value));
  1376. }
  1377. } else {
  1378. goto handle_unusual;
  1379. }
  1380. break;
  1381. }
  1382. // optional .message.Id_struct id_struct = 4;
  1383. case 4: {
  1384. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1385. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1386. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1387. input, mutable_id_struct()));
  1388. } else {
  1389. goto handle_unusual;
  1390. }
  1391. break;
  1392. }
  1393. // optional .message.Locate_information locate_information = 5;
  1394. case 5: {
  1395. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1396. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1397. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1398. input, mutable_locate_information()));
  1399. } else {
  1400. goto handle_unusual;
  1401. }
  1402. break;
  1403. }
  1404. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  1405. case 6: {
  1406. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1407. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1408. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1409. input, add_parkspace_info_ex()));
  1410. } else {
  1411. goto handle_unusual;
  1412. }
  1413. break;
  1414. }
  1415. // optional .message.Car_type car_type = 7;
  1416. case 7: {
  1417. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1418. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1419. int value;
  1420. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1421. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1422. input, &value)));
  1423. if (::message::Car_type_IsValid(value)) {
  1424. set_car_type(static_cast< ::message::Car_type >(value));
  1425. } else {
  1426. mutable_unknown_fields()->AddVarint(
  1427. 7, static_cast< ::google::protobuf::uint64>(value));
  1428. }
  1429. } else {
  1430. goto handle_unusual;
  1431. }
  1432. break;
  1433. }
  1434. default: {
  1435. handle_unusual:
  1436. if (tag == 0) {
  1437. goto success;
  1438. }
  1439. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1440. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1441. break;
  1442. }
  1443. }
  1444. }
  1445. success:
  1446. // @@protoc_insertion_point(parse_success:message.Dispatch_request_msg)
  1447. return true;
  1448. failure:
  1449. // @@protoc_insertion_point(parse_failure:message.Dispatch_request_msg)
  1450. return false;
  1451. #undef DO_
  1452. }
  1453. void Dispatch_request_msg::SerializeWithCachedSizes(
  1454. ::google::protobuf::io::CodedOutputStream* output) const {
  1455. // @@protoc_insertion_point(serialize_start:message.Dispatch_request_msg)
  1456. ::google::protobuf::uint32 cached_has_bits = 0;
  1457. (void) cached_has_bits;
  1458. cached_has_bits = _has_bits_[0];
  1459. // required .message.Base_info base_info = 1;
  1460. if (cached_has_bits & 0x00000002u) {
  1461. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1462. 1, this->_internal_base_info(), output);
  1463. }
  1464. // required string command_key = 2;
  1465. if (cached_has_bits & 0x00000001u) {
  1466. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1467. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1468. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1469. "message.Dispatch_request_msg.command_key");
  1470. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1471. 2, this->command_key(), output);
  1472. }
  1473. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1474. if (cached_has_bits & 0x00000010u) {
  1475. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1476. 3, this->dispatch_motion_direction(), output);
  1477. }
  1478. // optional .message.Id_struct id_struct = 4;
  1479. if (cached_has_bits & 0x00000004u) {
  1480. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1481. 4, this->_internal_id_struct(), output);
  1482. }
  1483. // optional .message.Locate_information locate_information = 5;
  1484. if (cached_has_bits & 0x00000008u) {
  1485. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1486. 5, this->_internal_locate_information(), output);
  1487. }
  1488. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  1489. for (unsigned int i = 0,
  1490. n = static_cast<unsigned int>(this->parkspace_info_ex_size()); i < n; i++) {
  1491. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1492. 6,
  1493. this->parkspace_info_ex(static_cast<int>(i)),
  1494. output);
  1495. }
  1496. // optional .message.Car_type car_type = 7;
  1497. if (cached_has_bits & 0x00000020u) {
  1498. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1499. 7, this->car_type(), output);
  1500. }
  1501. if (_internal_metadata_.have_unknown_fields()) {
  1502. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1503. _internal_metadata_.unknown_fields(), output);
  1504. }
  1505. // @@protoc_insertion_point(serialize_end:message.Dispatch_request_msg)
  1506. }
  1507. ::google::protobuf::uint8* Dispatch_request_msg::InternalSerializeWithCachedSizesToArray(
  1508. bool deterministic, ::google::protobuf::uint8* target) const {
  1509. (void)deterministic; // Unused
  1510. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_request_msg)
  1511. ::google::protobuf::uint32 cached_has_bits = 0;
  1512. (void) cached_has_bits;
  1513. cached_has_bits = _has_bits_[0];
  1514. // required .message.Base_info base_info = 1;
  1515. if (cached_has_bits & 0x00000002u) {
  1516. target = ::google::protobuf::internal::WireFormatLite::
  1517. InternalWriteMessageToArray(
  1518. 1, this->_internal_base_info(), deterministic, target);
  1519. }
  1520. // required string command_key = 2;
  1521. if (cached_has_bits & 0x00000001u) {
  1522. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1523. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1524. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1525. "message.Dispatch_request_msg.command_key");
  1526. target =
  1527. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1528. 2, this->command_key(), target);
  1529. }
  1530. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1531. if (cached_has_bits & 0x00000010u) {
  1532. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1533. 3, this->dispatch_motion_direction(), target);
  1534. }
  1535. // optional .message.Id_struct id_struct = 4;
  1536. if (cached_has_bits & 0x00000004u) {
  1537. target = ::google::protobuf::internal::WireFormatLite::
  1538. InternalWriteMessageToArray(
  1539. 4, this->_internal_id_struct(), deterministic, target);
  1540. }
  1541. // optional .message.Locate_information locate_information = 5;
  1542. if (cached_has_bits & 0x00000008u) {
  1543. target = ::google::protobuf::internal::WireFormatLite::
  1544. InternalWriteMessageToArray(
  1545. 5, this->_internal_locate_information(), deterministic, target);
  1546. }
  1547. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  1548. for (unsigned int i = 0,
  1549. n = static_cast<unsigned int>(this->parkspace_info_ex_size()); i < n; i++) {
  1550. target = ::google::protobuf::internal::WireFormatLite::
  1551. InternalWriteMessageToArray(
  1552. 6, this->parkspace_info_ex(static_cast<int>(i)), deterministic, target);
  1553. }
  1554. // optional .message.Car_type car_type = 7;
  1555. if (cached_has_bits & 0x00000020u) {
  1556. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1557. 7, this->car_type(), target);
  1558. }
  1559. if (_internal_metadata_.have_unknown_fields()) {
  1560. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1561. _internal_metadata_.unknown_fields(), target);
  1562. }
  1563. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_request_msg)
  1564. return target;
  1565. }
  1566. size_t Dispatch_request_msg::RequiredFieldsByteSizeFallback() const {
  1567. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_request_msg)
  1568. size_t total_size = 0;
  1569. if (has_command_key()) {
  1570. // required string command_key = 2;
  1571. total_size += 1 +
  1572. ::google::protobuf::internal::WireFormatLite::StringSize(
  1573. this->command_key());
  1574. }
  1575. if (has_base_info()) {
  1576. // required .message.Base_info base_info = 1;
  1577. total_size += 1 +
  1578. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1579. *base_info_);
  1580. }
  1581. return total_size;
  1582. }
  1583. size_t Dispatch_request_msg::ByteSizeLong() const {
  1584. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_request_msg)
  1585. size_t total_size = 0;
  1586. if (_internal_metadata_.have_unknown_fields()) {
  1587. total_size +=
  1588. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1589. _internal_metadata_.unknown_fields());
  1590. }
  1591. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  1592. // required string command_key = 2;
  1593. total_size += 1 +
  1594. ::google::protobuf::internal::WireFormatLite::StringSize(
  1595. this->command_key());
  1596. // required .message.Base_info base_info = 1;
  1597. total_size += 1 +
  1598. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1599. *base_info_);
  1600. } else {
  1601. total_size += RequiredFieldsByteSizeFallback();
  1602. }
  1603. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  1604. {
  1605. unsigned int count = static_cast<unsigned int>(this->parkspace_info_ex_size());
  1606. total_size += 1UL * count;
  1607. for (unsigned int i = 0; i < count; i++) {
  1608. total_size +=
  1609. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1610. this->parkspace_info_ex(static_cast<int>(i)));
  1611. }
  1612. }
  1613. if (_has_bits_[0 / 32] & 60u) {
  1614. // optional .message.Id_struct id_struct = 4;
  1615. if (has_id_struct()) {
  1616. total_size += 1 +
  1617. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1618. *id_struct_);
  1619. }
  1620. // optional .message.Locate_information locate_information = 5;
  1621. if (has_locate_information()) {
  1622. total_size += 1 +
  1623. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1624. *locate_information_);
  1625. }
  1626. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1627. if (has_dispatch_motion_direction()) {
  1628. total_size += 1 +
  1629. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1630. }
  1631. // optional .message.Car_type car_type = 7;
  1632. if (has_car_type()) {
  1633. total_size += 1 +
  1634. ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type());
  1635. }
  1636. }
  1637. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1638. SetCachedSize(cached_size);
  1639. return total_size;
  1640. }
  1641. void Dispatch_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1642. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_request_msg)
  1643. GOOGLE_DCHECK_NE(&from, this);
  1644. const Dispatch_request_msg* source =
  1645. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_request_msg>(
  1646. &from);
  1647. if (source == NULL) {
  1648. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_request_msg)
  1649. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1650. } else {
  1651. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_request_msg)
  1652. MergeFrom(*source);
  1653. }
  1654. }
  1655. void Dispatch_request_msg::MergeFrom(const Dispatch_request_msg& from) {
  1656. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_request_msg)
  1657. GOOGLE_DCHECK_NE(&from, this);
  1658. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1659. ::google::protobuf::uint32 cached_has_bits = 0;
  1660. (void) cached_has_bits;
  1661. parkspace_info_ex_.MergeFrom(from.parkspace_info_ex_);
  1662. cached_has_bits = from._has_bits_[0];
  1663. if (cached_has_bits & 63u) {
  1664. if (cached_has_bits & 0x00000001u) {
  1665. set_has_command_key();
  1666. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1667. }
  1668. if (cached_has_bits & 0x00000002u) {
  1669. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1670. }
  1671. if (cached_has_bits & 0x00000004u) {
  1672. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1673. }
  1674. if (cached_has_bits & 0x00000008u) {
  1675. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  1676. }
  1677. if (cached_has_bits & 0x00000010u) {
  1678. dispatch_motion_direction_ = from.dispatch_motion_direction_;
  1679. }
  1680. if (cached_has_bits & 0x00000020u) {
  1681. car_type_ = from.car_type_;
  1682. }
  1683. _has_bits_[0] |= cached_has_bits;
  1684. }
  1685. }
  1686. void Dispatch_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1687. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_request_msg)
  1688. if (&from == this) return;
  1689. Clear();
  1690. MergeFrom(from);
  1691. }
  1692. void Dispatch_request_msg::CopyFrom(const Dispatch_request_msg& from) {
  1693. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_request_msg)
  1694. if (&from == this) return;
  1695. Clear();
  1696. MergeFrom(from);
  1697. }
  1698. bool Dispatch_request_msg::IsInitialized() const {
  1699. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1700. if (has_base_info()) {
  1701. if (!this->base_info_->IsInitialized()) return false;
  1702. }
  1703. return true;
  1704. }
  1705. void Dispatch_request_msg::Swap(Dispatch_request_msg* other) {
  1706. if (other == this) return;
  1707. InternalSwap(other);
  1708. }
  1709. void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
  1710. using std::swap;
  1711. CastToBase(&parkspace_info_ex_)->InternalSwap(CastToBase(&other->parkspace_info_ex_));
  1712. command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1713. GetArenaNoVirtual());
  1714. swap(base_info_, other->base_info_);
  1715. swap(id_struct_, other->id_struct_);
  1716. swap(locate_information_, other->locate_information_);
  1717. swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
  1718. swap(car_type_, other->car_type_);
  1719. swap(_has_bits_[0], other->_has_bits_[0]);
  1720. _internal_metadata_.Swap(&other->_internal_metadata_);
  1721. }
  1722. ::google::protobuf::Metadata Dispatch_request_msg::GetMetadata() const {
  1723. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1724. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1725. }
  1726. // ===================================================================
  1727. void Dispatch_response_msg::InitAsDefaultInstance() {
  1728. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1729. ::message::Base_info::internal_default_instance());
  1730. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  1731. ::message::Id_struct::internal_default_instance());
  1732. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  1733. ::message::Locate_information::internal_default_instance());
  1734. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1735. ::message::Error_manager::internal_default_instance());
  1736. }
  1737. void Dispatch_response_msg::clear_base_info() {
  1738. if (base_info_ != NULL) base_info_->Clear();
  1739. clear_has_base_info();
  1740. }
  1741. void Dispatch_response_msg::clear_id_struct() {
  1742. if (id_struct_ != NULL) id_struct_->Clear();
  1743. clear_has_id_struct();
  1744. }
  1745. void Dispatch_response_msg::clear_locate_information() {
  1746. if (locate_information_ != NULL) locate_information_->Clear();
  1747. clear_has_locate_information();
  1748. }
  1749. void Dispatch_response_msg::clear_parkspace_info_ex() {
  1750. parkspace_info_ex_.Clear();
  1751. }
  1752. void Dispatch_response_msg::clear_error_manager() {
  1753. if (error_manager_ != NULL) error_manager_->Clear();
  1754. clear_has_error_manager();
  1755. }
  1756. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1757. const int Dispatch_response_msg::kBaseInfoFieldNumber;
  1758. const int Dispatch_response_msg::kCommandKeyFieldNumber;
  1759. const int Dispatch_response_msg::kDispatchMotionDirectionFieldNumber;
  1760. const int Dispatch_response_msg::kIdStructFieldNumber;
  1761. const int Dispatch_response_msg::kLocateInformationFieldNumber;
  1762. const int Dispatch_response_msg::kParkspaceInfoExFieldNumber;
  1763. const int Dispatch_response_msg::kCarTypeFieldNumber;
  1764. const int Dispatch_response_msg::kErrorManagerFieldNumber;
  1765. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1766. Dispatch_response_msg::Dispatch_response_msg()
  1767. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1768. ::google::protobuf::internal::InitSCC(
  1769. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_response_msg.base);
  1770. SharedCtor();
  1771. // @@protoc_insertion_point(constructor:message.Dispatch_response_msg)
  1772. }
  1773. Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
  1774. : ::google::protobuf::Message(),
  1775. _internal_metadata_(NULL),
  1776. _has_bits_(from._has_bits_),
  1777. parkspace_info_ex_(from.parkspace_info_ex_) {
  1778. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1779. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1780. if (from.has_command_key()) {
  1781. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1782. }
  1783. if (from.has_base_info()) {
  1784. base_info_ = new ::message::Base_info(*from.base_info_);
  1785. } else {
  1786. base_info_ = NULL;
  1787. }
  1788. if (from.has_id_struct()) {
  1789. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  1790. } else {
  1791. id_struct_ = NULL;
  1792. }
  1793. if (from.has_locate_information()) {
  1794. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  1795. } else {
  1796. locate_information_ = NULL;
  1797. }
  1798. if (from.has_error_manager()) {
  1799. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1800. } else {
  1801. error_manager_ = NULL;
  1802. }
  1803. ::memcpy(&dispatch_motion_direction_, &from.dispatch_motion_direction_,
  1804. static_cast<size_t>(reinterpret_cast<char*>(&car_type_) -
  1805. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(car_type_));
  1806. // @@protoc_insertion_point(copy_constructor:message.Dispatch_response_msg)
  1807. }
  1808. void Dispatch_response_msg::SharedCtor() {
  1809. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1810. ::memset(&base_info_, 0, static_cast<size_t>(
  1811. reinterpret_cast<char*>(&car_type_) -
  1812. reinterpret_cast<char*>(&base_info_)) + sizeof(car_type_));
  1813. }
  1814. Dispatch_response_msg::~Dispatch_response_msg() {
  1815. // @@protoc_insertion_point(destructor:message.Dispatch_response_msg)
  1816. SharedDtor();
  1817. }
  1818. void Dispatch_response_msg::SharedDtor() {
  1819. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1820. if (this != internal_default_instance()) delete base_info_;
  1821. if (this != internal_default_instance()) delete id_struct_;
  1822. if (this != internal_default_instance()) delete locate_information_;
  1823. if (this != internal_default_instance()) delete error_manager_;
  1824. }
  1825. void Dispatch_response_msg::SetCachedSize(int size) const {
  1826. _cached_size_.Set(size);
  1827. }
  1828. const ::google::protobuf::Descriptor* Dispatch_response_msg::descriptor() {
  1829. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1830. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1831. }
  1832. const Dispatch_response_msg& Dispatch_response_msg::default_instance() {
  1833. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_response_msg.base);
  1834. return *internal_default_instance();
  1835. }
  1836. void Dispatch_response_msg::Clear() {
  1837. // @@protoc_insertion_point(message_clear_start:message.Dispatch_response_msg)
  1838. ::google::protobuf::uint32 cached_has_bits = 0;
  1839. // Prevent compiler warnings about cached_has_bits being unused
  1840. (void) cached_has_bits;
  1841. parkspace_info_ex_.Clear();
  1842. cached_has_bits = _has_bits_[0];
  1843. if (cached_has_bits & 31u) {
  1844. if (cached_has_bits & 0x00000001u) {
  1845. command_key_.ClearNonDefaultToEmptyNoArena();
  1846. }
  1847. if (cached_has_bits & 0x00000002u) {
  1848. GOOGLE_DCHECK(base_info_ != NULL);
  1849. base_info_->Clear();
  1850. }
  1851. if (cached_has_bits & 0x00000004u) {
  1852. GOOGLE_DCHECK(id_struct_ != NULL);
  1853. id_struct_->Clear();
  1854. }
  1855. if (cached_has_bits & 0x00000008u) {
  1856. GOOGLE_DCHECK(locate_information_ != NULL);
  1857. locate_information_->Clear();
  1858. }
  1859. if (cached_has_bits & 0x00000010u) {
  1860. GOOGLE_DCHECK(error_manager_ != NULL);
  1861. error_manager_->Clear();
  1862. }
  1863. }
  1864. if (cached_has_bits & 96u) {
  1865. ::memset(&dispatch_motion_direction_, 0, static_cast<size_t>(
  1866. reinterpret_cast<char*>(&car_type_) -
  1867. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(car_type_));
  1868. }
  1869. _has_bits_.Clear();
  1870. _internal_metadata_.Clear();
  1871. }
  1872. bool Dispatch_response_msg::MergePartialFromCodedStream(
  1873. ::google::protobuf::io::CodedInputStream* input) {
  1874. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1875. ::google::protobuf::uint32 tag;
  1876. // @@protoc_insertion_point(parse_start:message.Dispatch_response_msg)
  1877. for (;;) {
  1878. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1879. tag = p.first;
  1880. if (!p.second) goto handle_unusual;
  1881. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1882. // required .message.Base_info base_info = 1;
  1883. case 1: {
  1884. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1885. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1886. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1887. input, mutable_base_info()));
  1888. } else {
  1889. goto handle_unusual;
  1890. }
  1891. break;
  1892. }
  1893. // required string command_key = 2;
  1894. case 2: {
  1895. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1896. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1897. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1898. input, this->mutable_command_key()));
  1899. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1900. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1901. ::google::protobuf::internal::WireFormat::PARSE,
  1902. "message.Dispatch_response_msg.command_key");
  1903. } else {
  1904. goto handle_unusual;
  1905. }
  1906. break;
  1907. }
  1908. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1909. case 3: {
  1910. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1911. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1912. int value;
  1913. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1914. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1915. input, &value)));
  1916. if (::message::Dispatch_motion_direction_IsValid(value)) {
  1917. set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
  1918. } else {
  1919. mutable_unknown_fields()->AddVarint(
  1920. 3, static_cast< ::google::protobuf::uint64>(value));
  1921. }
  1922. } else {
  1923. goto handle_unusual;
  1924. }
  1925. break;
  1926. }
  1927. // optional .message.Id_struct id_struct = 4;
  1928. case 4: {
  1929. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1930. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1931. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1932. input, mutable_id_struct()));
  1933. } else {
  1934. goto handle_unusual;
  1935. }
  1936. break;
  1937. }
  1938. // optional .message.Locate_information locate_information = 5;
  1939. case 5: {
  1940. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1941. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1942. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1943. input, mutable_locate_information()));
  1944. } else {
  1945. goto handle_unusual;
  1946. }
  1947. break;
  1948. }
  1949. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  1950. case 6: {
  1951. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1952. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1953. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1954. input, add_parkspace_info_ex()));
  1955. } else {
  1956. goto handle_unusual;
  1957. }
  1958. break;
  1959. }
  1960. // optional .message.Car_type car_type = 7;
  1961. case 7: {
  1962. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1963. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1964. int value;
  1965. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1966. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1967. input, &value)));
  1968. if (::message::Car_type_IsValid(value)) {
  1969. set_car_type(static_cast< ::message::Car_type >(value));
  1970. } else {
  1971. mutable_unknown_fields()->AddVarint(
  1972. 7, static_cast< ::google::protobuf::uint64>(value));
  1973. }
  1974. } else {
  1975. goto handle_unusual;
  1976. }
  1977. break;
  1978. }
  1979. // optional .message.Error_manager error_manager = 8;
  1980. case 8: {
  1981. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1982. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  1983. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1984. input, mutable_error_manager()));
  1985. } else {
  1986. goto handle_unusual;
  1987. }
  1988. break;
  1989. }
  1990. default: {
  1991. handle_unusual:
  1992. if (tag == 0) {
  1993. goto success;
  1994. }
  1995. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1996. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1997. break;
  1998. }
  1999. }
  2000. }
  2001. success:
  2002. // @@protoc_insertion_point(parse_success:message.Dispatch_response_msg)
  2003. return true;
  2004. failure:
  2005. // @@protoc_insertion_point(parse_failure:message.Dispatch_response_msg)
  2006. return false;
  2007. #undef DO_
  2008. }
  2009. void Dispatch_response_msg::SerializeWithCachedSizes(
  2010. ::google::protobuf::io::CodedOutputStream* output) const {
  2011. // @@protoc_insertion_point(serialize_start:message.Dispatch_response_msg)
  2012. ::google::protobuf::uint32 cached_has_bits = 0;
  2013. (void) cached_has_bits;
  2014. cached_has_bits = _has_bits_[0];
  2015. // required .message.Base_info base_info = 1;
  2016. if (cached_has_bits & 0x00000002u) {
  2017. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2018. 1, this->_internal_base_info(), output);
  2019. }
  2020. // required string command_key = 2;
  2021. if (cached_has_bits & 0x00000001u) {
  2022. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2023. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2024. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2025. "message.Dispatch_response_msg.command_key");
  2026. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2027. 2, this->command_key(), output);
  2028. }
  2029. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2030. if (cached_has_bits & 0x00000020u) {
  2031. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2032. 3, this->dispatch_motion_direction(), output);
  2033. }
  2034. // optional .message.Id_struct id_struct = 4;
  2035. if (cached_has_bits & 0x00000004u) {
  2036. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2037. 4, this->_internal_id_struct(), output);
  2038. }
  2039. // optional .message.Locate_information locate_information = 5;
  2040. if (cached_has_bits & 0x00000008u) {
  2041. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2042. 5, this->_internal_locate_information(), output);
  2043. }
  2044. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  2045. for (unsigned int i = 0,
  2046. n = static_cast<unsigned int>(this->parkspace_info_ex_size()); i < n; i++) {
  2047. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2048. 6,
  2049. this->parkspace_info_ex(static_cast<int>(i)),
  2050. output);
  2051. }
  2052. // optional .message.Car_type car_type = 7;
  2053. if (cached_has_bits & 0x00000040u) {
  2054. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2055. 7, this->car_type(), output);
  2056. }
  2057. // optional .message.Error_manager error_manager = 8;
  2058. if (cached_has_bits & 0x00000010u) {
  2059. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2060. 8, this->_internal_error_manager(), output);
  2061. }
  2062. if (_internal_metadata_.have_unknown_fields()) {
  2063. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2064. _internal_metadata_.unknown_fields(), output);
  2065. }
  2066. // @@protoc_insertion_point(serialize_end:message.Dispatch_response_msg)
  2067. }
  2068. ::google::protobuf::uint8* Dispatch_response_msg::InternalSerializeWithCachedSizesToArray(
  2069. bool deterministic, ::google::protobuf::uint8* target) const {
  2070. (void)deterministic; // Unused
  2071. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_response_msg)
  2072. ::google::protobuf::uint32 cached_has_bits = 0;
  2073. (void) cached_has_bits;
  2074. cached_has_bits = _has_bits_[0];
  2075. // required .message.Base_info base_info = 1;
  2076. if (cached_has_bits & 0x00000002u) {
  2077. target = ::google::protobuf::internal::WireFormatLite::
  2078. InternalWriteMessageToArray(
  2079. 1, this->_internal_base_info(), deterministic, target);
  2080. }
  2081. // required string command_key = 2;
  2082. if (cached_has_bits & 0x00000001u) {
  2083. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2084. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2085. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2086. "message.Dispatch_response_msg.command_key");
  2087. target =
  2088. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2089. 2, this->command_key(), target);
  2090. }
  2091. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2092. if (cached_has_bits & 0x00000020u) {
  2093. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2094. 3, this->dispatch_motion_direction(), target);
  2095. }
  2096. // optional .message.Id_struct id_struct = 4;
  2097. if (cached_has_bits & 0x00000004u) {
  2098. target = ::google::protobuf::internal::WireFormatLite::
  2099. InternalWriteMessageToArray(
  2100. 4, this->_internal_id_struct(), deterministic, target);
  2101. }
  2102. // optional .message.Locate_information locate_information = 5;
  2103. if (cached_has_bits & 0x00000008u) {
  2104. target = ::google::protobuf::internal::WireFormatLite::
  2105. InternalWriteMessageToArray(
  2106. 5, this->_internal_locate_information(), deterministic, target);
  2107. }
  2108. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  2109. for (unsigned int i = 0,
  2110. n = static_cast<unsigned int>(this->parkspace_info_ex_size()); i < n; i++) {
  2111. target = ::google::protobuf::internal::WireFormatLite::
  2112. InternalWriteMessageToArray(
  2113. 6, this->parkspace_info_ex(static_cast<int>(i)), deterministic, target);
  2114. }
  2115. // optional .message.Car_type car_type = 7;
  2116. if (cached_has_bits & 0x00000040u) {
  2117. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2118. 7, this->car_type(), target);
  2119. }
  2120. // optional .message.Error_manager error_manager = 8;
  2121. if (cached_has_bits & 0x00000010u) {
  2122. target = ::google::protobuf::internal::WireFormatLite::
  2123. InternalWriteMessageToArray(
  2124. 8, this->_internal_error_manager(), deterministic, target);
  2125. }
  2126. if (_internal_metadata_.have_unknown_fields()) {
  2127. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2128. _internal_metadata_.unknown_fields(), target);
  2129. }
  2130. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_response_msg)
  2131. return target;
  2132. }
  2133. size_t Dispatch_response_msg::RequiredFieldsByteSizeFallback() const {
  2134. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_response_msg)
  2135. size_t total_size = 0;
  2136. if (has_command_key()) {
  2137. // required string command_key = 2;
  2138. total_size += 1 +
  2139. ::google::protobuf::internal::WireFormatLite::StringSize(
  2140. this->command_key());
  2141. }
  2142. if (has_base_info()) {
  2143. // required .message.Base_info base_info = 1;
  2144. total_size += 1 +
  2145. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2146. *base_info_);
  2147. }
  2148. return total_size;
  2149. }
  2150. size_t Dispatch_response_msg::ByteSizeLong() const {
  2151. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_response_msg)
  2152. size_t total_size = 0;
  2153. if (_internal_metadata_.have_unknown_fields()) {
  2154. total_size +=
  2155. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2156. _internal_metadata_.unknown_fields());
  2157. }
  2158. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  2159. // required string command_key = 2;
  2160. total_size += 1 +
  2161. ::google::protobuf::internal::WireFormatLite::StringSize(
  2162. this->command_key());
  2163. // required .message.Base_info base_info = 1;
  2164. total_size += 1 +
  2165. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2166. *base_info_);
  2167. } else {
  2168. total_size += RequiredFieldsByteSizeFallback();
  2169. }
  2170. // repeated .message.Parkspace_info parkspace_info_ex = 6;
  2171. {
  2172. unsigned int count = static_cast<unsigned int>(this->parkspace_info_ex_size());
  2173. total_size += 1UL * count;
  2174. for (unsigned int i = 0; i < count; i++) {
  2175. total_size +=
  2176. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2177. this->parkspace_info_ex(static_cast<int>(i)));
  2178. }
  2179. }
  2180. if (_has_bits_[0 / 32] & 124u) {
  2181. // optional .message.Id_struct id_struct = 4;
  2182. if (has_id_struct()) {
  2183. total_size += 1 +
  2184. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2185. *id_struct_);
  2186. }
  2187. // optional .message.Locate_information locate_information = 5;
  2188. if (has_locate_information()) {
  2189. total_size += 1 +
  2190. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2191. *locate_information_);
  2192. }
  2193. // optional .message.Error_manager error_manager = 8;
  2194. if (has_error_manager()) {
  2195. total_size += 1 +
  2196. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2197. *error_manager_);
  2198. }
  2199. // optional .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2200. if (has_dispatch_motion_direction()) {
  2201. total_size += 1 +
  2202. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  2203. }
  2204. // optional .message.Car_type car_type = 7;
  2205. if (has_car_type()) {
  2206. total_size += 1 +
  2207. ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type());
  2208. }
  2209. }
  2210. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2211. SetCachedSize(cached_size);
  2212. return total_size;
  2213. }
  2214. void Dispatch_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2215. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_response_msg)
  2216. GOOGLE_DCHECK_NE(&from, this);
  2217. const Dispatch_response_msg* source =
  2218. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_response_msg>(
  2219. &from);
  2220. if (source == NULL) {
  2221. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_response_msg)
  2222. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2223. } else {
  2224. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_response_msg)
  2225. MergeFrom(*source);
  2226. }
  2227. }
  2228. void Dispatch_response_msg::MergeFrom(const Dispatch_response_msg& from) {
  2229. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_response_msg)
  2230. GOOGLE_DCHECK_NE(&from, this);
  2231. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2232. ::google::protobuf::uint32 cached_has_bits = 0;
  2233. (void) cached_has_bits;
  2234. parkspace_info_ex_.MergeFrom(from.parkspace_info_ex_);
  2235. cached_has_bits = from._has_bits_[0];
  2236. if (cached_has_bits & 127u) {
  2237. if (cached_has_bits & 0x00000001u) {
  2238. set_has_command_key();
  2239. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2240. }
  2241. if (cached_has_bits & 0x00000002u) {
  2242. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2243. }
  2244. if (cached_has_bits & 0x00000004u) {
  2245. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  2246. }
  2247. if (cached_has_bits & 0x00000008u) {
  2248. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  2249. }
  2250. if (cached_has_bits & 0x00000010u) {
  2251. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  2252. }
  2253. if (cached_has_bits & 0x00000020u) {
  2254. dispatch_motion_direction_ = from.dispatch_motion_direction_;
  2255. }
  2256. if (cached_has_bits & 0x00000040u) {
  2257. car_type_ = from.car_type_;
  2258. }
  2259. _has_bits_[0] |= cached_has_bits;
  2260. }
  2261. }
  2262. void Dispatch_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2263. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_response_msg)
  2264. if (&from == this) return;
  2265. Clear();
  2266. MergeFrom(from);
  2267. }
  2268. void Dispatch_response_msg::CopyFrom(const Dispatch_response_msg& from) {
  2269. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_response_msg)
  2270. if (&from == this) return;
  2271. Clear();
  2272. MergeFrom(from);
  2273. }
  2274. bool Dispatch_response_msg::IsInitialized() const {
  2275. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  2276. if (has_base_info()) {
  2277. if (!this->base_info_->IsInitialized()) return false;
  2278. }
  2279. if (has_error_manager()) {
  2280. if (!this->error_manager_->IsInitialized()) return false;
  2281. }
  2282. return true;
  2283. }
  2284. void Dispatch_response_msg::Swap(Dispatch_response_msg* other) {
  2285. if (other == this) return;
  2286. InternalSwap(other);
  2287. }
  2288. void Dispatch_response_msg::InternalSwap(Dispatch_response_msg* other) {
  2289. using std::swap;
  2290. CastToBase(&parkspace_info_ex_)->InternalSwap(CastToBase(&other->parkspace_info_ex_));
  2291. command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2292. GetArenaNoVirtual());
  2293. swap(base_info_, other->base_info_);
  2294. swap(id_struct_, other->id_struct_);
  2295. swap(locate_information_, other->locate_information_);
  2296. swap(error_manager_, other->error_manager_);
  2297. swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
  2298. swap(car_type_, other->car_type_);
  2299. swap(_has_bits_[0], other->_has_bits_[0]);
  2300. _internal_metadata_.Swap(&other->_internal_metadata_);
  2301. }
  2302. ::google::protobuf::Metadata Dispatch_response_msg::GetMetadata() const {
  2303. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2304. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2305. }
  2306. // ===================================================================
  2307. void Catcher_data::InitAsDefaultInstance() {
  2308. }
  2309. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2310. const int Catcher_data::kDispatchDeviceTypeFieldNumber;
  2311. const int Catcher_data::kDispatchDeviceStatusFieldNumber;
  2312. const int Catcher_data::kDeviceIdFieldNumber;
  2313. const int Catcher_data::kActualDeviceStatusFieldNumber;
  2314. const int Catcher_data::kActualLoadStatusFieldNumber;
  2315. const int Catcher_data::kActualCoordinatesIdFieldNumber;
  2316. const int Catcher_data::kActualXFieldNumber;
  2317. const int Catcher_data::kActualYFieldNumber;
  2318. const int Catcher_data::kActualBFieldNumber;
  2319. const int Catcher_data::kActualZFieldNumber;
  2320. const int Catcher_data::kActualD1FieldNumber;
  2321. const int Catcher_data::kActualD2FieldNumber;
  2322. const int Catcher_data::kActualClampMotion1FieldNumber;
  2323. const int Catcher_data::kActualClampMotion2FieldNumber;
  2324. const int Catcher_data::kActualClampMotion3FieldNumber;
  2325. const int Catcher_data::kActualClampMotion4FieldNumber;
  2326. const int Catcher_data::kActualErrorCodeFieldNumber;
  2327. const int Catcher_data::kActualWarningCodeFieldNumber;
  2328. const int Catcher_data::kActualErrorDescriptionFieldNumber;
  2329. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2330. Catcher_data::Catcher_data()
  2331. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2332. ::google::protobuf::internal::InitSCC(
  2333. &protobuf_dispatch_5fmessage_2eproto::scc_info_Catcher_data.base);
  2334. SharedCtor();
  2335. // @@protoc_insertion_point(constructor:message.Catcher_data)
  2336. }
  2337. Catcher_data::Catcher_data(const Catcher_data& from)
  2338. : ::google::protobuf::Message(),
  2339. _internal_metadata_(NULL),
  2340. _has_bits_(from._has_bits_) {
  2341. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2342. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2343. if (from.has_actual_error_code()) {
  2344. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  2345. }
  2346. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2347. if (from.has_actual_warning_code()) {
  2348. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  2349. }
  2350. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2351. if (from.has_actual_error_description()) {
  2352. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  2353. }
  2354. ::memcpy(&dispatch_device_status_, &from.dispatch_device_status_,
  2355. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  2356. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(dispatch_device_type_));
  2357. // @@protoc_insertion_point(copy_constructor:message.Catcher_data)
  2358. }
  2359. void Catcher_data::SharedCtor() {
  2360. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2361. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2362. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2363. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  2364. reinterpret_cast<char*>(&actual_clamp_motion4_) -
  2365. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_clamp_motion4_));
  2366. dispatch_device_type_ = 101;
  2367. }
  2368. Catcher_data::~Catcher_data() {
  2369. // @@protoc_insertion_point(destructor:message.Catcher_data)
  2370. SharedDtor();
  2371. }
  2372. void Catcher_data::SharedDtor() {
  2373. actual_error_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2374. actual_warning_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2375. actual_error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2376. }
  2377. void Catcher_data::SetCachedSize(int size) const {
  2378. _cached_size_.Set(size);
  2379. }
  2380. const ::google::protobuf::Descriptor* Catcher_data::descriptor() {
  2381. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2382. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2383. }
  2384. const Catcher_data& Catcher_data::default_instance() {
  2385. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Catcher_data.base);
  2386. return *internal_default_instance();
  2387. }
  2388. void Catcher_data::Clear() {
  2389. // @@protoc_insertion_point(message_clear_start:message.Catcher_data)
  2390. ::google::protobuf::uint32 cached_has_bits = 0;
  2391. // Prevent compiler warnings about cached_has_bits being unused
  2392. (void) cached_has_bits;
  2393. cached_has_bits = _has_bits_[0];
  2394. if (cached_has_bits & 7u) {
  2395. if (cached_has_bits & 0x00000001u) {
  2396. actual_error_code_.ClearNonDefaultToEmptyNoArena();
  2397. }
  2398. if (cached_has_bits & 0x00000002u) {
  2399. actual_warning_code_.ClearNonDefaultToEmptyNoArena();
  2400. }
  2401. if (cached_has_bits & 0x00000004u) {
  2402. actual_error_description_.ClearNonDefaultToEmptyNoArena();
  2403. }
  2404. }
  2405. if (cached_has_bits & 248u) {
  2406. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  2407. reinterpret_cast<char*>(&actual_coordinates_id_) -
  2408. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_coordinates_id_));
  2409. }
  2410. if (cached_has_bits & 65280u) {
  2411. ::memset(&actual_x_, 0, static_cast<size_t>(
  2412. reinterpret_cast<char*>(&actual_clamp_motion2_) -
  2413. reinterpret_cast<char*>(&actual_x_)) + sizeof(actual_clamp_motion2_));
  2414. }
  2415. if (cached_has_bits & 458752u) {
  2416. ::memset(&actual_clamp_motion3_, 0, static_cast<size_t>(
  2417. reinterpret_cast<char*>(&actual_clamp_motion4_) -
  2418. reinterpret_cast<char*>(&actual_clamp_motion3_)) + sizeof(actual_clamp_motion4_));
  2419. dispatch_device_type_ = 101;
  2420. }
  2421. _has_bits_.Clear();
  2422. _internal_metadata_.Clear();
  2423. }
  2424. bool Catcher_data::MergePartialFromCodedStream(
  2425. ::google::protobuf::io::CodedInputStream* input) {
  2426. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2427. ::google::protobuf::uint32 tag;
  2428. // @@protoc_insertion_point(parse_start:message.Catcher_data)
  2429. for (;;) {
  2430. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  2431. tag = p.first;
  2432. if (!p.second) goto handle_unusual;
  2433. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2434. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2435. case 1: {
  2436. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2437. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2438. int value;
  2439. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2440. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2441. input, &value)));
  2442. if (::message::Dispatch_device_type_IsValid(value)) {
  2443. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  2444. } else {
  2445. mutable_unknown_fields()->AddVarint(
  2446. 1, static_cast< ::google::protobuf::uint64>(value));
  2447. }
  2448. } else {
  2449. goto handle_unusual;
  2450. }
  2451. break;
  2452. }
  2453. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2454. case 2: {
  2455. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2456. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2457. int value;
  2458. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2459. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2460. input, &value)));
  2461. if (::message::Dispatch_device_status_IsValid(value)) {
  2462. set_dispatch_device_status(static_cast< ::message::Dispatch_device_status >(value));
  2463. } else {
  2464. mutable_unknown_fields()->AddVarint(
  2465. 2, static_cast< ::google::protobuf::uint64>(value));
  2466. }
  2467. } else {
  2468. goto handle_unusual;
  2469. }
  2470. break;
  2471. }
  2472. // required int32 device_id = 3;
  2473. case 3: {
  2474. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2475. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2476. set_has_device_id();
  2477. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2478. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2479. input, &device_id_)));
  2480. } else {
  2481. goto handle_unusual;
  2482. }
  2483. break;
  2484. }
  2485. // optional .message.Hardware_device_status actual_device_status = 4;
  2486. case 4: {
  2487. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2488. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2489. int value;
  2490. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2491. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2492. input, &value)));
  2493. if (::message::Hardware_device_status_IsValid(value)) {
  2494. set_actual_device_status(static_cast< ::message::Hardware_device_status >(value));
  2495. } else {
  2496. mutable_unknown_fields()->AddVarint(
  2497. 4, static_cast< ::google::protobuf::uint64>(value));
  2498. }
  2499. } else {
  2500. goto handle_unusual;
  2501. }
  2502. break;
  2503. }
  2504. // optional .message.Load_status actual_load_status = 5;
  2505. case 5: {
  2506. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2507. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2508. int value;
  2509. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2510. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2511. input, &value)));
  2512. if (::message::Load_status_IsValid(value)) {
  2513. set_actual_load_status(static_cast< ::message::Load_status >(value));
  2514. } else {
  2515. mutable_unknown_fields()->AddVarint(
  2516. 5, static_cast< ::google::protobuf::uint64>(value));
  2517. }
  2518. } else {
  2519. goto handle_unusual;
  2520. }
  2521. break;
  2522. }
  2523. // optional int32 actual_coordinates_id = 6;
  2524. case 6: {
  2525. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2526. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2527. set_has_actual_coordinates_id();
  2528. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2529. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2530. input, &actual_coordinates_id_)));
  2531. } else {
  2532. goto handle_unusual;
  2533. }
  2534. break;
  2535. }
  2536. // optional float actual_x = 7;
  2537. case 7: {
  2538. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2539. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  2540. set_has_actual_x();
  2541. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2542. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2543. input, &actual_x_)));
  2544. } else {
  2545. goto handle_unusual;
  2546. }
  2547. break;
  2548. }
  2549. // optional float actual_y = 8;
  2550. case 8: {
  2551. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2552. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  2553. set_has_actual_y();
  2554. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2555. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2556. input, &actual_y_)));
  2557. } else {
  2558. goto handle_unusual;
  2559. }
  2560. break;
  2561. }
  2562. // optional float actual_b = 9;
  2563. case 9: {
  2564. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2565. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  2566. set_has_actual_b();
  2567. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2568. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2569. input, &actual_b_)));
  2570. } else {
  2571. goto handle_unusual;
  2572. }
  2573. break;
  2574. }
  2575. // optional float actual_z = 10;
  2576. case 10: {
  2577. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2578. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  2579. set_has_actual_z();
  2580. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2581. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2582. input, &actual_z_)));
  2583. } else {
  2584. goto handle_unusual;
  2585. }
  2586. break;
  2587. }
  2588. // optional float actual_d1 = 11;
  2589. case 11: {
  2590. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2591. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  2592. set_has_actual_d1();
  2593. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2594. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2595. input, &actual_d1_)));
  2596. } else {
  2597. goto handle_unusual;
  2598. }
  2599. break;
  2600. }
  2601. // optional float actual_d2 = 12;
  2602. case 12: {
  2603. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2604. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  2605. set_has_actual_d2();
  2606. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2607. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2608. input, &actual_d2_)));
  2609. } else {
  2610. goto handle_unusual;
  2611. }
  2612. break;
  2613. }
  2614. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2615. case 13: {
  2616. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2617. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  2618. int value;
  2619. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2620. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2621. input, &value)));
  2622. if (::message::Clamp_motion_IsValid(value)) {
  2623. set_actual_clamp_motion1(static_cast< ::message::Clamp_motion >(value));
  2624. } else {
  2625. mutable_unknown_fields()->AddVarint(
  2626. 13, static_cast< ::google::protobuf::uint64>(value));
  2627. }
  2628. } else {
  2629. goto handle_unusual;
  2630. }
  2631. break;
  2632. }
  2633. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2634. case 14: {
  2635. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2636. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  2637. int value;
  2638. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2639. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2640. input, &value)));
  2641. if (::message::Clamp_motion_IsValid(value)) {
  2642. set_actual_clamp_motion2(static_cast< ::message::Clamp_motion >(value));
  2643. } else {
  2644. mutable_unknown_fields()->AddVarint(
  2645. 14, static_cast< ::google::protobuf::uint64>(value));
  2646. }
  2647. } else {
  2648. goto handle_unusual;
  2649. }
  2650. break;
  2651. }
  2652. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2653. case 15: {
  2654. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2655. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  2656. int value;
  2657. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2658. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2659. input, &value)));
  2660. if (::message::Clamp_motion_IsValid(value)) {
  2661. set_actual_clamp_motion3(static_cast< ::message::Clamp_motion >(value));
  2662. } else {
  2663. mutable_unknown_fields()->AddVarint(
  2664. 15, static_cast< ::google::protobuf::uint64>(value));
  2665. }
  2666. } else {
  2667. goto handle_unusual;
  2668. }
  2669. break;
  2670. }
  2671. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2672. case 16: {
  2673. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2674. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  2675. int value;
  2676. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2677. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2678. input, &value)));
  2679. if (::message::Clamp_motion_IsValid(value)) {
  2680. set_actual_clamp_motion4(static_cast< ::message::Clamp_motion >(value));
  2681. } else {
  2682. mutable_unknown_fields()->AddVarint(
  2683. 16, static_cast< ::google::protobuf::uint64>(value));
  2684. }
  2685. } else {
  2686. goto handle_unusual;
  2687. }
  2688. break;
  2689. }
  2690. // optional string actual_error_code = 17;
  2691. case 17: {
  2692. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2693. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  2694. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2695. input, this->mutable_actual_error_code()));
  2696. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2697. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  2698. ::google::protobuf::internal::WireFormat::PARSE,
  2699. "message.Catcher_data.actual_error_code");
  2700. } else {
  2701. goto handle_unusual;
  2702. }
  2703. break;
  2704. }
  2705. // optional string actual_warning_code = 18;
  2706. case 18: {
  2707. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2708. static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
  2709. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2710. input, this->mutable_actual_warning_code()));
  2711. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2712. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  2713. ::google::protobuf::internal::WireFormat::PARSE,
  2714. "message.Catcher_data.actual_warning_code");
  2715. } else {
  2716. goto handle_unusual;
  2717. }
  2718. break;
  2719. }
  2720. // optional string actual_error_description = 19;
  2721. case 19: {
  2722. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2723. static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
  2724. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2725. input, this->mutable_actual_error_description()));
  2726. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2727. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  2728. ::google::protobuf::internal::WireFormat::PARSE,
  2729. "message.Catcher_data.actual_error_description");
  2730. } else {
  2731. goto handle_unusual;
  2732. }
  2733. break;
  2734. }
  2735. default: {
  2736. handle_unusual:
  2737. if (tag == 0) {
  2738. goto success;
  2739. }
  2740. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2741. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2742. break;
  2743. }
  2744. }
  2745. }
  2746. success:
  2747. // @@protoc_insertion_point(parse_success:message.Catcher_data)
  2748. return true;
  2749. failure:
  2750. // @@protoc_insertion_point(parse_failure:message.Catcher_data)
  2751. return false;
  2752. #undef DO_
  2753. }
  2754. void Catcher_data::SerializeWithCachedSizes(
  2755. ::google::protobuf::io::CodedOutputStream* output) const {
  2756. // @@protoc_insertion_point(serialize_start:message.Catcher_data)
  2757. ::google::protobuf::uint32 cached_has_bits = 0;
  2758. (void) cached_has_bits;
  2759. cached_has_bits = _has_bits_[0];
  2760. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2761. if (cached_has_bits & 0x00040000u) {
  2762. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2763. 1, this->dispatch_device_type(), output);
  2764. }
  2765. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2766. if (cached_has_bits & 0x00000008u) {
  2767. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2768. 2, this->dispatch_device_status(), output);
  2769. }
  2770. // required int32 device_id = 3;
  2771. if (cached_has_bits & 0x00000010u) {
  2772. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->device_id(), output);
  2773. }
  2774. // optional .message.Hardware_device_status actual_device_status = 4;
  2775. if (cached_has_bits & 0x00000020u) {
  2776. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2777. 4, this->actual_device_status(), output);
  2778. }
  2779. // optional .message.Load_status actual_load_status = 5;
  2780. if (cached_has_bits & 0x00000040u) {
  2781. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2782. 5, this->actual_load_status(), output);
  2783. }
  2784. // optional int32 actual_coordinates_id = 6;
  2785. if (cached_has_bits & 0x00000080u) {
  2786. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->actual_coordinates_id(), output);
  2787. }
  2788. // optional float actual_x = 7;
  2789. if (cached_has_bits & 0x00000100u) {
  2790. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->actual_x(), output);
  2791. }
  2792. // optional float actual_y = 8;
  2793. if (cached_has_bits & 0x00000200u) {
  2794. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->actual_y(), output);
  2795. }
  2796. // optional float actual_b = 9;
  2797. if (cached_has_bits & 0x00000400u) {
  2798. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->actual_b(), output);
  2799. }
  2800. // optional float actual_z = 10;
  2801. if (cached_has_bits & 0x00000800u) {
  2802. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->actual_z(), output);
  2803. }
  2804. // optional float actual_d1 = 11;
  2805. if (cached_has_bits & 0x00001000u) {
  2806. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->actual_d1(), output);
  2807. }
  2808. // optional float actual_d2 = 12;
  2809. if (cached_has_bits & 0x00002000u) {
  2810. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->actual_d2(), output);
  2811. }
  2812. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2813. if (cached_has_bits & 0x00004000u) {
  2814. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2815. 13, this->actual_clamp_motion1(), output);
  2816. }
  2817. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2818. if (cached_has_bits & 0x00008000u) {
  2819. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2820. 14, this->actual_clamp_motion2(), output);
  2821. }
  2822. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2823. if (cached_has_bits & 0x00010000u) {
  2824. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2825. 15, this->actual_clamp_motion3(), output);
  2826. }
  2827. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2828. if (cached_has_bits & 0x00020000u) {
  2829. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2830. 16, this->actual_clamp_motion4(), output);
  2831. }
  2832. // optional string actual_error_code = 17;
  2833. if (cached_has_bits & 0x00000001u) {
  2834. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2835. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  2836. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2837. "message.Catcher_data.actual_error_code");
  2838. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2839. 17, this->actual_error_code(), output);
  2840. }
  2841. // optional string actual_warning_code = 18;
  2842. if (cached_has_bits & 0x00000002u) {
  2843. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2844. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  2845. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2846. "message.Catcher_data.actual_warning_code");
  2847. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2848. 18, this->actual_warning_code(), output);
  2849. }
  2850. // optional string actual_error_description = 19;
  2851. if (cached_has_bits & 0x00000004u) {
  2852. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2853. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  2854. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2855. "message.Catcher_data.actual_error_description");
  2856. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2857. 19, this->actual_error_description(), output);
  2858. }
  2859. if (_internal_metadata_.have_unknown_fields()) {
  2860. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2861. _internal_metadata_.unknown_fields(), output);
  2862. }
  2863. // @@protoc_insertion_point(serialize_end:message.Catcher_data)
  2864. }
  2865. ::google::protobuf::uint8* Catcher_data::InternalSerializeWithCachedSizesToArray(
  2866. bool deterministic, ::google::protobuf::uint8* target) const {
  2867. (void)deterministic; // Unused
  2868. // @@protoc_insertion_point(serialize_to_array_start:message.Catcher_data)
  2869. ::google::protobuf::uint32 cached_has_bits = 0;
  2870. (void) cached_has_bits;
  2871. cached_has_bits = _has_bits_[0];
  2872. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2873. if (cached_has_bits & 0x00040000u) {
  2874. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2875. 1, this->dispatch_device_type(), target);
  2876. }
  2877. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2878. if (cached_has_bits & 0x00000008u) {
  2879. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2880. 2, this->dispatch_device_status(), target);
  2881. }
  2882. // required int32 device_id = 3;
  2883. if (cached_has_bits & 0x00000010u) {
  2884. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->device_id(), target);
  2885. }
  2886. // optional .message.Hardware_device_status actual_device_status = 4;
  2887. if (cached_has_bits & 0x00000020u) {
  2888. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2889. 4, this->actual_device_status(), target);
  2890. }
  2891. // optional .message.Load_status actual_load_status = 5;
  2892. if (cached_has_bits & 0x00000040u) {
  2893. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2894. 5, this->actual_load_status(), target);
  2895. }
  2896. // optional int32 actual_coordinates_id = 6;
  2897. if (cached_has_bits & 0x00000080u) {
  2898. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->actual_coordinates_id(), target);
  2899. }
  2900. // optional float actual_x = 7;
  2901. if (cached_has_bits & 0x00000100u) {
  2902. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->actual_x(), target);
  2903. }
  2904. // optional float actual_y = 8;
  2905. if (cached_has_bits & 0x00000200u) {
  2906. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->actual_y(), target);
  2907. }
  2908. // optional float actual_b = 9;
  2909. if (cached_has_bits & 0x00000400u) {
  2910. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->actual_b(), target);
  2911. }
  2912. // optional float actual_z = 10;
  2913. if (cached_has_bits & 0x00000800u) {
  2914. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->actual_z(), target);
  2915. }
  2916. // optional float actual_d1 = 11;
  2917. if (cached_has_bits & 0x00001000u) {
  2918. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->actual_d1(), target);
  2919. }
  2920. // optional float actual_d2 = 12;
  2921. if (cached_has_bits & 0x00002000u) {
  2922. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->actual_d2(), target);
  2923. }
  2924. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  2925. if (cached_has_bits & 0x00004000u) {
  2926. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2927. 13, this->actual_clamp_motion1(), target);
  2928. }
  2929. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  2930. if (cached_has_bits & 0x00008000u) {
  2931. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2932. 14, this->actual_clamp_motion2(), target);
  2933. }
  2934. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  2935. if (cached_has_bits & 0x00010000u) {
  2936. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2937. 15, this->actual_clamp_motion3(), target);
  2938. }
  2939. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  2940. if (cached_has_bits & 0x00020000u) {
  2941. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2942. 16, this->actual_clamp_motion4(), target);
  2943. }
  2944. // optional string actual_error_code = 17;
  2945. if (cached_has_bits & 0x00000001u) {
  2946. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2947. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  2948. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2949. "message.Catcher_data.actual_error_code");
  2950. target =
  2951. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2952. 17, this->actual_error_code(), target);
  2953. }
  2954. // optional string actual_warning_code = 18;
  2955. if (cached_has_bits & 0x00000002u) {
  2956. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2957. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  2958. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2959. "message.Catcher_data.actual_warning_code");
  2960. target =
  2961. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2962. 18, this->actual_warning_code(), target);
  2963. }
  2964. // optional string actual_error_description = 19;
  2965. if (cached_has_bits & 0x00000004u) {
  2966. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2967. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  2968. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2969. "message.Catcher_data.actual_error_description");
  2970. target =
  2971. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2972. 19, this->actual_error_description(), target);
  2973. }
  2974. if (_internal_metadata_.have_unknown_fields()) {
  2975. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2976. _internal_metadata_.unknown_fields(), target);
  2977. }
  2978. // @@protoc_insertion_point(serialize_to_array_end:message.Catcher_data)
  2979. return target;
  2980. }
  2981. size_t Catcher_data::RequiredFieldsByteSizeFallback() const {
  2982. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Catcher_data)
  2983. size_t total_size = 0;
  2984. if (has_dispatch_device_status()) {
  2985. // required .message.Dispatch_device_status dispatch_device_status = 2;
  2986. total_size += 1 +
  2987. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  2988. }
  2989. if (has_device_id()) {
  2990. // required int32 device_id = 3;
  2991. total_size += 1 +
  2992. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2993. this->device_id());
  2994. }
  2995. if (has_dispatch_device_type()) {
  2996. // required .message.Dispatch_device_type dispatch_device_type = 1;
  2997. total_size += 1 +
  2998. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  2999. }
  3000. return total_size;
  3001. }
  3002. size_t Catcher_data::ByteSizeLong() const {
  3003. // @@protoc_insertion_point(message_byte_size_start:message.Catcher_data)
  3004. size_t total_size = 0;
  3005. if (_internal_metadata_.have_unknown_fields()) {
  3006. total_size +=
  3007. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3008. _internal_metadata_.unknown_fields());
  3009. }
  3010. if (((_has_bits_[0] & 0x00040018) ^ 0x00040018) == 0) { // All required fields are present.
  3011. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3012. total_size += 1 +
  3013. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  3014. // required int32 device_id = 3;
  3015. total_size += 1 +
  3016. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3017. this->device_id());
  3018. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3019. total_size += 1 +
  3020. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  3021. } else {
  3022. total_size += RequiredFieldsByteSizeFallback();
  3023. }
  3024. if (_has_bits_[0 / 32] & 7u) {
  3025. // optional string actual_error_code = 17;
  3026. if (has_actual_error_code()) {
  3027. total_size += 2 +
  3028. ::google::protobuf::internal::WireFormatLite::StringSize(
  3029. this->actual_error_code());
  3030. }
  3031. // optional string actual_warning_code = 18;
  3032. if (has_actual_warning_code()) {
  3033. total_size += 2 +
  3034. ::google::protobuf::internal::WireFormatLite::StringSize(
  3035. this->actual_warning_code());
  3036. }
  3037. // optional string actual_error_description = 19;
  3038. if (has_actual_error_description()) {
  3039. total_size += 2 +
  3040. ::google::protobuf::internal::WireFormatLite::StringSize(
  3041. this->actual_error_description());
  3042. }
  3043. }
  3044. if (_has_bits_[0 / 32] & 224u) {
  3045. // optional .message.Hardware_device_status actual_device_status = 4;
  3046. if (has_actual_device_status()) {
  3047. total_size += 1 +
  3048. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_device_status());
  3049. }
  3050. // optional .message.Load_status actual_load_status = 5;
  3051. if (has_actual_load_status()) {
  3052. total_size += 1 +
  3053. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_load_status());
  3054. }
  3055. // optional int32 actual_coordinates_id = 6;
  3056. if (has_actual_coordinates_id()) {
  3057. total_size += 1 +
  3058. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3059. this->actual_coordinates_id());
  3060. }
  3061. }
  3062. if (_has_bits_[8 / 32] & 65280u) {
  3063. // optional float actual_x = 7;
  3064. if (has_actual_x()) {
  3065. total_size += 1 + 4;
  3066. }
  3067. // optional float actual_y = 8;
  3068. if (has_actual_y()) {
  3069. total_size += 1 + 4;
  3070. }
  3071. // optional float actual_b = 9;
  3072. if (has_actual_b()) {
  3073. total_size += 1 + 4;
  3074. }
  3075. // optional float actual_z = 10;
  3076. if (has_actual_z()) {
  3077. total_size += 1 + 4;
  3078. }
  3079. // optional float actual_d1 = 11;
  3080. if (has_actual_d1()) {
  3081. total_size += 1 + 4;
  3082. }
  3083. // optional float actual_d2 = 12;
  3084. if (has_actual_d2()) {
  3085. total_size += 1 + 4;
  3086. }
  3087. // optional .message.Clamp_motion actual_clamp_motion1 = 13;
  3088. if (has_actual_clamp_motion1()) {
  3089. total_size += 1 +
  3090. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion1());
  3091. }
  3092. // optional .message.Clamp_motion actual_clamp_motion2 = 14;
  3093. if (has_actual_clamp_motion2()) {
  3094. total_size += 1 +
  3095. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion2());
  3096. }
  3097. }
  3098. if (_has_bits_[16 / 32] & 196608u) {
  3099. // optional .message.Clamp_motion actual_clamp_motion3 = 15;
  3100. if (has_actual_clamp_motion3()) {
  3101. total_size += 1 +
  3102. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion3());
  3103. }
  3104. // optional .message.Clamp_motion actual_clamp_motion4 = 16;
  3105. if (has_actual_clamp_motion4()) {
  3106. total_size += 2 +
  3107. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion4());
  3108. }
  3109. }
  3110. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3111. SetCachedSize(cached_size);
  3112. return total_size;
  3113. }
  3114. void Catcher_data::MergeFrom(const ::google::protobuf::Message& from) {
  3115. // @@protoc_insertion_point(generalized_merge_from_start:message.Catcher_data)
  3116. GOOGLE_DCHECK_NE(&from, this);
  3117. const Catcher_data* source =
  3118. ::google::protobuf::internal::DynamicCastToGenerated<const Catcher_data>(
  3119. &from);
  3120. if (source == NULL) {
  3121. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Catcher_data)
  3122. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3123. } else {
  3124. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Catcher_data)
  3125. MergeFrom(*source);
  3126. }
  3127. }
  3128. void Catcher_data::MergeFrom(const Catcher_data& from) {
  3129. // @@protoc_insertion_point(class_specific_merge_from_start:message.Catcher_data)
  3130. GOOGLE_DCHECK_NE(&from, this);
  3131. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3132. ::google::protobuf::uint32 cached_has_bits = 0;
  3133. (void) cached_has_bits;
  3134. cached_has_bits = from._has_bits_[0];
  3135. if (cached_has_bits & 255u) {
  3136. if (cached_has_bits & 0x00000001u) {
  3137. set_has_actual_error_code();
  3138. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  3139. }
  3140. if (cached_has_bits & 0x00000002u) {
  3141. set_has_actual_warning_code();
  3142. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  3143. }
  3144. if (cached_has_bits & 0x00000004u) {
  3145. set_has_actual_error_description();
  3146. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  3147. }
  3148. if (cached_has_bits & 0x00000008u) {
  3149. dispatch_device_status_ = from.dispatch_device_status_;
  3150. }
  3151. if (cached_has_bits & 0x00000010u) {
  3152. device_id_ = from.device_id_;
  3153. }
  3154. if (cached_has_bits & 0x00000020u) {
  3155. actual_device_status_ = from.actual_device_status_;
  3156. }
  3157. if (cached_has_bits & 0x00000040u) {
  3158. actual_load_status_ = from.actual_load_status_;
  3159. }
  3160. if (cached_has_bits & 0x00000080u) {
  3161. actual_coordinates_id_ = from.actual_coordinates_id_;
  3162. }
  3163. _has_bits_[0] |= cached_has_bits;
  3164. }
  3165. if (cached_has_bits & 65280u) {
  3166. if (cached_has_bits & 0x00000100u) {
  3167. actual_x_ = from.actual_x_;
  3168. }
  3169. if (cached_has_bits & 0x00000200u) {
  3170. actual_y_ = from.actual_y_;
  3171. }
  3172. if (cached_has_bits & 0x00000400u) {
  3173. actual_b_ = from.actual_b_;
  3174. }
  3175. if (cached_has_bits & 0x00000800u) {
  3176. actual_z_ = from.actual_z_;
  3177. }
  3178. if (cached_has_bits & 0x00001000u) {
  3179. actual_d1_ = from.actual_d1_;
  3180. }
  3181. if (cached_has_bits & 0x00002000u) {
  3182. actual_d2_ = from.actual_d2_;
  3183. }
  3184. if (cached_has_bits & 0x00004000u) {
  3185. actual_clamp_motion1_ = from.actual_clamp_motion1_;
  3186. }
  3187. if (cached_has_bits & 0x00008000u) {
  3188. actual_clamp_motion2_ = from.actual_clamp_motion2_;
  3189. }
  3190. _has_bits_[0] |= cached_has_bits;
  3191. }
  3192. if (cached_has_bits & 458752u) {
  3193. if (cached_has_bits & 0x00010000u) {
  3194. actual_clamp_motion3_ = from.actual_clamp_motion3_;
  3195. }
  3196. if (cached_has_bits & 0x00020000u) {
  3197. actual_clamp_motion4_ = from.actual_clamp_motion4_;
  3198. }
  3199. if (cached_has_bits & 0x00040000u) {
  3200. dispatch_device_type_ = from.dispatch_device_type_;
  3201. }
  3202. _has_bits_[0] |= cached_has_bits;
  3203. }
  3204. }
  3205. void Catcher_data::CopyFrom(const ::google::protobuf::Message& from) {
  3206. // @@protoc_insertion_point(generalized_copy_from_start:message.Catcher_data)
  3207. if (&from == this) return;
  3208. Clear();
  3209. MergeFrom(from);
  3210. }
  3211. void Catcher_data::CopyFrom(const Catcher_data& from) {
  3212. // @@protoc_insertion_point(class_specific_copy_from_start:message.Catcher_data)
  3213. if (&from == this) return;
  3214. Clear();
  3215. MergeFrom(from);
  3216. }
  3217. bool Catcher_data::IsInitialized() const {
  3218. if ((_has_bits_[0] & 0x00040018) != 0x00040018) return false;
  3219. return true;
  3220. }
  3221. void Catcher_data::Swap(Catcher_data* other) {
  3222. if (other == this) return;
  3223. InternalSwap(other);
  3224. }
  3225. void Catcher_data::InternalSwap(Catcher_data* other) {
  3226. using std::swap;
  3227. actual_error_code_.Swap(&other->actual_error_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3228. GetArenaNoVirtual());
  3229. actual_warning_code_.Swap(&other->actual_warning_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3230. GetArenaNoVirtual());
  3231. actual_error_description_.Swap(&other->actual_error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3232. GetArenaNoVirtual());
  3233. swap(dispatch_device_status_, other->dispatch_device_status_);
  3234. swap(device_id_, other->device_id_);
  3235. swap(actual_device_status_, other->actual_device_status_);
  3236. swap(actual_load_status_, other->actual_load_status_);
  3237. swap(actual_coordinates_id_, other->actual_coordinates_id_);
  3238. swap(actual_x_, other->actual_x_);
  3239. swap(actual_y_, other->actual_y_);
  3240. swap(actual_b_, other->actual_b_);
  3241. swap(actual_z_, other->actual_z_);
  3242. swap(actual_d1_, other->actual_d1_);
  3243. swap(actual_d2_, other->actual_d2_);
  3244. swap(actual_clamp_motion1_, other->actual_clamp_motion1_);
  3245. swap(actual_clamp_motion2_, other->actual_clamp_motion2_);
  3246. swap(actual_clamp_motion3_, other->actual_clamp_motion3_);
  3247. swap(actual_clamp_motion4_, other->actual_clamp_motion4_);
  3248. swap(dispatch_device_type_, other->dispatch_device_type_);
  3249. swap(_has_bits_[0], other->_has_bits_[0]);
  3250. _internal_metadata_.Swap(&other->_internal_metadata_);
  3251. }
  3252. ::google::protobuf::Metadata Catcher_data::GetMetadata() const {
  3253. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3254. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3255. }
  3256. // ===================================================================
  3257. void Carrier_data::InitAsDefaultInstance() {
  3258. }
  3259. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3260. const int Carrier_data::kDispatchDeviceTypeFieldNumber;
  3261. const int Carrier_data::kDispatchDeviceStatusFieldNumber;
  3262. const int Carrier_data::kDeviceIdFieldNumber;
  3263. const int Carrier_data::kActualDeviceStatusFieldNumber;
  3264. const int Carrier_data::kActualLoadStatusFieldNumber;
  3265. const int Carrier_data::kActualCoordinatesIdFieldNumber;
  3266. const int Carrier_data::kActualXFieldNumber;
  3267. const int Carrier_data::kActualYFieldNumber;
  3268. const int Carrier_data::kActualZFieldNumber;
  3269. const int Carrier_data::kActualY1FieldNumber;
  3270. const int Carrier_data::kActualY2FieldNumber;
  3271. const int Carrier_data::kActualClampMotion1FieldNumber;
  3272. const int Carrier_data::kActualClampMotion2FieldNumber;
  3273. const int Carrier_data::kActualSmallSportsCarMotionFieldNumber;
  3274. const int Carrier_data::kActualJointMotionX1FieldNumber;
  3275. const int Carrier_data::kActualJointMotionX2FieldNumber;
  3276. const int Carrier_data::kActualErrorCodeFieldNumber;
  3277. const int Carrier_data::kActualWarningCodeFieldNumber;
  3278. const int Carrier_data::kActualErrorDescriptionFieldNumber;
  3279. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3280. Carrier_data::Carrier_data()
  3281. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3282. ::google::protobuf::internal::InitSCC(
  3283. &protobuf_dispatch_5fmessage_2eproto::scc_info_Carrier_data.base);
  3284. SharedCtor();
  3285. // @@protoc_insertion_point(constructor:message.Carrier_data)
  3286. }
  3287. Carrier_data::Carrier_data(const Carrier_data& from)
  3288. : ::google::protobuf::Message(),
  3289. _internal_metadata_(NULL),
  3290. _has_bits_(from._has_bits_) {
  3291. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3292. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3293. if (from.has_actual_error_code()) {
  3294. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  3295. }
  3296. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3297. if (from.has_actual_warning_code()) {
  3298. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  3299. }
  3300. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3301. if (from.has_actual_error_description()) {
  3302. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  3303. }
  3304. ::memcpy(&dispatch_device_status_, &from.dispatch_device_status_,
  3305. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  3306. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(dispatch_device_type_));
  3307. // @@protoc_insertion_point(copy_constructor:message.Carrier_data)
  3308. }
  3309. void Carrier_data::SharedCtor() {
  3310. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3311. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3312. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3313. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  3314. reinterpret_cast<char*>(&actual_joint_motion_x2_) -
  3315. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_joint_motion_x2_));
  3316. dispatch_device_type_ = 101;
  3317. }
  3318. Carrier_data::~Carrier_data() {
  3319. // @@protoc_insertion_point(destructor:message.Carrier_data)
  3320. SharedDtor();
  3321. }
  3322. void Carrier_data::SharedDtor() {
  3323. actual_error_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3324. actual_warning_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3325. actual_error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3326. }
  3327. void Carrier_data::SetCachedSize(int size) const {
  3328. _cached_size_.Set(size);
  3329. }
  3330. const ::google::protobuf::Descriptor* Carrier_data::descriptor() {
  3331. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3332. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3333. }
  3334. const Carrier_data& Carrier_data::default_instance() {
  3335. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Carrier_data.base);
  3336. return *internal_default_instance();
  3337. }
  3338. void Carrier_data::Clear() {
  3339. // @@protoc_insertion_point(message_clear_start:message.Carrier_data)
  3340. ::google::protobuf::uint32 cached_has_bits = 0;
  3341. // Prevent compiler warnings about cached_has_bits being unused
  3342. (void) cached_has_bits;
  3343. cached_has_bits = _has_bits_[0];
  3344. if (cached_has_bits & 7u) {
  3345. if (cached_has_bits & 0x00000001u) {
  3346. actual_error_code_.ClearNonDefaultToEmptyNoArena();
  3347. }
  3348. if (cached_has_bits & 0x00000002u) {
  3349. actual_warning_code_.ClearNonDefaultToEmptyNoArena();
  3350. }
  3351. if (cached_has_bits & 0x00000004u) {
  3352. actual_error_description_.ClearNonDefaultToEmptyNoArena();
  3353. }
  3354. }
  3355. if (cached_has_bits & 248u) {
  3356. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  3357. reinterpret_cast<char*>(&actual_coordinates_id_) -
  3358. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_coordinates_id_));
  3359. }
  3360. if (cached_has_bits & 65280u) {
  3361. ::memset(&actual_x_, 0, static_cast<size_t>(
  3362. reinterpret_cast<char*>(&actual_small_sports_car_motion_) -
  3363. reinterpret_cast<char*>(&actual_x_)) + sizeof(actual_small_sports_car_motion_));
  3364. }
  3365. if (cached_has_bits & 458752u) {
  3366. ::memset(&actual_joint_motion_x1_, 0, static_cast<size_t>(
  3367. reinterpret_cast<char*>(&actual_joint_motion_x2_) -
  3368. reinterpret_cast<char*>(&actual_joint_motion_x1_)) + sizeof(actual_joint_motion_x2_));
  3369. dispatch_device_type_ = 101;
  3370. }
  3371. _has_bits_.Clear();
  3372. _internal_metadata_.Clear();
  3373. }
  3374. bool Carrier_data::MergePartialFromCodedStream(
  3375. ::google::protobuf::io::CodedInputStream* input) {
  3376. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3377. ::google::protobuf::uint32 tag;
  3378. // @@protoc_insertion_point(parse_start:message.Carrier_data)
  3379. for (;;) {
  3380. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  3381. tag = p.first;
  3382. if (!p.second) goto handle_unusual;
  3383. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3384. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3385. case 1: {
  3386. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3387. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  3388. int value;
  3389. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3390. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3391. input, &value)));
  3392. if (::message::Dispatch_device_type_IsValid(value)) {
  3393. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  3394. } else {
  3395. mutable_unknown_fields()->AddVarint(
  3396. 1, static_cast< ::google::protobuf::uint64>(value));
  3397. }
  3398. } else {
  3399. goto handle_unusual;
  3400. }
  3401. break;
  3402. }
  3403. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3404. case 2: {
  3405. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3406. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  3407. int value;
  3408. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3409. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3410. input, &value)));
  3411. if (::message::Dispatch_device_status_IsValid(value)) {
  3412. set_dispatch_device_status(static_cast< ::message::Dispatch_device_status >(value));
  3413. } else {
  3414. mutable_unknown_fields()->AddVarint(
  3415. 2, static_cast< ::google::protobuf::uint64>(value));
  3416. }
  3417. } else {
  3418. goto handle_unusual;
  3419. }
  3420. break;
  3421. }
  3422. // required int32 device_id = 3;
  3423. case 3: {
  3424. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3425. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  3426. set_has_device_id();
  3427. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3428. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3429. input, &device_id_)));
  3430. } else {
  3431. goto handle_unusual;
  3432. }
  3433. break;
  3434. }
  3435. // optional .message.Hardware_device_status actual_device_status = 4;
  3436. case 4: {
  3437. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3438. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  3439. int value;
  3440. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3441. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3442. input, &value)));
  3443. if (::message::Hardware_device_status_IsValid(value)) {
  3444. set_actual_device_status(static_cast< ::message::Hardware_device_status >(value));
  3445. } else {
  3446. mutable_unknown_fields()->AddVarint(
  3447. 4, static_cast< ::google::protobuf::uint64>(value));
  3448. }
  3449. } else {
  3450. goto handle_unusual;
  3451. }
  3452. break;
  3453. }
  3454. // optional .message.Load_status actual_load_status = 5;
  3455. case 5: {
  3456. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3457. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  3458. int value;
  3459. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3460. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3461. input, &value)));
  3462. if (::message::Load_status_IsValid(value)) {
  3463. set_actual_load_status(static_cast< ::message::Load_status >(value));
  3464. } else {
  3465. mutable_unknown_fields()->AddVarint(
  3466. 5, static_cast< ::google::protobuf::uint64>(value));
  3467. }
  3468. } else {
  3469. goto handle_unusual;
  3470. }
  3471. break;
  3472. }
  3473. // optional int32 actual_coordinates_id = 6;
  3474. case 6: {
  3475. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3476. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  3477. set_has_actual_coordinates_id();
  3478. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3479. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3480. input, &actual_coordinates_id_)));
  3481. } else {
  3482. goto handle_unusual;
  3483. }
  3484. break;
  3485. }
  3486. // optional float actual_x = 7;
  3487. case 7: {
  3488. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3489. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  3490. set_has_actual_x();
  3491. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3492. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3493. input, &actual_x_)));
  3494. } else {
  3495. goto handle_unusual;
  3496. }
  3497. break;
  3498. }
  3499. // optional float actual_y = 8;
  3500. case 8: {
  3501. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3502. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  3503. set_has_actual_y();
  3504. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3505. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3506. input, &actual_y_)));
  3507. } else {
  3508. goto handle_unusual;
  3509. }
  3510. break;
  3511. }
  3512. // optional float actual_z = 9;
  3513. case 9: {
  3514. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3515. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  3516. set_has_actual_z();
  3517. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3518. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3519. input, &actual_z_)));
  3520. } else {
  3521. goto handle_unusual;
  3522. }
  3523. break;
  3524. }
  3525. // optional float actual_y1 = 10;
  3526. case 10: {
  3527. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3528. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  3529. set_has_actual_y1();
  3530. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3531. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3532. input, &actual_y1_)));
  3533. } else {
  3534. goto handle_unusual;
  3535. }
  3536. break;
  3537. }
  3538. // optional float actual_y2 = 11;
  3539. case 11: {
  3540. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3541. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  3542. set_has_actual_y2();
  3543. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3544. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3545. input, &actual_y2_)));
  3546. } else {
  3547. goto handle_unusual;
  3548. }
  3549. break;
  3550. }
  3551. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3552. case 12: {
  3553. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3554. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  3555. int value;
  3556. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3557. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3558. input, &value)));
  3559. if (::message::Clamp_motion_IsValid(value)) {
  3560. set_actual_clamp_motion1(static_cast< ::message::Clamp_motion >(value));
  3561. } else {
  3562. mutable_unknown_fields()->AddVarint(
  3563. 12, static_cast< ::google::protobuf::uint64>(value));
  3564. }
  3565. } else {
  3566. goto handle_unusual;
  3567. }
  3568. break;
  3569. }
  3570. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3571. case 13: {
  3572. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3573. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  3574. int value;
  3575. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3576. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3577. input, &value)));
  3578. if (::message::Clamp_motion_IsValid(value)) {
  3579. set_actual_clamp_motion2(static_cast< ::message::Clamp_motion >(value));
  3580. } else {
  3581. mutable_unknown_fields()->AddVarint(
  3582. 13, static_cast< ::google::protobuf::uint64>(value));
  3583. }
  3584. } else {
  3585. goto handle_unusual;
  3586. }
  3587. break;
  3588. }
  3589. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3590. case 14: {
  3591. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3592. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  3593. int value;
  3594. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3595. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3596. input, &value)));
  3597. if (::message::Small_sports_car_motion_IsValid(value)) {
  3598. set_actual_small_sports_car_motion(static_cast< ::message::Small_sports_car_motion >(value));
  3599. } else {
  3600. mutable_unknown_fields()->AddVarint(
  3601. 14, static_cast< ::google::protobuf::uint64>(value));
  3602. }
  3603. } else {
  3604. goto handle_unusual;
  3605. }
  3606. break;
  3607. }
  3608. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3609. case 15: {
  3610. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3611. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  3612. int value;
  3613. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3614. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3615. input, &value)));
  3616. if (::message::Joint_motion_IsValid(value)) {
  3617. set_actual_joint_motion_x1(static_cast< ::message::Joint_motion >(value));
  3618. } else {
  3619. mutable_unknown_fields()->AddVarint(
  3620. 15, static_cast< ::google::protobuf::uint64>(value));
  3621. }
  3622. } else {
  3623. goto handle_unusual;
  3624. }
  3625. break;
  3626. }
  3627. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3628. case 16: {
  3629. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3630. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  3631. int value;
  3632. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3633. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3634. input, &value)));
  3635. if (::message::Joint_motion_IsValid(value)) {
  3636. set_actual_joint_motion_x2(static_cast< ::message::Joint_motion >(value));
  3637. } else {
  3638. mutable_unknown_fields()->AddVarint(
  3639. 16, static_cast< ::google::protobuf::uint64>(value));
  3640. }
  3641. } else {
  3642. goto handle_unusual;
  3643. }
  3644. break;
  3645. }
  3646. // optional string actual_error_code = 17;
  3647. case 17: {
  3648. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3649. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  3650. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3651. input, this->mutable_actual_error_code()));
  3652. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3653. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  3654. ::google::protobuf::internal::WireFormat::PARSE,
  3655. "message.Carrier_data.actual_error_code");
  3656. } else {
  3657. goto handle_unusual;
  3658. }
  3659. break;
  3660. }
  3661. // optional string actual_warning_code = 18;
  3662. case 18: {
  3663. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3664. static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
  3665. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3666. input, this->mutable_actual_warning_code()));
  3667. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3668. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  3669. ::google::protobuf::internal::WireFormat::PARSE,
  3670. "message.Carrier_data.actual_warning_code");
  3671. } else {
  3672. goto handle_unusual;
  3673. }
  3674. break;
  3675. }
  3676. // optional string actual_error_description = 19;
  3677. case 19: {
  3678. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3679. static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
  3680. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3681. input, this->mutable_actual_error_description()));
  3682. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3683. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  3684. ::google::protobuf::internal::WireFormat::PARSE,
  3685. "message.Carrier_data.actual_error_description");
  3686. } else {
  3687. goto handle_unusual;
  3688. }
  3689. break;
  3690. }
  3691. default: {
  3692. handle_unusual:
  3693. if (tag == 0) {
  3694. goto success;
  3695. }
  3696. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3697. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3698. break;
  3699. }
  3700. }
  3701. }
  3702. success:
  3703. // @@protoc_insertion_point(parse_success:message.Carrier_data)
  3704. return true;
  3705. failure:
  3706. // @@protoc_insertion_point(parse_failure:message.Carrier_data)
  3707. return false;
  3708. #undef DO_
  3709. }
  3710. void Carrier_data::SerializeWithCachedSizes(
  3711. ::google::protobuf::io::CodedOutputStream* output) const {
  3712. // @@protoc_insertion_point(serialize_start:message.Carrier_data)
  3713. ::google::protobuf::uint32 cached_has_bits = 0;
  3714. (void) cached_has_bits;
  3715. cached_has_bits = _has_bits_[0];
  3716. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3717. if (cached_has_bits & 0x00040000u) {
  3718. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3719. 1, this->dispatch_device_type(), output);
  3720. }
  3721. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3722. if (cached_has_bits & 0x00000008u) {
  3723. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3724. 2, this->dispatch_device_status(), output);
  3725. }
  3726. // required int32 device_id = 3;
  3727. if (cached_has_bits & 0x00000010u) {
  3728. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->device_id(), output);
  3729. }
  3730. // optional .message.Hardware_device_status actual_device_status = 4;
  3731. if (cached_has_bits & 0x00000020u) {
  3732. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3733. 4, this->actual_device_status(), output);
  3734. }
  3735. // optional .message.Load_status actual_load_status = 5;
  3736. if (cached_has_bits & 0x00000040u) {
  3737. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3738. 5, this->actual_load_status(), output);
  3739. }
  3740. // optional int32 actual_coordinates_id = 6;
  3741. if (cached_has_bits & 0x00000080u) {
  3742. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->actual_coordinates_id(), output);
  3743. }
  3744. // optional float actual_x = 7;
  3745. if (cached_has_bits & 0x00000100u) {
  3746. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->actual_x(), output);
  3747. }
  3748. // optional float actual_y = 8;
  3749. if (cached_has_bits & 0x00000200u) {
  3750. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->actual_y(), output);
  3751. }
  3752. // optional float actual_z = 9;
  3753. if (cached_has_bits & 0x00000400u) {
  3754. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->actual_z(), output);
  3755. }
  3756. // optional float actual_y1 = 10;
  3757. if (cached_has_bits & 0x00000800u) {
  3758. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->actual_y1(), output);
  3759. }
  3760. // optional float actual_y2 = 11;
  3761. if (cached_has_bits & 0x00001000u) {
  3762. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->actual_y2(), output);
  3763. }
  3764. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3765. if (cached_has_bits & 0x00002000u) {
  3766. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3767. 12, this->actual_clamp_motion1(), output);
  3768. }
  3769. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3770. if (cached_has_bits & 0x00004000u) {
  3771. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3772. 13, this->actual_clamp_motion2(), output);
  3773. }
  3774. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3775. if (cached_has_bits & 0x00008000u) {
  3776. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3777. 14, this->actual_small_sports_car_motion(), output);
  3778. }
  3779. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3780. if (cached_has_bits & 0x00010000u) {
  3781. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3782. 15, this->actual_joint_motion_x1(), output);
  3783. }
  3784. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3785. if (cached_has_bits & 0x00020000u) {
  3786. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3787. 16, this->actual_joint_motion_x2(), output);
  3788. }
  3789. // optional string actual_error_code = 17;
  3790. if (cached_has_bits & 0x00000001u) {
  3791. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3792. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  3793. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3794. "message.Carrier_data.actual_error_code");
  3795. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3796. 17, this->actual_error_code(), output);
  3797. }
  3798. // optional string actual_warning_code = 18;
  3799. if (cached_has_bits & 0x00000002u) {
  3800. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3801. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  3802. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3803. "message.Carrier_data.actual_warning_code");
  3804. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3805. 18, this->actual_warning_code(), output);
  3806. }
  3807. // optional string actual_error_description = 19;
  3808. if (cached_has_bits & 0x00000004u) {
  3809. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3810. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  3811. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3812. "message.Carrier_data.actual_error_description");
  3813. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3814. 19, this->actual_error_description(), output);
  3815. }
  3816. if (_internal_metadata_.have_unknown_fields()) {
  3817. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3818. _internal_metadata_.unknown_fields(), output);
  3819. }
  3820. // @@protoc_insertion_point(serialize_end:message.Carrier_data)
  3821. }
  3822. ::google::protobuf::uint8* Carrier_data::InternalSerializeWithCachedSizesToArray(
  3823. bool deterministic, ::google::protobuf::uint8* target) const {
  3824. (void)deterministic; // Unused
  3825. // @@protoc_insertion_point(serialize_to_array_start:message.Carrier_data)
  3826. ::google::protobuf::uint32 cached_has_bits = 0;
  3827. (void) cached_has_bits;
  3828. cached_has_bits = _has_bits_[0];
  3829. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3830. if (cached_has_bits & 0x00040000u) {
  3831. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3832. 1, this->dispatch_device_type(), target);
  3833. }
  3834. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3835. if (cached_has_bits & 0x00000008u) {
  3836. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3837. 2, this->dispatch_device_status(), target);
  3838. }
  3839. // required int32 device_id = 3;
  3840. if (cached_has_bits & 0x00000010u) {
  3841. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->device_id(), target);
  3842. }
  3843. // optional .message.Hardware_device_status actual_device_status = 4;
  3844. if (cached_has_bits & 0x00000020u) {
  3845. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3846. 4, this->actual_device_status(), target);
  3847. }
  3848. // optional .message.Load_status actual_load_status = 5;
  3849. if (cached_has_bits & 0x00000040u) {
  3850. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3851. 5, this->actual_load_status(), target);
  3852. }
  3853. // optional int32 actual_coordinates_id = 6;
  3854. if (cached_has_bits & 0x00000080u) {
  3855. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->actual_coordinates_id(), target);
  3856. }
  3857. // optional float actual_x = 7;
  3858. if (cached_has_bits & 0x00000100u) {
  3859. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->actual_x(), target);
  3860. }
  3861. // optional float actual_y = 8;
  3862. if (cached_has_bits & 0x00000200u) {
  3863. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->actual_y(), target);
  3864. }
  3865. // optional float actual_z = 9;
  3866. if (cached_has_bits & 0x00000400u) {
  3867. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->actual_z(), target);
  3868. }
  3869. // optional float actual_y1 = 10;
  3870. if (cached_has_bits & 0x00000800u) {
  3871. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->actual_y1(), target);
  3872. }
  3873. // optional float actual_y2 = 11;
  3874. if (cached_has_bits & 0x00001000u) {
  3875. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->actual_y2(), target);
  3876. }
  3877. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  3878. if (cached_has_bits & 0x00002000u) {
  3879. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3880. 12, this->actual_clamp_motion1(), target);
  3881. }
  3882. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  3883. if (cached_has_bits & 0x00004000u) {
  3884. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3885. 13, this->actual_clamp_motion2(), target);
  3886. }
  3887. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  3888. if (cached_has_bits & 0x00008000u) {
  3889. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3890. 14, this->actual_small_sports_car_motion(), target);
  3891. }
  3892. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  3893. if (cached_has_bits & 0x00010000u) {
  3894. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3895. 15, this->actual_joint_motion_x1(), target);
  3896. }
  3897. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  3898. if (cached_has_bits & 0x00020000u) {
  3899. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3900. 16, this->actual_joint_motion_x2(), target);
  3901. }
  3902. // optional string actual_error_code = 17;
  3903. if (cached_has_bits & 0x00000001u) {
  3904. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3905. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  3906. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3907. "message.Carrier_data.actual_error_code");
  3908. target =
  3909. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3910. 17, this->actual_error_code(), target);
  3911. }
  3912. // optional string actual_warning_code = 18;
  3913. if (cached_has_bits & 0x00000002u) {
  3914. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3915. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  3916. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3917. "message.Carrier_data.actual_warning_code");
  3918. target =
  3919. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3920. 18, this->actual_warning_code(), target);
  3921. }
  3922. // optional string actual_error_description = 19;
  3923. if (cached_has_bits & 0x00000004u) {
  3924. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3925. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  3926. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3927. "message.Carrier_data.actual_error_description");
  3928. target =
  3929. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3930. 19, this->actual_error_description(), target);
  3931. }
  3932. if (_internal_metadata_.have_unknown_fields()) {
  3933. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3934. _internal_metadata_.unknown_fields(), target);
  3935. }
  3936. // @@protoc_insertion_point(serialize_to_array_end:message.Carrier_data)
  3937. return target;
  3938. }
  3939. size_t Carrier_data::RequiredFieldsByteSizeFallback() const {
  3940. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Carrier_data)
  3941. size_t total_size = 0;
  3942. if (has_dispatch_device_status()) {
  3943. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3944. total_size += 1 +
  3945. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  3946. }
  3947. if (has_device_id()) {
  3948. // required int32 device_id = 3;
  3949. total_size += 1 +
  3950. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3951. this->device_id());
  3952. }
  3953. if (has_dispatch_device_type()) {
  3954. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3955. total_size += 1 +
  3956. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  3957. }
  3958. return total_size;
  3959. }
  3960. size_t Carrier_data::ByteSizeLong() const {
  3961. // @@protoc_insertion_point(message_byte_size_start:message.Carrier_data)
  3962. size_t total_size = 0;
  3963. if (_internal_metadata_.have_unknown_fields()) {
  3964. total_size +=
  3965. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3966. _internal_metadata_.unknown_fields());
  3967. }
  3968. if (((_has_bits_[0] & 0x00040018) ^ 0x00040018) == 0) { // All required fields are present.
  3969. // required .message.Dispatch_device_status dispatch_device_status = 2;
  3970. total_size += 1 +
  3971. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  3972. // required int32 device_id = 3;
  3973. total_size += 1 +
  3974. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3975. this->device_id());
  3976. // required .message.Dispatch_device_type dispatch_device_type = 1;
  3977. total_size += 1 +
  3978. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  3979. } else {
  3980. total_size += RequiredFieldsByteSizeFallback();
  3981. }
  3982. if (_has_bits_[0 / 32] & 7u) {
  3983. // optional string actual_error_code = 17;
  3984. if (has_actual_error_code()) {
  3985. total_size += 2 +
  3986. ::google::protobuf::internal::WireFormatLite::StringSize(
  3987. this->actual_error_code());
  3988. }
  3989. // optional string actual_warning_code = 18;
  3990. if (has_actual_warning_code()) {
  3991. total_size += 2 +
  3992. ::google::protobuf::internal::WireFormatLite::StringSize(
  3993. this->actual_warning_code());
  3994. }
  3995. // optional string actual_error_description = 19;
  3996. if (has_actual_error_description()) {
  3997. total_size += 2 +
  3998. ::google::protobuf::internal::WireFormatLite::StringSize(
  3999. this->actual_error_description());
  4000. }
  4001. }
  4002. if (_has_bits_[0 / 32] & 224u) {
  4003. // optional .message.Hardware_device_status actual_device_status = 4;
  4004. if (has_actual_device_status()) {
  4005. total_size += 1 +
  4006. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_device_status());
  4007. }
  4008. // optional .message.Load_status actual_load_status = 5;
  4009. if (has_actual_load_status()) {
  4010. total_size += 1 +
  4011. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_load_status());
  4012. }
  4013. // optional int32 actual_coordinates_id = 6;
  4014. if (has_actual_coordinates_id()) {
  4015. total_size += 1 +
  4016. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4017. this->actual_coordinates_id());
  4018. }
  4019. }
  4020. if (_has_bits_[8 / 32] & 65280u) {
  4021. // optional float actual_x = 7;
  4022. if (has_actual_x()) {
  4023. total_size += 1 + 4;
  4024. }
  4025. // optional float actual_y = 8;
  4026. if (has_actual_y()) {
  4027. total_size += 1 + 4;
  4028. }
  4029. // optional float actual_z = 9;
  4030. if (has_actual_z()) {
  4031. total_size += 1 + 4;
  4032. }
  4033. // optional float actual_y1 = 10;
  4034. if (has_actual_y1()) {
  4035. total_size += 1 + 4;
  4036. }
  4037. // optional float actual_y2 = 11;
  4038. if (has_actual_y2()) {
  4039. total_size += 1 + 4;
  4040. }
  4041. // optional .message.Clamp_motion actual_clamp_motion1 = 12;
  4042. if (has_actual_clamp_motion1()) {
  4043. total_size += 1 +
  4044. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion1());
  4045. }
  4046. // optional .message.Clamp_motion actual_clamp_motion2 = 13;
  4047. if (has_actual_clamp_motion2()) {
  4048. total_size += 1 +
  4049. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_clamp_motion2());
  4050. }
  4051. // optional .message.Small_sports_car_motion actual_small_sports_car_motion = 14;
  4052. if (has_actual_small_sports_car_motion()) {
  4053. total_size += 1 +
  4054. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_small_sports_car_motion());
  4055. }
  4056. }
  4057. if (_has_bits_[16 / 32] & 196608u) {
  4058. // optional .message.Joint_motion actual_joint_motion_x1 = 15;
  4059. if (has_actual_joint_motion_x1()) {
  4060. total_size += 1 +
  4061. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_joint_motion_x1());
  4062. }
  4063. // optional .message.Joint_motion actual_joint_motion_x2 = 16;
  4064. if (has_actual_joint_motion_x2()) {
  4065. total_size += 2 +
  4066. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_joint_motion_x2());
  4067. }
  4068. }
  4069. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  4070. SetCachedSize(cached_size);
  4071. return total_size;
  4072. }
  4073. void Carrier_data::MergeFrom(const ::google::protobuf::Message& from) {
  4074. // @@protoc_insertion_point(generalized_merge_from_start:message.Carrier_data)
  4075. GOOGLE_DCHECK_NE(&from, this);
  4076. const Carrier_data* source =
  4077. ::google::protobuf::internal::DynamicCastToGenerated<const Carrier_data>(
  4078. &from);
  4079. if (source == NULL) {
  4080. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Carrier_data)
  4081. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4082. } else {
  4083. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Carrier_data)
  4084. MergeFrom(*source);
  4085. }
  4086. }
  4087. void Carrier_data::MergeFrom(const Carrier_data& from) {
  4088. // @@protoc_insertion_point(class_specific_merge_from_start:message.Carrier_data)
  4089. GOOGLE_DCHECK_NE(&from, this);
  4090. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4091. ::google::protobuf::uint32 cached_has_bits = 0;
  4092. (void) cached_has_bits;
  4093. cached_has_bits = from._has_bits_[0];
  4094. if (cached_has_bits & 255u) {
  4095. if (cached_has_bits & 0x00000001u) {
  4096. set_has_actual_error_code();
  4097. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  4098. }
  4099. if (cached_has_bits & 0x00000002u) {
  4100. set_has_actual_warning_code();
  4101. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  4102. }
  4103. if (cached_has_bits & 0x00000004u) {
  4104. set_has_actual_error_description();
  4105. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  4106. }
  4107. if (cached_has_bits & 0x00000008u) {
  4108. dispatch_device_status_ = from.dispatch_device_status_;
  4109. }
  4110. if (cached_has_bits & 0x00000010u) {
  4111. device_id_ = from.device_id_;
  4112. }
  4113. if (cached_has_bits & 0x00000020u) {
  4114. actual_device_status_ = from.actual_device_status_;
  4115. }
  4116. if (cached_has_bits & 0x00000040u) {
  4117. actual_load_status_ = from.actual_load_status_;
  4118. }
  4119. if (cached_has_bits & 0x00000080u) {
  4120. actual_coordinates_id_ = from.actual_coordinates_id_;
  4121. }
  4122. _has_bits_[0] |= cached_has_bits;
  4123. }
  4124. if (cached_has_bits & 65280u) {
  4125. if (cached_has_bits & 0x00000100u) {
  4126. actual_x_ = from.actual_x_;
  4127. }
  4128. if (cached_has_bits & 0x00000200u) {
  4129. actual_y_ = from.actual_y_;
  4130. }
  4131. if (cached_has_bits & 0x00000400u) {
  4132. actual_z_ = from.actual_z_;
  4133. }
  4134. if (cached_has_bits & 0x00000800u) {
  4135. actual_y1_ = from.actual_y1_;
  4136. }
  4137. if (cached_has_bits & 0x00001000u) {
  4138. actual_y2_ = from.actual_y2_;
  4139. }
  4140. if (cached_has_bits & 0x00002000u) {
  4141. actual_clamp_motion1_ = from.actual_clamp_motion1_;
  4142. }
  4143. if (cached_has_bits & 0x00004000u) {
  4144. actual_clamp_motion2_ = from.actual_clamp_motion2_;
  4145. }
  4146. if (cached_has_bits & 0x00008000u) {
  4147. actual_small_sports_car_motion_ = from.actual_small_sports_car_motion_;
  4148. }
  4149. _has_bits_[0] |= cached_has_bits;
  4150. }
  4151. if (cached_has_bits & 458752u) {
  4152. if (cached_has_bits & 0x00010000u) {
  4153. actual_joint_motion_x1_ = from.actual_joint_motion_x1_;
  4154. }
  4155. if (cached_has_bits & 0x00020000u) {
  4156. actual_joint_motion_x2_ = from.actual_joint_motion_x2_;
  4157. }
  4158. if (cached_has_bits & 0x00040000u) {
  4159. dispatch_device_type_ = from.dispatch_device_type_;
  4160. }
  4161. _has_bits_[0] |= cached_has_bits;
  4162. }
  4163. }
  4164. void Carrier_data::CopyFrom(const ::google::protobuf::Message& from) {
  4165. // @@protoc_insertion_point(generalized_copy_from_start:message.Carrier_data)
  4166. if (&from == this) return;
  4167. Clear();
  4168. MergeFrom(from);
  4169. }
  4170. void Carrier_data::CopyFrom(const Carrier_data& from) {
  4171. // @@protoc_insertion_point(class_specific_copy_from_start:message.Carrier_data)
  4172. if (&from == this) return;
  4173. Clear();
  4174. MergeFrom(from);
  4175. }
  4176. bool Carrier_data::IsInitialized() const {
  4177. if ((_has_bits_[0] & 0x00040018) != 0x00040018) return false;
  4178. return true;
  4179. }
  4180. void Carrier_data::Swap(Carrier_data* other) {
  4181. if (other == this) return;
  4182. InternalSwap(other);
  4183. }
  4184. void Carrier_data::InternalSwap(Carrier_data* other) {
  4185. using std::swap;
  4186. actual_error_code_.Swap(&other->actual_error_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4187. GetArenaNoVirtual());
  4188. actual_warning_code_.Swap(&other->actual_warning_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4189. GetArenaNoVirtual());
  4190. actual_error_description_.Swap(&other->actual_error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4191. GetArenaNoVirtual());
  4192. swap(dispatch_device_status_, other->dispatch_device_status_);
  4193. swap(device_id_, other->device_id_);
  4194. swap(actual_device_status_, other->actual_device_status_);
  4195. swap(actual_load_status_, other->actual_load_status_);
  4196. swap(actual_coordinates_id_, other->actual_coordinates_id_);
  4197. swap(actual_x_, other->actual_x_);
  4198. swap(actual_y_, other->actual_y_);
  4199. swap(actual_z_, other->actual_z_);
  4200. swap(actual_y1_, other->actual_y1_);
  4201. swap(actual_y2_, other->actual_y2_);
  4202. swap(actual_clamp_motion1_, other->actual_clamp_motion1_);
  4203. swap(actual_clamp_motion2_, other->actual_clamp_motion2_);
  4204. swap(actual_small_sports_car_motion_, other->actual_small_sports_car_motion_);
  4205. swap(actual_joint_motion_x1_, other->actual_joint_motion_x1_);
  4206. swap(actual_joint_motion_x2_, other->actual_joint_motion_x2_);
  4207. swap(dispatch_device_type_, other->dispatch_device_type_);
  4208. swap(_has_bits_[0], other->_has_bits_[0]);
  4209. _internal_metadata_.Swap(&other->_internal_metadata_);
  4210. }
  4211. ::google::protobuf::Metadata Carrier_data::GetMetadata() const {
  4212. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  4213. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  4214. }
  4215. // ===================================================================
  4216. void Passageway_data::InitAsDefaultInstance() {
  4217. }
  4218. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  4219. const int Passageway_data::kDispatchDeviceTypeFieldNumber;
  4220. const int Passageway_data::kDispatchDeviceStatusFieldNumber;
  4221. const int Passageway_data::kDeviceIdFieldNumber;
  4222. const int Passageway_data::kActualDeviceStatusFieldNumber;
  4223. const int Passageway_data::kActualInsideLoadStatusFieldNumber;
  4224. const int Passageway_data::kActualOutsideLoadStatusFieldNumber;
  4225. const int Passageway_data::kActualFrontOverstepTheBoundaryFieldNumber;
  4226. const int Passageway_data::kActualBackOverstepTheBoundaryFieldNumber;
  4227. const int Passageway_data::kActualHeightOverstepTheBoundaryFieldNumber;
  4228. const int Passageway_data::kActualOutsideDoorSensorFieldNumber;
  4229. const int Passageway_data::kActualInsideDoorMotionFieldNumber;
  4230. const int Passageway_data::kActualOutsideDoorMotionFieldNumber;
  4231. const int Passageway_data::kActualTurntableLoadStatusFieldNumber;
  4232. const int Passageway_data::kActualTurntableDirectionFieldNumber;
  4233. const int Passageway_data::kActualErrorCodeFieldNumber;
  4234. const int Passageway_data::kActualWarningCodeFieldNumber;
  4235. const int Passageway_data::kActualErrorDescriptionFieldNumber;
  4236. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  4237. Passageway_data::Passageway_data()
  4238. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  4239. ::google::protobuf::internal::InitSCC(
  4240. &protobuf_dispatch_5fmessage_2eproto::scc_info_Passageway_data.base);
  4241. SharedCtor();
  4242. // @@protoc_insertion_point(constructor:message.Passageway_data)
  4243. }
  4244. Passageway_data::Passageway_data(const Passageway_data& from)
  4245. : ::google::protobuf::Message(),
  4246. _internal_metadata_(NULL),
  4247. _has_bits_(from._has_bits_) {
  4248. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4249. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4250. if (from.has_actual_error_code()) {
  4251. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  4252. }
  4253. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4254. if (from.has_actual_warning_code()) {
  4255. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  4256. }
  4257. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4258. if (from.has_actual_error_description()) {
  4259. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  4260. }
  4261. ::memcpy(&dispatch_device_status_, &from.dispatch_device_status_,
  4262. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  4263. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(dispatch_device_type_));
  4264. // @@protoc_insertion_point(copy_constructor:message.Passageway_data)
  4265. }
  4266. void Passageway_data::SharedCtor() {
  4267. actual_error_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4268. actual_warning_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4269. actual_error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4270. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  4271. reinterpret_cast<char*>(&actual_turntable_direction_) -
  4272. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_turntable_direction_));
  4273. dispatch_device_type_ = 101;
  4274. }
  4275. Passageway_data::~Passageway_data() {
  4276. // @@protoc_insertion_point(destructor:message.Passageway_data)
  4277. SharedDtor();
  4278. }
  4279. void Passageway_data::SharedDtor() {
  4280. actual_error_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4281. actual_warning_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4282. actual_error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4283. }
  4284. void Passageway_data::SetCachedSize(int size) const {
  4285. _cached_size_.Set(size);
  4286. }
  4287. const ::google::protobuf::Descriptor* Passageway_data::descriptor() {
  4288. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  4289. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  4290. }
  4291. const Passageway_data& Passageway_data::default_instance() {
  4292. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Passageway_data.base);
  4293. return *internal_default_instance();
  4294. }
  4295. void Passageway_data::Clear() {
  4296. // @@protoc_insertion_point(message_clear_start:message.Passageway_data)
  4297. ::google::protobuf::uint32 cached_has_bits = 0;
  4298. // Prevent compiler warnings about cached_has_bits being unused
  4299. (void) cached_has_bits;
  4300. cached_has_bits = _has_bits_[0];
  4301. if (cached_has_bits & 7u) {
  4302. if (cached_has_bits & 0x00000001u) {
  4303. actual_error_code_.ClearNonDefaultToEmptyNoArena();
  4304. }
  4305. if (cached_has_bits & 0x00000002u) {
  4306. actual_warning_code_.ClearNonDefaultToEmptyNoArena();
  4307. }
  4308. if (cached_has_bits & 0x00000004u) {
  4309. actual_error_description_.ClearNonDefaultToEmptyNoArena();
  4310. }
  4311. }
  4312. if (cached_has_bits & 248u) {
  4313. ::memset(&dispatch_device_status_, 0, static_cast<size_t>(
  4314. reinterpret_cast<char*>(&actual_outside_load_status_) -
  4315. reinterpret_cast<char*>(&dispatch_device_status_)) + sizeof(actual_outside_load_status_));
  4316. }
  4317. if (cached_has_bits & 65280u) {
  4318. ::memset(&actual_front_overstep_the_boundary_, 0, static_cast<size_t>(
  4319. reinterpret_cast<char*>(&actual_turntable_direction_) -
  4320. reinterpret_cast<char*>(&actual_front_overstep_the_boundary_)) + sizeof(actual_turntable_direction_));
  4321. }
  4322. dispatch_device_type_ = 101;
  4323. _has_bits_.Clear();
  4324. _internal_metadata_.Clear();
  4325. }
  4326. bool Passageway_data::MergePartialFromCodedStream(
  4327. ::google::protobuf::io::CodedInputStream* input) {
  4328. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4329. ::google::protobuf::uint32 tag;
  4330. // @@protoc_insertion_point(parse_start:message.Passageway_data)
  4331. for (;;) {
  4332. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  4333. tag = p.first;
  4334. if (!p.second) goto handle_unusual;
  4335. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4336. // required .message.Dispatch_device_type dispatch_device_type = 1;
  4337. case 1: {
  4338. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4339. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  4340. int value;
  4341. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4342. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4343. input, &value)));
  4344. if (::message::Dispatch_device_type_IsValid(value)) {
  4345. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  4346. } else {
  4347. mutable_unknown_fields()->AddVarint(
  4348. 1, static_cast< ::google::protobuf::uint64>(value));
  4349. }
  4350. } else {
  4351. goto handle_unusual;
  4352. }
  4353. break;
  4354. }
  4355. // required .message.Dispatch_device_status dispatch_device_status = 2;
  4356. case 2: {
  4357. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4358. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  4359. int value;
  4360. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4361. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4362. input, &value)));
  4363. if (::message::Dispatch_device_status_IsValid(value)) {
  4364. set_dispatch_device_status(static_cast< ::message::Dispatch_device_status >(value));
  4365. } else {
  4366. mutable_unknown_fields()->AddVarint(
  4367. 2, static_cast< ::google::protobuf::uint64>(value));
  4368. }
  4369. } else {
  4370. goto handle_unusual;
  4371. }
  4372. break;
  4373. }
  4374. // required int32 device_id = 3;
  4375. case 3: {
  4376. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4377. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  4378. set_has_device_id();
  4379. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4380. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4381. input, &device_id_)));
  4382. } else {
  4383. goto handle_unusual;
  4384. }
  4385. break;
  4386. }
  4387. // optional .message.Hardware_device_status actual_device_status = 4;
  4388. case 4: {
  4389. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4390. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  4391. int value;
  4392. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4393. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4394. input, &value)));
  4395. if (::message::Hardware_device_status_IsValid(value)) {
  4396. set_actual_device_status(static_cast< ::message::Hardware_device_status >(value));
  4397. } else {
  4398. mutable_unknown_fields()->AddVarint(
  4399. 4, static_cast< ::google::protobuf::uint64>(value));
  4400. }
  4401. } else {
  4402. goto handle_unusual;
  4403. }
  4404. break;
  4405. }
  4406. // optional .message.Load_status actual_inside_load_status = 5;
  4407. case 5: {
  4408. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4409. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  4410. int value;
  4411. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4412. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4413. input, &value)));
  4414. if (::message::Load_status_IsValid(value)) {
  4415. set_actual_inside_load_status(static_cast< ::message::Load_status >(value));
  4416. } else {
  4417. mutable_unknown_fields()->AddVarint(
  4418. 5, static_cast< ::google::protobuf::uint64>(value));
  4419. }
  4420. } else {
  4421. goto handle_unusual;
  4422. }
  4423. break;
  4424. }
  4425. // optional .message.Load_status actual_outside_load_status = 6;
  4426. case 6: {
  4427. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4428. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  4429. int value;
  4430. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4431. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4432. input, &value)));
  4433. if (::message::Load_status_IsValid(value)) {
  4434. set_actual_outside_load_status(static_cast< ::message::Load_status >(value));
  4435. } else {
  4436. mutable_unknown_fields()->AddVarint(
  4437. 6, static_cast< ::google::protobuf::uint64>(value));
  4438. }
  4439. } else {
  4440. goto handle_unusual;
  4441. }
  4442. break;
  4443. }
  4444. // optional .message.Overstep_the_boundary actual_front_overstep_the_boundary = 7;
  4445. case 7: {
  4446. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4447. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  4448. int value;
  4449. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4450. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4451. input, &value)));
  4452. if (::message::Overstep_the_boundary_IsValid(value)) {
  4453. set_actual_front_overstep_the_boundary(static_cast< ::message::Overstep_the_boundary >(value));
  4454. } else {
  4455. mutable_unknown_fields()->AddVarint(
  4456. 7, static_cast< ::google::protobuf::uint64>(value));
  4457. }
  4458. } else {
  4459. goto handle_unusual;
  4460. }
  4461. break;
  4462. }
  4463. // optional .message.Overstep_the_boundary actual_back_overstep_the_boundary = 8;
  4464. case 8: {
  4465. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4466. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  4467. int value;
  4468. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4469. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4470. input, &value)));
  4471. if (::message::Overstep_the_boundary_IsValid(value)) {
  4472. set_actual_back_overstep_the_boundary(static_cast< ::message::Overstep_the_boundary >(value));
  4473. } else {
  4474. mutable_unknown_fields()->AddVarint(
  4475. 8, static_cast< ::google::protobuf::uint64>(value));
  4476. }
  4477. } else {
  4478. goto handle_unusual;
  4479. }
  4480. break;
  4481. }
  4482. // optional .message.Overstep_the_boundary actual_height_overstep_the_boundary = 9;
  4483. case 9: {
  4484. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4485. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  4486. int value;
  4487. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4488. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4489. input, &value)));
  4490. if (::message::Overstep_the_boundary_IsValid(value)) {
  4491. set_actual_height_overstep_the_boundary(static_cast< ::message::Overstep_the_boundary >(value));
  4492. } else {
  4493. mutable_unknown_fields()->AddVarint(
  4494. 9, static_cast< ::google::protobuf::uint64>(value));
  4495. }
  4496. } else {
  4497. goto handle_unusual;
  4498. }
  4499. break;
  4500. }
  4501. // optional .message.Load_status actual_outside_door_sensor = 10;
  4502. case 10: {
  4503. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4504. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  4505. int value;
  4506. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4507. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4508. input, &value)));
  4509. if (::message::Load_status_IsValid(value)) {
  4510. set_actual_outside_door_sensor(static_cast< ::message::Load_status >(value));
  4511. } else {
  4512. mutable_unknown_fields()->AddVarint(
  4513. 10, static_cast< ::google::protobuf::uint64>(value));
  4514. }
  4515. } else {
  4516. goto handle_unusual;
  4517. }
  4518. break;
  4519. }
  4520. // optional .message.Door_motion actual_inside_door_motion = 11;
  4521. case 11: {
  4522. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4523. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  4524. int value;
  4525. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4526. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4527. input, &value)));
  4528. if (::message::Door_motion_IsValid(value)) {
  4529. set_actual_inside_door_motion(static_cast< ::message::Door_motion >(value));
  4530. } else {
  4531. mutable_unknown_fields()->AddVarint(
  4532. 11, static_cast< ::google::protobuf::uint64>(value));
  4533. }
  4534. } else {
  4535. goto handle_unusual;
  4536. }
  4537. break;
  4538. }
  4539. // optional .message.Door_motion actual_outside_door_motion = 12;
  4540. case 12: {
  4541. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4542. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  4543. int value;
  4544. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4545. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4546. input, &value)));
  4547. if (::message::Door_motion_IsValid(value)) {
  4548. set_actual_outside_door_motion(static_cast< ::message::Door_motion >(value));
  4549. } else {
  4550. mutable_unknown_fields()->AddVarint(
  4551. 12, static_cast< ::google::protobuf::uint64>(value));
  4552. }
  4553. } else {
  4554. goto handle_unusual;
  4555. }
  4556. break;
  4557. }
  4558. // optional .message.Load_status actual_turntable_load_status = 13;
  4559. case 13: {
  4560. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4561. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  4562. int value;
  4563. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4564. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4565. input, &value)));
  4566. if (::message::Load_status_IsValid(value)) {
  4567. set_actual_turntable_load_status(static_cast< ::message::Load_status >(value));
  4568. } else {
  4569. mutable_unknown_fields()->AddVarint(
  4570. 13, static_cast< ::google::protobuf::uint64>(value));
  4571. }
  4572. } else {
  4573. goto handle_unusual;
  4574. }
  4575. break;
  4576. }
  4577. // optional .message.Turntable_direction actual_turntable_direction = 14;
  4578. case 14: {
  4579. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4580. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  4581. int value;
  4582. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4583. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4584. input, &value)));
  4585. if (::message::Turntable_direction_IsValid(value)) {
  4586. set_actual_turntable_direction(static_cast< ::message::Turntable_direction >(value));
  4587. } else {
  4588. mutable_unknown_fields()->AddVarint(
  4589. 14, static_cast< ::google::protobuf::uint64>(value));
  4590. }
  4591. } else {
  4592. goto handle_unusual;
  4593. }
  4594. break;
  4595. }
  4596. // optional string actual_error_code = 15;
  4597. case 15: {
  4598. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4599. static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
  4600. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4601. input, this->mutable_actual_error_code()));
  4602. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4603. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  4604. ::google::protobuf::internal::WireFormat::PARSE,
  4605. "message.Passageway_data.actual_error_code");
  4606. } else {
  4607. goto handle_unusual;
  4608. }
  4609. break;
  4610. }
  4611. // optional string actual_warning_code = 16;
  4612. case 16: {
  4613. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4614. static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
  4615. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4616. input, this->mutable_actual_warning_code()));
  4617. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4618. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  4619. ::google::protobuf::internal::WireFormat::PARSE,
  4620. "message.Passageway_data.actual_warning_code");
  4621. } else {
  4622. goto handle_unusual;
  4623. }
  4624. break;
  4625. }
  4626. // optional string actual_error_description = 17;
  4627. case 17: {
  4628. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4629. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  4630. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4631. input, this->mutable_actual_error_description()));
  4632. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4633. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  4634. ::google::protobuf::internal::WireFormat::PARSE,
  4635. "message.Passageway_data.actual_error_description");
  4636. } else {
  4637. goto handle_unusual;
  4638. }
  4639. break;
  4640. }
  4641. default: {
  4642. handle_unusual:
  4643. if (tag == 0) {
  4644. goto success;
  4645. }
  4646. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4647. input, tag, _internal_metadata_.mutable_unknown_fields()));
  4648. break;
  4649. }
  4650. }
  4651. }
  4652. success:
  4653. // @@protoc_insertion_point(parse_success:message.Passageway_data)
  4654. return true;
  4655. failure:
  4656. // @@protoc_insertion_point(parse_failure:message.Passageway_data)
  4657. return false;
  4658. #undef DO_
  4659. }
  4660. void Passageway_data::SerializeWithCachedSizes(
  4661. ::google::protobuf::io::CodedOutputStream* output) const {
  4662. // @@protoc_insertion_point(serialize_start:message.Passageway_data)
  4663. ::google::protobuf::uint32 cached_has_bits = 0;
  4664. (void) cached_has_bits;
  4665. cached_has_bits = _has_bits_[0];
  4666. // required .message.Dispatch_device_type dispatch_device_type = 1;
  4667. if (cached_has_bits & 0x00010000u) {
  4668. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4669. 1, this->dispatch_device_type(), output);
  4670. }
  4671. // required .message.Dispatch_device_status dispatch_device_status = 2;
  4672. if (cached_has_bits & 0x00000008u) {
  4673. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4674. 2, this->dispatch_device_status(), output);
  4675. }
  4676. // required int32 device_id = 3;
  4677. if (cached_has_bits & 0x00000010u) {
  4678. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->device_id(), output);
  4679. }
  4680. // optional .message.Hardware_device_status actual_device_status = 4;
  4681. if (cached_has_bits & 0x00000020u) {
  4682. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4683. 4, this->actual_device_status(), output);
  4684. }
  4685. // optional .message.Load_status actual_inside_load_status = 5;
  4686. if (cached_has_bits & 0x00000040u) {
  4687. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4688. 5, this->actual_inside_load_status(), output);
  4689. }
  4690. // optional .message.Load_status actual_outside_load_status = 6;
  4691. if (cached_has_bits & 0x00000080u) {
  4692. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4693. 6, this->actual_outside_load_status(), output);
  4694. }
  4695. // optional .message.Overstep_the_boundary actual_front_overstep_the_boundary = 7;
  4696. if (cached_has_bits & 0x00000100u) {
  4697. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4698. 7, this->actual_front_overstep_the_boundary(), output);
  4699. }
  4700. // optional .message.Overstep_the_boundary actual_back_overstep_the_boundary = 8;
  4701. if (cached_has_bits & 0x00000200u) {
  4702. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4703. 8, this->actual_back_overstep_the_boundary(), output);
  4704. }
  4705. // optional .message.Overstep_the_boundary actual_height_overstep_the_boundary = 9;
  4706. if (cached_has_bits & 0x00000400u) {
  4707. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4708. 9, this->actual_height_overstep_the_boundary(), output);
  4709. }
  4710. // optional .message.Load_status actual_outside_door_sensor = 10;
  4711. if (cached_has_bits & 0x00000800u) {
  4712. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4713. 10, this->actual_outside_door_sensor(), output);
  4714. }
  4715. // optional .message.Door_motion actual_inside_door_motion = 11;
  4716. if (cached_has_bits & 0x00001000u) {
  4717. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4718. 11, this->actual_inside_door_motion(), output);
  4719. }
  4720. // optional .message.Door_motion actual_outside_door_motion = 12;
  4721. if (cached_has_bits & 0x00002000u) {
  4722. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4723. 12, this->actual_outside_door_motion(), output);
  4724. }
  4725. // optional .message.Load_status actual_turntable_load_status = 13;
  4726. if (cached_has_bits & 0x00004000u) {
  4727. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4728. 13, this->actual_turntable_load_status(), output);
  4729. }
  4730. // optional .message.Turntable_direction actual_turntable_direction = 14;
  4731. if (cached_has_bits & 0x00008000u) {
  4732. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4733. 14, this->actual_turntable_direction(), output);
  4734. }
  4735. // optional string actual_error_code = 15;
  4736. if (cached_has_bits & 0x00000001u) {
  4737. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4738. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  4739. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4740. "message.Passageway_data.actual_error_code");
  4741. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4742. 15, this->actual_error_code(), output);
  4743. }
  4744. // optional string actual_warning_code = 16;
  4745. if (cached_has_bits & 0x00000002u) {
  4746. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4747. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  4748. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4749. "message.Passageway_data.actual_warning_code");
  4750. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4751. 16, this->actual_warning_code(), output);
  4752. }
  4753. // optional string actual_error_description = 17;
  4754. if (cached_has_bits & 0x00000004u) {
  4755. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4756. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  4757. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4758. "message.Passageway_data.actual_error_description");
  4759. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4760. 17, this->actual_error_description(), output);
  4761. }
  4762. if (_internal_metadata_.have_unknown_fields()) {
  4763. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4764. _internal_metadata_.unknown_fields(), output);
  4765. }
  4766. // @@protoc_insertion_point(serialize_end:message.Passageway_data)
  4767. }
  4768. ::google::protobuf::uint8* Passageway_data::InternalSerializeWithCachedSizesToArray(
  4769. bool deterministic, ::google::protobuf::uint8* target) const {
  4770. (void)deterministic; // Unused
  4771. // @@protoc_insertion_point(serialize_to_array_start:message.Passageway_data)
  4772. ::google::protobuf::uint32 cached_has_bits = 0;
  4773. (void) cached_has_bits;
  4774. cached_has_bits = _has_bits_[0];
  4775. // required .message.Dispatch_device_type dispatch_device_type = 1;
  4776. if (cached_has_bits & 0x00010000u) {
  4777. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4778. 1, this->dispatch_device_type(), target);
  4779. }
  4780. // required .message.Dispatch_device_status dispatch_device_status = 2;
  4781. if (cached_has_bits & 0x00000008u) {
  4782. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4783. 2, this->dispatch_device_status(), target);
  4784. }
  4785. // required int32 device_id = 3;
  4786. if (cached_has_bits & 0x00000010u) {
  4787. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->device_id(), target);
  4788. }
  4789. // optional .message.Hardware_device_status actual_device_status = 4;
  4790. if (cached_has_bits & 0x00000020u) {
  4791. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4792. 4, this->actual_device_status(), target);
  4793. }
  4794. // optional .message.Load_status actual_inside_load_status = 5;
  4795. if (cached_has_bits & 0x00000040u) {
  4796. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4797. 5, this->actual_inside_load_status(), target);
  4798. }
  4799. // optional .message.Load_status actual_outside_load_status = 6;
  4800. if (cached_has_bits & 0x00000080u) {
  4801. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4802. 6, this->actual_outside_load_status(), target);
  4803. }
  4804. // optional .message.Overstep_the_boundary actual_front_overstep_the_boundary = 7;
  4805. if (cached_has_bits & 0x00000100u) {
  4806. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4807. 7, this->actual_front_overstep_the_boundary(), target);
  4808. }
  4809. // optional .message.Overstep_the_boundary actual_back_overstep_the_boundary = 8;
  4810. if (cached_has_bits & 0x00000200u) {
  4811. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4812. 8, this->actual_back_overstep_the_boundary(), target);
  4813. }
  4814. // optional .message.Overstep_the_boundary actual_height_overstep_the_boundary = 9;
  4815. if (cached_has_bits & 0x00000400u) {
  4816. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4817. 9, this->actual_height_overstep_the_boundary(), target);
  4818. }
  4819. // optional .message.Load_status actual_outside_door_sensor = 10;
  4820. if (cached_has_bits & 0x00000800u) {
  4821. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4822. 10, this->actual_outside_door_sensor(), target);
  4823. }
  4824. // optional .message.Door_motion actual_inside_door_motion = 11;
  4825. if (cached_has_bits & 0x00001000u) {
  4826. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4827. 11, this->actual_inside_door_motion(), target);
  4828. }
  4829. // optional .message.Door_motion actual_outside_door_motion = 12;
  4830. if (cached_has_bits & 0x00002000u) {
  4831. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4832. 12, this->actual_outside_door_motion(), target);
  4833. }
  4834. // optional .message.Load_status actual_turntable_load_status = 13;
  4835. if (cached_has_bits & 0x00004000u) {
  4836. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4837. 13, this->actual_turntable_load_status(), target);
  4838. }
  4839. // optional .message.Turntable_direction actual_turntable_direction = 14;
  4840. if (cached_has_bits & 0x00008000u) {
  4841. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4842. 14, this->actual_turntable_direction(), target);
  4843. }
  4844. // optional string actual_error_code = 15;
  4845. if (cached_has_bits & 0x00000001u) {
  4846. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4847. this->actual_error_code().data(), static_cast<int>(this->actual_error_code().length()),
  4848. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4849. "message.Passageway_data.actual_error_code");
  4850. target =
  4851. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4852. 15, this->actual_error_code(), target);
  4853. }
  4854. // optional string actual_warning_code = 16;
  4855. if (cached_has_bits & 0x00000002u) {
  4856. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4857. this->actual_warning_code().data(), static_cast<int>(this->actual_warning_code().length()),
  4858. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4859. "message.Passageway_data.actual_warning_code");
  4860. target =
  4861. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4862. 16, this->actual_warning_code(), target);
  4863. }
  4864. // optional string actual_error_description = 17;
  4865. if (cached_has_bits & 0x00000004u) {
  4866. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4867. this->actual_error_description().data(), static_cast<int>(this->actual_error_description().length()),
  4868. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4869. "message.Passageway_data.actual_error_description");
  4870. target =
  4871. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4872. 17, this->actual_error_description(), target);
  4873. }
  4874. if (_internal_metadata_.have_unknown_fields()) {
  4875. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4876. _internal_metadata_.unknown_fields(), target);
  4877. }
  4878. // @@protoc_insertion_point(serialize_to_array_end:message.Passageway_data)
  4879. return target;
  4880. }
  4881. size_t Passageway_data::RequiredFieldsByteSizeFallback() const {
  4882. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Passageway_data)
  4883. size_t total_size = 0;
  4884. if (has_dispatch_device_status()) {
  4885. // required .message.Dispatch_device_status dispatch_device_status = 2;
  4886. total_size += 1 +
  4887. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  4888. }
  4889. if (has_device_id()) {
  4890. // required int32 device_id = 3;
  4891. total_size += 1 +
  4892. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4893. this->device_id());
  4894. }
  4895. if (has_dispatch_device_type()) {
  4896. // required .message.Dispatch_device_type dispatch_device_type = 1;
  4897. total_size += 1 +
  4898. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  4899. }
  4900. return total_size;
  4901. }
  4902. size_t Passageway_data::ByteSizeLong() const {
  4903. // @@protoc_insertion_point(message_byte_size_start:message.Passageway_data)
  4904. size_t total_size = 0;
  4905. if (_internal_metadata_.have_unknown_fields()) {
  4906. total_size +=
  4907. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4908. _internal_metadata_.unknown_fields());
  4909. }
  4910. if (((_has_bits_[0] & 0x00010018) ^ 0x00010018) == 0) { // All required fields are present.
  4911. // required .message.Dispatch_device_status dispatch_device_status = 2;
  4912. total_size += 1 +
  4913. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_status());
  4914. // required int32 device_id = 3;
  4915. total_size += 1 +
  4916. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4917. this->device_id());
  4918. // required .message.Dispatch_device_type dispatch_device_type = 1;
  4919. total_size += 1 +
  4920. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  4921. } else {
  4922. total_size += RequiredFieldsByteSizeFallback();
  4923. }
  4924. if (_has_bits_[0 / 32] & 7u) {
  4925. // optional string actual_error_code = 15;
  4926. if (has_actual_error_code()) {
  4927. total_size += 1 +
  4928. ::google::protobuf::internal::WireFormatLite::StringSize(
  4929. this->actual_error_code());
  4930. }
  4931. // optional string actual_warning_code = 16;
  4932. if (has_actual_warning_code()) {
  4933. total_size += 2 +
  4934. ::google::protobuf::internal::WireFormatLite::StringSize(
  4935. this->actual_warning_code());
  4936. }
  4937. // optional string actual_error_description = 17;
  4938. if (has_actual_error_description()) {
  4939. total_size += 2 +
  4940. ::google::protobuf::internal::WireFormatLite::StringSize(
  4941. this->actual_error_description());
  4942. }
  4943. }
  4944. if (_has_bits_[0 / 32] & 224u) {
  4945. // optional .message.Hardware_device_status actual_device_status = 4;
  4946. if (has_actual_device_status()) {
  4947. total_size += 1 +
  4948. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_device_status());
  4949. }
  4950. // optional .message.Load_status actual_inside_load_status = 5;
  4951. if (has_actual_inside_load_status()) {
  4952. total_size += 1 +
  4953. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_inside_load_status());
  4954. }
  4955. // optional .message.Load_status actual_outside_load_status = 6;
  4956. if (has_actual_outside_load_status()) {
  4957. total_size += 1 +
  4958. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_outside_load_status());
  4959. }
  4960. }
  4961. if (_has_bits_[8 / 32] & 65280u) {
  4962. // optional .message.Overstep_the_boundary actual_front_overstep_the_boundary = 7;
  4963. if (has_actual_front_overstep_the_boundary()) {
  4964. total_size += 1 +
  4965. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_front_overstep_the_boundary());
  4966. }
  4967. // optional .message.Overstep_the_boundary actual_back_overstep_the_boundary = 8;
  4968. if (has_actual_back_overstep_the_boundary()) {
  4969. total_size += 1 +
  4970. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_back_overstep_the_boundary());
  4971. }
  4972. // optional .message.Overstep_the_boundary actual_height_overstep_the_boundary = 9;
  4973. if (has_actual_height_overstep_the_boundary()) {
  4974. total_size += 1 +
  4975. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_height_overstep_the_boundary());
  4976. }
  4977. // optional .message.Load_status actual_outside_door_sensor = 10;
  4978. if (has_actual_outside_door_sensor()) {
  4979. total_size += 1 +
  4980. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_outside_door_sensor());
  4981. }
  4982. // optional .message.Door_motion actual_inside_door_motion = 11;
  4983. if (has_actual_inside_door_motion()) {
  4984. total_size += 1 +
  4985. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_inside_door_motion());
  4986. }
  4987. // optional .message.Door_motion actual_outside_door_motion = 12;
  4988. if (has_actual_outside_door_motion()) {
  4989. total_size += 1 +
  4990. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_outside_door_motion());
  4991. }
  4992. // optional .message.Load_status actual_turntable_load_status = 13;
  4993. if (has_actual_turntable_load_status()) {
  4994. total_size += 1 +
  4995. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_turntable_load_status());
  4996. }
  4997. // optional .message.Turntable_direction actual_turntable_direction = 14;
  4998. if (has_actual_turntable_direction()) {
  4999. total_size += 1 +
  5000. ::google::protobuf::internal::WireFormatLite::EnumSize(this->actual_turntable_direction());
  5001. }
  5002. }
  5003. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5004. SetCachedSize(cached_size);
  5005. return total_size;
  5006. }
  5007. void Passageway_data::MergeFrom(const ::google::protobuf::Message& from) {
  5008. // @@protoc_insertion_point(generalized_merge_from_start:message.Passageway_data)
  5009. GOOGLE_DCHECK_NE(&from, this);
  5010. const Passageway_data* source =
  5011. ::google::protobuf::internal::DynamicCastToGenerated<const Passageway_data>(
  5012. &from);
  5013. if (source == NULL) {
  5014. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Passageway_data)
  5015. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5016. } else {
  5017. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Passageway_data)
  5018. MergeFrom(*source);
  5019. }
  5020. }
  5021. void Passageway_data::MergeFrom(const Passageway_data& from) {
  5022. // @@protoc_insertion_point(class_specific_merge_from_start:message.Passageway_data)
  5023. GOOGLE_DCHECK_NE(&from, this);
  5024. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5025. ::google::protobuf::uint32 cached_has_bits = 0;
  5026. (void) cached_has_bits;
  5027. cached_has_bits = from._has_bits_[0];
  5028. if (cached_has_bits & 255u) {
  5029. if (cached_has_bits & 0x00000001u) {
  5030. set_has_actual_error_code();
  5031. actual_error_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_code_);
  5032. }
  5033. if (cached_has_bits & 0x00000002u) {
  5034. set_has_actual_warning_code();
  5035. actual_warning_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_warning_code_);
  5036. }
  5037. if (cached_has_bits & 0x00000004u) {
  5038. set_has_actual_error_description();
  5039. actual_error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actual_error_description_);
  5040. }
  5041. if (cached_has_bits & 0x00000008u) {
  5042. dispatch_device_status_ = from.dispatch_device_status_;
  5043. }
  5044. if (cached_has_bits & 0x00000010u) {
  5045. device_id_ = from.device_id_;
  5046. }
  5047. if (cached_has_bits & 0x00000020u) {
  5048. actual_device_status_ = from.actual_device_status_;
  5049. }
  5050. if (cached_has_bits & 0x00000040u) {
  5051. actual_inside_load_status_ = from.actual_inside_load_status_;
  5052. }
  5053. if (cached_has_bits & 0x00000080u) {
  5054. actual_outside_load_status_ = from.actual_outside_load_status_;
  5055. }
  5056. _has_bits_[0] |= cached_has_bits;
  5057. }
  5058. if (cached_has_bits & 65280u) {
  5059. if (cached_has_bits & 0x00000100u) {
  5060. actual_front_overstep_the_boundary_ = from.actual_front_overstep_the_boundary_;
  5061. }
  5062. if (cached_has_bits & 0x00000200u) {
  5063. actual_back_overstep_the_boundary_ = from.actual_back_overstep_the_boundary_;
  5064. }
  5065. if (cached_has_bits & 0x00000400u) {
  5066. actual_height_overstep_the_boundary_ = from.actual_height_overstep_the_boundary_;
  5067. }
  5068. if (cached_has_bits & 0x00000800u) {
  5069. actual_outside_door_sensor_ = from.actual_outside_door_sensor_;
  5070. }
  5071. if (cached_has_bits & 0x00001000u) {
  5072. actual_inside_door_motion_ = from.actual_inside_door_motion_;
  5073. }
  5074. if (cached_has_bits & 0x00002000u) {
  5075. actual_outside_door_motion_ = from.actual_outside_door_motion_;
  5076. }
  5077. if (cached_has_bits & 0x00004000u) {
  5078. actual_turntable_load_status_ = from.actual_turntable_load_status_;
  5079. }
  5080. if (cached_has_bits & 0x00008000u) {
  5081. actual_turntable_direction_ = from.actual_turntable_direction_;
  5082. }
  5083. _has_bits_[0] |= cached_has_bits;
  5084. }
  5085. if (cached_has_bits & 0x00010000u) {
  5086. set_dispatch_device_type(from.dispatch_device_type());
  5087. }
  5088. }
  5089. void Passageway_data::CopyFrom(const ::google::protobuf::Message& from) {
  5090. // @@protoc_insertion_point(generalized_copy_from_start:message.Passageway_data)
  5091. if (&from == this) return;
  5092. Clear();
  5093. MergeFrom(from);
  5094. }
  5095. void Passageway_data::CopyFrom(const Passageway_data& from) {
  5096. // @@protoc_insertion_point(class_specific_copy_from_start:message.Passageway_data)
  5097. if (&from == this) return;
  5098. Clear();
  5099. MergeFrom(from);
  5100. }
  5101. bool Passageway_data::IsInitialized() const {
  5102. if ((_has_bits_[0] & 0x00010018) != 0x00010018) return false;
  5103. return true;
  5104. }
  5105. void Passageway_data::Swap(Passageway_data* other) {
  5106. if (other == this) return;
  5107. InternalSwap(other);
  5108. }
  5109. void Passageway_data::InternalSwap(Passageway_data* other) {
  5110. using std::swap;
  5111. actual_error_code_.Swap(&other->actual_error_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5112. GetArenaNoVirtual());
  5113. actual_warning_code_.Swap(&other->actual_warning_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5114. GetArenaNoVirtual());
  5115. actual_error_description_.Swap(&other->actual_error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5116. GetArenaNoVirtual());
  5117. swap(dispatch_device_status_, other->dispatch_device_status_);
  5118. swap(device_id_, other->device_id_);
  5119. swap(actual_device_status_, other->actual_device_status_);
  5120. swap(actual_inside_load_status_, other->actual_inside_load_status_);
  5121. swap(actual_outside_load_status_, other->actual_outside_load_status_);
  5122. swap(actual_front_overstep_the_boundary_, other->actual_front_overstep_the_boundary_);
  5123. swap(actual_back_overstep_the_boundary_, other->actual_back_overstep_the_boundary_);
  5124. swap(actual_height_overstep_the_boundary_, other->actual_height_overstep_the_boundary_);
  5125. swap(actual_outside_door_sensor_, other->actual_outside_door_sensor_);
  5126. swap(actual_inside_door_motion_, other->actual_inside_door_motion_);
  5127. swap(actual_outside_door_motion_, other->actual_outside_door_motion_);
  5128. swap(actual_turntable_load_status_, other->actual_turntable_load_status_);
  5129. swap(actual_turntable_direction_, other->actual_turntable_direction_);
  5130. swap(dispatch_device_type_, other->dispatch_device_type_);
  5131. swap(_has_bits_[0], other->_has_bits_[0]);
  5132. _internal_metadata_.Swap(&other->_internal_metadata_);
  5133. }
  5134. ::google::protobuf::Metadata Passageway_data::GetMetadata() const {
  5135. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  5136. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  5137. }
  5138. // ===================================================================
  5139. void Dispatch_manager_status_msg::InitAsDefaultInstance() {
  5140. ::message::_Dispatch_manager_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  5141. ::message::Base_info::internal_default_instance());
  5142. }
  5143. void Dispatch_manager_status_msg::clear_base_info() {
  5144. if (base_info_ != NULL) base_info_->Clear();
  5145. clear_has_base_info();
  5146. }
  5147. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5148. const int Dispatch_manager_status_msg::kBaseInfoFieldNumber;
  5149. const int Dispatch_manager_status_msg::kDispatchIdFieldNumber;
  5150. const int Dispatch_manager_status_msg::kDispatchManagerStatusFieldNumber;
  5151. const int Dispatch_manager_status_msg::kCatcherDataMapFieldNumber;
  5152. const int Dispatch_manager_status_msg::kCarrierDataMapFieldNumber;
  5153. const int Dispatch_manager_status_msg::kPassagewayDataMapFieldNumber;
  5154. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5155. Dispatch_manager_status_msg::Dispatch_manager_status_msg()
  5156. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5157. ::google::protobuf::internal::InitSCC(
  5158. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_manager_status_msg.base);
  5159. SharedCtor();
  5160. // @@protoc_insertion_point(constructor:message.Dispatch_manager_status_msg)
  5161. }
  5162. Dispatch_manager_status_msg::Dispatch_manager_status_msg(const Dispatch_manager_status_msg& from)
  5163. : ::google::protobuf::Message(),
  5164. _internal_metadata_(NULL),
  5165. _has_bits_(from._has_bits_),
  5166. catcher_data_map_(from.catcher_data_map_),
  5167. carrier_data_map_(from.carrier_data_map_),
  5168. passageway_data_map_(from.passageway_data_map_) {
  5169. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5170. if (from.has_base_info()) {
  5171. base_info_ = new ::message::Base_info(*from.base_info_);
  5172. } else {
  5173. base_info_ = NULL;
  5174. }
  5175. ::memcpy(&dispatch_id_, &from.dispatch_id_,
  5176. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_manager_status_) -
  5177. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(dispatch_manager_status_));
  5178. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_status_msg)
  5179. }
  5180. void Dispatch_manager_status_msg::SharedCtor() {
  5181. ::memset(&base_info_, 0, static_cast<size_t>(
  5182. reinterpret_cast<char*>(&dispatch_manager_status_) -
  5183. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_manager_status_));
  5184. }
  5185. Dispatch_manager_status_msg::~Dispatch_manager_status_msg() {
  5186. // @@protoc_insertion_point(destructor:message.Dispatch_manager_status_msg)
  5187. SharedDtor();
  5188. }
  5189. void Dispatch_manager_status_msg::SharedDtor() {
  5190. if (this != internal_default_instance()) delete base_info_;
  5191. }
  5192. void Dispatch_manager_status_msg::SetCachedSize(int size) const {
  5193. _cached_size_.Set(size);
  5194. }
  5195. const ::google::protobuf::Descriptor* Dispatch_manager_status_msg::descriptor() {
  5196. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  5197. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5198. }
  5199. const Dispatch_manager_status_msg& Dispatch_manager_status_msg::default_instance() {
  5200. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_manager_status_msg.base);
  5201. return *internal_default_instance();
  5202. }
  5203. void Dispatch_manager_status_msg::Clear() {
  5204. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_status_msg)
  5205. ::google::protobuf::uint32 cached_has_bits = 0;
  5206. // Prevent compiler warnings about cached_has_bits being unused
  5207. (void) cached_has_bits;
  5208. catcher_data_map_.Clear();
  5209. carrier_data_map_.Clear();
  5210. passageway_data_map_.Clear();
  5211. cached_has_bits = _has_bits_[0];
  5212. if (cached_has_bits & 0x00000001u) {
  5213. GOOGLE_DCHECK(base_info_ != NULL);
  5214. base_info_->Clear();
  5215. }
  5216. if (cached_has_bits & 6u) {
  5217. ::memset(&dispatch_id_, 0, static_cast<size_t>(
  5218. reinterpret_cast<char*>(&dispatch_manager_status_) -
  5219. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(dispatch_manager_status_));
  5220. }
  5221. _has_bits_.Clear();
  5222. _internal_metadata_.Clear();
  5223. }
  5224. bool Dispatch_manager_status_msg::MergePartialFromCodedStream(
  5225. ::google::protobuf::io::CodedInputStream* input) {
  5226. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  5227. ::google::protobuf::uint32 tag;
  5228. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_status_msg)
  5229. for (;;) {
  5230. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  5231. tag = p.first;
  5232. if (!p.second) goto handle_unusual;
  5233. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5234. // required .message.Base_info base_info = 1;
  5235. case 1: {
  5236. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5237. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  5238. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5239. input, mutable_base_info()));
  5240. } else {
  5241. goto handle_unusual;
  5242. }
  5243. break;
  5244. }
  5245. // required int32 dispatch_id = 2;
  5246. case 2: {
  5247. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5248. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  5249. set_has_dispatch_id();
  5250. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5251. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5252. input, &dispatch_id_)));
  5253. } else {
  5254. goto handle_unusual;
  5255. }
  5256. break;
  5257. }
  5258. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  5259. case 3: {
  5260. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5261. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  5262. int value;
  5263. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5264. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  5265. input, &value)));
  5266. if (::message::Dispatch_manager_status_IsValid(value)) {
  5267. set_dispatch_manager_status(static_cast< ::message::Dispatch_manager_status >(value));
  5268. } else {
  5269. mutable_unknown_fields()->AddVarint(
  5270. 3, static_cast< ::google::protobuf::uint64>(value));
  5271. }
  5272. } else {
  5273. goto handle_unusual;
  5274. }
  5275. break;
  5276. }
  5277. // repeated .message.Catcher_data catcher_data_map = 4;
  5278. case 4: {
  5279. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5280. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  5281. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5282. input, add_catcher_data_map()));
  5283. } else {
  5284. goto handle_unusual;
  5285. }
  5286. break;
  5287. }
  5288. // repeated .message.Carrier_data carrier_data_map = 5;
  5289. case 5: {
  5290. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5291. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  5292. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5293. input, add_carrier_data_map()));
  5294. } else {
  5295. goto handle_unusual;
  5296. }
  5297. break;
  5298. }
  5299. // repeated .message.Passageway_data passageway_data_map = 6;
  5300. case 6: {
  5301. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5302. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  5303. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5304. input, add_passageway_data_map()));
  5305. } else {
  5306. goto handle_unusual;
  5307. }
  5308. break;
  5309. }
  5310. default: {
  5311. handle_unusual:
  5312. if (tag == 0) {
  5313. goto success;
  5314. }
  5315. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5316. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5317. break;
  5318. }
  5319. }
  5320. }
  5321. success:
  5322. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_status_msg)
  5323. return true;
  5324. failure:
  5325. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_status_msg)
  5326. return false;
  5327. #undef DO_
  5328. }
  5329. void Dispatch_manager_status_msg::SerializeWithCachedSizes(
  5330. ::google::protobuf::io::CodedOutputStream* output) const {
  5331. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_status_msg)
  5332. ::google::protobuf::uint32 cached_has_bits = 0;
  5333. (void) cached_has_bits;
  5334. cached_has_bits = _has_bits_[0];
  5335. // required .message.Base_info base_info = 1;
  5336. if (cached_has_bits & 0x00000001u) {
  5337. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5338. 1, this->_internal_base_info(), output);
  5339. }
  5340. // required int32 dispatch_id = 2;
  5341. if (cached_has_bits & 0x00000002u) {
  5342. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatch_id(), output);
  5343. }
  5344. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  5345. if (cached_has_bits & 0x00000004u) {
  5346. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5347. 3, this->dispatch_manager_status(), output);
  5348. }
  5349. // repeated .message.Catcher_data catcher_data_map = 4;
  5350. for (unsigned int i = 0,
  5351. n = static_cast<unsigned int>(this->catcher_data_map_size()); i < n; i++) {
  5352. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5353. 4,
  5354. this->catcher_data_map(static_cast<int>(i)),
  5355. output);
  5356. }
  5357. // repeated .message.Carrier_data carrier_data_map = 5;
  5358. for (unsigned int i = 0,
  5359. n = static_cast<unsigned int>(this->carrier_data_map_size()); i < n; i++) {
  5360. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5361. 5,
  5362. this->carrier_data_map(static_cast<int>(i)),
  5363. output);
  5364. }
  5365. // repeated .message.Passageway_data passageway_data_map = 6;
  5366. for (unsigned int i = 0,
  5367. n = static_cast<unsigned int>(this->passageway_data_map_size()); i < n; i++) {
  5368. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5369. 6,
  5370. this->passageway_data_map(static_cast<int>(i)),
  5371. output);
  5372. }
  5373. if (_internal_metadata_.have_unknown_fields()) {
  5374. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5375. _internal_metadata_.unknown_fields(), output);
  5376. }
  5377. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_status_msg)
  5378. }
  5379. ::google::protobuf::uint8* Dispatch_manager_status_msg::InternalSerializeWithCachedSizesToArray(
  5380. bool deterministic, ::google::protobuf::uint8* target) const {
  5381. (void)deterministic; // Unused
  5382. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_status_msg)
  5383. ::google::protobuf::uint32 cached_has_bits = 0;
  5384. (void) cached_has_bits;
  5385. cached_has_bits = _has_bits_[0];
  5386. // required .message.Base_info base_info = 1;
  5387. if (cached_has_bits & 0x00000001u) {
  5388. target = ::google::protobuf::internal::WireFormatLite::
  5389. InternalWriteMessageToArray(
  5390. 1, this->_internal_base_info(), deterministic, target);
  5391. }
  5392. // required int32 dispatch_id = 2;
  5393. if (cached_has_bits & 0x00000002u) {
  5394. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatch_id(), target);
  5395. }
  5396. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  5397. if (cached_has_bits & 0x00000004u) {
  5398. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5399. 3, this->dispatch_manager_status(), target);
  5400. }
  5401. // repeated .message.Catcher_data catcher_data_map = 4;
  5402. for (unsigned int i = 0,
  5403. n = static_cast<unsigned int>(this->catcher_data_map_size()); i < n; i++) {
  5404. target = ::google::protobuf::internal::WireFormatLite::
  5405. InternalWriteMessageToArray(
  5406. 4, this->catcher_data_map(static_cast<int>(i)), deterministic, target);
  5407. }
  5408. // repeated .message.Carrier_data carrier_data_map = 5;
  5409. for (unsigned int i = 0,
  5410. n = static_cast<unsigned int>(this->carrier_data_map_size()); i < n; i++) {
  5411. target = ::google::protobuf::internal::WireFormatLite::
  5412. InternalWriteMessageToArray(
  5413. 5, this->carrier_data_map(static_cast<int>(i)), deterministic, target);
  5414. }
  5415. // repeated .message.Passageway_data passageway_data_map = 6;
  5416. for (unsigned int i = 0,
  5417. n = static_cast<unsigned int>(this->passageway_data_map_size()); i < n; i++) {
  5418. target = ::google::protobuf::internal::WireFormatLite::
  5419. InternalWriteMessageToArray(
  5420. 6, this->passageway_data_map(static_cast<int>(i)), deterministic, target);
  5421. }
  5422. if (_internal_metadata_.have_unknown_fields()) {
  5423. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5424. _internal_metadata_.unknown_fields(), target);
  5425. }
  5426. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_status_msg)
  5427. return target;
  5428. }
  5429. size_t Dispatch_manager_status_msg::RequiredFieldsByteSizeFallback() const {
  5430. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_manager_status_msg)
  5431. size_t total_size = 0;
  5432. if (has_base_info()) {
  5433. // required .message.Base_info base_info = 1;
  5434. total_size += 1 +
  5435. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5436. *base_info_);
  5437. }
  5438. if (has_dispatch_id()) {
  5439. // required int32 dispatch_id = 2;
  5440. total_size += 1 +
  5441. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5442. this->dispatch_id());
  5443. }
  5444. if (has_dispatch_manager_status()) {
  5445. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  5446. total_size += 1 +
  5447. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  5448. }
  5449. return total_size;
  5450. }
  5451. size_t Dispatch_manager_status_msg::ByteSizeLong() const {
  5452. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_status_msg)
  5453. size_t total_size = 0;
  5454. if (_internal_metadata_.have_unknown_fields()) {
  5455. total_size +=
  5456. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5457. _internal_metadata_.unknown_fields());
  5458. }
  5459. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  5460. // required .message.Base_info base_info = 1;
  5461. total_size += 1 +
  5462. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5463. *base_info_);
  5464. // required int32 dispatch_id = 2;
  5465. total_size += 1 +
  5466. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5467. this->dispatch_id());
  5468. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  5469. total_size += 1 +
  5470. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  5471. } else {
  5472. total_size += RequiredFieldsByteSizeFallback();
  5473. }
  5474. // repeated .message.Catcher_data catcher_data_map = 4;
  5475. {
  5476. unsigned int count = static_cast<unsigned int>(this->catcher_data_map_size());
  5477. total_size += 1UL * count;
  5478. for (unsigned int i = 0; i < count; i++) {
  5479. total_size +=
  5480. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5481. this->catcher_data_map(static_cast<int>(i)));
  5482. }
  5483. }
  5484. // repeated .message.Carrier_data carrier_data_map = 5;
  5485. {
  5486. unsigned int count = static_cast<unsigned int>(this->carrier_data_map_size());
  5487. total_size += 1UL * count;
  5488. for (unsigned int i = 0; i < count; i++) {
  5489. total_size +=
  5490. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5491. this->carrier_data_map(static_cast<int>(i)));
  5492. }
  5493. }
  5494. // repeated .message.Passageway_data passageway_data_map = 6;
  5495. {
  5496. unsigned int count = static_cast<unsigned int>(this->passageway_data_map_size());
  5497. total_size += 1UL * count;
  5498. for (unsigned int i = 0; i < count; i++) {
  5499. total_size +=
  5500. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5501. this->passageway_data_map(static_cast<int>(i)));
  5502. }
  5503. }
  5504. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5505. SetCachedSize(cached_size);
  5506. return total_size;
  5507. }
  5508. void Dispatch_manager_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  5509. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_status_msg)
  5510. GOOGLE_DCHECK_NE(&from, this);
  5511. const Dispatch_manager_status_msg* source =
  5512. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_status_msg>(
  5513. &from);
  5514. if (source == NULL) {
  5515. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_status_msg)
  5516. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5517. } else {
  5518. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_status_msg)
  5519. MergeFrom(*source);
  5520. }
  5521. }
  5522. void Dispatch_manager_status_msg::MergeFrom(const Dispatch_manager_status_msg& from) {
  5523. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_status_msg)
  5524. GOOGLE_DCHECK_NE(&from, this);
  5525. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5526. ::google::protobuf::uint32 cached_has_bits = 0;
  5527. (void) cached_has_bits;
  5528. catcher_data_map_.MergeFrom(from.catcher_data_map_);
  5529. carrier_data_map_.MergeFrom(from.carrier_data_map_);
  5530. passageway_data_map_.MergeFrom(from.passageway_data_map_);
  5531. cached_has_bits = from._has_bits_[0];
  5532. if (cached_has_bits & 7u) {
  5533. if (cached_has_bits & 0x00000001u) {
  5534. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  5535. }
  5536. if (cached_has_bits & 0x00000002u) {
  5537. dispatch_id_ = from.dispatch_id_;
  5538. }
  5539. if (cached_has_bits & 0x00000004u) {
  5540. dispatch_manager_status_ = from.dispatch_manager_status_;
  5541. }
  5542. _has_bits_[0] |= cached_has_bits;
  5543. }
  5544. }
  5545. void Dispatch_manager_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  5546. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_status_msg)
  5547. if (&from == this) return;
  5548. Clear();
  5549. MergeFrom(from);
  5550. }
  5551. void Dispatch_manager_status_msg::CopyFrom(const Dispatch_manager_status_msg& from) {
  5552. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_status_msg)
  5553. if (&from == this) return;
  5554. Clear();
  5555. MergeFrom(from);
  5556. }
  5557. bool Dispatch_manager_status_msg::IsInitialized() const {
  5558. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  5559. if (!::google::protobuf::internal::AllAreInitialized(this->catcher_data_map())) return false;
  5560. if (!::google::protobuf::internal::AllAreInitialized(this->carrier_data_map())) return false;
  5561. if (!::google::protobuf::internal::AllAreInitialized(this->passageway_data_map())) return false;
  5562. if (has_base_info()) {
  5563. if (!this->base_info_->IsInitialized()) return false;
  5564. }
  5565. return true;
  5566. }
  5567. void Dispatch_manager_status_msg::Swap(Dispatch_manager_status_msg* other) {
  5568. if (other == this) return;
  5569. InternalSwap(other);
  5570. }
  5571. void Dispatch_manager_status_msg::InternalSwap(Dispatch_manager_status_msg* other) {
  5572. using std::swap;
  5573. CastToBase(&catcher_data_map_)->InternalSwap(CastToBase(&other->catcher_data_map_));
  5574. CastToBase(&carrier_data_map_)->InternalSwap(CastToBase(&other->carrier_data_map_));
  5575. CastToBase(&passageway_data_map_)->InternalSwap(CastToBase(&other->passageway_data_map_));
  5576. swap(base_info_, other->base_info_);
  5577. swap(dispatch_id_, other->dispatch_id_);
  5578. swap(dispatch_manager_status_, other->dispatch_manager_status_);
  5579. swap(_has_bits_[0], other->_has_bits_[0]);
  5580. _internal_metadata_.Swap(&other->_internal_metadata_);
  5581. }
  5582. ::google::protobuf::Metadata Dispatch_manager_status_msg::GetMetadata() const {
  5583. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  5584. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  5585. }
  5586. // ===================================================================
  5587. void Dispatch_manager_data_msg::InitAsDefaultInstance() {
  5588. }
  5589. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5590. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5591. Dispatch_manager_data_msg::Dispatch_manager_data_msg()
  5592. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5593. ::google::protobuf::internal::InitSCC(
  5594. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_manager_data_msg.base);
  5595. SharedCtor();
  5596. // @@protoc_insertion_point(constructor:message.Dispatch_manager_data_msg)
  5597. }
  5598. Dispatch_manager_data_msg::Dispatch_manager_data_msg(const Dispatch_manager_data_msg& from)
  5599. : ::google::protobuf::Message(),
  5600. _internal_metadata_(NULL),
  5601. _has_bits_(from._has_bits_) {
  5602. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5603. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_data_msg)
  5604. }
  5605. void Dispatch_manager_data_msg::SharedCtor() {
  5606. }
  5607. Dispatch_manager_data_msg::~Dispatch_manager_data_msg() {
  5608. // @@protoc_insertion_point(destructor:message.Dispatch_manager_data_msg)
  5609. SharedDtor();
  5610. }
  5611. void Dispatch_manager_data_msg::SharedDtor() {
  5612. }
  5613. void Dispatch_manager_data_msg::SetCachedSize(int size) const {
  5614. _cached_size_.Set(size);
  5615. }
  5616. const ::google::protobuf::Descriptor* Dispatch_manager_data_msg::descriptor() {
  5617. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  5618. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5619. }
  5620. const Dispatch_manager_data_msg& Dispatch_manager_data_msg::default_instance() {
  5621. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_manager_data_msg.base);
  5622. return *internal_default_instance();
  5623. }
  5624. void Dispatch_manager_data_msg::Clear() {
  5625. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_data_msg)
  5626. ::google::protobuf::uint32 cached_has_bits = 0;
  5627. // Prevent compiler warnings about cached_has_bits being unused
  5628. (void) cached_has_bits;
  5629. _has_bits_.Clear();
  5630. _internal_metadata_.Clear();
  5631. }
  5632. bool Dispatch_manager_data_msg::MergePartialFromCodedStream(
  5633. ::google::protobuf::io::CodedInputStream* input) {
  5634. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  5635. ::google::protobuf::uint32 tag;
  5636. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_data_msg)
  5637. for (;;) {
  5638. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  5639. tag = p.first;
  5640. if (!p.second) goto handle_unusual;
  5641. handle_unusual:
  5642. if (tag == 0) {
  5643. goto success;
  5644. }
  5645. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5646. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5647. }
  5648. success:
  5649. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_data_msg)
  5650. return true;
  5651. failure:
  5652. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_data_msg)
  5653. return false;
  5654. #undef DO_
  5655. }
  5656. void Dispatch_manager_data_msg::SerializeWithCachedSizes(
  5657. ::google::protobuf::io::CodedOutputStream* output) const {
  5658. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_data_msg)
  5659. ::google::protobuf::uint32 cached_has_bits = 0;
  5660. (void) cached_has_bits;
  5661. if (_internal_metadata_.have_unknown_fields()) {
  5662. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5663. _internal_metadata_.unknown_fields(), output);
  5664. }
  5665. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_data_msg)
  5666. }
  5667. ::google::protobuf::uint8* Dispatch_manager_data_msg::InternalSerializeWithCachedSizesToArray(
  5668. bool deterministic, ::google::protobuf::uint8* target) const {
  5669. (void)deterministic; // Unused
  5670. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_data_msg)
  5671. ::google::protobuf::uint32 cached_has_bits = 0;
  5672. (void) cached_has_bits;
  5673. if (_internal_metadata_.have_unknown_fields()) {
  5674. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5675. _internal_metadata_.unknown_fields(), target);
  5676. }
  5677. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_data_msg)
  5678. return target;
  5679. }
  5680. size_t Dispatch_manager_data_msg::ByteSizeLong() const {
  5681. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_data_msg)
  5682. size_t total_size = 0;
  5683. if (_internal_metadata_.have_unknown_fields()) {
  5684. total_size +=
  5685. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5686. _internal_metadata_.unknown_fields());
  5687. }
  5688. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5689. SetCachedSize(cached_size);
  5690. return total_size;
  5691. }
  5692. void Dispatch_manager_data_msg::MergeFrom(const ::google::protobuf::Message& from) {
  5693. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_data_msg)
  5694. GOOGLE_DCHECK_NE(&from, this);
  5695. const Dispatch_manager_data_msg* source =
  5696. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_data_msg>(
  5697. &from);
  5698. if (source == NULL) {
  5699. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_data_msg)
  5700. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5701. } else {
  5702. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_data_msg)
  5703. MergeFrom(*source);
  5704. }
  5705. }
  5706. void Dispatch_manager_data_msg::MergeFrom(const Dispatch_manager_data_msg& from) {
  5707. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_data_msg)
  5708. GOOGLE_DCHECK_NE(&from, this);
  5709. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5710. ::google::protobuf::uint32 cached_has_bits = 0;
  5711. (void) cached_has_bits;
  5712. }
  5713. void Dispatch_manager_data_msg::CopyFrom(const ::google::protobuf::Message& from) {
  5714. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_data_msg)
  5715. if (&from == this) return;
  5716. Clear();
  5717. MergeFrom(from);
  5718. }
  5719. void Dispatch_manager_data_msg::CopyFrom(const Dispatch_manager_data_msg& from) {
  5720. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_data_msg)
  5721. if (&from == this) return;
  5722. Clear();
  5723. MergeFrom(from);
  5724. }
  5725. bool Dispatch_manager_data_msg::IsInitialized() const {
  5726. return true;
  5727. }
  5728. void Dispatch_manager_data_msg::Swap(Dispatch_manager_data_msg* other) {
  5729. if (other == this) return;
  5730. InternalSwap(other);
  5731. }
  5732. void Dispatch_manager_data_msg::InternalSwap(Dispatch_manager_data_msg* other) {
  5733. using std::swap;
  5734. swap(_has_bits_[0], other->_has_bits_[0]);
  5735. _internal_metadata_.Swap(&other->_internal_metadata_);
  5736. }
  5737. ::google::protobuf::Metadata Dispatch_manager_data_msg::GetMetadata() const {
  5738. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  5739. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  5740. }
  5741. // @@protoc_insertion_point(namespace_scope)
  5742. } // namespace message
  5743. namespace google {
  5744. namespace protobuf {
  5745. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_terminal_status_msg* Arena::CreateMaybeMessage< ::message::Dispatch_terminal_status_msg >(Arena* arena) {
  5746. return Arena::CreateInternal< ::message::Dispatch_terminal_status_msg >(arena);
  5747. }
  5748. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_request_msg* Arena::CreateMaybeMessage< ::message::Dispatch_request_msg >(Arena* arena) {
  5749. return Arena::CreateInternal< ::message::Dispatch_request_msg >(arena);
  5750. }
  5751. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_response_msg* Arena::CreateMaybeMessage< ::message::Dispatch_response_msg >(Arena* arena) {
  5752. return Arena::CreateInternal< ::message::Dispatch_response_msg >(arena);
  5753. }
  5754. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Catcher_data* Arena::CreateMaybeMessage< ::message::Catcher_data >(Arena* arena) {
  5755. return Arena::CreateInternal< ::message::Catcher_data >(arena);
  5756. }
  5757. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Carrier_data* Arena::CreateMaybeMessage< ::message::Carrier_data >(Arena* arena) {
  5758. return Arena::CreateInternal< ::message::Carrier_data >(arena);
  5759. }
  5760. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Passageway_data* Arena::CreateMaybeMessage< ::message::Passageway_data >(Arena* arena) {
  5761. return Arena::CreateInternal< ::message::Passageway_data >(arena);
  5762. }
  5763. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_manager_status_msg* Arena::CreateMaybeMessage< ::message::Dispatch_manager_status_msg >(Arena* arena) {
  5764. return Arena::CreateInternal< ::message::Dispatch_manager_status_msg >(arena);
  5765. }
  5766. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_manager_data_msg* Arena::CreateMaybeMessage< ::message::Dispatch_manager_data_msg >(Arena* arena) {
  5767. return Arena::CreateInternal< ::message::Dispatch_manager_data_msg >(arena);
  5768. }
  5769. } // namespace protobuf
  5770. } // namespace google
  5771. // @@protoc_insertion_point(global_scope)