measure_message.pb.cc 199 KB

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