measure_message.pb.cc 223 KB

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