dispatch_message.pb.cc 252 KB

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