measure_message.pb.cc 209 KB

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