dispatch_message.pb.cc 249 KB

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