dispatch_message.pb.cc 246 KB

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