measure_message.pb.cc 198 KB

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