measure_message.pb.cc 197 KB

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