measure_message.pb.cc 203 KB

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