measure_message.pb.cc 125 KB

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