measure_message.pb.cc 200 KB

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