measure_message.pb.cc 141 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: measure_message.proto
  3. #include "measure_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace message {
  20. class Measure_status_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Measure_status_msg>
  23. _instance;
  24. } _Measure_status_msg_default_instance_;
  25. class Measure_request_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Measure_request_msg>
  28. _instance;
  29. } _Measure_request_msg_default_instance_;
  30. class Measure_response_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Measure_response_msg>
  33. _instance;
  34. } _Measure_response_msg_default_instance_;
  35. class Cloud_coordinateDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Cloud_coordinate>
  38. _instance;
  39. } _Cloud_coordinate_default_instance_;
  40. class Cloud_typeDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<Cloud_type>
  43. _instance;
  44. } _Cloud_type_default_instance_;
  45. class Locate_sift_request_msgDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Locate_sift_request_msg>
  48. _instance;
  49. } _Locate_sift_request_msg_default_instance_;
  50. class Locate_sift_response_msgDefaultTypeInternal {
  51. public:
  52. ::google::protobuf::internal::ExplicitlyConstructed<Locate_sift_response_msg>
  53. _instance;
  54. } _Locate_sift_response_msg_default_instance_;
  55. } // namespace message
  56. namespace protobuf_measure_5fmessage_2eproto {
  57. void InitDefaultsMeasure_status_msgImpl() {
  58. GOOGLE_PROTOBUF_VERIFY_VERSION;
  59. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  60. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  61. #else
  62. ::google::protobuf::internal::InitProtobufDefaults();
  63. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  64. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  65. protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  66. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  67. {
  68. void* ptr = &::message::_Measure_status_msg_default_instance_;
  69. new (ptr) ::message::Measure_status_msg();
  70. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  71. }
  72. ::message::Measure_status_msg::InitAsDefaultInstance();
  73. }
  74. void InitDefaultsMeasure_status_msg() {
  75. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  76. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMeasure_status_msgImpl);
  77. }
  78. void InitDefaultsMeasure_request_msgImpl() {
  79. GOOGLE_PROTOBUF_VERIFY_VERSION;
  80. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  81. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  82. #else
  83. ::google::protobuf::internal::InitProtobufDefaults();
  84. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  85. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  86. {
  87. void* ptr = &::message::_Measure_request_msg_default_instance_;
  88. new (ptr) ::message::Measure_request_msg();
  89. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  90. }
  91. ::message::Measure_request_msg::InitAsDefaultInstance();
  92. }
  93. void InitDefaultsMeasure_request_msg() {
  94. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  95. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMeasure_request_msgImpl);
  96. }
  97. void InitDefaultsMeasure_response_msgImpl() {
  98. GOOGLE_PROTOBUF_VERIFY_VERSION;
  99. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  100. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  101. #else
  102. ::google::protobuf::internal::InitProtobufDefaults();
  103. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  104. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  105. protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  106. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  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. void InitDefaultsMeasure_response_msg() {
  115. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  116. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMeasure_response_msgImpl);
  117. }
  118. void InitDefaultsCloud_coordinateImpl() {
  119. GOOGLE_PROTOBUF_VERIFY_VERSION;
  120. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  121. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  122. #else
  123. ::google::protobuf::internal::InitProtobufDefaults();
  124. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  125. {
  126. void* ptr = &::message::_Cloud_coordinate_default_instance_;
  127. new (ptr) ::message::Cloud_coordinate();
  128. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  129. }
  130. ::message::Cloud_coordinate::InitAsDefaultInstance();
  131. }
  132. void InitDefaultsCloud_coordinate() {
  133. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  134. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCloud_coordinateImpl);
  135. }
  136. void InitDefaultsCloud_typeImpl() {
  137. GOOGLE_PROTOBUF_VERIFY_VERSION;
  138. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  139. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  140. #else
  141. ::google::protobuf::internal::InitProtobufDefaults();
  142. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  143. {
  144. void* ptr = &::message::_Cloud_type_default_instance_;
  145. new (ptr) ::message::Cloud_type();
  146. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  147. }
  148. ::message::Cloud_type::InitAsDefaultInstance();
  149. }
  150. void InitDefaultsCloud_type() {
  151. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  152. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCloud_typeImpl);
  153. }
  154. void InitDefaultsLocate_sift_request_msgImpl() {
  155. GOOGLE_PROTOBUF_VERIFY_VERSION;
  156. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  157. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  158. #else
  159. ::google::protobuf::internal::InitProtobufDefaults();
  160. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  161. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  162. protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_coordinate();
  163. {
  164. void* ptr = &::message::_Locate_sift_request_msg_default_instance_;
  165. new (ptr) ::message::Locate_sift_request_msg();
  166. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  167. }
  168. ::message::Locate_sift_request_msg::InitAsDefaultInstance();
  169. }
  170. void InitDefaultsLocate_sift_request_msg() {
  171. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  172. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocate_sift_request_msgImpl);
  173. }
  174. void InitDefaultsLocate_sift_response_msgImpl() {
  175. GOOGLE_PROTOBUF_VERIFY_VERSION;
  176. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  177. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  178. #else
  179. ::google::protobuf::internal::InitProtobufDefaults();
  180. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  181. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  182. protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_type();
  183. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  184. {
  185. void* ptr = &::message::_Locate_sift_response_msg_default_instance_;
  186. new (ptr) ::message::Locate_sift_response_msg();
  187. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  188. }
  189. ::message::Locate_sift_response_msg::InitAsDefaultInstance();
  190. }
  191. void InitDefaultsLocate_sift_response_msg() {
  192. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  193. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocate_sift_response_msgImpl);
  194. }
  195. ::google::protobuf::Metadata file_level_metadata[7];
  196. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6];
  197. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, _has_bits_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, _internal_metadata_),
  200. ~0u, // no _extensions_
  201. ~0u, // no _oneof_case_
  202. ~0u, // no _weak_field_map_
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, base_info_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, terminal_id_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, laser_manager_status_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, laser_statu_vector_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, locate_manager_status_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, wanji_manager_status_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, wanji_lidar_device_status_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, region_worker_status_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, locate_information_realtime_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, error_manager_),
  213. 0,
  214. 2,
  215. 3,
  216. ~0u,
  217. 4,
  218. 5,
  219. ~0u,
  220. ~0u,
  221. ~0u,
  222. 1,
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, _has_bits_),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, _internal_metadata_),
  225. ~0u, // no _extensions_
  226. ~0u, // no _oneof_case_
  227. ~0u, // no _weak_field_map_
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, base_info_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, command_key_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, terminal_id_),
  231. 1,
  232. 0,
  233. 2,
  234. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, _has_bits_),
  235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, _internal_metadata_),
  236. ~0u, // no _extensions_
  237. ~0u, // no _oneof_case_
  238. ~0u, // no _weak_field_map_
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, base_info_),
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, command_key_),
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, terminal_id_),
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, locate_information_),
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, error_manager_),
  244. 1,
  245. 0,
  246. 4,
  247. 2,
  248. 3,
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_coordinate, _has_bits_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_coordinate, _internal_metadata_),
  251. ~0u, // no _extensions_
  252. ~0u, // no _oneof_case_
  253. ~0u, // no _weak_field_map_
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_coordinate, x_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_coordinate, y_),
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_coordinate, z_),
  257. 0,
  258. 1,
  259. 2,
  260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_type, _has_bits_),
  261. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_type, _internal_metadata_),
  262. ~0u, // no _extensions_
  263. ~0u, // no _oneof_case_
  264. ~0u, // no _weak_field_map_
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Cloud_type, type_),
  266. 0,
  267. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_request_msg, _has_bits_),
  268. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_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::Locate_sift_request_msg, base_info_),
  273. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_request_msg, command_key_),
  274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_request_msg, terminal_id_),
  275. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_request_msg, lidar_id_),
  276. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_request_msg, cloud_coordinates_),
  277. 1,
  278. 0,
  279. 2,
  280. 3,
  281. ~0u,
  282. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, _has_bits_),
  283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, _internal_metadata_),
  284. ~0u, // no _extensions_
  285. ~0u, // no _oneof_case_
  286. ~0u, // no _weak_field_map_
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, base_info_),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, command_key_),
  289. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, terminal_id_),
  290. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, lidar_id_),
  291. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, cloud_type_),
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, error_manager_),
  293. 1,
  294. 0,
  295. 3,
  296. 4,
  297. ~0u,
  298. 2,
  299. };
  300. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  301. { 0, 15, sizeof(::message::Measure_status_msg)},
  302. { 25, 33, sizeof(::message::Measure_request_msg)},
  303. { 36, 46, sizeof(::message::Measure_response_msg)},
  304. { 51, 59, sizeof(::message::Cloud_coordinate)},
  305. { 62, 68, sizeof(::message::Cloud_type)},
  306. { 69, 79, sizeof(::message::Locate_sift_request_msg)},
  307. { 84, 95, sizeof(::message::Locate_sift_response_msg)},
  308. };
  309. static ::google::protobuf::Message const * const file_default_instances[] = {
  310. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Measure_status_msg_default_instance_),
  311. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Measure_request_msg_default_instance_),
  312. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Measure_response_msg_default_instance_),
  313. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Cloud_coordinate_default_instance_),
  314. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Cloud_type_default_instance_),
  315. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Locate_sift_request_msg_default_instance_),
  316. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Locate_sift_response_msg_default_instance_),
  317. };
  318. void protobuf_AssignDescriptors() {
  319. AddDescriptors();
  320. ::google::protobuf::MessageFactory* factory = NULL;
  321. AssignDescriptors(
  322. "measure_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  323. file_level_metadata, file_level_enum_descriptors, NULL);
  324. }
  325. void protobuf_AssignDescriptorsOnce() {
  326. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  327. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  328. }
  329. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  330. void protobuf_RegisterTypes(const ::std::string&) {
  331. protobuf_AssignDescriptorsOnce();
  332. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
  333. }
  334. void AddDescriptorsImpl() {
  335. InitDefaults();
  336. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  337. "\n\025measure_message.proto\022\007message\032\022messag"
  338. "e_base.proto\"\260\004\n\022Measure_status_msg\022%\n\tb"
  339. "ase_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013te"
  340. "rminal_id\030\002 \002(\005\022;\n\024laser_manager_status\030"
  341. "\003 \002(\0162\035.message.Laser_manager_status\0220\n\022"
  342. "laser_statu_vector\030\004 \003(\0162\024.message.Laser"
  343. "_statu\022=\n\025locate_manager_status\030\005 \002(\0162\036."
  344. "message.Locate_manager_status\022;\n\024wanji_m"
  345. "anager_status\030\006 \002(\0162\035.message.Wanji_mana"
  346. "ger_status\022E\n\031wanji_lidar_device_status\030"
  347. "\007 \003(\0162\".message.Wanji_lidar_device_statu"
  348. "s\022;\n\024region_worker_status\030\010 \003(\0162\035.messag"
  349. "e.Region_worker_status\022@\n\033locate_informa"
  350. "tion_realtime\030\t \003(\0132\033.message.Locate_inf"
  351. "ormation\022-\n\rerror_manager\030\n \002(\0132\026.messag"
  352. "e.Error_manager\"f\n\023Measure_request_msg\022%"
  353. "\n\tbase_info\030\001 \002(\0132\022.message.Base_info\022\023\n"
  354. "\013command_key\030\002 \002(\t\022\023\n\013terminal_id\030\003 \002(\005\""
  355. "\317\001\n\024Measure_response_msg\022%\n\tbase_info\030\001 "
  356. "\002(\0132\022.message.Base_info\022\023\n\013command_key\030\002"
  357. " \002(\t\022\023\n\013terminal_id\030\003 \002(\005\0227\n\022locate_info"
  358. "rmation\030\004 \001(\0132\033.message.Locate_informati"
  359. "on\022-\n\rerror_manager\030\005 \002(\0132\026.message.Erro"
  360. "r_manager\"3\n\020Cloud_coordinate\022\t\n\001x\030\001 \002(\002"
  361. "\022\t\n\001y\030\002 \002(\002\022\t\n\001z\030\003 \002(\002\"\032\n\nCloud_type\022\014\n\004"
  362. "type\030\001 \002(\005\"\262\001\n\027Locate_sift_request_msg\022%"
  363. "\n\tbase_info\030\001 \002(\0132\022.message.Base_info\022\023\n"
  364. "\013command_key\030\002 \002(\t\022\023\n\013terminal_id\030\003 \002(\005\022"
  365. "\020\n\010lidar_id\030\004 \002(\005\0224\n\021cloud_coordinates\030\005"
  366. " \003(\0132\031.message.Cloud_coordinate\"\325\001\n\030Loca"
  367. "te_sift_response_msg\022%\n\tbase_info\030\001 \002(\0132"
  368. "\022.message.Base_info\022\023\n\013command_key\030\002 \002(\t"
  369. "\022\023\n\013terminal_id\030\003 \002(\005\022\020\n\010lidar_id\030\004 \002(\005\022"
  370. "\'\n\ncloud_type\030\005 \003(\0132\023.message.Cloud_type"
  371. "\022-\n\rerror_manager\030\006 \002(\0132\026.message.Error_"
  372. "manager*\237\001\n\024Laser_manager_status\022\030\n\024LASE"
  373. "R_MANAGER_UNKNOW\020\000\022\027\n\023LASER_MANAGER_READ"
  374. "Y\020\001\022\035\n\031LASER_MANAGER_ISSUED_TASK\020\002\022\034\n\030LA"
  375. "SER_MANAGER_WAIT_REPLY\020\003\022\027\n\023LASER_MANAGE"
  376. "R_FAULT\020\004*U\n\013Laser_statu\022\024\n\020LASER_DISCON"
  377. "NECT\020\000\022\017\n\013LASER_READY\020\001\022\016\n\nLASER_BUSY\020\002\022"
  378. "\017\n\013LASER_FAULT\020\003*\261\001\n\025Locate_manager_stat"
  379. "us\022\031\n\025LOCATE_MANAGER_UNKNOW\020\000\022\030\n\024LOCATE_"
  380. "MANAGER_READY\020\001\022\027\n\023LOCATE_MANAGER_SIFT\020\002"
  381. "\022\026\n\022LOCATE_MANAGER_CAR\020\003\022\030\n\024LOCATE_MANAG"
  382. "ER_WHEEL\020\004\022\030\n\024LOCATE_MANAGER_FAULT\020\005*\367\001\n"
  383. "\024Wanji_manager_status\022\031\n\025WANJI_MANAGER_U"
  384. "NKNOWN\020\000\022\027\n\023WANJI_MANAGER_READY\020\001\022\026\n\022WAN"
  385. "JI_MANAGER_BUSY\020\002\022\035\n\031WANJI_MANAGER_ISSUE"
  386. "D_SCAN\020\003\022\033\n\027WANJI_MANAGER_WAIT_SCAN\020\004\022\037\n"
  387. "\033WANJI_MANAGER_ISSUED_DETECT\020\005\022\035\n\031WANJI_"
  388. "MANAGER_WAIT_DETECT\020\006\022\027\n\023WANJI_MANAGER_F"
  389. "AULT\020\n*\267\001\n\031Wanji_lidar_device_status\022\036\n\032"
  390. "WANJI_LIDAR_DEVICE_UNKNOWN\020\000\022\034\n\030WANJI_LI"
  391. "DAR_DEVICE_READY\020\001\022!\n\035WANJI_LIDAR_DEVICE"
  392. "_DISCONNECT\020\002\022\033\n\027WANJI_LIDAR_DEVICE_BUSY"
  393. "\020\003\022\034\n\030WANJI_LIDAR_DEVICE_FAULT\020\n*{\n\024Regi"
  394. "on_worker_status\022\031\n\025REGION_WORKER_UNKNOW"
  395. "N\020\000\022\027\n\023REGION_WORKER_READY\020\001\022\026\n\022REGION_W"
  396. "ORKER_BUSY\020\002\022\027\n\023REGION_WORKER_FAULT\020\n"
  397. };
  398. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  399. descriptor, 2397);
  400. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  401. "measure_message.proto", &protobuf_RegisterTypes);
  402. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  403. }
  404. void AddDescriptors() {
  405. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  406. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  407. }
  408. // Force AddDescriptors() to be called at dynamic initialization time.
  409. struct StaticDescriptorInitializer {
  410. StaticDescriptorInitializer() {
  411. AddDescriptors();
  412. }
  413. } static_descriptor_initializer;
  414. } // namespace protobuf_measure_5fmessage_2eproto
  415. namespace message {
  416. const ::google::protobuf::EnumDescriptor* Laser_manager_status_descriptor() {
  417. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  418. return protobuf_measure_5fmessage_2eproto::file_level_enum_descriptors[0];
  419. }
  420. bool Laser_manager_status_IsValid(int value) {
  421. switch (value) {
  422. case 0:
  423. case 1:
  424. case 2:
  425. case 3:
  426. case 4:
  427. return true;
  428. default:
  429. return false;
  430. }
  431. }
  432. const ::google::protobuf::EnumDescriptor* Laser_statu_descriptor() {
  433. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  434. return protobuf_measure_5fmessage_2eproto::file_level_enum_descriptors[1];
  435. }
  436. bool Laser_statu_IsValid(int value) {
  437. switch (value) {
  438. case 0:
  439. case 1:
  440. case 2:
  441. case 3:
  442. return true;
  443. default:
  444. return false;
  445. }
  446. }
  447. const ::google::protobuf::EnumDescriptor* Locate_manager_status_descriptor() {
  448. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  449. return protobuf_measure_5fmessage_2eproto::file_level_enum_descriptors[2];
  450. }
  451. bool Locate_manager_status_IsValid(int value) {
  452. switch (value) {
  453. case 0:
  454. case 1:
  455. case 2:
  456. case 3:
  457. case 4:
  458. case 5:
  459. return true;
  460. default:
  461. return false;
  462. }
  463. }
  464. const ::google::protobuf::EnumDescriptor* Wanji_manager_status_descriptor() {
  465. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  466. return protobuf_measure_5fmessage_2eproto::file_level_enum_descriptors[3];
  467. }
  468. bool Wanji_manager_status_IsValid(int value) {
  469. switch (value) {
  470. case 0:
  471. case 1:
  472. case 2:
  473. case 3:
  474. case 4:
  475. case 5:
  476. case 6:
  477. case 10:
  478. return true;
  479. default:
  480. return false;
  481. }
  482. }
  483. const ::google::protobuf::EnumDescriptor* Wanji_lidar_device_status_descriptor() {
  484. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  485. return protobuf_measure_5fmessage_2eproto::file_level_enum_descriptors[4];
  486. }
  487. bool Wanji_lidar_device_status_IsValid(int value) {
  488. switch (value) {
  489. case 0:
  490. case 1:
  491. case 2:
  492. case 3:
  493. case 10:
  494. return true;
  495. default:
  496. return false;
  497. }
  498. }
  499. const ::google::protobuf::EnumDescriptor* Region_worker_status_descriptor() {
  500. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  501. return protobuf_measure_5fmessage_2eproto::file_level_enum_descriptors[5];
  502. }
  503. bool Region_worker_status_IsValid(int value) {
  504. switch (value) {
  505. case 0:
  506. case 1:
  507. case 2:
  508. case 10:
  509. return true;
  510. default:
  511. return false;
  512. }
  513. }
  514. // ===================================================================
  515. void Measure_status_msg::InitAsDefaultInstance() {
  516. ::message::_Measure_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  517. ::message::Base_info::internal_default_instance());
  518. ::message::_Measure_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  519. ::message::Error_manager::internal_default_instance());
  520. }
  521. void Measure_status_msg::clear_base_info() {
  522. if (base_info_ != NULL) base_info_->Clear();
  523. clear_has_base_info();
  524. }
  525. void Measure_status_msg::clear_locate_information_realtime() {
  526. locate_information_realtime_.Clear();
  527. }
  528. void Measure_status_msg::clear_error_manager() {
  529. if (error_manager_ != NULL) error_manager_->Clear();
  530. clear_has_error_manager();
  531. }
  532. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  533. const int Measure_status_msg::kBaseInfoFieldNumber;
  534. const int Measure_status_msg::kTerminalIdFieldNumber;
  535. const int Measure_status_msg::kLaserManagerStatusFieldNumber;
  536. const int Measure_status_msg::kLaserStatuVectorFieldNumber;
  537. const int Measure_status_msg::kLocateManagerStatusFieldNumber;
  538. const int Measure_status_msg::kWanjiManagerStatusFieldNumber;
  539. const int Measure_status_msg::kWanjiLidarDeviceStatusFieldNumber;
  540. const int Measure_status_msg::kRegionWorkerStatusFieldNumber;
  541. const int Measure_status_msg::kLocateInformationRealtimeFieldNumber;
  542. const int Measure_status_msg::kErrorManagerFieldNumber;
  543. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  544. Measure_status_msg::Measure_status_msg()
  545. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  546. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  547. ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_status_msg();
  548. }
  549. SharedCtor();
  550. // @@protoc_insertion_point(constructor:message.Measure_status_msg)
  551. }
  552. Measure_status_msg::Measure_status_msg(const Measure_status_msg& from)
  553. : ::google::protobuf::Message(),
  554. _internal_metadata_(NULL),
  555. _has_bits_(from._has_bits_),
  556. _cached_size_(0),
  557. laser_statu_vector_(from.laser_statu_vector_),
  558. wanji_lidar_device_status_(from.wanji_lidar_device_status_),
  559. region_worker_status_(from.region_worker_status_),
  560. locate_information_realtime_(from.locate_information_realtime_) {
  561. _internal_metadata_.MergeFrom(from._internal_metadata_);
  562. if (from.has_base_info()) {
  563. base_info_ = new ::message::Base_info(*from.base_info_);
  564. } else {
  565. base_info_ = NULL;
  566. }
  567. if (from.has_error_manager()) {
  568. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  569. } else {
  570. error_manager_ = NULL;
  571. }
  572. ::memcpy(&terminal_id_, &from.terminal_id_,
  573. static_cast<size_t>(reinterpret_cast<char*>(&wanji_manager_status_) -
  574. reinterpret_cast<char*>(&terminal_id_)) + sizeof(wanji_manager_status_));
  575. // @@protoc_insertion_point(copy_constructor:message.Measure_status_msg)
  576. }
  577. void Measure_status_msg::SharedCtor() {
  578. _cached_size_ = 0;
  579. ::memset(&base_info_, 0, static_cast<size_t>(
  580. reinterpret_cast<char*>(&wanji_manager_status_) -
  581. reinterpret_cast<char*>(&base_info_)) + sizeof(wanji_manager_status_));
  582. }
  583. Measure_status_msg::~Measure_status_msg() {
  584. // @@protoc_insertion_point(destructor:message.Measure_status_msg)
  585. SharedDtor();
  586. }
  587. void Measure_status_msg::SharedDtor() {
  588. if (this != internal_default_instance()) delete base_info_;
  589. if (this != internal_default_instance()) delete error_manager_;
  590. }
  591. void Measure_status_msg::SetCachedSize(int size) const {
  592. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  593. _cached_size_ = size;
  594. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  595. }
  596. const ::google::protobuf::Descriptor* Measure_status_msg::descriptor() {
  597. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  598. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  599. }
  600. const Measure_status_msg& Measure_status_msg::default_instance() {
  601. ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_status_msg();
  602. return *internal_default_instance();
  603. }
  604. Measure_status_msg* Measure_status_msg::New(::google::protobuf::Arena* arena) const {
  605. Measure_status_msg* n = new Measure_status_msg;
  606. if (arena != NULL) {
  607. arena->Own(n);
  608. }
  609. return n;
  610. }
  611. void Measure_status_msg::Clear() {
  612. // @@protoc_insertion_point(message_clear_start:message.Measure_status_msg)
  613. ::google::protobuf::uint32 cached_has_bits = 0;
  614. // Prevent compiler warnings about cached_has_bits being unused
  615. (void) cached_has_bits;
  616. laser_statu_vector_.Clear();
  617. wanji_lidar_device_status_.Clear();
  618. region_worker_status_.Clear();
  619. locate_information_realtime_.Clear();
  620. cached_has_bits = _has_bits_[0];
  621. if (cached_has_bits & 3u) {
  622. if (cached_has_bits & 0x00000001u) {
  623. GOOGLE_DCHECK(base_info_ != NULL);
  624. base_info_->Clear();
  625. }
  626. if (cached_has_bits & 0x00000002u) {
  627. GOOGLE_DCHECK(error_manager_ != NULL);
  628. error_manager_->Clear();
  629. }
  630. }
  631. if (cached_has_bits & 60u) {
  632. ::memset(&terminal_id_, 0, static_cast<size_t>(
  633. reinterpret_cast<char*>(&wanji_manager_status_) -
  634. reinterpret_cast<char*>(&terminal_id_)) + sizeof(wanji_manager_status_));
  635. }
  636. _has_bits_.Clear();
  637. _internal_metadata_.Clear();
  638. }
  639. bool Measure_status_msg::MergePartialFromCodedStream(
  640. ::google::protobuf::io::CodedInputStream* input) {
  641. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  642. ::google::protobuf::uint32 tag;
  643. // @@protoc_insertion_point(parse_start:message.Measure_status_msg)
  644. for (;;) {
  645. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  646. tag = p.first;
  647. if (!p.second) goto handle_unusual;
  648. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  649. // required .message.Base_info base_info = 1;
  650. case 1: {
  651. if (static_cast< ::google::protobuf::uint8>(tag) ==
  652. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  653. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  654. input, mutable_base_info()));
  655. } else {
  656. goto handle_unusual;
  657. }
  658. break;
  659. }
  660. // required int32 terminal_id = 2;
  661. case 2: {
  662. if (static_cast< ::google::protobuf::uint8>(tag) ==
  663. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  664. set_has_terminal_id();
  665. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  666. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  667. input, &terminal_id_)));
  668. } else {
  669. goto handle_unusual;
  670. }
  671. break;
  672. }
  673. // required .message.Laser_manager_status laser_manager_status = 3;
  674. case 3: {
  675. if (static_cast< ::google::protobuf::uint8>(tag) ==
  676. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  677. int value;
  678. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  679. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  680. input, &value)));
  681. if (::message::Laser_manager_status_IsValid(value)) {
  682. set_laser_manager_status(static_cast< ::message::Laser_manager_status >(value));
  683. } else {
  684. mutable_unknown_fields()->AddVarint(
  685. 3, static_cast< ::google::protobuf::uint64>(value));
  686. }
  687. } else {
  688. goto handle_unusual;
  689. }
  690. break;
  691. }
  692. // repeated .message.Laser_statu laser_statu_vector = 4;
  693. case 4: {
  694. if (static_cast< ::google::protobuf::uint8>(tag) ==
  695. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  696. int value;
  697. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  698. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  699. input, &value)));
  700. if (::message::Laser_statu_IsValid(value)) {
  701. add_laser_statu_vector(static_cast< ::message::Laser_statu >(value));
  702. } else {
  703. mutable_unknown_fields()->AddVarint(
  704. 4, static_cast< ::google::protobuf::uint64>(value));
  705. }
  706. } else if (
  707. static_cast< ::google::protobuf::uint8>(tag) ==
  708. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  709. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  710. input,
  711. 4,
  712. ::message::Laser_statu_IsValid,
  713. mutable_unknown_fields(),
  714. this->mutable_laser_statu_vector())));
  715. } else {
  716. goto handle_unusual;
  717. }
  718. break;
  719. }
  720. // required .message.Locate_manager_status locate_manager_status = 5;
  721. case 5: {
  722. if (static_cast< ::google::protobuf::uint8>(tag) ==
  723. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  724. int value;
  725. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  726. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  727. input, &value)));
  728. if (::message::Locate_manager_status_IsValid(value)) {
  729. set_locate_manager_status(static_cast< ::message::Locate_manager_status >(value));
  730. } else {
  731. mutable_unknown_fields()->AddVarint(
  732. 5, static_cast< ::google::protobuf::uint64>(value));
  733. }
  734. } else {
  735. goto handle_unusual;
  736. }
  737. break;
  738. }
  739. // required .message.Wanji_manager_status wanji_manager_status = 6;
  740. case 6: {
  741. if (static_cast< ::google::protobuf::uint8>(tag) ==
  742. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  743. int value;
  744. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  745. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  746. input, &value)));
  747. if (::message::Wanji_manager_status_IsValid(value)) {
  748. set_wanji_manager_status(static_cast< ::message::Wanji_manager_status >(value));
  749. } else {
  750. mutable_unknown_fields()->AddVarint(
  751. 6, static_cast< ::google::protobuf::uint64>(value));
  752. }
  753. } else {
  754. goto handle_unusual;
  755. }
  756. break;
  757. }
  758. // repeated .message.Wanji_lidar_device_status wanji_lidar_device_status = 7;
  759. case 7: {
  760. if (static_cast< ::google::protobuf::uint8>(tag) ==
  761. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  762. int value;
  763. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  764. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  765. input, &value)));
  766. if (::message::Wanji_lidar_device_status_IsValid(value)) {
  767. add_wanji_lidar_device_status(static_cast< ::message::Wanji_lidar_device_status >(value));
  768. } else {
  769. mutable_unknown_fields()->AddVarint(
  770. 7, static_cast< ::google::protobuf::uint64>(value));
  771. }
  772. } else if (
  773. static_cast< ::google::protobuf::uint8>(tag) ==
  774. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  775. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  776. input,
  777. 7,
  778. ::message::Wanji_lidar_device_status_IsValid,
  779. mutable_unknown_fields(),
  780. this->mutable_wanji_lidar_device_status())));
  781. } else {
  782. goto handle_unusual;
  783. }
  784. break;
  785. }
  786. // repeated .message.Region_worker_status region_worker_status = 8;
  787. case 8: {
  788. if (static_cast< ::google::protobuf::uint8>(tag) ==
  789. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  790. int value;
  791. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  792. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  793. input, &value)));
  794. if (::message::Region_worker_status_IsValid(value)) {
  795. add_region_worker_status(static_cast< ::message::Region_worker_status >(value));
  796. } else {
  797. mutable_unknown_fields()->AddVarint(
  798. 8, static_cast< ::google::protobuf::uint64>(value));
  799. }
  800. } else if (
  801. static_cast< ::google::protobuf::uint8>(tag) ==
  802. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  803. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  804. input,
  805. 8,
  806. ::message::Region_worker_status_IsValid,
  807. mutable_unknown_fields(),
  808. this->mutable_region_worker_status())));
  809. } else {
  810. goto handle_unusual;
  811. }
  812. break;
  813. }
  814. // repeated .message.Locate_information locate_information_realtime = 9;
  815. case 9: {
  816. if (static_cast< ::google::protobuf::uint8>(tag) ==
  817. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  818. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_locate_information_realtime()));
  819. } else {
  820. goto handle_unusual;
  821. }
  822. break;
  823. }
  824. // required .message.Error_manager error_manager = 10;
  825. case 10: {
  826. if (static_cast< ::google::protobuf::uint8>(tag) ==
  827. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  828. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  829. input, mutable_error_manager()));
  830. } else {
  831. goto handle_unusual;
  832. }
  833. break;
  834. }
  835. default: {
  836. handle_unusual:
  837. if (tag == 0) {
  838. goto success;
  839. }
  840. DO_(::google::protobuf::internal::WireFormat::SkipField(
  841. input, tag, _internal_metadata_.mutable_unknown_fields()));
  842. break;
  843. }
  844. }
  845. }
  846. success:
  847. // @@protoc_insertion_point(parse_success:message.Measure_status_msg)
  848. return true;
  849. failure:
  850. // @@protoc_insertion_point(parse_failure:message.Measure_status_msg)
  851. return false;
  852. #undef DO_
  853. }
  854. void Measure_status_msg::SerializeWithCachedSizes(
  855. ::google::protobuf::io::CodedOutputStream* output) const {
  856. // @@protoc_insertion_point(serialize_start:message.Measure_status_msg)
  857. ::google::protobuf::uint32 cached_has_bits = 0;
  858. (void) cached_has_bits;
  859. cached_has_bits = _has_bits_[0];
  860. // required .message.Base_info base_info = 1;
  861. if (cached_has_bits & 0x00000001u) {
  862. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  863. 1, *this->base_info_, output);
  864. }
  865. // required int32 terminal_id = 2;
  866. if (cached_has_bits & 0x00000004u) {
  867. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  868. }
  869. // required .message.Laser_manager_status laser_manager_status = 3;
  870. if (cached_has_bits & 0x00000008u) {
  871. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  872. 3, this->laser_manager_status(), output);
  873. }
  874. // repeated .message.Laser_statu laser_statu_vector = 4;
  875. for (int i = 0, n = this->laser_statu_vector_size(); i < n; i++) {
  876. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  877. 4, this->laser_statu_vector(i), output);
  878. }
  879. // required .message.Locate_manager_status locate_manager_status = 5;
  880. if (cached_has_bits & 0x00000010u) {
  881. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  882. 5, this->locate_manager_status(), output);
  883. }
  884. // required .message.Wanji_manager_status wanji_manager_status = 6;
  885. if (cached_has_bits & 0x00000020u) {
  886. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  887. 6, this->wanji_manager_status(), output);
  888. }
  889. // repeated .message.Wanji_lidar_device_status wanji_lidar_device_status = 7;
  890. for (int i = 0, n = this->wanji_lidar_device_status_size(); i < n; i++) {
  891. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  892. 7, this->wanji_lidar_device_status(i), output);
  893. }
  894. // repeated .message.Region_worker_status region_worker_status = 8;
  895. for (int i = 0, n = this->region_worker_status_size(); i < n; i++) {
  896. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  897. 8, this->region_worker_status(i), output);
  898. }
  899. // repeated .message.Locate_information locate_information_realtime = 9;
  900. for (unsigned int i = 0,
  901. n = static_cast<unsigned int>(this->locate_information_realtime_size()); i < n; i++) {
  902. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  903. 9, this->locate_information_realtime(static_cast<int>(i)), output);
  904. }
  905. // required .message.Error_manager error_manager = 10;
  906. if (cached_has_bits & 0x00000002u) {
  907. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  908. 10, *this->error_manager_, output);
  909. }
  910. if (_internal_metadata_.have_unknown_fields()) {
  911. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  912. _internal_metadata_.unknown_fields(), output);
  913. }
  914. // @@protoc_insertion_point(serialize_end:message.Measure_status_msg)
  915. }
  916. ::google::protobuf::uint8* Measure_status_msg::InternalSerializeWithCachedSizesToArray(
  917. bool deterministic, ::google::protobuf::uint8* target) const {
  918. (void)deterministic; // Unused
  919. // @@protoc_insertion_point(serialize_to_array_start:message.Measure_status_msg)
  920. ::google::protobuf::uint32 cached_has_bits = 0;
  921. (void) cached_has_bits;
  922. cached_has_bits = _has_bits_[0];
  923. // required .message.Base_info base_info = 1;
  924. if (cached_has_bits & 0x00000001u) {
  925. target = ::google::protobuf::internal::WireFormatLite::
  926. InternalWriteMessageToArray(
  927. 1, *this->base_info_, deterministic, target);
  928. }
  929. // required int32 terminal_id = 2;
  930. if (cached_has_bits & 0x00000004u) {
  931. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  932. }
  933. // required .message.Laser_manager_status laser_manager_status = 3;
  934. if (cached_has_bits & 0x00000008u) {
  935. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  936. 3, this->laser_manager_status(), target);
  937. }
  938. // repeated .message.Laser_statu laser_statu_vector = 4;
  939. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  940. 4, this->laser_statu_vector_, target);
  941. // required .message.Locate_manager_status locate_manager_status = 5;
  942. if (cached_has_bits & 0x00000010u) {
  943. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  944. 5, this->locate_manager_status(), target);
  945. }
  946. // required .message.Wanji_manager_status wanji_manager_status = 6;
  947. if (cached_has_bits & 0x00000020u) {
  948. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  949. 6, this->wanji_manager_status(), target);
  950. }
  951. // repeated .message.Wanji_lidar_device_status wanji_lidar_device_status = 7;
  952. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  953. 7, this->wanji_lidar_device_status_, target);
  954. // repeated .message.Region_worker_status region_worker_status = 8;
  955. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  956. 8, this->region_worker_status_, target);
  957. // repeated .message.Locate_information locate_information_realtime = 9;
  958. for (unsigned int i = 0,
  959. n = static_cast<unsigned int>(this->locate_information_realtime_size()); i < n; i++) {
  960. target = ::google::protobuf::internal::WireFormatLite::
  961. InternalWriteMessageToArray(
  962. 9, this->locate_information_realtime(static_cast<int>(i)), deterministic, target);
  963. }
  964. // required .message.Error_manager error_manager = 10;
  965. if (cached_has_bits & 0x00000002u) {
  966. target = ::google::protobuf::internal::WireFormatLite::
  967. InternalWriteMessageToArray(
  968. 10, *this->error_manager_, deterministic, target);
  969. }
  970. if (_internal_metadata_.have_unknown_fields()) {
  971. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  972. _internal_metadata_.unknown_fields(), target);
  973. }
  974. // @@protoc_insertion_point(serialize_to_array_end:message.Measure_status_msg)
  975. return target;
  976. }
  977. size_t Measure_status_msg::RequiredFieldsByteSizeFallback() const {
  978. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Measure_status_msg)
  979. size_t total_size = 0;
  980. if (has_base_info()) {
  981. // required .message.Base_info base_info = 1;
  982. total_size += 1 +
  983. ::google::protobuf::internal::WireFormatLite::MessageSize(
  984. *this->base_info_);
  985. }
  986. if (has_error_manager()) {
  987. // required .message.Error_manager error_manager = 10;
  988. total_size += 1 +
  989. ::google::protobuf::internal::WireFormatLite::MessageSize(
  990. *this->error_manager_);
  991. }
  992. if (has_terminal_id()) {
  993. // required int32 terminal_id = 2;
  994. total_size += 1 +
  995. ::google::protobuf::internal::WireFormatLite::Int32Size(
  996. this->terminal_id());
  997. }
  998. if (has_laser_manager_status()) {
  999. // required .message.Laser_manager_status laser_manager_status = 3;
  1000. total_size += 1 +
  1001. ::google::protobuf::internal::WireFormatLite::EnumSize(this->laser_manager_status());
  1002. }
  1003. if (has_locate_manager_status()) {
  1004. // required .message.Locate_manager_status locate_manager_status = 5;
  1005. total_size += 1 +
  1006. ::google::protobuf::internal::WireFormatLite::EnumSize(this->locate_manager_status());
  1007. }
  1008. if (has_wanji_manager_status()) {
  1009. // required .message.Wanji_manager_status wanji_manager_status = 6;
  1010. total_size += 1 +
  1011. ::google::protobuf::internal::WireFormatLite::EnumSize(this->wanji_manager_status());
  1012. }
  1013. return total_size;
  1014. }
  1015. size_t Measure_status_msg::ByteSizeLong() const {
  1016. // @@protoc_insertion_point(message_byte_size_start:message.Measure_status_msg)
  1017. size_t total_size = 0;
  1018. if (_internal_metadata_.have_unknown_fields()) {
  1019. total_size +=
  1020. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1021. _internal_metadata_.unknown_fields());
  1022. }
  1023. if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present.
  1024. // required .message.Base_info base_info = 1;
  1025. total_size += 1 +
  1026. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1027. *this->base_info_);
  1028. // required .message.Error_manager error_manager = 10;
  1029. total_size += 1 +
  1030. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1031. *this->error_manager_);
  1032. // required int32 terminal_id = 2;
  1033. total_size += 1 +
  1034. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1035. this->terminal_id());
  1036. // required .message.Laser_manager_status laser_manager_status = 3;
  1037. total_size += 1 +
  1038. ::google::protobuf::internal::WireFormatLite::EnumSize(this->laser_manager_status());
  1039. // required .message.Locate_manager_status locate_manager_status = 5;
  1040. total_size += 1 +
  1041. ::google::protobuf::internal::WireFormatLite::EnumSize(this->locate_manager_status());
  1042. // required .message.Wanji_manager_status wanji_manager_status = 6;
  1043. total_size += 1 +
  1044. ::google::protobuf::internal::WireFormatLite::EnumSize(this->wanji_manager_status());
  1045. } else {
  1046. total_size += RequiredFieldsByteSizeFallback();
  1047. }
  1048. // repeated .message.Laser_statu laser_statu_vector = 4;
  1049. {
  1050. size_t data_size = 0;
  1051. unsigned int count = static_cast<unsigned int>(this->laser_statu_vector_size());for (unsigned int i = 0; i < count; i++) {
  1052. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1053. this->laser_statu_vector(static_cast<int>(i)));
  1054. }
  1055. total_size += (1UL * count) + data_size;
  1056. }
  1057. // repeated .message.Wanji_lidar_device_status wanji_lidar_device_status = 7;
  1058. {
  1059. size_t data_size = 0;
  1060. unsigned int count = static_cast<unsigned int>(this->wanji_lidar_device_status_size());for (unsigned int i = 0; i < count; i++) {
  1061. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1062. this->wanji_lidar_device_status(static_cast<int>(i)));
  1063. }
  1064. total_size += (1UL * count) + data_size;
  1065. }
  1066. // repeated .message.Region_worker_status region_worker_status = 8;
  1067. {
  1068. size_t data_size = 0;
  1069. unsigned int count = static_cast<unsigned int>(this->region_worker_status_size());for (unsigned int i = 0; i < count; i++) {
  1070. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1071. this->region_worker_status(static_cast<int>(i)));
  1072. }
  1073. total_size += (1UL * count) + data_size;
  1074. }
  1075. // repeated .message.Locate_information locate_information_realtime = 9;
  1076. {
  1077. unsigned int count = static_cast<unsigned int>(this->locate_information_realtime_size());
  1078. total_size += 1UL * count;
  1079. for (unsigned int i = 0; i < count; i++) {
  1080. total_size +=
  1081. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1082. this->locate_information_realtime(static_cast<int>(i)));
  1083. }
  1084. }
  1085. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1086. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1087. _cached_size_ = cached_size;
  1088. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1089. return total_size;
  1090. }
  1091. void Measure_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1092. // @@protoc_insertion_point(generalized_merge_from_start:message.Measure_status_msg)
  1093. GOOGLE_DCHECK_NE(&from, this);
  1094. const Measure_status_msg* source =
  1095. ::google::protobuf::internal::DynamicCastToGenerated<const Measure_status_msg>(
  1096. &from);
  1097. if (source == NULL) {
  1098. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Measure_status_msg)
  1099. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1100. } else {
  1101. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Measure_status_msg)
  1102. MergeFrom(*source);
  1103. }
  1104. }
  1105. void Measure_status_msg::MergeFrom(const Measure_status_msg& from) {
  1106. // @@protoc_insertion_point(class_specific_merge_from_start:message.Measure_status_msg)
  1107. GOOGLE_DCHECK_NE(&from, this);
  1108. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1109. ::google::protobuf::uint32 cached_has_bits = 0;
  1110. (void) cached_has_bits;
  1111. laser_statu_vector_.MergeFrom(from.laser_statu_vector_);
  1112. wanji_lidar_device_status_.MergeFrom(from.wanji_lidar_device_status_);
  1113. region_worker_status_.MergeFrom(from.region_worker_status_);
  1114. locate_information_realtime_.MergeFrom(from.locate_information_realtime_);
  1115. cached_has_bits = from._has_bits_[0];
  1116. if (cached_has_bits & 63u) {
  1117. if (cached_has_bits & 0x00000001u) {
  1118. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1119. }
  1120. if (cached_has_bits & 0x00000002u) {
  1121. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1122. }
  1123. if (cached_has_bits & 0x00000004u) {
  1124. terminal_id_ = from.terminal_id_;
  1125. }
  1126. if (cached_has_bits & 0x00000008u) {
  1127. laser_manager_status_ = from.laser_manager_status_;
  1128. }
  1129. if (cached_has_bits & 0x00000010u) {
  1130. locate_manager_status_ = from.locate_manager_status_;
  1131. }
  1132. if (cached_has_bits & 0x00000020u) {
  1133. wanji_manager_status_ = from.wanji_manager_status_;
  1134. }
  1135. _has_bits_[0] |= cached_has_bits;
  1136. }
  1137. }
  1138. void Measure_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1139. // @@protoc_insertion_point(generalized_copy_from_start:message.Measure_status_msg)
  1140. if (&from == this) return;
  1141. Clear();
  1142. MergeFrom(from);
  1143. }
  1144. void Measure_status_msg::CopyFrom(const Measure_status_msg& from) {
  1145. // @@protoc_insertion_point(class_specific_copy_from_start:message.Measure_status_msg)
  1146. if (&from == this) return;
  1147. Clear();
  1148. MergeFrom(from);
  1149. }
  1150. bool Measure_status_msg::IsInitialized() const {
  1151. if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
  1152. if (has_base_info()) {
  1153. if (!this->base_info_->IsInitialized()) return false;
  1154. }
  1155. if (has_error_manager()) {
  1156. if (!this->error_manager_->IsInitialized()) return false;
  1157. }
  1158. return true;
  1159. }
  1160. void Measure_status_msg::Swap(Measure_status_msg* other) {
  1161. if (other == this) return;
  1162. InternalSwap(other);
  1163. }
  1164. void Measure_status_msg::InternalSwap(Measure_status_msg* other) {
  1165. using std::swap;
  1166. laser_statu_vector_.InternalSwap(&other->laser_statu_vector_);
  1167. wanji_lidar_device_status_.InternalSwap(&other->wanji_lidar_device_status_);
  1168. region_worker_status_.InternalSwap(&other->region_worker_status_);
  1169. locate_information_realtime_.InternalSwap(&other->locate_information_realtime_);
  1170. swap(base_info_, other->base_info_);
  1171. swap(error_manager_, other->error_manager_);
  1172. swap(terminal_id_, other->terminal_id_);
  1173. swap(laser_manager_status_, other->laser_manager_status_);
  1174. swap(locate_manager_status_, other->locate_manager_status_);
  1175. swap(wanji_manager_status_, other->wanji_manager_status_);
  1176. swap(_has_bits_[0], other->_has_bits_[0]);
  1177. _internal_metadata_.Swap(&other->_internal_metadata_);
  1178. swap(_cached_size_, other->_cached_size_);
  1179. }
  1180. ::google::protobuf::Metadata Measure_status_msg::GetMetadata() const {
  1181. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1182. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1183. }
  1184. // ===================================================================
  1185. void Measure_request_msg::InitAsDefaultInstance() {
  1186. ::message::_Measure_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1187. ::message::Base_info::internal_default_instance());
  1188. }
  1189. void Measure_request_msg::clear_base_info() {
  1190. if (base_info_ != NULL) base_info_->Clear();
  1191. clear_has_base_info();
  1192. }
  1193. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1194. const int Measure_request_msg::kBaseInfoFieldNumber;
  1195. const int Measure_request_msg::kCommandKeyFieldNumber;
  1196. const int Measure_request_msg::kTerminalIdFieldNumber;
  1197. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1198. Measure_request_msg::Measure_request_msg()
  1199. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1200. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1201. ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_request_msg();
  1202. }
  1203. SharedCtor();
  1204. // @@protoc_insertion_point(constructor:message.Measure_request_msg)
  1205. }
  1206. Measure_request_msg::Measure_request_msg(const Measure_request_msg& from)
  1207. : ::google::protobuf::Message(),
  1208. _internal_metadata_(NULL),
  1209. _has_bits_(from._has_bits_),
  1210. _cached_size_(0) {
  1211. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1212. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1213. if (from.has_command_key()) {
  1214. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1215. }
  1216. if (from.has_base_info()) {
  1217. base_info_ = new ::message::Base_info(*from.base_info_);
  1218. } else {
  1219. base_info_ = NULL;
  1220. }
  1221. terminal_id_ = from.terminal_id_;
  1222. // @@protoc_insertion_point(copy_constructor:message.Measure_request_msg)
  1223. }
  1224. void Measure_request_msg::SharedCtor() {
  1225. _cached_size_ = 0;
  1226. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1227. ::memset(&base_info_, 0, static_cast<size_t>(
  1228. reinterpret_cast<char*>(&terminal_id_) -
  1229. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  1230. }
  1231. Measure_request_msg::~Measure_request_msg() {
  1232. // @@protoc_insertion_point(destructor:message.Measure_request_msg)
  1233. SharedDtor();
  1234. }
  1235. void Measure_request_msg::SharedDtor() {
  1236. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1237. if (this != internal_default_instance()) delete base_info_;
  1238. }
  1239. void Measure_request_msg::SetCachedSize(int size) const {
  1240. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1241. _cached_size_ = size;
  1242. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1243. }
  1244. const ::google::protobuf::Descriptor* Measure_request_msg::descriptor() {
  1245. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1246. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1247. }
  1248. const Measure_request_msg& Measure_request_msg::default_instance() {
  1249. ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_request_msg();
  1250. return *internal_default_instance();
  1251. }
  1252. Measure_request_msg* Measure_request_msg::New(::google::protobuf::Arena* arena) const {
  1253. Measure_request_msg* n = new Measure_request_msg;
  1254. if (arena != NULL) {
  1255. arena->Own(n);
  1256. }
  1257. return n;
  1258. }
  1259. void Measure_request_msg::Clear() {
  1260. // @@protoc_insertion_point(message_clear_start:message.Measure_request_msg)
  1261. ::google::protobuf::uint32 cached_has_bits = 0;
  1262. // Prevent compiler warnings about cached_has_bits being unused
  1263. (void) cached_has_bits;
  1264. cached_has_bits = _has_bits_[0];
  1265. if (cached_has_bits & 3u) {
  1266. if (cached_has_bits & 0x00000001u) {
  1267. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1268. (*command_key_.UnsafeRawStringPointer())->clear();
  1269. }
  1270. if (cached_has_bits & 0x00000002u) {
  1271. GOOGLE_DCHECK(base_info_ != NULL);
  1272. base_info_->Clear();
  1273. }
  1274. }
  1275. terminal_id_ = 0;
  1276. _has_bits_.Clear();
  1277. _internal_metadata_.Clear();
  1278. }
  1279. bool Measure_request_msg::MergePartialFromCodedStream(
  1280. ::google::protobuf::io::CodedInputStream* input) {
  1281. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1282. ::google::protobuf::uint32 tag;
  1283. // @@protoc_insertion_point(parse_start:message.Measure_request_msg)
  1284. for (;;) {
  1285. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1286. tag = p.first;
  1287. if (!p.second) goto handle_unusual;
  1288. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1289. // required .message.Base_info base_info = 1;
  1290. case 1: {
  1291. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1292. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1293. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1294. input, mutable_base_info()));
  1295. } else {
  1296. goto handle_unusual;
  1297. }
  1298. break;
  1299. }
  1300. // required string command_key = 2;
  1301. case 2: {
  1302. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1303. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1304. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1305. input, this->mutable_command_key()));
  1306. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1307. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1308. ::google::protobuf::internal::WireFormat::PARSE,
  1309. "message.Measure_request_msg.command_key");
  1310. } else {
  1311. goto handle_unusual;
  1312. }
  1313. break;
  1314. }
  1315. // required int32 terminal_id = 3;
  1316. case 3: {
  1317. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1318. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1319. set_has_terminal_id();
  1320. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1321. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1322. input, &terminal_id_)));
  1323. } else {
  1324. goto handle_unusual;
  1325. }
  1326. break;
  1327. }
  1328. default: {
  1329. handle_unusual:
  1330. if (tag == 0) {
  1331. goto success;
  1332. }
  1333. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1334. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1335. break;
  1336. }
  1337. }
  1338. }
  1339. success:
  1340. // @@protoc_insertion_point(parse_success:message.Measure_request_msg)
  1341. return true;
  1342. failure:
  1343. // @@protoc_insertion_point(parse_failure:message.Measure_request_msg)
  1344. return false;
  1345. #undef DO_
  1346. }
  1347. void Measure_request_msg::SerializeWithCachedSizes(
  1348. ::google::protobuf::io::CodedOutputStream* output) const {
  1349. // @@protoc_insertion_point(serialize_start:message.Measure_request_msg)
  1350. ::google::protobuf::uint32 cached_has_bits = 0;
  1351. (void) cached_has_bits;
  1352. cached_has_bits = _has_bits_[0];
  1353. // required .message.Base_info base_info = 1;
  1354. if (cached_has_bits & 0x00000002u) {
  1355. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1356. 1, *this->base_info_, output);
  1357. }
  1358. // required string command_key = 2;
  1359. if (cached_has_bits & 0x00000001u) {
  1360. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1361. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1362. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1363. "message.Measure_request_msg.command_key");
  1364. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1365. 2, this->command_key(), output);
  1366. }
  1367. // required int32 terminal_id = 3;
  1368. if (cached_has_bits & 0x00000004u) {
  1369. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->terminal_id(), output);
  1370. }
  1371. if (_internal_metadata_.have_unknown_fields()) {
  1372. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1373. _internal_metadata_.unknown_fields(), output);
  1374. }
  1375. // @@protoc_insertion_point(serialize_end:message.Measure_request_msg)
  1376. }
  1377. ::google::protobuf::uint8* Measure_request_msg::InternalSerializeWithCachedSizesToArray(
  1378. bool deterministic, ::google::protobuf::uint8* target) const {
  1379. (void)deterministic; // Unused
  1380. // @@protoc_insertion_point(serialize_to_array_start:message.Measure_request_msg)
  1381. ::google::protobuf::uint32 cached_has_bits = 0;
  1382. (void) cached_has_bits;
  1383. cached_has_bits = _has_bits_[0];
  1384. // required .message.Base_info base_info = 1;
  1385. if (cached_has_bits & 0x00000002u) {
  1386. target = ::google::protobuf::internal::WireFormatLite::
  1387. InternalWriteMessageToArray(
  1388. 1, *this->base_info_, deterministic, target);
  1389. }
  1390. // required string command_key = 2;
  1391. if (cached_has_bits & 0x00000001u) {
  1392. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1393. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1394. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1395. "message.Measure_request_msg.command_key");
  1396. target =
  1397. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1398. 2, this->command_key(), target);
  1399. }
  1400. // required int32 terminal_id = 3;
  1401. if (cached_has_bits & 0x00000004u) {
  1402. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->terminal_id(), target);
  1403. }
  1404. if (_internal_metadata_.have_unknown_fields()) {
  1405. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1406. _internal_metadata_.unknown_fields(), target);
  1407. }
  1408. // @@protoc_insertion_point(serialize_to_array_end:message.Measure_request_msg)
  1409. return target;
  1410. }
  1411. size_t Measure_request_msg::RequiredFieldsByteSizeFallback() const {
  1412. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Measure_request_msg)
  1413. size_t total_size = 0;
  1414. if (has_command_key()) {
  1415. // required string command_key = 2;
  1416. total_size += 1 +
  1417. ::google::protobuf::internal::WireFormatLite::StringSize(
  1418. this->command_key());
  1419. }
  1420. if (has_base_info()) {
  1421. // required .message.Base_info base_info = 1;
  1422. total_size += 1 +
  1423. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1424. *this->base_info_);
  1425. }
  1426. if (has_terminal_id()) {
  1427. // required int32 terminal_id = 3;
  1428. total_size += 1 +
  1429. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1430. this->terminal_id());
  1431. }
  1432. return total_size;
  1433. }
  1434. size_t Measure_request_msg::ByteSizeLong() const {
  1435. // @@protoc_insertion_point(message_byte_size_start:message.Measure_request_msg)
  1436. size_t total_size = 0;
  1437. if (_internal_metadata_.have_unknown_fields()) {
  1438. total_size +=
  1439. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1440. _internal_metadata_.unknown_fields());
  1441. }
  1442. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1443. // required string command_key = 2;
  1444. total_size += 1 +
  1445. ::google::protobuf::internal::WireFormatLite::StringSize(
  1446. this->command_key());
  1447. // required .message.Base_info base_info = 1;
  1448. total_size += 1 +
  1449. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1450. *this->base_info_);
  1451. // required int32 terminal_id = 3;
  1452. total_size += 1 +
  1453. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1454. this->terminal_id());
  1455. } else {
  1456. total_size += RequiredFieldsByteSizeFallback();
  1457. }
  1458. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1459. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1460. _cached_size_ = cached_size;
  1461. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1462. return total_size;
  1463. }
  1464. void Measure_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1465. // @@protoc_insertion_point(generalized_merge_from_start:message.Measure_request_msg)
  1466. GOOGLE_DCHECK_NE(&from, this);
  1467. const Measure_request_msg* source =
  1468. ::google::protobuf::internal::DynamicCastToGenerated<const Measure_request_msg>(
  1469. &from);
  1470. if (source == NULL) {
  1471. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Measure_request_msg)
  1472. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1473. } else {
  1474. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Measure_request_msg)
  1475. MergeFrom(*source);
  1476. }
  1477. }
  1478. void Measure_request_msg::MergeFrom(const Measure_request_msg& from) {
  1479. // @@protoc_insertion_point(class_specific_merge_from_start:message.Measure_request_msg)
  1480. GOOGLE_DCHECK_NE(&from, this);
  1481. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1482. ::google::protobuf::uint32 cached_has_bits = 0;
  1483. (void) cached_has_bits;
  1484. cached_has_bits = from._has_bits_[0];
  1485. if (cached_has_bits & 7u) {
  1486. if (cached_has_bits & 0x00000001u) {
  1487. set_has_command_key();
  1488. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1489. }
  1490. if (cached_has_bits & 0x00000002u) {
  1491. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1492. }
  1493. if (cached_has_bits & 0x00000004u) {
  1494. terminal_id_ = from.terminal_id_;
  1495. }
  1496. _has_bits_[0] |= cached_has_bits;
  1497. }
  1498. }
  1499. void Measure_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1500. // @@protoc_insertion_point(generalized_copy_from_start:message.Measure_request_msg)
  1501. if (&from == this) return;
  1502. Clear();
  1503. MergeFrom(from);
  1504. }
  1505. void Measure_request_msg::CopyFrom(const Measure_request_msg& from) {
  1506. // @@protoc_insertion_point(class_specific_copy_from_start:message.Measure_request_msg)
  1507. if (&from == this) return;
  1508. Clear();
  1509. MergeFrom(from);
  1510. }
  1511. bool Measure_request_msg::IsInitialized() const {
  1512. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1513. if (has_base_info()) {
  1514. if (!this->base_info_->IsInitialized()) return false;
  1515. }
  1516. return true;
  1517. }
  1518. void Measure_request_msg::Swap(Measure_request_msg* other) {
  1519. if (other == this) return;
  1520. InternalSwap(other);
  1521. }
  1522. void Measure_request_msg::InternalSwap(Measure_request_msg* other) {
  1523. using std::swap;
  1524. command_key_.Swap(&other->command_key_);
  1525. swap(base_info_, other->base_info_);
  1526. swap(terminal_id_, other->terminal_id_);
  1527. swap(_has_bits_[0], other->_has_bits_[0]);
  1528. _internal_metadata_.Swap(&other->_internal_metadata_);
  1529. swap(_cached_size_, other->_cached_size_);
  1530. }
  1531. ::google::protobuf::Metadata Measure_request_msg::GetMetadata() const {
  1532. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1533. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1534. }
  1535. // ===================================================================
  1536. void Measure_response_msg::InitAsDefaultInstance() {
  1537. ::message::_Measure_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1538. ::message::Base_info::internal_default_instance());
  1539. ::message::_Measure_response_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  1540. ::message::Locate_information::internal_default_instance());
  1541. ::message::_Measure_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1542. ::message::Error_manager::internal_default_instance());
  1543. }
  1544. void Measure_response_msg::clear_base_info() {
  1545. if (base_info_ != NULL) base_info_->Clear();
  1546. clear_has_base_info();
  1547. }
  1548. void Measure_response_msg::clear_locate_information() {
  1549. if (locate_information_ != NULL) locate_information_->Clear();
  1550. clear_has_locate_information();
  1551. }
  1552. void Measure_response_msg::clear_error_manager() {
  1553. if (error_manager_ != NULL) error_manager_->Clear();
  1554. clear_has_error_manager();
  1555. }
  1556. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1557. const int Measure_response_msg::kBaseInfoFieldNumber;
  1558. const int Measure_response_msg::kCommandKeyFieldNumber;
  1559. const int Measure_response_msg::kTerminalIdFieldNumber;
  1560. const int Measure_response_msg::kLocateInformationFieldNumber;
  1561. const int Measure_response_msg::kErrorManagerFieldNumber;
  1562. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1563. Measure_response_msg::Measure_response_msg()
  1564. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1565. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1566. ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_response_msg();
  1567. }
  1568. SharedCtor();
  1569. // @@protoc_insertion_point(constructor:message.Measure_response_msg)
  1570. }
  1571. Measure_response_msg::Measure_response_msg(const Measure_response_msg& from)
  1572. : ::google::protobuf::Message(),
  1573. _internal_metadata_(NULL),
  1574. _has_bits_(from._has_bits_),
  1575. _cached_size_(0) {
  1576. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1577. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1578. if (from.has_command_key()) {
  1579. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1580. }
  1581. if (from.has_base_info()) {
  1582. base_info_ = new ::message::Base_info(*from.base_info_);
  1583. } else {
  1584. base_info_ = NULL;
  1585. }
  1586. if (from.has_locate_information()) {
  1587. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  1588. } else {
  1589. locate_information_ = NULL;
  1590. }
  1591. if (from.has_error_manager()) {
  1592. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1593. } else {
  1594. error_manager_ = NULL;
  1595. }
  1596. terminal_id_ = from.terminal_id_;
  1597. // @@protoc_insertion_point(copy_constructor:message.Measure_response_msg)
  1598. }
  1599. void Measure_response_msg::SharedCtor() {
  1600. _cached_size_ = 0;
  1601. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1602. ::memset(&base_info_, 0, static_cast<size_t>(
  1603. reinterpret_cast<char*>(&terminal_id_) -
  1604. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  1605. }
  1606. Measure_response_msg::~Measure_response_msg() {
  1607. // @@protoc_insertion_point(destructor:message.Measure_response_msg)
  1608. SharedDtor();
  1609. }
  1610. void Measure_response_msg::SharedDtor() {
  1611. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1612. if (this != internal_default_instance()) delete base_info_;
  1613. if (this != internal_default_instance()) delete locate_information_;
  1614. if (this != internal_default_instance()) delete error_manager_;
  1615. }
  1616. void Measure_response_msg::SetCachedSize(int size) const {
  1617. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1618. _cached_size_ = size;
  1619. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1620. }
  1621. const ::google::protobuf::Descriptor* Measure_response_msg::descriptor() {
  1622. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1623. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1624. }
  1625. const Measure_response_msg& Measure_response_msg::default_instance() {
  1626. ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_response_msg();
  1627. return *internal_default_instance();
  1628. }
  1629. Measure_response_msg* Measure_response_msg::New(::google::protobuf::Arena* arena) const {
  1630. Measure_response_msg* n = new Measure_response_msg;
  1631. if (arena != NULL) {
  1632. arena->Own(n);
  1633. }
  1634. return n;
  1635. }
  1636. void Measure_response_msg::Clear() {
  1637. // @@protoc_insertion_point(message_clear_start:message.Measure_response_msg)
  1638. ::google::protobuf::uint32 cached_has_bits = 0;
  1639. // Prevent compiler warnings about cached_has_bits being unused
  1640. (void) cached_has_bits;
  1641. cached_has_bits = _has_bits_[0];
  1642. if (cached_has_bits & 15u) {
  1643. if (cached_has_bits & 0x00000001u) {
  1644. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1645. (*command_key_.UnsafeRawStringPointer())->clear();
  1646. }
  1647. if (cached_has_bits & 0x00000002u) {
  1648. GOOGLE_DCHECK(base_info_ != NULL);
  1649. base_info_->Clear();
  1650. }
  1651. if (cached_has_bits & 0x00000004u) {
  1652. GOOGLE_DCHECK(locate_information_ != NULL);
  1653. locate_information_->Clear();
  1654. }
  1655. if (cached_has_bits & 0x00000008u) {
  1656. GOOGLE_DCHECK(error_manager_ != NULL);
  1657. error_manager_->Clear();
  1658. }
  1659. }
  1660. terminal_id_ = 0;
  1661. _has_bits_.Clear();
  1662. _internal_metadata_.Clear();
  1663. }
  1664. bool Measure_response_msg::MergePartialFromCodedStream(
  1665. ::google::protobuf::io::CodedInputStream* input) {
  1666. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1667. ::google::protobuf::uint32 tag;
  1668. // @@protoc_insertion_point(parse_start:message.Measure_response_msg)
  1669. for (;;) {
  1670. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1671. tag = p.first;
  1672. if (!p.second) goto handle_unusual;
  1673. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1674. // required .message.Base_info base_info = 1;
  1675. case 1: {
  1676. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1677. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1678. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1679. input, mutable_base_info()));
  1680. } else {
  1681. goto handle_unusual;
  1682. }
  1683. break;
  1684. }
  1685. // required string command_key = 2;
  1686. case 2: {
  1687. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1688. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1689. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1690. input, this->mutable_command_key()));
  1691. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1692. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1693. ::google::protobuf::internal::WireFormat::PARSE,
  1694. "message.Measure_response_msg.command_key");
  1695. } else {
  1696. goto handle_unusual;
  1697. }
  1698. break;
  1699. }
  1700. // required int32 terminal_id = 3;
  1701. case 3: {
  1702. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1703. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1704. set_has_terminal_id();
  1705. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1706. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1707. input, &terminal_id_)));
  1708. } else {
  1709. goto handle_unusual;
  1710. }
  1711. break;
  1712. }
  1713. // optional .message.Locate_information locate_information = 4;
  1714. case 4: {
  1715. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1716. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1717. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1718. input, mutable_locate_information()));
  1719. } else {
  1720. goto handle_unusual;
  1721. }
  1722. break;
  1723. }
  1724. // required .message.Error_manager error_manager = 5;
  1725. case 5: {
  1726. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1727. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1728. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1729. input, mutable_error_manager()));
  1730. } else {
  1731. goto handle_unusual;
  1732. }
  1733. break;
  1734. }
  1735. default: {
  1736. handle_unusual:
  1737. if (tag == 0) {
  1738. goto success;
  1739. }
  1740. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1741. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1742. break;
  1743. }
  1744. }
  1745. }
  1746. success:
  1747. // @@protoc_insertion_point(parse_success:message.Measure_response_msg)
  1748. return true;
  1749. failure:
  1750. // @@protoc_insertion_point(parse_failure:message.Measure_response_msg)
  1751. return false;
  1752. #undef DO_
  1753. }
  1754. void Measure_response_msg::SerializeWithCachedSizes(
  1755. ::google::protobuf::io::CodedOutputStream* output) const {
  1756. // @@protoc_insertion_point(serialize_start:message.Measure_response_msg)
  1757. ::google::protobuf::uint32 cached_has_bits = 0;
  1758. (void) cached_has_bits;
  1759. cached_has_bits = _has_bits_[0];
  1760. // required .message.Base_info base_info = 1;
  1761. if (cached_has_bits & 0x00000002u) {
  1762. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1763. 1, *this->base_info_, output);
  1764. }
  1765. // required string command_key = 2;
  1766. if (cached_has_bits & 0x00000001u) {
  1767. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1768. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1769. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1770. "message.Measure_response_msg.command_key");
  1771. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1772. 2, this->command_key(), output);
  1773. }
  1774. // required int32 terminal_id = 3;
  1775. if (cached_has_bits & 0x00000010u) {
  1776. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->terminal_id(), output);
  1777. }
  1778. // optional .message.Locate_information locate_information = 4;
  1779. if (cached_has_bits & 0x00000004u) {
  1780. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1781. 4, *this->locate_information_, output);
  1782. }
  1783. // required .message.Error_manager error_manager = 5;
  1784. if (cached_has_bits & 0x00000008u) {
  1785. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1786. 5, *this->error_manager_, output);
  1787. }
  1788. if (_internal_metadata_.have_unknown_fields()) {
  1789. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1790. _internal_metadata_.unknown_fields(), output);
  1791. }
  1792. // @@protoc_insertion_point(serialize_end:message.Measure_response_msg)
  1793. }
  1794. ::google::protobuf::uint8* Measure_response_msg::InternalSerializeWithCachedSizesToArray(
  1795. bool deterministic, ::google::protobuf::uint8* target) const {
  1796. (void)deterministic; // Unused
  1797. // @@protoc_insertion_point(serialize_to_array_start:message.Measure_response_msg)
  1798. ::google::protobuf::uint32 cached_has_bits = 0;
  1799. (void) cached_has_bits;
  1800. cached_has_bits = _has_bits_[0];
  1801. // required .message.Base_info base_info = 1;
  1802. if (cached_has_bits & 0x00000002u) {
  1803. target = ::google::protobuf::internal::WireFormatLite::
  1804. InternalWriteMessageToArray(
  1805. 1, *this->base_info_, deterministic, target);
  1806. }
  1807. // required string command_key = 2;
  1808. if (cached_has_bits & 0x00000001u) {
  1809. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1810. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1811. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1812. "message.Measure_response_msg.command_key");
  1813. target =
  1814. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1815. 2, this->command_key(), target);
  1816. }
  1817. // required int32 terminal_id = 3;
  1818. if (cached_has_bits & 0x00000010u) {
  1819. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->terminal_id(), target);
  1820. }
  1821. // optional .message.Locate_information locate_information = 4;
  1822. if (cached_has_bits & 0x00000004u) {
  1823. target = ::google::protobuf::internal::WireFormatLite::
  1824. InternalWriteMessageToArray(
  1825. 4, *this->locate_information_, deterministic, target);
  1826. }
  1827. // required .message.Error_manager error_manager = 5;
  1828. if (cached_has_bits & 0x00000008u) {
  1829. target = ::google::protobuf::internal::WireFormatLite::
  1830. InternalWriteMessageToArray(
  1831. 5, *this->error_manager_, deterministic, target);
  1832. }
  1833. if (_internal_metadata_.have_unknown_fields()) {
  1834. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1835. _internal_metadata_.unknown_fields(), target);
  1836. }
  1837. // @@protoc_insertion_point(serialize_to_array_end:message.Measure_response_msg)
  1838. return target;
  1839. }
  1840. size_t Measure_response_msg::RequiredFieldsByteSizeFallback() const {
  1841. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Measure_response_msg)
  1842. size_t total_size = 0;
  1843. if (has_command_key()) {
  1844. // required string command_key = 2;
  1845. total_size += 1 +
  1846. ::google::protobuf::internal::WireFormatLite::StringSize(
  1847. this->command_key());
  1848. }
  1849. if (has_base_info()) {
  1850. // required .message.Base_info base_info = 1;
  1851. total_size += 1 +
  1852. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1853. *this->base_info_);
  1854. }
  1855. if (has_error_manager()) {
  1856. // required .message.Error_manager error_manager = 5;
  1857. total_size += 1 +
  1858. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1859. *this->error_manager_);
  1860. }
  1861. if (has_terminal_id()) {
  1862. // required int32 terminal_id = 3;
  1863. total_size += 1 +
  1864. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1865. this->terminal_id());
  1866. }
  1867. return total_size;
  1868. }
  1869. size_t Measure_response_msg::ByteSizeLong() const {
  1870. // @@protoc_insertion_point(message_byte_size_start:message.Measure_response_msg)
  1871. size_t total_size = 0;
  1872. if (_internal_metadata_.have_unknown_fields()) {
  1873. total_size +=
  1874. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1875. _internal_metadata_.unknown_fields());
  1876. }
  1877. if (((_has_bits_[0] & 0x0000001b) ^ 0x0000001b) == 0) { // All required fields are present.
  1878. // required string command_key = 2;
  1879. total_size += 1 +
  1880. ::google::protobuf::internal::WireFormatLite::StringSize(
  1881. this->command_key());
  1882. // required .message.Base_info base_info = 1;
  1883. total_size += 1 +
  1884. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1885. *this->base_info_);
  1886. // required .message.Error_manager error_manager = 5;
  1887. total_size += 1 +
  1888. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1889. *this->error_manager_);
  1890. // required int32 terminal_id = 3;
  1891. total_size += 1 +
  1892. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1893. this->terminal_id());
  1894. } else {
  1895. total_size += RequiredFieldsByteSizeFallback();
  1896. }
  1897. // optional .message.Locate_information locate_information = 4;
  1898. if (has_locate_information()) {
  1899. total_size += 1 +
  1900. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1901. *this->locate_information_);
  1902. }
  1903. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1904. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1905. _cached_size_ = cached_size;
  1906. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1907. return total_size;
  1908. }
  1909. void Measure_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1910. // @@protoc_insertion_point(generalized_merge_from_start:message.Measure_response_msg)
  1911. GOOGLE_DCHECK_NE(&from, this);
  1912. const Measure_response_msg* source =
  1913. ::google::protobuf::internal::DynamicCastToGenerated<const Measure_response_msg>(
  1914. &from);
  1915. if (source == NULL) {
  1916. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Measure_response_msg)
  1917. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1918. } else {
  1919. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Measure_response_msg)
  1920. MergeFrom(*source);
  1921. }
  1922. }
  1923. void Measure_response_msg::MergeFrom(const Measure_response_msg& from) {
  1924. // @@protoc_insertion_point(class_specific_merge_from_start:message.Measure_response_msg)
  1925. GOOGLE_DCHECK_NE(&from, this);
  1926. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1927. ::google::protobuf::uint32 cached_has_bits = 0;
  1928. (void) cached_has_bits;
  1929. cached_has_bits = from._has_bits_[0];
  1930. if (cached_has_bits & 31u) {
  1931. if (cached_has_bits & 0x00000001u) {
  1932. set_has_command_key();
  1933. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1934. }
  1935. if (cached_has_bits & 0x00000002u) {
  1936. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1937. }
  1938. if (cached_has_bits & 0x00000004u) {
  1939. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  1940. }
  1941. if (cached_has_bits & 0x00000008u) {
  1942. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1943. }
  1944. if (cached_has_bits & 0x00000010u) {
  1945. terminal_id_ = from.terminal_id_;
  1946. }
  1947. _has_bits_[0] |= cached_has_bits;
  1948. }
  1949. }
  1950. void Measure_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1951. // @@protoc_insertion_point(generalized_copy_from_start:message.Measure_response_msg)
  1952. if (&from == this) return;
  1953. Clear();
  1954. MergeFrom(from);
  1955. }
  1956. void Measure_response_msg::CopyFrom(const Measure_response_msg& from) {
  1957. // @@protoc_insertion_point(class_specific_copy_from_start:message.Measure_response_msg)
  1958. if (&from == this) return;
  1959. Clear();
  1960. MergeFrom(from);
  1961. }
  1962. bool Measure_response_msg::IsInitialized() const {
  1963. if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false;
  1964. if (has_base_info()) {
  1965. if (!this->base_info_->IsInitialized()) return false;
  1966. }
  1967. if (has_error_manager()) {
  1968. if (!this->error_manager_->IsInitialized()) return false;
  1969. }
  1970. return true;
  1971. }
  1972. void Measure_response_msg::Swap(Measure_response_msg* other) {
  1973. if (other == this) return;
  1974. InternalSwap(other);
  1975. }
  1976. void Measure_response_msg::InternalSwap(Measure_response_msg* other) {
  1977. using std::swap;
  1978. command_key_.Swap(&other->command_key_);
  1979. swap(base_info_, other->base_info_);
  1980. swap(locate_information_, other->locate_information_);
  1981. swap(error_manager_, other->error_manager_);
  1982. swap(terminal_id_, other->terminal_id_);
  1983. swap(_has_bits_[0], other->_has_bits_[0]);
  1984. _internal_metadata_.Swap(&other->_internal_metadata_);
  1985. swap(_cached_size_, other->_cached_size_);
  1986. }
  1987. ::google::protobuf::Metadata Measure_response_msg::GetMetadata() const {
  1988. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1989. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1990. }
  1991. // ===================================================================
  1992. void Cloud_coordinate::InitAsDefaultInstance() {
  1993. }
  1994. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1995. const int Cloud_coordinate::kXFieldNumber;
  1996. const int Cloud_coordinate::kYFieldNumber;
  1997. const int Cloud_coordinate::kZFieldNumber;
  1998. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1999. Cloud_coordinate::Cloud_coordinate()
  2000. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2001. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2002. ::protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_coordinate();
  2003. }
  2004. SharedCtor();
  2005. // @@protoc_insertion_point(constructor:message.Cloud_coordinate)
  2006. }
  2007. Cloud_coordinate::Cloud_coordinate(const Cloud_coordinate& from)
  2008. : ::google::protobuf::Message(),
  2009. _internal_metadata_(NULL),
  2010. _has_bits_(from._has_bits_),
  2011. _cached_size_(0) {
  2012. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2013. ::memcpy(&x_, &from.x_,
  2014. static_cast<size_t>(reinterpret_cast<char*>(&z_) -
  2015. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  2016. // @@protoc_insertion_point(copy_constructor:message.Cloud_coordinate)
  2017. }
  2018. void Cloud_coordinate::SharedCtor() {
  2019. _cached_size_ = 0;
  2020. ::memset(&x_, 0, static_cast<size_t>(
  2021. reinterpret_cast<char*>(&z_) -
  2022. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  2023. }
  2024. Cloud_coordinate::~Cloud_coordinate() {
  2025. // @@protoc_insertion_point(destructor:message.Cloud_coordinate)
  2026. SharedDtor();
  2027. }
  2028. void Cloud_coordinate::SharedDtor() {
  2029. }
  2030. void Cloud_coordinate::SetCachedSize(int size) const {
  2031. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2032. _cached_size_ = size;
  2033. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2034. }
  2035. const ::google::protobuf::Descriptor* Cloud_coordinate::descriptor() {
  2036. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2037. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2038. }
  2039. const Cloud_coordinate& Cloud_coordinate::default_instance() {
  2040. ::protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_coordinate();
  2041. return *internal_default_instance();
  2042. }
  2043. Cloud_coordinate* Cloud_coordinate::New(::google::protobuf::Arena* arena) const {
  2044. Cloud_coordinate* n = new Cloud_coordinate;
  2045. if (arena != NULL) {
  2046. arena->Own(n);
  2047. }
  2048. return n;
  2049. }
  2050. void Cloud_coordinate::Clear() {
  2051. // @@protoc_insertion_point(message_clear_start:message.Cloud_coordinate)
  2052. ::google::protobuf::uint32 cached_has_bits = 0;
  2053. // Prevent compiler warnings about cached_has_bits being unused
  2054. (void) cached_has_bits;
  2055. cached_has_bits = _has_bits_[0];
  2056. if (cached_has_bits & 7u) {
  2057. ::memset(&x_, 0, static_cast<size_t>(
  2058. reinterpret_cast<char*>(&z_) -
  2059. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  2060. }
  2061. _has_bits_.Clear();
  2062. _internal_metadata_.Clear();
  2063. }
  2064. bool Cloud_coordinate::MergePartialFromCodedStream(
  2065. ::google::protobuf::io::CodedInputStream* input) {
  2066. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2067. ::google::protobuf::uint32 tag;
  2068. // @@protoc_insertion_point(parse_start:message.Cloud_coordinate)
  2069. for (;;) {
  2070. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2071. tag = p.first;
  2072. if (!p.second) goto handle_unusual;
  2073. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2074. // required float x = 1;
  2075. case 1: {
  2076. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2077. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2078. set_has_x();
  2079. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2080. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2081. input, &x_)));
  2082. } else {
  2083. goto handle_unusual;
  2084. }
  2085. break;
  2086. }
  2087. // required float y = 2;
  2088. case 2: {
  2089. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2090. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2091. set_has_y();
  2092. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2093. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2094. input, &y_)));
  2095. } else {
  2096. goto handle_unusual;
  2097. }
  2098. break;
  2099. }
  2100. // required float z = 3;
  2101. case 3: {
  2102. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2103. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2104. set_has_z();
  2105. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2106. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2107. input, &z_)));
  2108. } else {
  2109. goto handle_unusual;
  2110. }
  2111. break;
  2112. }
  2113. default: {
  2114. handle_unusual:
  2115. if (tag == 0) {
  2116. goto success;
  2117. }
  2118. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2119. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2120. break;
  2121. }
  2122. }
  2123. }
  2124. success:
  2125. // @@protoc_insertion_point(parse_success:message.Cloud_coordinate)
  2126. return true;
  2127. failure:
  2128. // @@protoc_insertion_point(parse_failure:message.Cloud_coordinate)
  2129. return false;
  2130. #undef DO_
  2131. }
  2132. void Cloud_coordinate::SerializeWithCachedSizes(
  2133. ::google::protobuf::io::CodedOutputStream* output) const {
  2134. // @@protoc_insertion_point(serialize_start:message.Cloud_coordinate)
  2135. ::google::protobuf::uint32 cached_has_bits = 0;
  2136. (void) cached_has_bits;
  2137. cached_has_bits = _has_bits_[0];
  2138. // required float x = 1;
  2139. if (cached_has_bits & 0x00000001u) {
  2140. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
  2141. }
  2142. // required float y = 2;
  2143. if (cached_has_bits & 0x00000002u) {
  2144. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
  2145. }
  2146. // required float z = 3;
  2147. if (cached_has_bits & 0x00000004u) {
  2148. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->z(), output);
  2149. }
  2150. if (_internal_metadata_.have_unknown_fields()) {
  2151. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2152. _internal_metadata_.unknown_fields(), output);
  2153. }
  2154. // @@protoc_insertion_point(serialize_end:message.Cloud_coordinate)
  2155. }
  2156. ::google::protobuf::uint8* Cloud_coordinate::InternalSerializeWithCachedSizesToArray(
  2157. bool deterministic, ::google::protobuf::uint8* target) const {
  2158. (void)deterministic; // Unused
  2159. // @@protoc_insertion_point(serialize_to_array_start:message.Cloud_coordinate)
  2160. ::google::protobuf::uint32 cached_has_bits = 0;
  2161. (void) cached_has_bits;
  2162. cached_has_bits = _has_bits_[0];
  2163. // required float x = 1;
  2164. if (cached_has_bits & 0x00000001u) {
  2165. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->x(), target);
  2166. }
  2167. // required float y = 2;
  2168. if (cached_has_bits & 0x00000002u) {
  2169. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->y(), target);
  2170. }
  2171. // required float z = 3;
  2172. if (cached_has_bits & 0x00000004u) {
  2173. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->z(), target);
  2174. }
  2175. if (_internal_metadata_.have_unknown_fields()) {
  2176. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2177. _internal_metadata_.unknown_fields(), target);
  2178. }
  2179. // @@protoc_insertion_point(serialize_to_array_end:message.Cloud_coordinate)
  2180. return target;
  2181. }
  2182. size_t Cloud_coordinate::RequiredFieldsByteSizeFallback() const {
  2183. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Cloud_coordinate)
  2184. size_t total_size = 0;
  2185. if (has_x()) {
  2186. // required float x = 1;
  2187. total_size += 1 + 4;
  2188. }
  2189. if (has_y()) {
  2190. // required float y = 2;
  2191. total_size += 1 + 4;
  2192. }
  2193. if (has_z()) {
  2194. // required float z = 3;
  2195. total_size += 1 + 4;
  2196. }
  2197. return total_size;
  2198. }
  2199. size_t Cloud_coordinate::ByteSizeLong() const {
  2200. // @@protoc_insertion_point(message_byte_size_start:message.Cloud_coordinate)
  2201. size_t total_size = 0;
  2202. if (_internal_metadata_.have_unknown_fields()) {
  2203. total_size +=
  2204. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2205. _internal_metadata_.unknown_fields());
  2206. }
  2207. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  2208. // required float x = 1;
  2209. total_size += 1 + 4;
  2210. // required float y = 2;
  2211. total_size += 1 + 4;
  2212. // required float z = 3;
  2213. total_size += 1 + 4;
  2214. } else {
  2215. total_size += RequiredFieldsByteSizeFallback();
  2216. }
  2217. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2218. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2219. _cached_size_ = cached_size;
  2220. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2221. return total_size;
  2222. }
  2223. void Cloud_coordinate::MergeFrom(const ::google::protobuf::Message& from) {
  2224. // @@protoc_insertion_point(generalized_merge_from_start:message.Cloud_coordinate)
  2225. GOOGLE_DCHECK_NE(&from, this);
  2226. const Cloud_coordinate* source =
  2227. ::google::protobuf::internal::DynamicCastToGenerated<const Cloud_coordinate>(
  2228. &from);
  2229. if (source == NULL) {
  2230. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Cloud_coordinate)
  2231. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2232. } else {
  2233. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Cloud_coordinate)
  2234. MergeFrom(*source);
  2235. }
  2236. }
  2237. void Cloud_coordinate::MergeFrom(const Cloud_coordinate& from) {
  2238. // @@protoc_insertion_point(class_specific_merge_from_start:message.Cloud_coordinate)
  2239. GOOGLE_DCHECK_NE(&from, this);
  2240. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2241. ::google::protobuf::uint32 cached_has_bits = 0;
  2242. (void) cached_has_bits;
  2243. cached_has_bits = from._has_bits_[0];
  2244. if (cached_has_bits & 7u) {
  2245. if (cached_has_bits & 0x00000001u) {
  2246. x_ = from.x_;
  2247. }
  2248. if (cached_has_bits & 0x00000002u) {
  2249. y_ = from.y_;
  2250. }
  2251. if (cached_has_bits & 0x00000004u) {
  2252. z_ = from.z_;
  2253. }
  2254. _has_bits_[0] |= cached_has_bits;
  2255. }
  2256. }
  2257. void Cloud_coordinate::CopyFrom(const ::google::protobuf::Message& from) {
  2258. // @@protoc_insertion_point(generalized_copy_from_start:message.Cloud_coordinate)
  2259. if (&from == this) return;
  2260. Clear();
  2261. MergeFrom(from);
  2262. }
  2263. void Cloud_coordinate::CopyFrom(const Cloud_coordinate& from) {
  2264. // @@protoc_insertion_point(class_specific_copy_from_start:message.Cloud_coordinate)
  2265. if (&from == this) return;
  2266. Clear();
  2267. MergeFrom(from);
  2268. }
  2269. bool Cloud_coordinate::IsInitialized() const {
  2270. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  2271. return true;
  2272. }
  2273. void Cloud_coordinate::Swap(Cloud_coordinate* other) {
  2274. if (other == this) return;
  2275. InternalSwap(other);
  2276. }
  2277. void Cloud_coordinate::InternalSwap(Cloud_coordinate* other) {
  2278. using std::swap;
  2279. swap(x_, other->x_);
  2280. swap(y_, other->y_);
  2281. swap(z_, other->z_);
  2282. swap(_has_bits_[0], other->_has_bits_[0]);
  2283. _internal_metadata_.Swap(&other->_internal_metadata_);
  2284. swap(_cached_size_, other->_cached_size_);
  2285. }
  2286. ::google::protobuf::Metadata Cloud_coordinate::GetMetadata() const {
  2287. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2288. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2289. }
  2290. // ===================================================================
  2291. void Cloud_type::InitAsDefaultInstance() {
  2292. }
  2293. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2294. const int Cloud_type::kTypeFieldNumber;
  2295. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2296. Cloud_type::Cloud_type()
  2297. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2298. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2299. ::protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_type();
  2300. }
  2301. SharedCtor();
  2302. // @@protoc_insertion_point(constructor:message.Cloud_type)
  2303. }
  2304. Cloud_type::Cloud_type(const Cloud_type& from)
  2305. : ::google::protobuf::Message(),
  2306. _internal_metadata_(NULL),
  2307. _has_bits_(from._has_bits_),
  2308. _cached_size_(0) {
  2309. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2310. type_ = from.type_;
  2311. // @@protoc_insertion_point(copy_constructor:message.Cloud_type)
  2312. }
  2313. void Cloud_type::SharedCtor() {
  2314. _cached_size_ = 0;
  2315. type_ = 0;
  2316. }
  2317. Cloud_type::~Cloud_type() {
  2318. // @@protoc_insertion_point(destructor:message.Cloud_type)
  2319. SharedDtor();
  2320. }
  2321. void Cloud_type::SharedDtor() {
  2322. }
  2323. void Cloud_type::SetCachedSize(int size) const {
  2324. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2325. _cached_size_ = size;
  2326. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2327. }
  2328. const ::google::protobuf::Descriptor* Cloud_type::descriptor() {
  2329. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2330. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2331. }
  2332. const Cloud_type& Cloud_type::default_instance() {
  2333. ::protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_type();
  2334. return *internal_default_instance();
  2335. }
  2336. Cloud_type* Cloud_type::New(::google::protobuf::Arena* arena) const {
  2337. Cloud_type* n = new Cloud_type;
  2338. if (arena != NULL) {
  2339. arena->Own(n);
  2340. }
  2341. return n;
  2342. }
  2343. void Cloud_type::Clear() {
  2344. // @@protoc_insertion_point(message_clear_start:message.Cloud_type)
  2345. ::google::protobuf::uint32 cached_has_bits = 0;
  2346. // Prevent compiler warnings about cached_has_bits being unused
  2347. (void) cached_has_bits;
  2348. type_ = 0;
  2349. _has_bits_.Clear();
  2350. _internal_metadata_.Clear();
  2351. }
  2352. bool Cloud_type::MergePartialFromCodedStream(
  2353. ::google::protobuf::io::CodedInputStream* input) {
  2354. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2355. ::google::protobuf::uint32 tag;
  2356. // @@protoc_insertion_point(parse_start:message.Cloud_type)
  2357. for (;;) {
  2358. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2359. tag = p.first;
  2360. if (!p.second) goto handle_unusual;
  2361. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2362. // required int32 type = 1;
  2363. case 1: {
  2364. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2365. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2366. set_has_type();
  2367. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2368. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2369. input, &type_)));
  2370. } else {
  2371. goto handle_unusual;
  2372. }
  2373. break;
  2374. }
  2375. default: {
  2376. handle_unusual:
  2377. if (tag == 0) {
  2378. goto success;
  2379. }
  2380. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2381. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2382. break;
  2383. }
  2384. }
  2385. }
  2386. success:
  2387. // @@protoc_insertion_point(parse_success:message.Cloud_type)
  2388. return true;
  2389. failure:
  2390. // @@protoc_insertion_point(parse_failure:message.Cloud_type)
  2391. return false;
  2392. #undef DO_
  2393. }
  2394. void Cloud_type::SerializeWithCachedSizes(
  2395. ::google::protobuf::io::CodedOutputStream* output) const {
  2396. // @@protoc_insertion_point(serialize_start:message.Cloud_type)
  2397. ::google::protobuf::uint32 cached_has_bits = 0;
  2398. (void) cached_has_bits;
  2399. cached_has_bits = _has_bits_[0];
  2400. // required int32 type = 1;
  2401. if (cached_has_bits & 0x00000001u) {
  2402. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output);
  2403. }
  2404. if (_internal_metadata_.have_unknown_fields()) {
  2405. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2406. _internal_metadata_.unknown_fields(), output);
  2407. }
  2408. // @@protoc_insertion_point(serialize_end:message.Cloud_type)
  2409. }
  2410. ::google::protobuf::uint8* Cloud_type::InternalSerializeWithCachedSizesToArray(
  2411. bool deterministic, ::google::protobuf::uint8* target) const {
  2412. (void)deterministic; // Unused
  2413. // @@protoc_insertion_point(serialize_to_array_start:message.Cloud_type)
  2414. ::google::protobuf::uint32 cached_has_bits = 0;
  2415. (void) cached_has_bits;
  2416. cached_has_bits = _has_bits_[0];
  2417. // required int32 type = 1;
  2418. if (cached_has_bits & 0x00000001u) {
  2419. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
  2420. }
  2421. if (_internal_metadata_.have_unknown_fields()) {
  2422. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2423. _internal_metadata_.unknown_fields(), target);
  2424. }
  2425. // @@protoc_insertion_point(serialize_to_array_end:message.Cloud_type)
  2426. return target;
  2427. }
  2428. size_t Cloud_type::ByteSizeLong() const {
  2429. // @@protoc_insertion_point(message_byte_size_start:message.Cloud_type)
  2430. size_t total_size = 0;
  2431. if (_internal_metadata_.have_unknown_fields()) {
  2432. total_size +=
  2433. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2434. _internal_metadata_.unknown_fields());
  2435. }
  2436. // required int32 type = 1;
  2437. if (has_type()) {
  2438. total_size += 1 +
  2439. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2440. this->type());
  2441. }
  2442. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2443. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2444. _cached_size_ = cached_size;
  2445. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2446. return total_size;
  2447. }
  2448. void Cloud_type::MergeFrom(const ::google::protobuf::Message& from) {
  2449. // @@protoc_insertion_point(generalized_merge_from_start:message.Cloud_type)
  2450. GOOGLE_DCHECK_NE(&from, this);
  2451. const Cloud_type* source =
  2452. ::google::protobuf::internal::DynamicCastToGenerated<const Cloud_type>(
  2453. &from);
  2454. if (source == NULL) {
  2455. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Cloud_type)
  2456. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2457. } else {
  2458. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Cloud_type)
  2459. MergeFrom(*source);
  2460. }
  2461. }
  2462. void Cloud_type::MergeFrom(const Cloud_type& from) {
  2463. // @@protoc_insertion_point(class_specific_merge_from_start:message.Cloud_type)
  2464. GOOGLE_DCHECK_NE(&from, this);
  2465. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2466. ::google::protobuf::uint32 cached_has_bits = 0;
  2467. (void) cached_has_bits;
  2468. if (from.has_type()) {
  2469. set_type(from.type());
  2470. }
  2471. }
  2472. void Cloud_type::CopyFrom(const ::google::protobuf::Message& from) {
  2473. // @@protoc_insertion_point(generalized_copy_from_start:message.Cloud_type)
  2474. if (&from == this) return;
  2475. Clear();
  2476. MergeFrom(from);
  2477. }
  2478. void Cloud_type::CopyFrom(const Cloud_type& from) {
  2479. // @@protoc_insertion_point(class_specific_copy_from_start:message.Cloud_type)
  2480. if (&from == this) return;
  2481. Clear();
  2482. MergeFrom(from);
  2483. }
  2484. bool Cloud_type::IsInitialized() const {
  2485. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  2486. return true;
  2487. }
  2488. void Cloud_type::Swap(Cloud_type* other) {
  2489. if (other == this) return;
  2490. InternalSwap(other);
  2491. }
  2492. void Cloud_type::InternalSwap(Cloud_type* other) {
  2493. using std::swap;
  2494. swap(type_, other->type_);
  2495. swap(_has_bits_[0], other->_has_bits_[0]);
  2496. _internal_metadata_.Swap(&other->_internal_metadata_);
  2497. swap(_cached_size_, other->_cached_size_);
  2498. }
  2499. ::google::protobuf::Metadata Cloud_type::GetMetadata() const {
  2500. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2501. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2502. }
  2503. // ===================================================================
  2504. void Locate_sift_request_msg::InitAsDefaultInstance() {
  2505. ::message::_Locate_sift_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2506. ::message::Base_info::internal_default_instance());
  2507. }
  2508. void Locate_sift_request_msg::clear_base_info() {
  2509. if (base_info_ != NULL) base_info_->Clear();
  2510. clear_has_base_info();
  2511. }
  2512. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2513. const int Locate_sift_request_msg::kBaseInfoFieldNumber;
  2514. const int Locate_sift_request_msg::kCommandKeyFieldNumber;
  2515. const int Locate_sift_request_msg::kTerminalIdFieldNumber;
  2516. const int Locate_sift_request_msg::kLidarIdFieldNumber;
  2517. const int Locate_sift_request_msg::kCloudCoordinatesFieldNumber;
  2518. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2519. Locate_sift_request_msg::Locate_sift_request_msg()
  2520. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2521. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2522. ::protobuf_measure_5fmessage_2eproto::InitDefaultsLocate_sift_request_msg();
  2523. }
  2524. SharedCtor();
  2525. // @@protoc_insertion_point(constructor:message.Locate_sift_request_msg)
  2526. }
  2527. Locate_sift_request_msg::Locate_sift_request_msg(const Locate_sift_request_msg& from)
  2528. : ::google::protobuf::Message(),
  2529. _internal_metadata_(NULL),
  2530. _has_bits_(from._has_bits_),
  2531. _cached_size_(0),
  2532. cloud_coordinates_(from.cloud_coordinates_) {
  2533. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2534. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2535. if (from.has_command_key()) {
  2536. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2537. }
  2538. if (from.has_base_info()) {
  2539. base_info_ = new ::message::Base_info(*from.base_info_);
  2540. } else {
  2541. base_info_ = NULL;
  2542. }
  2543. ::memcpy(&terminal_id_, &from.terminal_id_,
  2544. static_cast<size_t>(reinterpret_cast<char*>(&lidar_id_) -
  2545. reinterpret_cast<char*>(&terminal_id_)) + sizeof(lidar_id_));
  2546. // @@protoc_insertion_point(copy_constructor:message.Locate_sift_request_msg)
  2547. }
  2548. void Locate_sift_request_msg::SharedCtor() {
  2549. _cached_size_ = 0;
  2550. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2551. ::memset(&base_info_, 0, static_cast<size_t>(
  2552. reinterpret_cast<char*>(&lidar_id_) -
  2553. reinterpret_cast<char*>(&base_info_)) + sizeof(lidar_id_));
  2554. }
  2555. Locate_sift_request_msg::~Locate_sift_request_msg() {
  2556. // @@protoc_insertion_point(destructor:message.Locate_sift_request_msg)
  2557. SharedDtor();
  2558. }
  2559. void Locate_sift_request_msg::SharedDtor() {
  2560. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2561. if (this != internal_default_instance()) delete base_info_;
  2562. }
  2563. void Locate_sift_request_msg::SetCachedSize(int size) const {
  2564. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2565. _cached_size_ = size;
  2566. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2567. }
  2568. const ::google::protobuf::Descriptor* Locate_sift_request_msg::descriptor() {
  2569. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2570. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2571. }
  2572. const Locate_sift_request_msg& Locate_sift_request_msg::default_instance() {
  2573. ::protobuf_measure_5fmessage_2eproto::InitDefaultsLocate_sift_request_msg();
  2574. return *internal_default_instance();
  2575. }
  2576. Locate_sift_request_msg* Locate_sift_request_msg::New(::google::protobuf::Arena* arena) const {
  2577. Locate_sift_request_msg* n = new Locate_sift_request_msg;
  2578. if (arena != NULL) {
  2579. arena->Own(n);
  2580. }
  2581. return n;
  2582. }
  2583. void Locate_sift_request_msg::Clear() {
  2584. // @@protoc_insertion_point(message_clear_start:message.Locate_sift_request_msg)
  2585. ::google::protobuf::uint32 cached_has_bits = 0;
  2586. // Prevent compiler warnings about cached_has_bits being unused
  2587. (void) cached_has_bits;
  2588. cloud_coordinates_.Clear();
  2589. cached_has_bits = _has_bits_[0];
  2590. if (cached_has_bits & 3u) {
  2591. if (cached_has_bits & 0x00000001u) {
  2592. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2593. (*command_key_.UnsafeRawStringPointer())->clear();
  2594. }
  2595. if (cached_has_bits & 0x00000002u) {
  2596. GOOGLE_DCHECK(base_info_ != NULL);
  2597. base_info_->Clear();
  2598. }
  2599. }
  2600. if (cached_has_bits & 12u) {
  2601. ::memset(&terminal_id_, 0, static_cast<size_t>(
  2602. reinterpret_cast<char*>(&lidar_id_) -
  2603. reinterpret_cast<char*>(&terminal_id_)) + sizeof(lidar_id_));
  2604. }
  2605. _has_bits_.Clear();
  2606. _internal_metadata_.Clear();
  2607. }
  2608. bool Locate_sift_request_msg::MergePartialFromCodedStream(
  2609. ::google::protobuf::io::CodedInputStream* input) {
  2610. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2611. ::google::protobuf::uint32 tag;
  2612. // @@protoc_insertion_point(parse_start:message.Locate_sift_request_msg)
  2613. for (;;) {
  2614. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2615. tag = p.first;
  2616. if (!p.second) goto handle_unusual;
  2617. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2618. // required .message.Base_info base_info = 1;
  2619. case 1: {
  2620. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2621. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2622. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2623. input, mutable_base_info()));
  2624. } else {
  2625. goto handle_unusual;
  2626. }
  2627. break;
  2628. }
  2629. // required string command_key = 2;
  2630. case 2: {
  2631. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2632. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2633. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2634. input, this->mutable_command_key()));
  2635. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2636. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2637. ::google::protobuf::internal::WireFormat::PARSE,
  2638. "message.Locate_sift_request_msg.command_key");
  2639. } else {
  2640. goto handle_unusual;
  2641. }
  2642. break;
  2643. }
  2644. // required int32 terminal_id = 3;
  2645. case 3: {
  2646. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2647. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2648. set_has_terminal_id();
  2649. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2650. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2651. input, &terminal_id_)));
  2652. } else {
  2653. goto handle_unusual;
  2654. }
  2655. break;
  2656. }
  2657. // required int32 lidar_id = 4;
  2658. case 4: {
  2659. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2660. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2661. set_has_lidar_id();
  2662. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2663. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2664. input, &lidar_id_)));
  2665. } else {
  2666. goto handle_unusual;
  2667. }
  2668. break;
  2669. }
  2670. // repeated .message.Cloud_coordinate cloud_coordinates = 5;
  2671. case 5: {
  2672. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2673. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  2674. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_cloud_coordinates()));
  2675. } else {
  2676. goto handle_unusual;
  2677. }
  2678. break;
  2679. }
  2680. default: {
  2681. handle_unusual:
  2682. if (tag == 0) {
  2683. goto success;
  2684. }
  2685. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2686. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2687. break;
  2688. }
  2689. }
  2690. }
  2691. success:
  2692. // @@protoc_insertion_point(parse_success:message.Locate_sift_request_msg)
  2693. return true;
  2694. failure:
  2695. // @@protoc_insertion_point(parse_failure:message.Locate_sift_request_msg)
  2696. return false;
  2697. #undef DO_
  2698. }
  2699. void Locate_sift_request_msg::SerializeWithCachedSizes(
  2700. ::google::protobuf::io::CodedOutputStream* output) const {
  2701. // @@protoc_insertion_point(serialize_start:message.Locate_sift_request_msg)
  2702. ::google::protobuf::uint32 cached_has_bits = 0;
  2703. (void) cached_has_bits;
  2704. cached_has_bits = _has_bits_[0];
  2705. // required .message.Base_info base_info = 1;
  2706. if (cached_has_bits & 0x00000002u) {
  2707. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2708. 1, *this->base_info_, output);
  2709. }
  2710. // required string command_key = 2;
  2711. if (cached_has_bits & 0x00000001u) {
  2712. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2713. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2714. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2715. "message.Locate_sift_request_msg.command_key");
  2716. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2717. 2, this->command_key(), output);
  2718. }
  2719. // required int32 terminal_id = 3;
  2720. if (cached_has_bits & 0x00000004u) {
  2721. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->terminal_id(), output);
  2722. }
  2723. // required int32 lidar_id = 4;
  2724. if (cached_has_bits & 0x00000008u) {
  2725. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->lidar_id(), output);
  2726. }
  2727. // repeated .message.Cloud_coordinate cloud_coordinates = 5;
  2728. for (unsigned int i = 0,
  2729. n = static_cast<unsigned int>(this->cloud_coordinates_size()); i < n; i++) {
  2730. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2731. 5, this->cloud_coordinates(static_cast<int>(i)), output);
  2732. }
  2733. if (_internal_metadata_.have_unknown_fields()) {
  2734. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2735. _internal_metadata_.unknown_fields(), output);
  2736. }
  2737. // @@protoc_insertion_point(serialize_end:message.Locate_sift_request_msg)
  2738. }
  2739. ::google::protobuf::uint8* Locate_sift_request_msg::InternalSerializeWithCachedSizesToArray(
  2740. bool deterministic, ::google::protobuf::uint8* target) const {
  2741. (void)deterministic; // Unused
  2742. // @@protoc_insertion_point(serialize_to_array_start:message.Locate_sift_request_msg)
  2743. ::google::protobuf::uint32 cached_has_bits = 0;
  2744. (void) cached_has_bits;
  2745. cached_has_bits = _has_bits_[0];
  2746. // required .message.Base_info base_info = 1;
  2747. if (cached_has_bits & 0x00000002u) {
  2748. target = ::google::protobuf::internal::WireFormatLite::
  2749. InternalWriteMessageToArray(
  2750. 1, *this->base_info_, deterministic, target);
  2751. }
  2752. // required string command_key = 2;
  2753. if (cached_has_bits & 0x00000001u) {
  2754. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2755. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2756. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2757. "message.Locate_sift_request_msg.command_key");
  2758. target =
  2759. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2760. 2, this->command_key(), target);
  2761. }
  2762. // required int32 terminal_id = 3;
  2763. if (cached_has_bits & 0x00000004u) {
  2764. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->terminal_id(), target);
  2765. }
  2766. // required int32 lidar_id = 4;
  2767. if (cached_has_bits & 0x00000008u) {
  2768. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->lidar_id(), target);
  2769. }
  2770. // repeated .message.Cloud_coordinate cloud_coordinates = 5;
  2771. for (unsigned int i = 0,
  2772. n = static_cast<unsigned int>(this->cloud_coordinates_size()); i < n; i++) {
  2773. target = ::google::protobuf::internal::WireFormatLite::
  2774. InternalWriteMessageToArray(
  2775. 5, this->cloud_coordinates(static_cast<int>(i)), deterministic, target);
  2776. }
  2777. if (_internal_metadata_.have_unknown_fields()) {
  2778. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2779. _internal_metadata_.unknown_fields(), target);
  2780. }
  2781. // @@protoc_insertion_point(serialize_to_array_end:message.Locate_sift_request_msg)
  2782. return target;
  2783. }
  2784. size_t Locate_sift_request_msg::RequiredFieldsByteSizeFallback() const {
  2785. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Locate_sift_request_msg)
  2786. size_t total_size = 0;
  2787. if (has_command_key()) {
  2788. // required string command_key = 2;
  2789. total_size += 1 +
  2790. ::google::protobuf::internal::WireFormatLite::StringSize(
  2791. this->command_key());
  2792. }
  2793. if (has_base_info()) {
  2794. // required .message.Base_info base_info = 1;
  2795. total_size += 1 +
  2796. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2797. *this->base_info_);
  2798. }
  2799. if (has_terminal_id()) {
  2800. // required int32 terminal_id = 3;
  2801. total_size += 1 +
  2802. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2803. this->terminal_id());
  2804. }
  2805. if (has_lidar_id()) {
  2806. // required int32 lidar_id = 4;
  2807. total_size += 1 +
  2808. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2809. this->lidar_id());
  2810. }
  2811. return total_size;
  2812. }
  2813. size_t Locate_sift_request_msg::ByteSizeLong() const {
  2814. // @@protoc_insertion_point(message_byte_size_start:message.Locate_sift_request_msg)
  2815. size_t total_size = 0;
  2816. if (_internal_metadata_.have_unknown_fields()) {
  2817. total_size +=
  2818. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2819. _internal_metadata_.unknown_fields());
  2820. }
  2821. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  2822. // required string command_key = 2;
  2823. total_size += 1 +
  2824. ::google::protobuf::internal::WireFormatLite::StringSize(
  2825. this->command_key());
  2826. // required .message.Base_info base_info = 1;
  2827. total_size += 1 +
  2828. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2829. *this->base_info_);
  2830. // required int32 terminal_id = 3;
  2831. total_size += 1 +
  2832. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2833. this->terminal_id());
  2834. // required int32 lidar_id = 4;
  2835. total_size += 1 +
  2836. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2837. this->lidar_id());
  2838. } else {
  2839. total_size += RequiredFieldsByteSizeFallback();
  2840. }
  2841. // repeated .message.Cloud_coordinate cloud_coordinates = 5;
  2842. {
  2843. unsigned int count = static_cast<unsigned int>(this->cloud_coordinates_size());
  2844. total_size += 1UL * count;
  2845. for (unsigned int i = 0; i < count; i++) {
  2846. total_size +=
  2847. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2848. this->cloud_coordinates(static_cast<int>(i)));
  2849. }
  2850. }
  2851. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2852. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2853. _cached_size_ = cached_size;
  2854. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2855. return total_size;
  2856. }
  2857. void Locate_sift_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2858. // @@protoc_insertion_point(generalized_merge_from_start:message.Locate_sift_request_msg)
  2859. GOOGLE_DCHECK_NE(&from, this);
  2860. const Locate_sift_request_msg* source =
  2861. ::google::protobuf::internal::DynamicCastToGenerated<const Locate_sift_request_msg>(
  2862. &from);
  2863. if (source == NULL) {
  2864. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Locate_sift_request_msg)
  2865. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2866. } else {
  2867. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Locate_sift_request_msg)
  2868. MergeFrom(*source);
  2869. }
  2870. }
  2871. void Locate_sift_request_msg::MergeFrom(const Locate_sift_request_msg& from) {
  2872. // @@protoc_insertion_point(class_specific_merge_from_start:message.Locate_sift_request_msg)
  2873. GOOGLE_DCHECK_NE(&from, this);
  2874. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2875. ::google::protobuf::uint32 cached_has_bits = 0;
  2876. (void) cached_has_bits;
  2877. cloud_coordinates_.MergeFrom(from.cloud_coordinates_);
  2878. cached_has_bits = from._has_bits_[0];
  2879. if (cached_has_bits & 15u) {
  2880. if (cached_has_bits & 0x00000001u) {
  2881. set_has_command_key();
  2882. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2883. }
  2884. if (cached_has_bits & 0x00000002u) {
  2885. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2886. }
  2887. if (cached_has_bits & 0x00000004u) {
  2888. terminal_id_ = from.terminal_id_;
  2889. }
  2890. if (cached_has_bits & 0x00000008u) {
  2891. lidar_id_ = from.lidar_id_;
  2892. }
  2893. _has_bits_[0] |= cached_has_bits;
  2894. }
  2895. }
  2896. void Locate_sift_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2897. // @@protoc_insertion_point(generalized_copy_from_start:message.Locate_sift_request_msg)
  2898. if (&from == this) return;
  2899. Clear();
  2900. MergeFrom(from);
  2901. }
  2902. void Locate_sift_request_msg::CopyFrom(const Locate_sift_request_msg& from) {
  2903. // @@protoc_insertion_point(class_specific_copy_from_start:message.Locate_sift_request_msg)
  2904. if (&from == this) return;
  2905. Clear();
  2906. MergeFrom(from);
  2907. }
  2908. bool Locate_sift_request_msg::IsInitialized() const {
  2909. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  2910. if (!::google::protobuf::internal::AllAreInitialized(this->cloud_coordinates())) return false;
  2911. if (has_base_info()) {
  2912. if (!this->base_info_->IsInitialized()) return false;
  2913. }
  2914. return true;
  2915. }
  2916. void Locate_sift_request_msg::Swap(Locate_sift_request_msg* other) {
  2917. if (other == this) return;
  2918. InternalSwap(other);
  2919. }
  2920. void Locate_sift_request_msg::InternalSwap(Locate_sift_request_msg* other) {
  2921. using std::swap;
  2922. cloud_coordinates_.InternalSwap(&other->cloud_coordinates_);
  2923. command_key_.Swap(&other->command_key_);
  2924. swap(base_info_, other->base_info_);
  2925. swap(terminal_id_, other->terminal_id_);
  2926. swap(lidar_id_, other->lidar_id_);
  2927. swap(_has_bits_[0], other->_has_bits_[0]);
  2928. _internal_metadata_.Swap(&other->_internal_metadata_);
  2929. swap(_cached_size_, other->_cached_size_);
  2930. }
  2931. ::google::protobuf::Metadata Locate_sift_request_msg::GetMetadata() const {
  2932. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2933. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2934. }
  2935. // ===================================================================
  2936. void Locate_sift_response_msg::InitAsDefaultInstance() {
  2937. ::message::_Locate_sift_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2938. ::message::Base_info::internal_default_instance());
  2939. ::message::_Locate_sift_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  2940. ::message::Error_manager::internal_default_instance());
  2941. }
  2942. void Locate_sift_response_msg::clear_base_info() {
  2943. if (base_info_ != NULL) base_info_->Clear();
  2944. clear_has_base_info();
  2945. }
  2946. void Locate_sift_response_msg::clear_error_manager() {
  2947. if (error_manager_ != NULL) error_manager_->Clear();
  2948. clear_has_error_manager();
  2949. }
  2950. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2951. const int Locate_sift_response_msg::kBaseInfoFieldNumber;
  2952. const int Locate_sift_response_msg::kCommandKeyFieldNumber;
  2953. const int Locate_sift_response_msg::kTerminalIdFieldNumber;
  2954. const int Locate_sift_response_msg::kLidarIdFieldNumber;
  2955. const int Locate_sift_response_msg::kCloudTypeFieldNumber;
  2956. const int Locate_sift_response_msg::kErrorManagerFieldNumber;
  2957. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2958. Locate_sift_response_msg::Locate_sift_response_msg()
  2959. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2960. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2961. ::protobuf_measure_5fmessage_2eproto::InitDefaultsLocate_sift_response_msg();
  2962. }
  2963. SharedCtor();
  2964. // @@protoc_insertion_point(constructor:message.Locate_sift_response_msg)
  2965. }
  2966. Locate_sift_response_msg::Locate_sift_response_msg(const Locate_sift_response_msg& from)
  2967. : ::google::protobuf::Message(),
  2968. _internal_metadata_(NULL),
  2969. _has_bits_(from._has_bits_),
  2970. _cached_size_(0),
  2971. cloud_type_(from.cloud_type_) {
  2972. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2973. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2974. if (from.has_command_key()) {
  2975. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2976. }
  2977. if (from.has_base_info()) {
  2978. base_info_ = new ::message::Base_info(*from.base_info_);
  2979. } else {
  2980. base_info_ = NULL;
  2981. }
  2982. if (from.has_error_manager()) {
  2983. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2984. } else {
  2985. error_manager_ = NULL;
  2986. }
  2987. ::memcpy(&terminal_id_, &from.terminal_id_,
  2988. static_cast<size_t>(reinterpret_cast<char*>(&lidar_id_) -
  2989. reinterpret_cast<char*>(&terminal_id_)) + sizeof(lidar_id_));
  2990. // @@protoc_insertion_point(copy_constructor:message.Locate_sift_response_msg)
  2991. }
  2992. void Locate_sift_response_msg::SharedCtor() {
  2993. _cached_size_ = 0;
  2994. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2995. ::memset(&base_info_, 0, static_cast<size_t>(
  2996. reinterpret_cast<char*>(&lidar_id_) -
  2997. reinterpret_cast<char*>(&base_info_)) + sizeof(lidar_id_));
  2998. }
  2999. Locate_sift_response_msg::~Locate_sift_response_msg() {
  3000. // @@protoc_insertion_point(destructor:message.Locate_sift_response_msg)
  3001. SharedDtor();
  3002. }
  3003. void Locate_sift_response_msg::SharedDtor() {
  3004. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3005. if (this != internal_default_instance()) delete base_info_;
  3006. if (this != internal_default_instance()) delete error_manager_;
  3007. }
  3008. void Locate_sift_response_msg::SetCachedSize(int size) const {
  3009. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3010. _cached_size_ = size;
  3011. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3012. }
  3013. const ::google::protobuf::Descriptor* Locate_sift_response_msg::descriptor() {
  3014. ::protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3015. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3016. }
  3017. const Locate_sift_response_msg& Locate_sift_response_msg::default_instance() {
  3018. ::protobuf_measure_5fmessage_2eproto::InitDefaultsLocate_sift_response_msg();
  3019. return *internal_default_instance();
  3020. }
  3021. Locate_sift_response_msg* Locate_sift_response_msg::New(::google::protobuf::Arena* arena) const {
  3022. Locate_sift_response_msg* n = new Locate_sift_response_msg;
  3023. if (arena != NULL) {
  3024. arena->Own(n);
  3025. }
  3026. return n;
  3027. }
  3028. void Locate_sift_response_msg::Clear() {
  3029. // @@protoc_insertion_point(message_clear_start:message.Locate_sift_response_msg)
  3030. ::google::protobuf::uint32 cached_has_bits = 0;
  3031. // Prevent compiler warnings about cached_has_bits being unused
  3032. (void) cached_has_bits;
  3033. cloud_type_.Clear();
  3034. cached_has_bits = _has_bits_[0];
  3035. if (cached_has_bits & 7u) {
  3036. if (cached_has_bits & 0x00000001u) {
  3037. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  3038. (*command_key_.UnsafeRawStringPointer())->clear();
  3039. }
  3040. if (cached_has_bits & 0x00000002u) {
  3041. GOOGLE_DCHECK(base_info_ != NULL);
  3042. base_info_->Clear();
  3043. }
  3044. if (cached_has_bits & 0x00000004u) {
  3045. GOOGLE_DCHECK(error_manager_ != NULL);
  3046. error_manager_->Clear();
  3047. }
  3048. }
  3049. if (cached_has_bits & 24u) {
  3050. ::memset(&terminal_id_, 0, static_cast<size_t>(
  3051. reinterpret_cast<char*>(&lidar_id_) -
  3052. reinterpret_cast<char*>(&terminal_id_)) + sizeof(lidar_id_));
  3053. }
  3054. _has_bits_.Clear();
  3055. _internal_metadata_.Clear();
  3056. }
  3057. bool Locate_sift_response_msg::MergePartialFromCodedStream(
  3058. ::google::protobuf::io::CodedInputStream* input) {
  3059. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3060. ::google::protobuf::uint32 tag;
  3061. // @@protoc_insertion_point(parse_start:message.Locate_sift_response_msg)
  3062. for (;;) {
  3063. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3064. tag = p.first;
  3065. if (!p.second) goto handle_unusual;
  3066. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3067. // required .message.Base_info base_info = 1;
  3068. case 1: {
  3069. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3070. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  3071. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3072. input, mutable_base_info()));
  3073. } else {
  3074. goto handle_unusual;
  3075. }
  3076. break;
  3077. }
  3078. // required string command_key = 2;
  3079. case 2: {
  3080. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3081. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  3082. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3083. input, this->mutable_command_key()));
  3084. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3085. this->command_key().data(), static_cast<int>(this->command_key().length()),
  3086. ::google::protobuf::internal::WireFormat::PARSE,
  3087. "message.Locate_sift_response_msg.command_key");
  3088. } else {
  3089. goto handle_unusual;
  3090. }
  3091. break;
  3092. }
  3093. // required int32 terminal_id = 3;
  3094. case 3: {
  3095. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3096. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  3097. set_has_terminal_id();
  3098. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3099. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3100. input, &terminal_id_)));
  3101. } else {
  3102. goto handle_unusual;
  3103. }
  3104. break;
  3105. }
  3106. // required int32 lidar_id = 4;
  3107. case 4: {
  3108. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3109. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  3110. set_has_lidar_id();
  3111. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3112. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3113. input, &lidar_id_)));
  3114. } else {
  3115. goto handle_unusual;
  3116. }
  3117. break;
  3118. }
  3119. // repeated .message.Cloud_type cloud_type = 5;
  3120. case 5: {
  3121. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3122. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  3123. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_cloud_type()));
  3124. } else {
  3125. goto handle_unusual;
  3126. }
  3127. break;
  3128. }
  3129. // required .message.Error_manager error_manager = 6;
  3130. case 6: {
  3131. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3132. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  3133. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3134. input, mutable_error_manager()));
  3135. } else {
  3136. goto handle_unusual;
  3137. }
  3138. break;
  3139. }
  3140. default: {
  3141. handle_unusual:
  3142. if (tag == 0) {
  3143. goto success;
  3144. }
  3145. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3146. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3147. break;
  3148. }
  3149. }
  3150. }
  3151. success:
  3152. // @@protoc_insertion_point(parse_success:message.Locate_sift_response_msg)
  3153. return true;
  3154. failure:
  3155. // @@protoc_insertion_point(parse_failure:message.Locate_sift_response_msg)
  3156. return false;
  3157. #undef DO_
  3158. }
  3159. void Locate_sift_response_msg::SerializeWithCachedSizes(
  3160. ::google::protobuf::io::CodedOutputStream* output) const {
  3161. // @@protoc_insertion_point(serialize_start:message.Locate_sift_response_msg)
  3162. ::google::protobuf::uint32 cached_has_bits = 0;
  3163. (void) cached_has_bits;
  3164. cached_has_bits = _has_bits_[0];
  3165. // required .message.Base_info base_info = 1;
  3166. if (cached_has_bits & 0x00000002u) {
  3167. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3168. 1, *this->base_info_, output);
  3169. }
  3170. // required string command_key = 2;
  3171. if (cached_has_bits & 0x00000001u) {
  3172. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3173. this->command_key().data(), static_cast<int>(this->command_key().length()),
  3174. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3175. "message.Locate_sift_response_msg.command_key");
  3176. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3177. 2, this->command_key(), output);
  3178. }
  3179. // required int32 terminal_id = 3;
  3180. if (cached_has_bits & 0x00000008u) {
  3181. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->terminal_id(), output);
  3182. }
  3183. // required int32 lidar_id = 4;
  3184. if (cached_has_bits & 0x00000010u) {
  3185. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->lidar_id(), output);
  3186. }
  3187. // repeated .message.Cloud_type cloud_type = 5;
  3188. for (unsigned int i = 0,
  3189. n = static_cast<unsigned int>(this->cloud_type_size()); i < n; i++) {
  3190. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3191. 5, this->cloud_type(static_cast<int>(i)), output);
  3192. }
  3193. // required .message.Error_manager error_manager = 6;
  3194. if (cached_has_bits & 0x00000004u) {
  3195. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3196. 6, *this->error_manager_, output);
  3197. }
  3198. if (_internal_metadata_.have_unknown_fields()) {
  3199. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3200. _internal_metadata_.unknown_fields(), output);
  3201. }
  3202. // @@protoc_insertion_point(serialize_end:message.Locate_sift_response_msg)
  3203. }
  3204. ::google::protobuf::uint8* Locate_sift_response_msg::InternalSerializeWithCachedSizesToArray(
  3205. bool deterministic, ::google::protobuf::uint8* target) const {
  3206. (void)deterministic; // Unused
  3207. // @@protoc_insertion_point(serialize_to_array_start:message.Locate_sift_response_msg)
  3208. ::google::protobuf::uint32 cached_has_bits = 0;
  3209. (void) cached_has_bits;
  3210. cached_has_bits = _has_bits_[0];
  3211. // required .message.Base_info base_info = 1;
  3212. if (cached_has_bits & 0x00000002u) {
  3213. target = ::google::protobuf::internal::WireFormatLite::
  3214. InternalWriteMessageToArray(
  3215. 1, *this->base_info_, deterministic, target);
  3216. }
  3217. // required string command_key = 2;
  3218. if (cached_has_bits & 0x00000001u) {
  3219. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3220. this->command_key().data(), static_cast<int>(this->command_key().length()),
  3221. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3222. "message.Locate_sift_response_msg.command_key");
  3223. target =
  3224. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3225. 2, this->command_key(), target);
  3226. }
  3227. // required int32 terminal_id = 3;
  3228. if (cached_has_bits & 0x00000008u) {
  3229. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->terminal_id(), target);
  3230. }
  3231. // required int32 lidar_id = 4;
  3232. if (cached_has_bits & 0x00000010u) {
  3233. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->lidar_id(), target);
  3234. }
  3235. // repeated .message.Cloud_type cloud_type = 5;
  3236. for (unsigned int i = 0,
  3237. n = static_cast<unsigned int>(this->cloud_type_size()); i < n; i++) {
  3238. target = ::google::protobuf::internal::WireFormatLite::
  3239. InternalWriteMessageToArray(
  3240. 5, this->cloud_type(static_cast<int>(i)), deterministic, target);
  3241. }
  3242. // required .message.Error_manager error_manager = 6;
  3243. if (cached_has_bits & 0x00000004u) {
  3244. target = ::google::protobuf::internal::WireFormatLite::
  3245. InternalWriteMessageToArray(
  3246. 6, *this->error_manager_, deterministic, target);
  3247. }
  3248. if (_internal_metadata_.have_unknown_fields()) {
  3249. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3250. _internal_metadata_.unknown_fields(), target);
  3251. }
  3252. // @@protoc_insertion_point(serialize_to_array_end:message.Locate_sift_response_msg)
  3253. return target;
  3254. }
  3255. size_t Locate_sift_response_msg::RequiredFieldsByteSizeFallback() const {
  3256. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Locate_sift_response_msg)
  3257. size_t total_size = 0;
  3258. if (has_command_key()) {
  3259. // required string command_key = 2;
  3260. total_size += 1 +
  3261. ::google::protobuf::internal::WireFormatLite::StringSize(
  3262. this->command_key());
  3263. }
  3264. if (has_base_info()) {
  3265. // required .message.Base_info base_info = 1;
  3266. total_size += 1 +
  3267. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3268. *this->base_info_);
  3269. }
  3270. if (has_error_manager()) {
  3271. // required .message.Error_manager error_manager = 6;
  3272. total_size += 1 +
  3273. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3274. *this->error_manager_);
  3275. }
  3276. if (has_terminal_id()) {
  3277. // required int32 terminal_id = 3;
  3278. total_size += 1 +
  3279. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3280. this->terminal_id());
  3281. }
  3282. if (has_lidar_id()) {
  3283. // required int32 lidar_id = 4;
  3284. total_size += 1 +
  3285. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3286. this->lidar_id());
  3287. }
  3288. return total_size;
  3289. }
  3290. size_t Locate_sift_response_msg::ByteSizeLong() const {
  3291. // @@protoc_insertion_point(message_byte_size_start:message.Locate_sift_response_msg)
  3292. size_t total_size = 0;
  3293. if (_internal_metadata_.have_unknown_fields()) {
  3294. total_size +=
  3295. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3296. _internal_metadata_.unknown_fields());
  3297. }
  3298. if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present.
  3299. // required string command_key = 2;
  3300. total_size += 1 +
  3301. ::google::protobuf::internal::WireFormatLite::StringSize(
  3302. this->command_key());
  3303. // required .message.Base_info base_info = 1;
  3304. total_size += 1 +
  3305. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3306. *this->base_info_);
  3307. // required .message.Error_manager error_manager = 6;
  3308. total_size += 1 +
  3309. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3310. *this->error_manager_);
  3311. // required int32 terminal_id = 3;
  3312. total_size += 1 +
  3313. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3314. this->terminal_id());
  3315. // required int32 lidar_id = 4;
  3316. total_size += 1 +
  3317. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3318. this->lidar_id());
  3319. } else {
  3320. total_size += RequiredFieldsByteSizeFallback();
  3321. }
  3322. // repeated .message.Cloud_type cloud_type = 5;
  3323. {
  3324. unsigned int count = static_cast<unsigned int>(this->cloud_type_size());
  3325. total_size += 1UL * count;
  3326. for (unsigned int i = 0; i < count; i++) {
  3327. total_size +=
  3328. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3329. this->cloud_type(static_cast<int>(i)));
  3330. }
  3331. }
  3332. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3333. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3334. _cached_size_ = cached_size;
  3335. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3336. return total_size;
  3337. }
  3338. void Locate_sift_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  3339. // @@protoc_insertion_point(generalized_merge_from_start:message.Locate_sift_response_msg)
  3340. GOOGLE_DCHECK_NE(&from, this);
  3341. const Locate_sift_response_msg* source =
  3342. ::google::protobuf::internal::DynamicCastToGenerated<const Locate_sift_response_msg>(
  3343. &from);
  3344. if (source == NULL) {
  3345. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Locate_sift_response_msg)
  3346. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3347. } else {
  3348. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Locate_sift_response_msg)
  3349. MergeFrom(*source);
  3350. }
  3351. }
  3352. void Locate_sift_response_msg::MergeFrom(const Locate_sift_response_msg& from) {
  3353. // @@protoc_insertion_point(class_specific_merge_from_start:message.Locate_sift_response_msg)
  3354. GOOGLE_DCHECK_NE(&from, this);
  3355. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3356. ::google::protobuf::uint32 cached_has_bits = 0;
  3357. (void) cached_has_bits;
  3358. cloud_type_.MergeFrom(from.cloud_type_);
  3359. cached_has_bits = from._has_bits_[0];
  3360. if (cached_has_bits & 31u) {
  3361. if (cached_has_bits & 0x00000001u) {
  3362. set_has_command_key();
  3363. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  3364. }
  3365. if (cached_has_bits & 0x00000002u) {
  3366. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  3367. }
  3368. if (cached_has_bits & 0x00000004u) {
  3369. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  3370. }
  3371. if (cached_has_bits & 0x00000008u) {
  3372. terminal_id_ = from.terminal_id_;
  3373. }
  3374. if (cached_has_bits & 0x00000010u) {
  3375. lidar_id_ = from.lidar_id_;
  3376. }
  3377. _has_bits_[0] |= cached_has_bits;
  3378. }
  3379. }
  3380. void Locate_sift_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  3381. // @@protoc_insertion_point(generalized_copy_from_start:message.Locate_sift_response_msg)
  3382. if (&from == this) return;
  3383. Clear();
  3384. MergeFrom(from);
  3385. }
  3386. void Locate_sift_response_msg::CopyFrom(const Locate_sift_response_msg& from) {
  3387. // @@protoc_insertion_point(class_specific_copy_from_start:message.Locate_sift_response_msg)
  3388. if (&from == this) return;
  3389. Clear();
  3390. MergeFrom(from);
  3391. }
  3392. bool Locate_sift_response_msg::IsInitialized() const {
  3393. if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
  3394. if (!::google::protobuf::internal::AllAreInitialized(this->cloud_type())) return false;
  3395. if (has_base_info()) {
  3396. if (!this->base_info_->IsInitialized()) return false;
  3397. }
  3398. if (has_error_manager()) {
  3399. if (!this->error_manager_->IsInitialized()) return false;
  3400. }
  3401. return true;
  3402. }
  3403. void Locate_sift_response_msg::Swap(Locate_sift_response_msg* other) {
  3404. if (other == this) return;
  3405. InternalSwap(other);
  3406. }
  3407. void Locate_sift_response_msg::InternalSwap(Locate_sift_response_msg* other) {
  3408. using std::swap;
  3409. cloud_type_.InternalSwap(&other->cloud_type_);
  3410. command_key_.Swap(&other->command_key_);
  3411. swap(base_info_, other->base_info_);
  3412. swap(error_manager_, other->error_manager_);
  3413. swap(terminal_id_, other->terminal_id_);
  3414. swap(lidar_id_, other->lidar_id_);
  3415. swap(_has_bits_[0], other->_has_bits_[0]);
  3416. _internal_metadata_.Swap(&other->_internal_metadata_);
  3417. swap(_cached_size_, other->_cached_size_);
  3418. }
  3419. ::google::protobuf::Metadata Locate_sift_response_msg::GetMetadata() const {
  3420. protobuf_measure_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3421. return ::protobuf_measure_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3422. }
  3423. // @@protoc_insertion_point(namespace_scope)
  3424. } // namespace message
  3425. // @@protoc_insertion_point(global_scope)