measure_message.pb.cc 205 KB

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