dispatch_message.pb.cc 247 KB

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