measure_message.pb.cc 205 KB

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