measure_message.pb.cc 197 KB

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