dispatch_message.pb.cc 250 KB

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