message_base.pb.cc 128 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: message_base.proto
  3. #include "message_base.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 Base_infoDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Base_info>
  23. _instance;
  24. } _Base_info_default_instance_;
  25. class Base_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Base_msg>
  28. _instance;
  29. } _Base_msg_default_instance_;
  30. class Error_managerDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Error_manager>
  33. _instance;
  34. } _Error_manager_default_instance_;
  35. class Locate_informationDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Locate_information>
  38. _instance;
  39. } _Locate_information_default_instance_;
  40. class Car_infoDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<Car_info>
  43. _instance;
  44. } _Car_info_default_instance_;
  45. class Parkspace_infoDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_info>
  48. _instance;
  49. } _Parkspace_info_default_instance_;
  50. } // namespace message
  51. namespace protobuf_message_5fbase_2eproto {
  52. void InitDefaultsBase_infoImpl() {
  53. GOOGLE_PROTOBUF_VERIFY_VERSION;
  54. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  55. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  56. #else
  57. ::google::protobuf::internal::InitProtobufDefaults();
  58. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  59. {
  60. void* ptr = &::message::_Base_info_default_instance_;
  61. new (ptr) ::message::Base_info();
  62. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  63. }
  64. ::message::Base_info::InitAsDefaultInstance();
  65. }
  66. void InitDefaultsBase_info() {
  67. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  68. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_infoImpl);
  69. }
  70. void InitDefaultsBase_msgImpl() {
  71. GOOGLE_PROTOBUF_VERIFY_VERSION;
  72. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  73. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  74. #else
  75. ::google::protobuf::internal::InitProtobufDefaults();
  76. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  77. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  78. {
  79. void* ptr = &::message::_Base_msg_default_instance_;
  80. new (ptr) ::message::Base_msg();
  81. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  82. }
  83. ::message::Base_msg::InitAsDefaultInstance();
  84. }
  85. void InitDefaultsBase_msg() {
  86. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  87. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_msgImpl);
  88. }
  89. void InitDefaultsError_managerImpl() {
  90. GOOGLE_PROTOBUF_VERIFY_VERSION;
  91. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  92. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  93. #else
  94. ::google::protobuf::internal::InitProtobufDefaults();
  95. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  96. {
  97. void* ptr = &::message::_Error_manager_default_instance_;
  98. new (ptr) ::message::Error_manager();
  99. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  100. }
  101. ::message::Error_manager::InitAsDefaultInstance();
  102. }
  103. void InitDefaultsError_manager() {
  104. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  105. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsError_managerImpl);
  106. }
  107. void InitDefaultsLocate_informationImpl() {
  108. GOOGLE_PROTOBUF_VERIFY_VERSION;
  109. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  110. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  111. #else
  112. ::google::protobuf::internal::InitProtobufDefaults();
  113. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  114. {
  115. void* ptr = &::message::_Locate_information_default_instance_;
  116. new (ptr) ::message::Locate_information();
  117. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  118. }
  119. ::message::Locate_information::InitAsDefaultInstance();
  120. }
  121. void InitDefaultsLocate_information() {
  122. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  123. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocate_informationImpl);
  124. }
  125. void InitDefaultsCar_infoImpl() {
  126. GOOGLE_PROTOBUF_VERIFY_VERSION;
  127. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  128. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  129. #else
  130. ::google::protobuf::internal::InitProtobufDefaults();
  131. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  132. {
  133. void* ptr = &::message::_Car_info_default_instance_;
  134. new (ptr) ::message::Car_info();
  135. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  136. }
  137. ::message::Car_info::InitAsDefaultInstance();
  138. }
  139. void InitDefaultsCar_info() {
  140. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  141. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCar_infoImpl);
  142. }
  143. void InitDefaultsParkspace_infoImpl() {
  144. GOOGLE_PROTOBUF_VERIFY_VERSION;
  145. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  146. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  147. #else
  148. ::google::protobuf::internal::InitProtobufDefaults();
  149. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  150. protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  151. {
  152. void* ptr = &::message::_Parkspace_info_default_instance_;
  153. new (ptr) ::message::Parkspace_info();
  154. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  155. }
  156. ::message::Parkspace_info::InitAsDefaultInstance();
  157. }
  158. void InitDefaultsParkspace_info() {
  159. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  160. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl);
  161. }
  162. ::google::protobuf::Metadata file_level_metadata[6];
  163. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[10];
  164. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, _has_bits_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, _internal_metadata_),
  167. ~0u, // no _extensions_
  168. ~0u, // no _oneof_case_
  169. ~0u, // no _weak_field_map_
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, msg_type_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, timeout_ms_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, sender_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, receiver_),
  174. 0,
  175. 1,
  176. 2,
  177. 3,
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, _has_bits_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, _internal_metadata_),
  180. ~0u, // no _extensions_
  181. ~0u, // no _oneof_case_
  182. ~0u, // no _weak_field_map_
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, base_info_),
  184. 0,
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, _has_bits_),
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, _internal_metadata_),
  187. ~0u, // no _extensions_
  188. ~0u, // no _oneof_case_
  189. ~0u, // no _weak_field_map_
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, error_code_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, error_level_),
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, error_description_),
  193. 1,
  194. 2,
  195. 0,
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, _has_bits_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, _internal_metadata_),
  198. ~0u, // no _extensions_
  199. ~0u, // no _oneof_case_
  200. ~0u, // no _weak_field_map_
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_x_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_y_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_angle_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_length_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_width_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_height_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_wheel_base_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_wheel_width_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_correct_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_front_theta_),
  211. 0,
  212. 1,
  213. 2,
  214. 3,
  215. 4,
  216. 5,
  217. 6,
  218. 7,
  219. 8,
  220. 9,
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _has_bits_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _internal_metadata_),
  223. ~0u, // no _extensions_
  224. ~0u, // no _oneof_case_
  225. ~0u, // no _weak_field_map_
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_length_),
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_width_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_height_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, license_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_wheel_base_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_wheel_width_),
  232. 1,
  233. 2,
  234. 3,
  235. 0,
  236. 4,
  237. 5,
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _has_bits_),
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _internal_metadata_),
  240. ~0u, // no _extensions_
  241. ~0u, // no _oneof_case_
  242. ~0u, // no _weak_field_map_
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_id_),
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, index_),
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, direction_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, floor_),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, length_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, width_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, height_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_),
  251. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, car_info_),
  252. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, entry_time_),
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, leave_time_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, block_id_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_path_),
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, path_estimate_time_),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_target_),
  258. 3,
  259. 4,
  260. 5,
  261. 6,
  262. 7,
  263. 8,
  264. 9,
  265. 10,
  266. 2,
  267. 0,
  268. 1,
  269. 11,
  270. 12,
  271. 13,
  272. 14,
  273. };
  274. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  275. { 0, 9, sizeof(::message::Base_info)},
  276. { 13, 19, sizeof(::message::Base_msg)},
  277. { 20, 28, sizeof(::message::Error_manager)},
  278. { 31, 46, sizeof(::message::Locate_information)},
  279. { 56, 67, sizeof(::message::Car_info)},
  280. { 73, 93, sizeof(::message::Parkspace_info)},
  281. };
  282. static ::google::protobuf::Message const * const file_default_instances[] = {
  283. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Base_info_default_instance_),
  284. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Base_msg_default_instance_),
  285. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Error_manager_default_instance_),
  286. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Locate_information_default_instance_),
  287. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Car_info_default_instance_),
  288. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_info_default_instance_),
  289. };
  290. void protobuf_AssignDescriptors() {
  291. AddDescriptors();
  292. ::google::protobuf::MessageFactory* factory = NULL;
  293. AssignDescriptors(
  294. "message_base.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  295. file_level_metadata, file_level_enum_descriptors, NULL);
  296. }
  297. void protobuf_AssignDescriptorsOnce() {
  298. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  299. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  300. }
  301. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  302. void protobuf_RegisterTypes(const ::std::string&) {
  303. protobuf_AssignDescriptorsOnce();
  304. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
  305. }
  306. void AddDescriptorsImpl() {
  307. InitDefaults();
  308. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  309. "\n\022message_base.proto\022\007message\"\266\001\n\tBase_i"
  310. "nfo\0222\n\010msg_type\030\001 \002(\0162\025.message.Message_"
  311. "type:\teBase_msg\022\025\n\ntimeout_ms\030\002 \001(\005:\0010\022-"
  312. "\n\006sender\030\003 \002(\0162\025.message.Communicator:\006e"
  313. "Empty\022/\n\010receiver\030\004 \002(\0162\025.message.Commun"
  314. "icator:\006eEmpty\"1\n\010Base_msg\022%\n\tbase_info\030"
  315. "\001 \002(\0132\022.message.Base_info\"v\n\rError_manag"
  316. "er\022\025\n\nerror_code\030\001 \002(\005:\0010\0221\n\013error_level"
  317. "\030\002 \001(\0162\024.message.Error_level:\006NORMAL\022\033\n\021"
  318. "error_description\030\003 \001(\t:\000\"\237\002\n\022Locate_inf"
  319. "ormation\022\023\n\010locate_x\030\001 \001(\002:\0010\022\023\n\010locate_"
  320. "y\030\002 \001(\002:\0010\022\027\n\014locate_angle\030\003 \001(\002:\0010\022\030\n\rl"
  321. "ocate_length\030\004 \001(\002:\0010\022\027\n\014locate_width\030\005 "
  322. "\001(\002:\0010\022\030\n\rlocate_height\030\006 \001(\002:\0010\022\034\n\021loca"
  323. "te_wheel_base\030\007 \001(\002:\0010\022\035\n\022locate_wheel_w"
  324. "idth\030\010 \001(\002:\0010\022\035\n\016locate_correct\030\t \001(\010:\005f"
  325. "alse\022\035\n\022locate_front_theta\030\n \001(\002:\0010\"\230\001\n\010"
  326. "Car_info\022\025\n\ncar_length\030\001 \001(\002:\0010\022\024\n\tcar_w"
  327. "idth\030\002 \001(\002:\0010\022\025\n\ncar_height\030\003 \001(\002:\0010\022\021\n\007"
  328. "license\030\004 \001(\t:\000\022\031\n\016car_wheel_base\030\005 \001(\002:"
  329. "\0010\022\032\n\017car_wheel_width\030\006 \001(\002:\0010\"\247\004\n\016Parks"
  330. "pace_info\022\027\n\014parkspace_id\030\001 \001(\005:\0010\022\020\n\005in"
  331. "dex\030\002 \001(\005:\0010\0228\n\tdirection\030\003 \001(\0162\022.messag"
  332. "e.Direction:\021eDirection_unknow\022\020\n\005floor\030"
  333. "\004 \001(\005:\0010\022\021\n\006length\030\005 \001(\002:\0010\022\020\n\005width\030\006 \001"
  334. "(\002:\0010\022\021\n\006height\030\007 \001(\002:\0010\022M\n\020parkspace_st"
  335. "atus\030\010 \001(\0162\031.message.Parkspace_status:\030e"
  336. "Parkspace_status_unknow\022#\n\010car_info\030\t \001("
  337. "\0132\021.message.Car_info\022\024\n\nentry_time\030\n \001(\t"
  338. ":\000\022\024\n\nleave_time\030\013 \001(\t:\000\022\023\n\010block_id\030\014 \001"
  339. "(\005:\0010\022<\n\016parkspace_path\030\r \001(\0162\027.message."
  340. "Parkspace_path:\013UNKNOW_PATH\022\035\n\022path_esti"
  341. "mate_time\030\016 \001(\002:\0010\022T\n\027parkspace_status_t"
  342. "arget\030\017 \001(\0162\031.message.Parkspace_status:\030"
  343. "eParkspace_status_unknow*\334\t\n\014Message_typ"
  344. "e\022\r\n\teBase_msg\020\000\022\020\n\014eCommand_msg\020\001\022\026\n\022eL"
  345. "ocate_status_msg\020\021\022\027\n\023eLocate_request_ms"
  346. "g\020\022\022\030\n\024eLocate_response_msg\020\023\022\034\n\030eLocate"
  347. "_sift_request_msg\020\024\022\035\n\031eLocate_sift_resp"
  348. "onse_msg\020\025\022\030\n\024eDispatch_status_msg\020!\022\031\n\025"
  349. "eDispatch_request_msg\020\"\022\032\n\026eDispatch_res"
  350. "ponse_msg\020#\022$\n eParkspace_allocation_sta"
  351. "tus_msg\0201\022%\n!eParkspace_allocation_reque"
  352. "st_msg\0202\022&\n\"eParkspace_allocation_respon"
  353. "se_msg\0203\022!\n\035eParkspace_search_request_ms"
  354. "g\0204\022\"\n\036eParkspace_search_response_msg\0205\022"
  355. "\"\n\036eParkspace_release_request_msg\0206\022#\n\037e"
  356. "Parkspace_release_response_msg\0207\022\'\n#ePar"
  357. "kspace_force_update_request_msg\0208\022(\n$ePa"
  358. "rkspace_force_update_response_msg\0209\022(\n$e"
  359. "Parkspace_confirm_alloc_request_msg\020:\022)\n"
  360. "%eParkspace_confirm_alloc_response_msg\020;"
  361. "\022\"\n\036eParkspace_allocation_data_msg\020<\022\036\n\032"
  362. "eStore_command_request_msg\020A\022\037\n\033eStore_c"
  363. "ommand_response_msg\020B\022\037\n\033ePickup_command"
  364. "_request_msg\020C\022 \n\034ePickup_command_respon"
  365. "se_msg\020D\022\037\n\032eStoring_process_statu_msg\020\220"
  366. "\001\022\037\n\032ePicking_process_statu_msg\020\221\001\022\"\n\035eC"
  367. "entral_controller_statu_msg\020\240\001\022#\n\036eEntra"
  368. "nce_manual_operation_msg\020\260\001\022\"\n\035eProcess_"
  369. "manual_operation_msg\020\261\001\022\037\n\032eDispatch_pla"
  370. "n_request_msg\020\340\001\022 \n\033eDispatch_plan_respo"
  371. "nse_msg\020\341\001\022\"\n\035eDispatch_control_request_"
  372. "msg\020\342\001\022#\n\036eDispatch_control_response_msg"
  373. "\020\343\001\022!\n\034eDispatch_manager_status_msg\020\352\001\022\037"
  374. "\n\032eDispatch_manager_data_msg\020\353\001*\242\001\n\014Comm"
  375. "unicator\022\n\n\006eEmpty\020\000\022\t\n\005eMain\020\001\022\016\n\teTerm"
  376. "inor\020\200\002\022\017\n\neParkspace\020\200\004\022\016\n\teMeasurer\020\200\006"
  377. "\022\032\n\025eMeasurer_sift_server\020\201\006\022\026\n\021eDispatc"
  378. "h_mamager\020\200\010\022\026\n\021eDispatch_control\020\201\010**\n\014"
  379. "Process_type\022\014\n\010eStoring\020\001\022\014\n\010ePicking\020\002"
  380. "*e\n\013Error_level\022\n\n\006NORMAL\020\000\022\024\n\020NEGLIGIBL"
  381. "E_ERROR\020\001\022\017\n\013MINOR_ERROR\020\002\022\017\n\013MAJOR_ERRO"
  382. "R\020\003\022\022\n\016CRITICAL_ERROR\020\004*\245\001\n\020Parkspace_st"
  383. "atus\022\034\n\030eParkspace_status_unknow\020\000\022\024\n\020eP"
  384. "arkspace_empty\020\001\022\027\n\023eParkspace_occupied\020"
  385. "\002\022\027\n\023eParkspace_reserved\020\003\022\025\n\021eParkspace"
  386. "_locked\020\004\022\024\n\020eParkspace_error\020\005*\?\n\tDirec"
  387. "tion\022\025\n\021eDirection_unknow\020\000\022\014\n\010eForward\020"
  388. "\001\022\r\n\teBackward\020\002*l\n\016Parkspace_path\022\017\n\013UN"
  389. "KNOW_PATH\020\000\022\020\n\014OPTIMAL_PATH\020\001\022\r\n\tLEFT_PA"
  390. "TH\020\002\022\016\n\nRIGHT_PATH\020\003\022\030\n\024TEMPORARY_CACHE_"
  391. "PATH\020\004*m\n\016Parkspace_type\022\031\n\025UNKNOW_PARKS"
  392. "PACE_TYPE\020\000\022\024\n\020MIN_PARKINGSPACE\020\001\022\024\n\020MID"
  393. "_PARKINGSPACE\020\002\022\024\n\020BIG_PARKINGSPACE\020\003*\335\002"
  394. "\n\tStep_type\022\017\n\013eAlloc_step\020\000\022\021\n\reMeasure"
  395. "_step\020\001\022\021\n\reCompare_step\020\002\022\022\n\016eDispatch_"
  396. "step\020\003\022\021\n\reConfirm_step\020\004\022\020\n\014eSearch_ste"
  397. "p\020\005\022\016\n\neWait_step\020\006\022\021\n\reRelease_step\020\007\022\r"
  398. "\n\teComplete\020\010\022\025\n\021eBackConfirm_step\020\t\022\026\n\022"
  399. "eBack_compare_step\020\n\022\025\n\021eBackMeasure_ste"
  400. "p\020\013\022\023\n\017eBackAlloc_step\020\014\022\022\n\016eBackWait_st"
  401. "ep\020\r\022\026\n\022eBackDispatch_step\020\016\022\024\n\020eBackSea"
  402. "rch_step\020\017\022\021\n\reBackComplete\020\020*C\n\nStep_st"
  403. "atu\022\014\n\010eWaiting\020\000\022\014\n\010eWorking\020\001\022\n\n\006eErro"
  404. "r\020\002\022\r\n\teFinished\020\003"
  405. };
  406. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  407. descriptor, 3818);
  408. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  409. "message_base.proto", &protobuf_RegisterTypes);
  410. }
  411. void AddDescriptors() {
  412. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  413. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  414. }
  415. // Force AddDescriptors() to be called at dynamic initialization time.
  416. struct StaticDescriptorInitializer {
  417. StaticDescriptorInitializer() {
  418. AddDescriptors();
  419. }
  420. } static_descriptor_initializer;
  421. } // namespace protobuf_message_5fbase_2eproto
  422. namespace message {
  423. const ::google::protobuf::EnumDescriptor* Message_type_descriptor() {
  424. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  425. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[0];
  426. }
  427. bool Message_type_IsValid(int value) {
  428. switch (value) {
  429. case 0:
  430. case 1:
  431. case 17:
  432. case 18:
  433. case 19:
  434. case 20:
  435. case 21:
  436. case 33:
  437. case 34:
  438. case 35:
  439. case 49:
  440. case 50:
  441. case 51:
  442. case 52:
  443. case 53:
  444. case 54:
  445. case 55:
  446. case 56:
  447. case 57:
  448. case 58:
  449. case 59:
  450. case 60:
  451. case 65:
  452. case 66:
  453. case 67:
  454. case 68:
  455. case 144:
  456. case 145:
  457. case 160:
  458. case 176:
  459. case 177:
  460. case 224:
  461. case 225:
  462. case 226:
  463. case 227:
  464. case 234:
  465. case 235:
  466. return true;
  467. default:
  468. return false;
  469. }
  470. }
  471. const ::google::protobuf::EnumDescriptor* Communicator_descriptor() {
  472. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  473. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[1];
  474. }
  475. bool Communicator_IsValid(int value) {
  476. switch (value) {
  477. case 0:
  478. case 1:
  479. case 256:
  480. case 512:
  481. case 768:
  482. case 769:
  483. case 1024:
  484. case 1025:
  485. return true;
  486. default:
  487. return false;
  488. }
  489. }
  490. const ::google::protobuf::EnumDescriptor* Process_type_descriptor() {
  491. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  492. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[2];
  493. }
  494. bool Process_type_IsValid(int value) {
  495. switch (value) {
  496. case 1:
  497. case 2:
  498. return true;
  499. default:
  500. return false;
  501. }
  502. }
  503. const ::google::protobuf::EnumDescriptor* Error_level_descriptor() {
  504. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  505. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[3];
  506. }
  507. bool Error_level_IsValid(int value) {
  508. switch (value) {
  509. case 0:
  510. case 1:
  511. case 2:
  512. case 3:
  513. case 4:
  514. return true;
  515. default:
  516. return false;
  517. }
  518. }
  519. const ::google::protobuf::EnumDescriptor* Parkspace_status_descriptor() {
  520. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  521. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[4];
  522. }
  523. bool Parkspace_status_IsValid(int value) {
  524. switch (value) {
  525. case 0:
  526. case 1:
  527. case 2:
  528. case 3:
  529. case 4:
  530. case 5:
  531. return true;
  532. default:
  533. return false;
  534. }
  535. }
  536. const ::google::protobuf::EnumDescriptor* Direction_descriptor() {
  537. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  538. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[5];
  539. }
  540. bool Direction_IsValid(int value) {
  541. switch (value) {
  542. case 0:
  543. case 1:
  544. case 2:
  545. return true;
  546. default:
  547. return false;
  548. }
  549. }
  550. const ::google::protobuf::EnumDescriptor* Parkspace_path_descriptor() {
  551. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  552. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[6];
  553. }
  554. bool Parkspace_path_IsValid(int value) {
  555. switch (value) {
  556. case 0:
  557. case 1:
  558. case 2:
  559. case 3:
  560. case 4:
  561. return true;
  562. default:
  563. return false;
  564. }
  565. }
  566. const ::google::protobuf::EnumDescriptor* Parkspace_type_descriptor() {
  567. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  568. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[7];
  569. }
  570. bool Parkspace_type_IsValid(int value) {
  571. switch (value) {
  572. case 0:
  573. case 1:
  574. case 2:
  575. case 3:
  576. return true;
  577. default:
  578. return false;
  579. }
  580. }
  581. const ::google::protobuf::EnumDescriptor* Step_type_descriptor() {
  582. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  583. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[8];
  584. }
  585. bool Step_type_IsValid(int value) {
  586. switch (value) {
  587. case 0:
  588. case 1:
  589. case 2:
  590. case 3:
  591. case 4:
  592. case 5:
  593. case 6:
  594. case 7:
  595. case 8:
  596. case 9:
  597. case 10:
  598. case 11:
  599. case 12:
  600. case 13:
  601. case 14:
  602. case 15:
  603. case 16:
  604. return true;
  605. default:
  606. return false;
  607. }
  608. }
  609. const ::google::protobuf::EnumDescriptor* Step_statu_descriptor() {
  610. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  611. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[9];
  612. }
  613. bool Step_statu_IsValid(int value) {
  614. switch (value) {
  615. case 0:
  616. case 1:
  617. case 2:
  618. case 3:
  619. return true;
  620. default:
  621. return false;
  622. }
  623. }
  624. // ===================================================================
  625. void Base_info::InitAsDefaultInstance() {
  626. }
  627. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  628. const int Base_info::kMsgTypeFieldNumber;
  629. const int Base_info::kTimeoutMsFieldNumber;
  630. const int Base_info::kSenderFieldNumber;
  631. const int Base_info::kReceiverFieldNumber;
  632. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  633. Base_info::Base_info()
  634. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  635. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  636. ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  637. }
  638. SharedCtor();
  639. // @@protoc_insertion_point(constructor:message.Base_info)
  640. }
  641. Base_info::Base_info(const Base_info& from)
  642. : ::google::protobuf::Message(),
  643. _internal_metadata_(NULL),
  644. _has_bits_(from._has_bits_),
  645. _cached_size_(0) {
  646. _internal_metadata_.MergeFrom(from._internal_metadata_);
  647. ::memcpy(&msg_type_, &from.msg_type_,
  648. static_cast<size_t>(reinterpret_cast<char*>(&receiver_) -
  649. reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
  650. // @@protoc_insertion_point(copy_constructor:message.Base_info)
  651. }
  652. void Base_info::SharedCtor() {
  653. _cached_size_ = 0;
  654. ::memset(&msg_type_, 0, static_cast<size_t>(
  655. reinterpret_cast<char*>(&receiver_) -
  656. reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
  657. }
  658. Base_info::~Base_info() {
  659. // @@protoc_insertion_point(destructor:message.Base_info)
  660. SharedDtor();
  661. }
  662. void Base_info::SharedDtor() {
  663. }
  664. void Base_info::SetCachedSize(int size) const {
  665. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  666. _cached_size_ = size;
  667. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  668. }
  669. const ::google::protobuf::Descriptor* Base_info::descriptor() {
  670. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  671. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  672. }
  673. const Base_info& Base_info::default_instance() {
  674. ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  675. return *internal_default_instance();
  676. }
  677. Base_info* Base_info::New(::google::protobuf::Arena* arena) const {
  678. Base_info* n = new Base_info;
  679. if (arena != NULL) {
  680. arena->Own(n);
  681. }
  682. return n;
  683. }
  684. void Base_info::Clear() {
  685. // @@protoc_insertion_point(message_clear_start:message.Base_info)
  686. ::google::protobuf::uint32 cached_has_bits = 0;
  687. // Prevent compiler warnings about cached_has_bits being unused
  688. (void) cached_has_bits;
  689. cached_has_bits = _has_bits_[0];
  690. if (cached_has_bits & 15u) {
  691. ::memset(&msg_type_, 0, static_cast<size_t>(
  692. reinterpret_cast<char*>(&receiver_) -
  693. reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
  694. }
  695. _has_bits_.Clear();
  696. _internal_metadata_.Clear();
  697. }
  698. bool Base_info::MergePartialFromCodedStream(
  699. ::google::protobuf::io::CodedInputStream* input) {
  700. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  701. ::google::protobuf::uint32 tag;
  702. // @@protoc_insertion_point(parse_start:message.Base_info)
  703. for (;;) {
  704. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  705. tag = p.first;
  706. if (!p.second) goto handle_unusual;
  707. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  708. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  709. case 1: {
  710. if (static_cast< ::google::protobuf::uint8>(tag) ==
  711. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  712. int value;
  713. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  714. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  715. input, &value)));
  716. if (::message::Message_type_IsValid(value)) {
  717. set_msg_type(static_cast< ::message::Message_type >(value));
  718. } else {
  719. mutable_unknown_fields()->AddVarint(
  720. 1, static_cast< ::google::protobuf::uint64>(value));
  721. }
  722. } else {
  723. goto handle_unusual;
  724. }
  725. break;
  726. }
  727. // optional int32 timeout_ms = 2 [default = 0];
  728. case 2: {
  729. if (static_cast< ::google::protobuf::uint8>(tag) ==
  730. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  731. set_has_timeout_ms();
  732. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  733. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  734. input, &timeout_ms_)));
  735. } else {
  736. goto handle_unusual;
  737. }
  738. break;
  739. }
  740. // required .message.Communicator sender = 3 [default = eEmpty];
  741. case 3: {
  742. if (static_cast< ::google::protobuf::uint8>(tag) ==
  743. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  744. int value;
  745. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  746. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  747. input, &value)));
  748. if (::message::Communicator_IsValid(value)) {
  749. set_sender(static_cast< ::message::Communicator >(value));
  750. } else {
  751. mutable_unknown_fields()->AddVarint(
  752. 3, static_cast< ::google::protobuf::uint64>(value));
  753. }
  754. } else {
  755. goto handle_unusual;
  756. }
  757. break;
  758. }
  759. // required .message.Communicator receiver = 4 [default = eEmpty];
  760. case 4: {
  761. if (static_cast< ::google::protobuf::uint8>(tag) ==
  762. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  763. int value;
  764. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  765. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  766. input, &value)));
  767. if (::message::Communicator_IsValid(value)) {
  768. set_receiver(static_cast< ::message::Communicator >(value));
  769. } else {
  770. mutable_unknown_fields()->AddVarint(
  771. 4, static_cast< ::google::protobuf::uint64>(value));
  772. }
  773. } else {
  774. goto handle_unusual;
  775. }
  776. break;
  777. }
  778. default: {
  779. handle_unusual:
  780. if (tag == 0) {
  781. goto success;
  782. }
  783. DO_(::google::protobuf::internal::WireFormat::SkipField(
  784. input, tag, _internal_metadata_.mutable_unknown_fields()));
  785. break;
  786. }
  787. }
  788. }
  789. success:
  790. // @@protoc_insertion_point(parse_success:message.Base_info)
  791. return true;
  792. failure:
  793. // @@protoc_insertion_point(parse_failure:message.Base_info)
  794. return false;
  795. #undef DO_
  796. }
  797. void Base_info::SerializeWithCachedSizes(
  798. ::google::protobuf::io::CodedOutputStream* output) const {
  799. // @@protoc_insertion_point(serialize_start:message.Base_info)
  800. ::google::protobuf::uint32 cached_has_bits = 0;
  801. (void) cached_has_bits;
  802. cached_has_bits = _has_bits_[0];
  803. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  804. if (cached_has_bits & 0x00000001u) {
  805. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  806. 1, this->msg_type(), output);
  807. }
  808. // optional int32 timeout_ms = 2 [default = 0];
  809. if (cached_has_bits & 0x00000002u) {
  810. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->timeout_ms(), output);
  811. }
  812. // required .message.Communicator sender = 3 [default = eEmpty];
  813. if (cached_has_bits & 0x00000004u) {
  814. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  815. 3, this->sender(), output);
  816. }
  817. // required .message.Communicator receiver = 4 [default = eEmpty];
  818. if (cached_has_bits & 0x00000008u) {
  819. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  820. 4, this->receiver(), output);
  821. }
  822. if (_internal_metadata_.have_unknown_fields()) {
  823. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  824. _internal_metadata_.unknown_fields(), output);
  825. }
  826. // @@protoc_insertion_point(serialize_end:message.Base_info)
  827. }
  828. ::google::protobuf::uint8* Base_info::InternalSerializeWithCachedSizesToArray(
  829. bool deterministic, ::google::protobuf::uint8* target) const {
  830. (void)deterministic; // Unused
  831. // @@protoc_insertion_point(serialize_to_array_start:message.Base_info)
  832. ::google::protobuf::uint32 cached_has_bits = 0;
  833. (void) cached_has_bits;
  834. cached_has_bits = _has_bits_[0];
  835. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  836. if (cached_has_bits & 0x00000001u) {
  837. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  838. 1, this->msg_type(), target);
  839. }
  840. // optional int32 timeout_ms = 2 [default = 0];
  841. if (cached_has_bits & 0x00000002u) {
  842. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->timeout_ms(), target);
  843. }
  844. // required .message.Communicator sender = 3 [default = eEmpty];
  845. if (cached_has_bits & 0x00000004u) {
  846. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  847. 3, this->sender(), target);
  848. }
  849. // required .message.Communicator receiver = 4 [default = eEmpty];
  850. if (cached_has_bits & 0x00000008u) {
  851. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  852. 4, this->receiver(), target);
  853. }
  854. if (_internal_metadata_.have_unknown_fields()) {
  855. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  856. _internal_metadata_.unknown_fields(), target);
  857. }
  858. // @@protoc_insertion_point(serialize_to_array_end:message.Base_info)
  859. return target;
  860. }
  861. size_t Base_info::RequiredFieldsByteSizeFallback() const {
  862. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Base_info)
  863. size_t total_size = 0;
  864. if (has_msg_type()) {
  865. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  866. total_size += 1 +
  867. ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
  868. }
  869. if (has_sender()) {
  870. // required .message.Communicator sender = 3 [default = eEmpty];
  871. total_size += 1 +
  872. ::google::protobuf::internal::WireFormatLite::EnumSize(this->sender());
  873. }
  874. if (has_receiver()) {
  875. // required .message.Communicator receiver = 4 [default = eEmpty];
  876. total_size += 1 +
  877. ::google::protobuf::internal::WireFormatLite::EnumSize(this->receiver());
  878. }
  879. return total_size;
  880. }
  881. size_t Base_info::ByteSizeLong() const {
  882. // @@protoc_insertion_point(message_byte_size_start:message.Base_info)
  883. size_t total_size = 0;
  884. if (_internal_metadata_.have_unknown_fields()) {
  885. total_size +=
  886. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  887. _internal_metadata_.unknown_fields());
  888. }
  889. if (((_has_bits_[0] & 0x0000000d) ^ 0x0000000d) == 0) { // All required fields are present.
  890. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  891. total_size += 1 +
  892. ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
  893. // required .message.Communicator sender = 3 [default = eEmpty];
  894. total_size += 1 +
  895. ::google::protobuf::internal::WireFormatLite::EnumSize(this->sender());
  896. // required .message.Communicator receiver = 4 [default = eEmpty];
  897. total_size += 1 +
  898. ::google::protobuf::internal::WireFormatLite::EnumSize(this->receiver());
  899. } else {
  900. total_size += RequiredFieldsByteSizeFallback();
  901. }
  902. // optional int32 timeout_ms = 2 [default = 0];
  903. if (has_timeout_ms()) {
  904. total_size += 1 +
  905. ::google::protobuf::internal::WireFormatLite::Int32Size(
  906. this->timeout_ms());
  907. }
  908. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  909. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  910. _cached_size_ = cached_size;
  911. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  912. return total_size;
  913. }
  914. void Base_info::MergeFrom(const ::google::protobuf::Message& from) {
  915. // @@protoc_insertion_point(generalized_merge_from_start:message.Base_info)
  916. GOOGLE_DCHECK_NE(&from, this);
  917. const Base_info* source =
  918. ::google::protobuf::internal::DynamicCastToGenerated<const Base_info>(
  919. &from);
  920. if (source == NULL) {
  921. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Base_info)
  922. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  923. } else {
  924. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Base_info)
  925. MergeFrom(*source);
  926. }
  927. }
  928. void Base_info::MergeFrom(const Base_info& from) {
  929. // @@protoc_insertion_point(class_specific_merge_from_start:message.Base_info)
  930. GOOGLE_DCHECK_NE(&from, this);
  931. _internal_metadata_.MergeFrom(from._internal_metadata_);
  932. ::google::protobuf::uint32 cached_has_bits = 0;
  933. (void) cached_has_bits;
  934. cached_has_bits = from._has_bits_[0];
  935. if (cached_has_bits & 15u) {
  936. if (cached_has_bits & 0x00000001u) {
  937. msg_type_ = from.msg_type_;
  938. }
  939. if (cached_has_bits & 0x00000002u) {
  940. timeout_ms_ = from.timeout_ms_;
  941. }
  942. if (cached_has_bits & 0x00000004u) {
  943. sender_ = from.sender_;
  944. }
  945. if (cached_has_bits & 0x00000008u) {
  946. receiver_ = from.receiver_;
  947. }
  948. _has_bits_[0] |= cached_has_bits;
  949. }
  950. }
  951. void Base_info::CopyFrom(const ::google::protobuf::Message& from) {
  952. // @@protoc_insertion_point(generalized_copy_from_start:message.Base_info)
  953. if (&from == this) return;
  954. Clear();
  955. MergeFrom(from);
  956. }
  957. void Base_info::CopyFrom(const Base_info& from) {
  958. // @@protoc_insertion_point(class_specific_copy_from_start:message.Base_info)
  959. if (&from == this) return;
  960. Clear();
  961. MergeFrom(from);
  962. }
  963. bool Base_info::IsInitialized() const {
  964. if ((_has_bits_[0] & 0x0000000d) != 0x0000000d) return false;
  965. return true;
  966. }
  967. void Base_info::Swap(Base_info* other) {
  968. if (other == this) return;
  969. InternalSwap(other);
  970. }
  971. void Base_info::InternalSwap(Base_info* other) {
  972. using std::swap;
  973. swap(msg_type_, other->msg_type_);
  974. swap(timeout_ms_, other->timeout_ms_);
  975. swap(sender_, other->sender_);
  976. swap(receiver_, other->receiver_);
  977. swap(_has_bits_[0], other->_has_bits_[0]);
  978. _internal_metadata_.Swap(&other->_internal_metadata_);
  979. swap(_cached_size_, other->_cached_size_);
  980. }
  981. ::google::protobuf::Metadata Base_info::GetMetadata() const {
  982. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  983. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  984. }
  985. // ===================================================================
  986. void Base_msg::InitAsDefaultInstance() {
  987. ::message::_Base_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  988. ::message::Base_info::internal_default_instance());
  989. }
  990. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  991. const int Base_msg::kBaseInfoFieldNumber;
  992. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  993. Base_msg::Base_msg()
  994. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  995. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  996. ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
  997. }
  998. SharedCtor();
  999. // @@protoc_insertion_point(constructor:message.Base_msg)
  1000. }
  1001. Base_msg::Base_msg(const Base_msg& from)
  1002. : ::google::protobuf::Message(),
  1003. _internal_metadata_(NULL),
  1004. _has_bits_(from._has_bits_),
  1005. _cached_size_(0) {
  1006. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1007. if (from.has_base_info()) {
  1008. base_info_ = new ::message::Base_info(*from.base_info_);
  1009. } else {
  1010. base_info_ = NULL;
  1011. }
  1012. // @@protoc_insertion_point(copy_constructor:message.Base_msg)
  1013. }
  1014. void Base_msg::SharedCtor() {
  1015. _cached_size_ = 0;
  1016. base_info_ = NULL;
  1017. }
  1018. Base_msg::~Base_msg() {
  1019. // @@protoc_insertion_point(destructor:message.Base_msg)
  1020. SharedDtor();
  1021. }
  1022. void Base_msg::SharedDtor() {
  1023. if (this != internal_default_instance()) delete base_info_;
  1024. }
  1025. void Base_msg::SetCachedSize(int size) const {
  1026. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1027. _cached_size_ = size;
  1028. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1029. }
  1030. const ::google::protobuf::Descriptor* Base_msg::descriptor() {
  1031. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1032. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1033. }
  1034. const Base_msg& Base_msg::default_instance() {
  1035. ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
  1036. return *internal_default_instance();
  1037. }
  1038. Base_msg* Base_msg::New(::google::protobuf::Arena* arena) const {
  1039. Base_msg* n = new Base_msg;
  1040. if (arena != NULL) {
  1041. arena->Own(n);
  1042. }
  1043. return n;
  1044. }
  1045. void Base_msg::Clear() {
  1046. // @@protoc_insertion_point(message_clear_start:message.Base_msg)
  1047. ::google::protobuf::uint32 cached_has_bits = 0;
  1048. // Prevent compiler warnings about cached_has_bits being unused
  1049. (void) cached_has_bits;
  1050. cached_has_bits = _has_bits_[0];
  1051. if (cached_has_bits & 0x00000001u) {
  1052. GOOGLE_DCHECK(base_info_ != NULL);
  1053. base_info_->Clear();
  1054. }
  1055. _has_bits_.Clear();
  1056. _internal_metadata_.Clear();
  1057. }
  1058. bool Base_msg::MergePartialFromCodedStream(
  1059. ::google::protobuf::io::CodedInputStream* input) {
  1060. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1061. ::google::protobuf::uint32 tag;
  1062. // @@protoc_insertion_point(parse_start:message.Base_msg)
  1063. for (;;) {
  1064. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1065. tag = p.first;
  1066. if (!p.second) goto handle_unusual;
  1067. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1068. // required .message.Base_info base_info = 1;
  1069. case 1: {
  1070. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1071. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1072. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1073. input, mutable_base_info()));
  1074. } else {
  1075. goto handle_unusual;
  1076. }
  1077. break;
  1078. }
  1079. default: {
  1080. handle_unusual:
  1081. if (tag == 0) {
  1082. goto success;
  1083. }
  1084. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1085. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1086. break;
  1087. }
  1088. }
  1089. }
  1090. success:
  1091. // @@protoc_insertion_point(parse_success:message.Base_msg)
  1092. return true;
  1093. failure:
  1094. // @@protoc_insertion_point(parse_failure:message.Base_msg)
  1095. return false;
  1096. #undef DO_
  1097. }
  1098. void Base_msg::SerializeWithCachedSizes(
  1099. ::google::protobuf::io::CodedOutputStream* output) const {
  1100. // @@protoc_insertion_point(serialize_start:message.Base_msg)
  1101. ::google::protobuf::uint32 cached_has_bits = 0;
  1102. (void) cached_has_bits;
  1103. cached_has_bits = _has_bits_[0];
  1104. // required .message.Base_info base_info = 1;
  1105. if (cached_has_bits & 0x00000001u) {
  1106. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1107. 1, *this->base_info_, output);
  1108. }
  1109. if (_internal_metadata_.have_unknown_fields()) {
  1110. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1111. _internal_metadata_.unknown_fields(), output);
  1112. }
  1113. // @@protoc_insertion_point(serialize_end:message.Base_msg)
  1114. }
  1115. ::google::protobuf::uint8* Base_msg::InternalSerializeWithCachedSizesToArray(
  1116. bool deterministic, ::google::protobuf::uint8* target) const {
  1117. (void)deterministic; // Unused
  1118. // @@protoc_insertion_point(serialize_to_array_start:message.Base_msg)
  1119. ::google::protobuf::uint32 cached_has_bits = 0;
  1120. (void) cached_has_bits;
  1121. cached_has_bits = _has_bits_[0];
  1122. // required .message.Base_info base_info = 1;
  1123. if (cached_has_bits & 0x00000001u) {
  1124. target = ::google::protobuf::internal::WireFormatLite::
  1125. InternalWriteMessageToArray(
  1126. 1, *this->base_info_, deterministic, target);
  1127. }
  1128. if (_internal_metadata_.have_unknown_fields()) {
  1129. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1130. _internal_metadata_.unknown_fields(), target);
  1131. }
  1132. // @@protoc_insertion_point(serialize_to_array_end:message.Base_msg)
  1133. return target;
  1134. }
  1135. size_t Base_msg::ByteSizeLong() const {
  1136. // @@protoc_insertion_point(message_byte_size_start:message.Base_msg)
  1137. size_t total_size = 0;
  1138. if (_internal_metadata_.have_unknown_fields()) {
  1139. total_size +=
  1140. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1141. _internal_metadata_.unknown_fields());
  1142. }
  1143. // required .message.Base_info base_info = 1;
  1144. if (has_base_info()) {
  1145. total_size += 1 +
  1146. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1147. *this->base_info_);
  1148. }
  1149. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1150. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1151. _cached_size_ = cached_size;
  1152. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1153. return total_size;
  1154. }
  1155. void Base_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1156. // @@protoc_insertion_point(generalized_merge_from_start:message.Base_msg)
  1157. GOOGLE_DCHECK_NE(&from, this);
  1158. const Base_msg* source =
  1159. ::google::protobuf::internal::DynamicCastToGenerated<const Base_msg>(
  1160. &from);
  1161. if (source == NULL) {
  1162. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Base_msg)
  1163. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1164. } else {
  1165. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Base_msg)
  1166. MergeFrom(*source);
  1167. }
  1168. }
  1169. void Base_msg::MergeFrom(const Base_msg& from) {
  1170. // @@protoc_insertion_point(class_specific_merge_from_start:message.Base_msg)
  1171. GOOGLE_DCHECK_NE(&from, this);
  1172. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1173. ::google::protobuf::uint32 cached_has_bits = 0;
  1174. (void) cached_has_bits;
  1175. if (from.has_base_info()) {
  1176. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1177. }
  1178. }
  1179. void Base_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1180. // @@protoc_insertion_point(generalized_copy_from_start:message.Base_msg)
  1181. if (&from == this) return;
  1182. Clear();
  1183. MergeFrom(from);
  1184. }
  1185. void Base_msg::CopyFrom(const Base_msg& from) {
  1186. // @@protoc_insertion_point(class_specific_copy_from_start:message.Base_msg)
  1187. if (&from == this) return;
  1188. Clear();
  1189. MergeFrom(from);
  1190. }
  1191. bool Base_msg::IsInitialized() const {
  1192. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  1193. if (has_base_info()) {
  1194. if (!this->base_info_->IsInitialized()) return false;
  1195. }
  1196. return true;
  1197. }
  1198. void Base_msg::Swap(Base_msg* other) {
  1199. if (other == this) return;
  1200. InternalSwap(other);
  1201. }
  1202. void Base_msg::InternalSwap(Base_msg* other) {
  1203. using std::swap;
  1204. swap(base_info_, other->base_info_);
  1205. swap(_has_bits_[0], other->_has_bits_[0]);
  1206. _internal_metadata_.Swap(&other->_internal_metadata_);
  1207. swap(_cached_size_, other->_cached_size_);
  1208. }
  1209. ::google::protobuf::Metadata Base_msg::GetMetadata() const {
  1210. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1211. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  1212. }
  1213. // ===================================================================
  1214. void Error_manager::InitAsDefaultInstance() {
  1215. }
  1216. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1217. const int Error_manager::kErrorCodeFieldNumber;
  1218. const int Error_manager::kErrorLevelFieldNumber;
  1219. const int Error_manager::kErrorDescriptionFieldNumber;
  1220. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1221. Error_manager::Error_manager()
  1222. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1223. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1224. ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  1225. }
  1226. SharedCtor();
  1227. // @@protoc_insertion_point(constructor:message.Error_manager)
  1228. }
  1229. Error_manager::Error_manager(const Error_manager& from)
  1230. : ::google::protobuf::Message(),
  1231. _internal_metadata_(NULL),
  1232. _has_bits_(from._has_bits_),
  1233. _cached_size_(0) {
  1234. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1235. error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1236. if (from.has_error_description()) {
  1237. error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_description_);
  1238. }
  1239. ::memcpy(&error_code_, &from.error_code_,
  1240. static_cast<size_t>(reinterpret_cast<char*>(&error_level_) -
  1241. reinterpret_cast<char*>(&error_code_)) + sizeof(error_level_));
  1242. // @@protoc_insertion_point(copy_constructor:message.Error_manager)
  1243. }
  1244. void Error_manager::SharedCtor() {
  1245. _cached_size_ = 0;
  1246. error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1247. ::memset(&error_code_, 0, static_cast<size_t>(
  1248. reinterpret_cast<char*>(&error_level_) -
  1249. reinterpret_cast<char*>(&error_code_)) + sizeof(error_level_));
  1250. }
  1251. Error_manager::~Error_manager() {
  1252. // @@protoc_insertion_point(destructor:message.Error_manager)
  1253. SharedDtor();
  1254. }
  1255. void Error_manager::SharedDtor() {
  1256. error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1257. }
  1258. void Error_manager::SetCachedSize(int size) const {
  1259. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1260. _cached_size_ = size;
  1261. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1262. }
  1263. const ::google::protobuf::Descriptor* Error_manager::descriptor() {
  1264. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1265. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1266. }
  1267. const Error_manager& Error_manager::default_instance() {
  1268. ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  1269. return *internal_default_instance();
  1270. }
  1271. Error_manager* Error_manager::New(::google::protobuf::Arena* arena) const {
  1272. Error_manager* n = new Error_manager;
  1273. if (arena != NULL) {
  1274. arena->Own(n);
  1275. }
  1276. return n;
  1277. }
  1278. void Error_manager::Clear() {
  1279. // @@protoc_insertion_point(message_clear_start:message.Error_manager)
  1280. ::google::protobuf::uint32 cached_has_bits = 0;
  1281. // Prevent compiler warnings about cached_has_bits being unused
  1282. (void) cached_has_bits;
  1283. cached_has_bits = _has_bits_[0];
  1284. if (cached_has_bits & 0x00000001u) {
  1285. GOOGLE_DCHECK(!error_description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1286. (*error_description_.UnsafeRawStringPointer())->clear();
  1287. }
  1288. if (cached_has_bits & 6u) {
  1289. ::memset(&error_code_, 0, static_cast<size_t>(
  1290. reinterpret_cast<char*>(&error_level_) -
  1291. reinterpret_cast<char*>(&error_code_)) + sizeof(error_level_));
  1292. }
  1293. _has_bits_.Clear();
  1294. _internal_metadata_.Clear();
  1295. }
  1296. bool Error_manager::MergePartialFromCodedStream(
  1297. ::google::protobuf::io::CodedInputStream* input) {
  1298. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1299. ::google::protobuf::uint32 tag;
  1300. // @@protoc_insertion_point(parse_start:message.Error_manager)
  1301. for (;;) {
  1302. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1303. tag = p.first;
  1304. if (!p.second) goto handle_unusual;
  1305. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1306. // required int32 error_code = 1 [default = 0];
  1307. case 1: {
  1308. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1309. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1310. set_has_error_code();
  1311. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1312. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1313. input, &error_code_)));
  1314. } else {
  1315. goto handle_unusual;
  1316. }
  1317. break;
  1318. }
  1319. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1320. case 2: {
  1321. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1322. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1323. int value;
  1324. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1325. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1326. input, &value)));
  1327. if (::message::Error_level_IsValid(value)) {
  1328. set_error_level(static_cast< ::message::Error_level >(value));
  1329. } else {
  1330. mutable_unknown_fields()->AddVarint(
  1331. 2, static_cast< ::google::protobuf::uint64>(value));
  1332. }
  1333. } else {
  1334. goto handle_unusual;
  1335. }
  1336. break;
  1337. }
  1338. // optional string error_description = 3 [default = ""];
  1339. case 3: {
  1340. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1341. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1342. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1343. input, this->mutable_error_description()));
  1344. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1345. this->error_description().data(), static_cast<int>(this->error_description().length()),
  1346. ::google::protobuf::internal::WireFormat::PARSE,
  1347. "message.Error_manager.error_description");
  1348. } else {
  1349. goto handle_unusual;
  1350. }
  1351. break;
  1352. }
  1353. default: {
  1354. handle_unusual:
  1355. if (tag == 0) {
  1356. goto success;
  1357. }
  1358. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1359. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1360. break;
  1361. }
  1362. }
  1363. }
  1364. success:
  1365. // @@protoc_insertion_point(parse_success:message.Error_manager)
  1366. return true;
  1367. failure:
  1368. // @@protoc_insertion_point(parse_failure:message.Error_manager)
  1369. return false;
  1370. #undef DO_
  1371. }
  1372. void Error_manager::SerializeWithCachedSizes(
  1373. ::google::protobuf::io::CodedOutputStream* output) const {
  1374. // @@protoc_insertion_point(serialize_start:message.Error_manager)
  1375. ::google::protobuf::uint32 cached_has_bits = 0;
  1376. (void) cached_has_bits;
  1377. cached_has_bits = _has_bits_[0];
  1378. // required int32 error_code = 1 [default = 0];
  1379. if (cached_has_bits & 0x00000002u) {
  1380. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->error_code(), output);
  1381. }
  1382. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1383. if (cached_has_bits & 0x00000004u) {
  1384. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1385. 2, this->error_level(), output);
  1386. }
  1387. // optional string error_description = 3 [default = ""];
  1388. if (cached_has_bits & 0x00000001u) {
  1389. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1390. this->error_description().data(), static_cast<int>(this->error_description().length()),
  1391. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1392. "message.Error_manager.error_description");
  1393. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1394. 3, this->error_description(), output);
  1395. }
  1396. if (_internal_metadata_.have_unknown_fields()) {
  1397. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1398. _internal_metadata_.unknown_fields(), output);
  1399. }
  1400. // @@protoc_insertion_point(serialize_end:message.Error_manager)
  1401. }
  1402. ::google::protobuf::uint8* Error_manager::InternalSerializeWithCachedSizesToArray(
  1403. bool deterministic, ::google::protobuf::uint8* target) const {
  1404. (void)deterministic; // Unused
  1405. // @@protoc_insertion_point(serialize_to_array_start:message.Error_manager)
  1406. ::google::protobuf::uint32 cached_has_bits = 0;
  1407. (void) cached_has_bits;
  1408. cached_has_bits = _has_bits_[0];
  1409. // required int32 error_code = 1 [default = 0];
  1410. if (cached_has_bits & 0x00000002u) {
  1411. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->error_code(), target);
  1412. }
  1413. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1414. if (cached_has_bits & 0x00000004u) {
  1415. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1416. 2, this->error_level(), target);
  1417. }
  1418. // optional string error_description = 3 [default = ""];
  1419. if (cached_has_bits & 0x00000001u) {
  1420. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1421. this->error_description().data(), static_cast<int>(this->error_description().length()),
  1422. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1423. "message.Error_manager.error_description");
  1424. target =
  1425. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1426. 3, this->error_description(), target);
  1427. }
  1428. if (_internal_metadata_.have_unknown_fields()) {
  1429. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1430. _internal_metadata_.unknown_fields(), target);
  1431. }
  1432. // @@protoc_insertion_point(serialize_to_array_end:message.Error_manager)
  1433. return target;
  1434. }
  1435. size_t Error_manager::ByteSizeLong() const {
  1436. // @@protoc_insertion_point(message_byte_size_start:message.Error_manager)
  1437. size_t total_size = 0;
  1438. if (_internal_metadata_.have_unknown_fields()) {
  1439. total_size +=
  1440. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1441. _internal_metadata_.unknown_fields());
  1442. }
  1443. // required int32 error_code = 1 [default = 0];
  1444. if (has_error_code()) {
  1445. total_size += 1 +
  1446. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1447. this->error_code());
  1448. }
  1449. // optional string error_description = 3 [default = ""];
  1450. if (has_error_description()) {
  1451. total_size += 1 +
  1452. ::google::protobuf::internal::WireFormatLite::StringSize(
  1453. this->error_description());
  1454. }
  1455. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1456. if (has_error_level()) {
  1457. total_size += 1 +
  1458. ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_level());
  1459. }
  1460. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1461. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1462. _cached_size_ = cached_size;
  1463. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1464. return total_size;
  1465. }
  1466. void Error_manager::MergeFrom(const ::google::protobuf::Message& from) {
  1467. // @@protoc_insertion_point(generalized_merge_from_start:message.Error_manager)
  1468. GOOGLE_DCHECK_NE(&from, this);
  1469. const Error_manager* source =
  1470. ::google::protobuf::internal::DynamicCastToGenerated<const Error_manager>(
  1471. &from);
  1472. if (source == NULL) {
  1473. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Error_manager)
  1474. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1475. } else {
  1476. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Error_manager)
  1477. MergeFrom(*source);
  1478. }
  1479. }
  1480. void Error_manager::MergeFrom(const Error_manager& from) {
  1481. // @@protoc_insertion_point(class_specific_merge_from_start:message.Error_manager)
  1482. GOOGLE_DCHECK_NE(&from, this);
  1483. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1484. ::google::protobuf::uint32 cached_has_bits = 0;
  1485. (void) cached_has_bits;
  1486. cached_has_bits = from._has_bits_[0];
  1487. if (cached_has_bits & 7u) {
  1488. if (cached_has_bits & 0x00000001u) {
  1489. set_has_error_description();
  1490. error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_description_);
  1491. }
  1492. if (cached_has_bits & 0x00000002u) {
  1493. error_code_ = from.error_code_;
  1494. }
  1495. if (cached_has_bits & 0x00000004u) {
  1496. error_level_ = from.error_level_;
  1497. }
  1498. _has_bits_[0] |= cached_has_bits;
  1499. }
  1500. }
  1501. void Error_manager::CopyFrom(const ::google::protobuf::Message& from) {
  1502. // @@protoc_insertion_point(generalized_copy_from_start:message.Error_manager)
  1503. if (&from == this) return;
  1504. Clear();
  1505. MergeFrom(from);
  1506. }
  1507. void Error_manager::CopyFrom(const Error_manager& from) {
  1508. // @@protoc_insertion_point(class_specific_copy_from_start:message.Error_manager)
  1509. if (&from == this) return;
  1510. Clear();
  1511. MergeFrom(from);
  1512. }
  1513. bool Error_manager::IsInitialized() const {
  1514. if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
  1515. return true;
  1516. }
  1517. void Error_manager::Swap(Error_manager* other) {
  1518. if (other == this) return;
  1519. InternalSwap(other);
  1520. }
  1521. void Error_manager::InternalSwap(Error_manager* other) {
  1522. using std::swap;
  1523. error_description_.Swap(&other->error_description_);
  1524. swap(error_code_, other->error_code_);
  1525. swap(error_level_, other->error_level_);
  1526. swap(_has_bits_[0], other->_has_bits_[0]);
  1527. _internal_metadata_.Swap(&other->_internal_metadata_);
  1528. swap(_cached_size_, other->_cached_size_);
  1529. }
  1530. ::google::protobuf::Metadata Error_manager::GetMetadata() const {
  1531. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1532. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  1533. }
  1534. // ===================================================================
  1535. void Locate_information::InitAsDefaultInstance() {
  1536. }
  1537. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1538. const int Locate_information::kLocateXFieldNumber;
  1539. const int Locate_information::kLocateYFieldNumber;
  1540. const int Locate_information::kLocateAngleFieldNumber;
  1541. const int Locate_information::kLocateLengthFieldNumber;
  1542. const int Locate_information::kLocateWidthFieldNumber;
  1543. const int Locate_information::kLocateHeightFieldNumber;
  1544. const int Locate_information::kLocateWheelBaseFieldNumber;
  1545. const int Locate_information::kLocateWheelWidthFieldNumber;
  1546. const int Locate_information::kLocateCorrectFieldNumber;
  1547. const int Locate_information::kLocateFrontThetaFieldNumber;
  1548. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1549. Locate_information::Locate_information()
  1550. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1551. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1552. ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  1553. }
  1554. SharedCtor();
  1555. // @@protoc_insertion_point(constructor:message.Locate_information)
  1556. }
  1557. Locate_information::Locate_information(const Locate_information& from)
  1558. : ::google::protobuf::Message(),
  1559. _internal_metadata_(NULL),
  1560. _has_bits_(from._has_bits_),
  1561. _cached_size_(0) {
  1562. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1563. ::memcpy(&locate_x_, &from.locate_x_,
  1564. static_cast<size_t>(reinterpret_cast<char*>(&locate_front_theta_) -
  1565. reinterpret_cast<char*>(&locate_x_)) + sizeof(locate_front_theta_));
  1566. // @@protoc_insertion_point(copy_constructor:message.Locate_information)
  1567. }
  1568. void Locate_information::SharedCtor() {
  1569. _cached_size_ = 0;
  1570. ::memset(&locate_x_, 0, static_cast<size_t>(
  1571. reinterpret_cast<char*>(&locate_front_theta_) -
  1572. reinterpret_cast<char*>(&locate_x_)) + sizeof(locate_front_theta_));
  1573. }
  1574. Locate_information::~Locate_information() {
  1575. // @@protoc_insertion_point(destructor:message.Locate_information)
  1576. SharedDtor();
  1577. }
  1578. void Locate_information::SharedDtor() {
  1579. }
  1580. void Locate_information::SetCachedSize(int size) const {
  1581. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1582. _cached_size_ = size;
  1583. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1584. }
  1585. const ::google::protobuf::Descriptor* Locate_information::descriptor() {
  1586. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1587. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1588. }
  1589. const Locate_information& Locate_information::default_instance() {
  1590. ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  1591. return *internal_default_instance();
  1592. }
  1593. Locate_information* Locate_information::New(::google::protobuf::Arena* arena) const {
  1594. Locate_information* n = new Locate_information;
  1595. if (arena != NULL) {
  1596. arena->Own(n);
  1597. }
  1598. return n;
  1599. }
  1600. void Locate_information::Clear() {
  1601. // @@protoc_insertion_point(message_clear_start:message.Locate_information)
  1602. ::google::protobuf::uint32 cached_has_bits = 0;
  1603. // Prevent compiler warnings about cached_has_bits being unused
  1604. (void) cached_has_bits;
  1605. cached_has_bits = _has_bits_[0];
  1606. if (cached_has_bits & 255u) {
  1607. ::memset(&locate_x_, 0, static_cast<size_t>(
  1608. reinterpret_cast<char*>(&locate_wheel_width_) -
  1609. reinterpret_cast<char*>(&locate_x_)) + sizeof(locate_wheel_width_));
  1610. }
  1611. if (cached_has_bits & 768u) {
  1612. ::memset(&locate_correct_, 0, static_cast<size_t>(
  1613. reinterpret_cast<char*>(&locate_front_theta_) -
  1614. reinterpret_cast<char*>(&locate_correct_)) + sizeof(locate_front_theta_));
  1615. }
  1616. _has_bits_.Clear();
  1617. _internal_metadata_.Clear();
  1618. }
  1619. bool Locate_information::MergePartialFromCodedStream(
  1620. ::google::protobuf::io::CodedInputStream* input) {
  1621. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1622. ::google::protobuf::uint32 tag;
  1623. // @@protoc_insertion_point(parse_start:message.Locate_information)
  1624. for (;;) {
  1625. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1626. tag = p.first;
  1627. if (!p.second) goto handle_unusual;
  1628. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1629. // optional float locate_x = 1 [default = 0];
  1630. case 1: {
  1631. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1632. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  1633. set_has_locate_x();
  1634. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1635. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1636. input, &locate_x_)));
  1637. } else {
  1638. goto handle_unusual;
  1639. }
  1640. break;
  1641. }
  1642. // optional float locate_y = 2 [default = 0];
  1643. case 2: {
  1644. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1645. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  1646. set_has_locate_y();
  1647. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1648. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1649. input, &locate_y_)));
  1650. } else {
  1651. goto handle_unusual;
  1652. }
  1653. break;
  1654. }
  1655. // optional float locate_angle = 3 [default = 0];
  1656. case 3: {
  1657. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1658. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1659. set_has_locate_angle();
  1660. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1661. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1662. input, &locate_angle_)));
  1663. } else {
  1664. goto handle_unusual;
  1665. }
  1666. break;
  1667. }
  1668. // optional float locate_length = 4 [default = 0];
  1669. case 4: {
  1670. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1671. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1672. set_has_locate_length();
  1673. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1674. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1675. input, &locate_length_)));
  1676. } else {
  1677. goto handle_unusual;
  1678. }
  1679. break;
  1680. }
  1681. // optional float locate_width = 5 [default = 0];
  1682. case 5: {
  1683. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1684. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1685. set_has_locate_width();
  1686. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1687. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1688. input, &locate_width_)));
  1689. } else {
  1690. goto handle_unusual;
  1691. }
  1692. break;
  1693. }
  1694. // optional float locate_height = 6 [default = 0];
  1695. case 6: {
  1696. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1697. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1698. set_has_locate_height();
  1699. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1700. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1701. input, &locate_height_)));
  1702. } else {
  1703. goto handle_unusual;
  1704. }
  1705. break;
  1706. }
  1707. // optional float locate_wheel_base = 7 [default = 0];
  1708. case 7: {
  1709. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1710. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  1711. set_has_locate_wheel_base();
  1712. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1713. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1714. input, &locate_wheel_base_)));
  1715. } else {
  1716. goto handle_unusual;
  1717. }
  1718. break;
  1719. }
  1720. // optional float locate_wheel_width = 8 [default = 0];
  1721. case 8: {
  1722. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1723. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  1724. set_has_locate_wheel_width();
  1725. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1726. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1727. input, &locate_wheel_width_)));
  1728. } else {
  1729. goto handle_unusual;
  1730. }
  1731. break;
  1732. }
  1733. // optional bool locate_correct = 9 [default = false];
  1734. case 9: {
  1735. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1736. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1737. set_has_locate_correct();
  1738. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1739. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1740. input, &locate_correct_)));
  1741. } else {
  1742. goto handle_unusual;
  1743. }
  1744. break;
  1745. }
  1746. // optional float locate_front_theta = 10 [default = 0];
  1747. case 10: {
  1748. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1749. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  1750. set_has_locate_front_theta();
  1751. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1752. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1753. input, &locate_front_theta_)));
  1754. } else {
  1755. goto handle_unusual;
  1756. }
  1757. break;
  1758. }
  1759. default: {
  1760. handle_unusual:
  1761. if (tag == 0) {
  1762. goto success;
  1763. }
  1764. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1765. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1766. break;
  1767. }
  1768. }
  1769. }
  1770. success:
  1771. // @@protoc_insertion_point(parse_success:message.Locate_information)
  1772. return true;
  1773. failure:
  1774. // @@protoc_insertion_point(parse_failure:message.Locate_information)
  1775. return false;
  1776. #undef DO_
  1777. }
  1778. void Locate_information::SerializeWithCachedSizes(
  1779. ::google::protobuf::io::CodedOutputStream* output) const {
  1780. // @@protoc_insertion_point(serialize_start:message.Locate_information)
  1781. ::google::protobuf::uint32 cached_has_bits = 0;
  1782. (void) cached_has_bits;
  1783. cached_has_bits = _has_bits_[0];
  1784. // optional float locate_x = 1 [default = 0];
  1785. if (cached_has_bits & 0x00000001u) {
  1786. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->locate_x(), output);
  1787. }
  1788. // optional float locate_y = 2 [default = 0];
  1789. if (cached_has_bits & 0x00000002u) {
  1790. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->locate_y(), output);
  1791. }
  1792. // optional float locate_angle = 3 [default = 0];
  1793. if (cached_has_bits & 0x00000004u) {
  1794. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->locate_angle(), output);
  1795. }
  1796. // optional float locate_length = 4 [default = 0];
  1797. if (cached_has_bits & 0x00000008u) {
  1798. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->locate_length(), output);
  1799. }
  1800. // optional float locate_width = 5 [default = 0];
  1801. if (cached_has_bits & 0x00000010u) {
  1802. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->locate_width(), output);
  1803. }
  1804. // optional float locate_height = 6 [default = 0];
  1805. if (cached_has_bits & 0x00000020u) {
  1806. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->locate_height(), output);
  1807. }
  1808. // optional float locate_wheel_base = 7 [default = 0];
  1809. if (cached_has_bits & 0x00000040u) {
  1810. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->locate_wheel_base(), output);
  1811. }
  1812. // optional float locate_wheel_width = 8 [default = 0];
  1813. if (cached_has_bits & 0x00000080u) {
  1814. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->locate_wheel_width(), output);
  1815. }
  1816. // optional bool locate_correct = 9 [default = false];
  1817. if (cached_has_bits & 0x00000100u) {
  1818. ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->locate_correct(), output);
  1819. }
  1820. // optional float locate_front_theta = 10 [default = 0];
  1821. if (cached_has_bits & 0x00000200u) {
  1822. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->locate_front_theta(), output);
  1823. }
  1824. if (_internal_metadata_.have_unknown_fields()) {
  1825. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1826. _internal_metadata_.unknown_fields(), output);
  1827. }
  1828. // @@protoc_insertion_point(serialize_end:message.Locate_information)
  1829. }
  1830. ::google::protobuf::uint8* Locate_information::InternalSerializeWithCachedSizesToArray(
  1831. bool deterministic, ::google::protobuf::uint8* target) const {
  1832. (void)deterministic; // Unused
  1833. // @@protoc_insertion_point(serialize_to_array_start:message.Locate_information)
  1834. ::google::protobuf::uint32 cached_has_bits = 0;
  1835. (void) cached_has_bits;
  1836. cached_has_bits = _has_bits_[0];
  1837. // optional float locate_x = 1 [default = 0];
  1838. if (cached_has_bits & 0x00000001u) {
  1839. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->locate_x(), target);
  1840. }
  1841. // optional float locate_y = 2 [default = 0];
  1842. if (cached_has_bits & 0x00000002u) {
  1843. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->locate_y(), target);
  1844. }
  1845. // optional float locate_angle = 3 [default = 0];
  1846. if (cached_has_bits & 0x00000004u) {
  1847. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->locate_angle(), target);
  1848. }
  1849. // optional float locate_length = 4 [default = 0];
  1850. if (cached_has_bits & 0x00000008u) {
  1851. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->locate_length(), target);
  1852. }
  1853. // optional float locate_width = 5 [default = 0];
  1854. if (cached_has_bits & 0x00000010u) {
  1855. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->locate_width(), target);
  1856. }
  1857. // optional float locate_height = 6 [default = 0];
  1858. if (cached_has_bits & 0x00000020u) {
  1859. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->locate_height(), target);
  1860. }
  1861. // optional float locate_wheel_base = 7 [default = 0];
  1862. if (cached_has_bits & 0x00000040u) {
  1863. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->locate_wheel_base(), target);
  1864. }
  1865. // optional float locate_wheel_width = 8 [default = 0];
  1866. if (cached_has_bits & 0x00000080u) {
  1867. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->locate_wheel_width(), target);
  1868. }
  1869. // optional bool locate_correct = 9 [default = false];
  1870. if (cached_has_bits & 0x00000100u) {
  1871. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->locate_correct(), target);
  1872. }
  1873. // optional float locate_front_theta = 10 [default = 0];
  1874. if (cached_has_bits & 0x00000200u) {
  1875. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->locate_front_theta(), target);
  1876. }
  1877. if (_internal_metadata_.have_unknown_fields()) {
  1878. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1879. _internal_metadata_.unknown_fields(), target);
  1880. }
  1881. // @@protoc_insertion_point(serialize_to_array_end:message.Locate_information)
  1882. return target;
  1883. }
  1884. size_t Locate_information::ByteSizeLong() const {
  1885. // @@protoc_insertion_point(message_byte_size_start:message.Locate_information)
  1886. size_t total_size = 0;
  1887. if (_internal_metadata_.have_unknown_fields()) {
  1888. total_size +=
  1889. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1890. _internal_metadata_.unknown_fields());
  1891. }
  1892. if (_has_bits_[0 / 32] & 255u) {
  1893. // optional float locate_x = 1 [default = 0];
  1894. if (has_locate_x()) {
  1895. total_size += 1 + 4;
  1896. }
  1897. // optional float locate_y = 2 [default = 0];
  1898. if (has_locate_y()) {
  1899. total_size += 1 + 4;
  1900. }
  1901. // optional float locate_angle = 3 [default = 0];
  1902. if (has_locate_angle()) {
  1903. total_size += 1 + 4;
  1904. }
  1905. // optional float locate_length = 4 [default = 0];
  1906. if (has_locate_length()) {
  1907. total_size += 1 + 4;
  1908. }
  1909. // optional float locate_width = 5 [default = 0];
  1910. if (has_locate_width()) {
  1911. total_size += 1 + 4;
  1912. }
  1913. // optional float locate_height = 6 [default = 0];
  1914. if (has_locate_height()) {
  1915. total_size += 1 + 4;
  1916. }
  1917. // optional float locate_wheel_base = 7 [default = 0];
  1918. if (has_locate_wheel_base()) {
  1919. total_size += 1 + 4;
  1920. }
  1921. // optional float locate_wheel_width = 8 [default = 0];
  1922. if (has_locate_wheel_width()) {
  1923. total_size += 1 + 4;
  1924. }
  1925. }
  1926. if (_has_bits_[8 / 32] & 768u) {
  1927. // optional bool locate_correct = 9 [default = false];
  1928. if (has_locate_correct()) {
  1929. total_size += 1 + 1;
  1930. }
  1931. // optional float locate_front_theta = 10 [default = 0];
  1932. if (has_locate_front_theta()) {
  1933. total_size += 1 + 4;
  1934. }
  1935. }
  1936. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1937. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1938. _cached_size_ = cached_size;
  1939. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1940. return total_size;
  1941. }
  1942. void Locate_information::MergeFrom(const ::google::protobuf::Message& from) {
  1943. // @@protoc_insertion_point(generalized_merge_from_start:message.Locate_information)
  1944. GOOGLE_DCHECK_NE(&from, this);
  1945. const Locate_information* source =
  1946. ::google::protobuf::internal::DynamicCastToGenerated<const Locate_information>(
  1947. &from);
  1948. if (source == NULL) {
  1949. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Locate_information)
  1950. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1951. } else {
  1952. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Locate_information)
  1953. MergeFrom(*source);
  1954. }
  1955. }
  1956. void Locate_information::MergeFrom(const Locate_information& from) {
  1957. // @@protoc_insertion_point(class_specific_merge_from_start:message.Locate_information)
  1958. GOOGLE_DCHECK_NE(&from, this);
  1959. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1960. ::google::protobuf::uint32 cached_has_bits = 0;
  1961. (void) cached_has_bits;
  1962. cached_has_bits = from._has_bits_[0];
  1963. if (cached_has_bits & 255u) {
  1964. if (cached_has_bits & 0x00000001u) {
  1965. locate_x_ = from.locate_x_;
  1966. }
  1967. if (cached_has_bits & 0x00000002u) {
  1968. locate_y_ = from.locate_y_;
  1969. }
  1970. if (cached_has_bits & 0x00000004u) {
  1971. locate_angle_ = from.locate_angle_;
  1972. }
  1973. if (cached_has_bits & 0x00000008u) {
  1974. locate_length_ = from.locate_length_;
  1975. }
  1976. if (cached_has_bits & 0x00000010u) {
  1977. locate_width_ = from.locate_width_;
  1978. }
  1979. if (cached_has_bits & 0x00000020u) {
  1980. locate_height_ = from.locate_height_;
  1981. }
  1982. if (cached_has_bits & 0x00000040u) {
  1983. locate_wheel_base_ = from.locate_wheel_base_;
  1984. }
  1985. if (cached_has_bits & 0x00000080u) {
  1986. locate_wheel_width_ = from.locate_wheel_width_;
  1987. }
  1988. _has_bits_[0] |= cached_has_bits;
  1989. }
  1990. if (cached_has_bits & 768u) {
  1991. if (cached_has_bits & 0x00000100u) {
  1992. locate_correct_ = from.locate_correct_;
  1993. }
  1994. if (cached_has_bits & 0x00000200u) {
  1995. locate_front_theta_ = from.locate_front_theta_;
  1996. }
  1997. _has_bits_[0] |= cached_has_bits;
  1998. }
  1999. }
  2000. void Locate_information::CopyFrom(const ::google::protobuf::Message& from) {
  2001. // @@protoc_insertion_point(generalized_copy_from_start:message.Locate_information)
  2002. if (&from == this) return;
  2003. Clear();
  2004. MergeFrom(from);
  2005. }
  2006. void Locate_information::CopyFrom(const Locate_information& from) {
  2007. // @@protoc_insertion_point(class_specific_copy_from_start:message.Locate_information)
  2008. if (&from == this) return;
  2009. Clear();
  2010. MergeFrom(from);
  2011. }
  2012. bool Locate_information::IsInitialized() const {
  2013. return true;
  2014. }
  2015. void Locate_information::Swap(Locate_information* other) {
  2016. if (other == this) return;
  2017. InternalSwap(other);
  2018. }
  2019. void Locate_information::InternalSwap(Locate_information* other) {
  2020. using std::swap;
  2021. swap(locate_x_, other->locate_x_);
  2022. swap(locate_y_, other->locate_y_);
  2023. swap(locate_angle_, other->locate_angle_);
  2024. swap(locate_length_, other->locate_length_);
  2025. swap(locate_width_, other->locate_width_);
  2026. swap(locate_height_, other->locate_height_);
  2027. swap(locate_wheel_base_, other->locate_wheel_base_);
  2028. swap(locate_wheel_width_, other->locate_wheel_width_);
  2029. swap(locate_correct_, other->locate_correct_);
  2030. swap(locate_front_theta_, other->locate_front_theta_);
  2031. swap(_has_bits_[0], other->_has_bits_[0]);
  2032. _internal_metadata_.Swap(&other->_internal_metadata_);
  2033. swap(_cached_size_, other->_cached_size_);
  2034. }
  2035. ::google::protobuf::Metadata Locate_information::GetMetadata() const {
  2036. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2037. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  2038. }
  2039. // ===================================================================
  2040. void Car_info::InitAsDefaultInstance() {
  2041. }
  2042. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2043. const int Car_info::kCarLengthFieldNumber;
  2044. const int Car_info::kCarWidthFieldNumber;
  2045. const int Car_info::kCarHeightFieldNumber;
  2046. const int Car_info::kLicenseFieldNumber;
  2047. const int Car_info::kCarWheelBaseFieldNumber;
  2048. const int Car_info::kCarWheelWidthFieldNumber;
  2049. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2050. Car_info::Car_info()
  2051. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2052. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2053. ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  2054. }
  2055. SharedCtor();
  2056. // @@protoc_insertion_point(constructor:message.Car_info)
  2057. }
  2058. Car_info::Car_info(const Car_info& from)
  2059. : ::google::protobuf::Message(),
  2060. _internal_metadata_(NULL),
  2061. _has_bits_(from._has_bits_),
  2062. _cached_size_(0) {
  2063. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2064. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2065. if (from.has_license()) {
  2066. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  2067. }
  2068. ::memcpy(&car_length_, &from.car_length_,
  2069. static_cast<size_t>(reinterpret_cast<char*>(&car_wheel_width_) -
  2070. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2071. // @@protoc_insertion_point(copy_constructor:message.Car_info)
  2072. }
  2073. void Car_info::SharedCtor() {
  2074. _cached_size_ = 0;
  2075. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2076. ::memset(&car_length_, 0, static_cast<size_t>(
  2077. reinterpret_cast<char*>(&car_wheel_width_) -
  2078. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2079. }
  2080. Car_info::~Car_info() {
  2081. // @@protoc_insertion_point(destructor:message.Car_info)
  2082. SharedDtor();
  2083. }
  2084. void Car_info::SharedDtor() {
  2085. license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2086. }
  2087. void Car_info::SetCachedSize(int size) const {
  2088. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2089. _cached_size_ = size;
  2090. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2091. }
  2092. const ::google::protobuf::Descriptor* Car_info::descriptor() {
  2093. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2094. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2095. }
  2096. const Car_info& Car_info::default_instance() {
  2097. ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  2098. return *internal_default_instance();
  2099. }
  2100. Car_info* Car_info::New(::google::protobuf::Arena* arena) const {
  2101. Car_info* n = new Car_info;
  2102. if (arena != NULL) {
  2103. arena->Own(n);
  2104. }
  2105. return n;
  2106. }
  2107. void Car_info::Clear() {
  2108. // @@protoc_insertion_point(message_clear_start:message.Car_info)
  2109. ::google::protobuf::uint32 cached_has_bits = 0;
  2110. // Prevent compiler warnings about cached_has_bits being unused
  2111. (void) cached_has_bits;
  2112. cached_has_bits = _has_bits_[0];
  2113. if (cached_has_bits & 0x00000001u) {
  2114. GOOGLE_DCHECK(!license_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2115. (*license_.UnsafeRawStringPointer())->clear();
  2116. }
  2117. if (cached_has_bits & 62u) {
  2118. ::memset(&car_length_, 0, static_cast<size_t>(
  2119. reinterpret_cast<char*>(&car_wheel_width_) -
  2120. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2121. }
  2122. _has_bits_.Clear();
  2123. _internal_metadata_.Clear();
  2124. }
  2125. bool Car_info::MergePartialFromCodedStream(
  2126. ::google::protobuf::io::CodedInputStream* input) {
  2127. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2128. ::google::protobuf::uint32 tag;
  2129. // @@protoc_insertion_point(parse_start:message.Car_info)
  2130. for (;;) {
  2131. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2132. tag = p.first;
  2133. if (!p.second) goto handle_unusual;
  2134. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2135. // optional float car_length = 1 [default = 0];
  2136. case 1: {
  2137. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2138. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2139. set_has_car_length();
  2140. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2141. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2142. input, &car_length_)));
  2143. } else {
  2144. goto handle_unusual;
  2145. }
  2146. break;
  2147. }
  2148. // optional float car_width = 2 [default = 0];
  2149. case 2: {
  2150. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2151. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2152. set_has_car_width();
  2153. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2154. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2155. input, &car_width_)));
  2156. } else {
  2157. goto handle_unusual;
  2158. }
  2159. break;
  2160. }
  2161. // optional float car_height = 3 [default = 0];
  2162. case 3: {
  2163. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2164. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2165. set_has_car_height();
  2166. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2167. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2168. input, &car_height_)));
  2169. } else {
  2170. goto handle_unusual;
  2171. }
  2172. break;
  2173. }
  2174. // optional string license = 4 [default = ""];
  2175. case 4: {
  2176. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2177. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2178. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2179. input, this->mutable_license()));
  2180. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2181. this->license().data(), static_cast<int>(this->license().length()),
  2182. ::google::protobuf::internal::WireFormat::PARSE,
  2183. "message.Car_info.license");
  2184. } else {
  2185. goto handle_unusual;
  2186. }
  2187. break;
  2188. }
  2189. // optional float car_wheel_base = 5 [default = 0];
  2190. case 5: {
  2191. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2192. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  2193. set_has_car_wheel_base();
  2194. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2195. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2196. input, &car_wheel_base_)));
  2197. } else {
  2198. goto handle_unusual;
  2199. }
  2200. break;
  2201. }
  2202. // optional float car_wheel_width = 6 [default = 0];
  2203. case 6: {
  2204. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2205. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  2206. set_has_car_wheel_width();
  2207. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2208. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2209. input, &car_wheel_width_)));
  2210. } else {
  2211. goto handle_unusual;
  2212. }
  2213. break;
  2214. }
  2215. default: {
  2216. handle_unusual:
  2217. if (tag == 0) {
  2218. goto success;
  2219. }
  2220. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2221. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2222. break;
  2223. }
  2224. }
  2225. }
  2226. success:
  2227. // @@protoc_insertion_point(parse_success:message.Car_info)
  2228. return true;
  2229. failure:
  2230. // @@protoc_insertion_point(parse_failure:message.Car_info)
  2231. return false;
  2232. #undef DO_
  2233. }
  2234. void Car_info::SerializeWithCachedSizes(
  2235. ::google::protobuf::io::CodedOutputStream* output) const {
  2236. // @@protoc_insertion_point(serialize_start:message.Car_info)
  2237. ::google::protobuf::uint32 cached_has_bits = 0;
  2238. (void) cached_has_bits;
  2239. cached_has_bits = _has_bits_[0];
  2240. // optional float car_length = 1 [default = 0];
  2241. if (cached_has_bits & 0x00000002u) {
  2242. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->car_length(), output);
  2243. }
  2244. // optional float car_width = 2 [default = 0];
  2245. if (cached_has_bits & 0x00000004u) {
  2246. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->car_width(), output);
  2247. }
  2248. // optional float car_height = 3 [default = 0];
  2249. if (cached_has_bits & 0x00000008u) {
  2250. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->car_height(), output);
  2251. }
  2252. // optional string license = 4 [default = ""];
  2253. if (cached_has_bits & 0x00000001u) {
  2254. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2255. this->license().data(), static_cast<int>(this->license().length()),
  2256. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2257. "message.Car_info.license");
  2258. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2259. 4, this->license(), output);
  2260. }
  2261. // optional float car_wheel_base = 5 [default = 0];
  2262. if (cached_has_bits & 0x00000010u) {
  2263. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->car_wheel_base(), output);
  2264. }
  2265. // optional float car_wheel_width = 6 [default = 0];
  2266. if (cached_has_bits & 0x00000020u) {
  2267. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->car_wheel_width(), output);
  2268. }
  2269. if (_internal_metadata_.have_unknown_fields()) {
  2270. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2271. _internal_metadata_.unknown_fields(), output);
  2272. }
  2273. // @@protoc_insertion_point(serialize_end:message.Car_info)
  2274. }
  2275. ::google::protobuf::uint8* Car_info::InternalSerializeWithCachedSizesToArray(
  2276. bool deterministic, ::google::protobuf::uint8* target) const {
  2277. (void)deterministic; // Unused
  2278. // @@protoc_insertion_point(serialize_to_array_start:message.Car_info)
  2279. ::google::protobuf::uint32 cached_has_bits = 0;
  2280. (void) cached_has_bits;
  2281. cached_has_bits = _has_bits_[0];
  2282. // optional float car_length = 1 [default = 0];
  2283. if (cached_has_bits & 0x00000002u) {
  2284. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->car_length(), target);
  2285. }
  2286. // optional float car_width = 2 [default = 0];
  2287. if (cached_has_bits & 0x00000004u) {
  2288. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->car_width(), target);
  2289. }
  2290. // optional float car_height = 3 [default = 0];
  2291. if (cached_has_bits & 0x00000008u) {
  2292. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->car_height(), target);
  2293. }
  2294. // optional string license = 4 [default = ""];
  2295. if (cached_has_bits & 0x00000001u) {
  2296. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2297. this->license().data(), static_cast<int>(this->license().length()),
  2298. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2299. "message.Car_info.license");
  2300. target =
  2301. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2302. 4, this->license(), target);
  2303. }
  2304. // optional float car_wheel_base = 5 [default = 0];
  2305. if (cached_has_bits & 0x00000010u) {
  2306. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->car_wheel_base(), target);
  2307. }
  2308. // optional float car_wheel_width = 6 [default = 0];
  2309. if (cached_has_bits & 0x00000020u) {
  2310. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->car_wheel_width(), target);
  2311. }
  2312. if (_internal_metadata_.have_unknown_fields()) {
  2313. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2314. _internal_metadata_.unknown_fields(), target);
  2315. }
  2316. // @@protoc_insertion_point(serialize_to_array_end:message.Car_info)
  2317. return target;
  2318. }
  2319. size_t Car_info::ByteSizeLong() const {
  2320. // @@protoc_insertion_point(message_byte_size_start:message.Car_info)
  2321. size_t total_size = 0;
  2322. if (_internal_metadata_.have_unknown_fields()) {
  2323. total_size +=
  2324. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2325. _internal_metadata_.unknown_fields());
  2326. }
  2327. if (_has_bits_[0 / 32] & 63u) {
  2328. // optional string license = 4 [default = ""];
  2329. if (has_license()) {
  2330. total_size += 1 +
  2331. ::google::protobuf::internal::WireFormatLite::StringSize(
  2332. this->license());
  2333. }
  2334. // optional float car_length = 1 [default = 0];
  2335. if (has_car_length()) {
  2336. total_size += 1 + 4;
  2337. }
  2338. // optional float car_width = 2 [default = 0];
  2339. if (has_car_width()) {
  2340. total_size += 1 + 4;
  2341. }
  2342. // optional float car_height = 3 [default = 0];
  2343. if (has_car_height()) {
  2344. total_size += 1 + 4;
  2345. }
  2346. // optional float car_wheel_base = 5 [default = 0];
  2347. if (has_car_wheel_base()) {
  2348. total_size += 1 + 4;
  2349. }
  2350. // optional float car_wheel_width = 6 [default = 0];
  2351. if (has_car_wheel_width()) {
  2352. total_size += 1 + 4;
  2353. }
  2354. }
  2355. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2356. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2357. _cached_size_ = cached_size;
  2358. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2359. return total_size;
  2360. }
  2361. void Car_info::MergeFrom(const ::google::protobuf::Message& from) {
  2362. // @@protoc_insertion_point(generalized_merge_from_start:message.Car_info)
  2363. GOOGLE_DCHECK_NE(&from, this);
  2364. const Car_info* source =
  2365. ::google::protobuf::internal::DynamicCastToGenerated<const Car_info>(
  2366. &from);
  2367. if (source == NULL) {
  2368. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Car_info)
  2369. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2370. } else {
  2371. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Car_info)
  2372. MergeFrom(*source);
  2373. }
  2374. }
  2375. void Car_info::MergeFrom(const Car_info& from) {
  2376. // @@protoc_insertion_point(class_specific_merge_from_start:message.Car_info)
  2377. GOOGLE_DCHECK_NE(&from, this);
  2378. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2379. ::google::protobuf::uint32 cached_has_bits = 0;
  2380. (void) cached_has_bits;
  2381. cached_has_bits = from._has_bits_[0];
  2382. if (cached_has_bits & 63u) {
  2383. if (cached_has_bits & 0x00000001u) {
  2384. set_has_license();
  2385. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  2386. }
  2387. if (cached_has_bits & 0x00000002u) {
  2388. car_length_ = from.car_length_;
  2389. }
  2390. if (cached_has_bits & 0x00000004u) {
  2391. car_width_ = from.car_width_;
  2392. }
  2393. if (cached_has_bits & 0x00000008u) {
  2394. car_height_ = from.car_height_;
  2395. }
  2396. if (cached_has_bits & 0x00000010u) {
  2397. car_wheel_base_ = from.car_wheel_base_;
  2398. }
  2399. if (cached_has_bits & 0x00000020u) {
  2400. car_wheel_width_ = from.car_wheel_width_;
  2401. }
  2402. _has_bits_[0] |= cached_has_bits;
  2403. }
  2404. }
  2405. void Car_info::CopyFrom(const ::google::protobuf::Message& from) {
  2406. // @@protoc_insertion_point(generalized_copy_from_start:message.Car_info)
  2407. if (&from == this) return;
  2408. Clear();
  2409. MergeFrom(from);
  2410. }
  2411. void Car_info::CopyFrom(const Car_info& from) {
  2412. // @@protoc_insertion_point(class_specific_copy_from_start:message.Car_info)
  2413. if (&from == this) return;
  2414. Clear();
  2415. MergeFrom(from);
  2416. }
  2417. bool Car_info::IsInitialized() const {
  2418. return true;
  2419. }
  2420. void Car_info::Swap(Car_info* other) {
  2421. if (other == this) return;
  2422. InternalSwap(other);
  2423. }
  2424. void Car_info::InternalSwap(Car_info* other) {
  2425. using std::swap;
  2426. license_.Swap(&other->license_);
  2427. swap(car_length_, other->car_length_);
  2428. swap(car_width_, other->car_width_);
  2429. swap(car_height_, other->car_height_);
  2430. swap(car_wheel_base_, other->car_wheel_base_);
  2431. swap(car_wheel_width_, other->car_wheel_width_);
  2432. swap(_has_bits_[0], other->_has_bits_[0]);
  2433. _internal_metadata_.Swap(&other->_internal_metadata_);
  2434. swap(_cached_size_, other->_cached_size_);
  2435. }
  2436. ::google::protobuf::Metadata Car_info::GetMetadata() const {
  2437. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2438. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  2439. }
  2440. // ===================================================================
  2441. void Parkspace_info::InitAsDefaultInstance() {
  2442. ::message::_Parkspace_info_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  2443. ::message::Car_info::internal_default_instance());
  2444. }
  2445. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2446. const int Parkspace_info::kParkspaceIdFieldNumber;
  2447. const int Parkspace_info::kIndexFieldNumber;
  2448. const int Parkspace_info::kDirectionFieldNumber;
  2449. const int Parkspace_info::kFloorFieldNumber;
  2450. const int Parkspace_info::kLengthFieldNumber;
  2451. const int Parkspace_info::kWidthFieldNumber;
  2452. const int Parkspace_info::kHeightFieldNumber;
  2453. const int Parkspace_info::kParkspaceStatusFieldNumber;
  2454. const int Parkspace_info::kCarInfoFieldNumber;
  2455. const int Parkspace_info::kEntryTimeFieldNumber;
  2456. const int Parkspace_info::kLeaveTimeFieldNumber;
  2457. const int Parkspace_info::kBlockIdFieldNumber;
  2458. const int Parkspace_info::kParkspacePathFieldNumber;
  2459. const int Parkspace_info::kPathEstimateTimeFieldNumber;
  2460. const int Parkspace_info::kParkspaceStatusTargetFieldNumber;
  2461. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2462. Parkspace_info::Parkspace_info()
  2463. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2464. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2465. ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  2466. }
  2467. SharedCtor();
  2468. // @@protoc_insertion_point(constructor:message.Parkspace_info)
  2469. }
  2470. Parkspace_info::Parkspace_info(const Parkspace_info& from)
  2471. : ::google::protobuf::Message(),
  2472. _internal_metadata_(NULL),
  2473. _has_bits_(from._has_bits_),
  2474. _cached_size_(0) {
  2475. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2476. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2477. if (from.has_entry_time()) {
  2478. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  2479. }
  2480. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2481. if (from.has_leave_time()) {
  2482. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  2483. }
  2484. if (from.has_car_info()) {
  2485. car_info_ = new ::message::Car_info(*from.car_info_);
  2486. } else {
  2487. car_info_ = NULL;
  2488. }
  2489. ::memcpy(&parkspace_id_, &from.parkspace_id_,
  2490. static_cast<size_t>(reinterpret_cast<char*>(&parkspace_status_target_) -
  2491. reinterpret_cast<char*>(&parkspace_id_)) + sizeof(parkspace_status_target_));
  2492. // @@protoc_insertion_point(copy_constructor:message.Parkspace_info)
  2493. }
  2494. void Parkspace_info::SharedCtor() {
  2495. _cached_size_ = 0;
  2496. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2497. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2498. ::memset(&car_info_, 0, static_cast<size_t>(
  2499. reinterpret_cast<char*>(&parkspace_status_target_) -
  2500. reinterpret_cast<char*>(&car_info_)) + sizeof(parkspace_status_target_));
  2501. }
  2502. Parkspace_info::~Parkspace_info() {
  2503. // @@protoc_insertion_point(destructor:message.Parkspace_info)
  2504. SharedDtor();
  2505. }
  2506. void Parkspace_info::SharedDtor() {
  2507. entry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2508. leave_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2509. if (this != internal_default_instance()) delete car_info_;
  2510. }
  2511. void Parkspace_info::SetCachedSize(int size) const {
  2512. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2513. _cached_size_ = size;
  2514. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2515. }
  2516. const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
  2517. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2518. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2519. }
  2520. const Parkspace_info& Parkspace_info::default_instance() {
  2521. ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  2522. return *internal_default_instance();
  2523. }
  2524. Parkspace_info* Parkspace_info::New(::google::protobuf::Arena* arena) const {
  2525. Parkspace_info* n = new Parkspace_info;
  2526. if (arena != NULL) {
  2527. arena->Own(n);
  2528. }
  2529. return n;
  2530. }
  2531. void Parkspace_info::Clear() {
  2532. // @@protoc_insertion_point(message_clear_start:message.Parkspace_info)
  2533. ::google::protobuf::uint32 cached_has_bits = 0;
  2534. // Prevent compiler warnings about cached_has_bits being unused
  2535. (void) cached_has_bits;
  2536. cached_has_bits = _has_bits_[0];
  2537. if (cached_has_bits & 7u) {
  2538. if (cached_has_bits & 0x00000001u) {
  2539. GOOGLE_DCHECK(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2540. (*entry_time_.UnsafeRawStringPointer())->clear();
  2541. }
  2542. if (cached_has_bits & 0x00000002u) {
  2543. GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2544. (*leave_time_.UnsafeRawStringPointer())->clear();
  2545. }
  2546. if (cached_has_bits & 0x00000004u) {
  2547. GOOGLE_DCHECK(car_info_ != NULL);
  2548. car_info_->Clear();
  2549. }
  2550. }
  2551. if (cached_has_bits & 248u) {
  2552. ::memset(&parkspace_id_, 0, static_cast<size_t>(
  2553. reinterpret_cast<char*>(&length_) -
  2554. reinterpret_cast<char*>(&parkspace_id_)) + sizeof(length_));
  2555. }
  2556. if (cached_has_bits & 32512u) {
  2557. ::memset(&width_, 0, static_cast<size_t>(
  2558. reinterpret_cast<char*>(&parkspace_status_target_) -
  2559. reinterpret_cast<char*>(&width_)) + sizeof(parkspace_status_target_));
  2560. }
  2561. _has_bits_.Clear();
  2562. _internal_metadata_.Clear();
  2563. }
  2564. bool Parkspace_info::MergePartialFromCodedStream(
  2565. ::google::protobuf::io::CodedInputStream* input) {
  2566. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2567. ::google::protobuf::uint32 tag;
  2568. // @@protoc_insertion_point(parse_start:message.Parkspace_info)
  2569. for (;;) {
  2570. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2571. tag = p.first;
  2572. if (!p.second) goto handle_unusual;
  2573. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2574. // optional int32 parkspace_id = 1 [default = 0];
  2575. case 1: {
  2576. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2577. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2578. set_has_parkspace_id();
  2579. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2580. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2581. input, &parkspace_id_)));
  2582. } else {
  2583. goto handle_unusual;
  2584. }
  2585. break;
  2586. }
  2587. // optional int32 index = 2 [default = 0];
  2588. case 2: {
  2589. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2590. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2591. set_has_index();
  2592. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2593. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2594. input, &index_)));
  2595. } else {
  2596. goto handle_unusual;
  2597. }
  2598. break;
  2599. }
  2600. // optional .message.Direction direction = 3 [default = eDirection_unknow];
  2601. case 3: {
  2602. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2603. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2604. int value;
  2605. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2606. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2607. input, &value)));
  2608. if (::message::Direction_IsValid(value)) {
  2609. set_direction(static_cast< ::message::Direction >(value));
  2610. } else {
  2611. mutable_unknown_fields()->AddVarint(
  2612. 3, static_cast< ::google::protobuf::uint64>(value));
  2613. }
  2614. } else {
  2615. goto handle_unusual;
  2616. }
  2617. break;
  2618. }
  2619. // optional int32 floor = 4 [default = 0];
  2620. case 4: {
  2621. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2622. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2623. set_has_floor();
  2624. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2625. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2626. input, &floor_)));
  2627. } else {
  2628. goto handle_unusual;
  2629. }
  2630. break;
  2631. }
  2632. // optional float length = 5 [default = 0];
  2633. case 5: {
  2634. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2635. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  2636. set_has_length();
  2637. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2638. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2639. input, &length_)));
  2640. } else {
  2641. goto handle_unusual;
  2642. }
  2643. break;
  2644. }
  2645. // optional float width = 6 [default = 0];
  2646. case 6: {
  2647. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2648. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  2649. set_has_width();
  2650. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2651. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2652. input, &width_)));
  2653. } else {
  2654. goto handle_unusual;
  2655. }
  2656. break;
  2657. }
  2658. // optional float height = 7 [default = 0];
  2659. case 7: {
  2660. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2661. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  2662. set_has_height();
  2663. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2664. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2665. input, &height_)));
  2666. } else {
  2667. goto handle_unusual;
  2668. }
  2669. break;
  2670. }
  2671. // optional .message.Parkspace_status parkspace_status = 8 [default = eParkspace_status_unknow];
  2672. case 8: {
  2673. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2674. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  2675. int value;
  2676. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2677. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2678. input, &value)));
  2679. if (::message::Parkspace_status_IsValid(value)) {
  2680. set_parkspace_status(static_cast< ::message::Parkspace_status >(value));
  2681. } else {
  2682. mutable_unknown_fields()->AddVarint(
  2683. 8, static_cast< ::google::protobuf::uint64>(value));
  2684. }
  2685. } else {
  2686. goto handle_unusual;
  2687. }
  2688. break;
  2689. }
  2690. // optional .message.Car_info car_info = 9;
  2691. case 9: {
  2692. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2693. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  2694. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2695. input, mutable_car_info()));
  2696. } else {
  2697. goto handle_unusual;
  2698. }
  2699. break;
  2700. }
  2701. // optional string entry_time = 10 [default = ""];
  2702. case 10: {
  2703. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2704. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  2705. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2706. input, this->mutable_entry_time()));
  2707. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2708. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  2709. ::google::protobuf::internal::WireFormat::PARSE,
  2710. "message.Parkspace_info.entry_time");
  2711. } else {
  2712. goto handle_unusual;
  2713. }
  2714. break;
  2715. }
  2716. // optional string leave_time = 11 [default = ""];
  2717. case 11: {
  2718. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2719. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  2720. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2721. input, this->mutable_leave_time()));
  2722. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2723. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  2724. ::google::protobuf::internal::WireFormat::PARSE,
  2725. "message.Parkspace_info.leave_time");
  2726. } else {
  2727. goto handle_unusual;
  2728. }
  2729. break;
  2730. }
  2731. // optional int32 block_id = 12 [default = 0];
  2732. case 12: {
  2733. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2734. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  2735. set_has_block_id();
  2736. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2737. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2738. input, &block_id_)));
  2739. } else {
  2740. goto handle_unusual;
  2741. }
  2742. break;
  2743. }
  2744. // optional .message.Parkspace_path parkspace_path = 13 [default = UNKNOW_PATH];
  2745. case 13: {
  2746. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2747. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  2748. int value;
  2749. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2750. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2751. input, &value)));
  2752. if (::message::Parkspace_path_IsValid(value)) {
  2753. set_parkspace_path(static_cast< ::message::Parkspace_path >(value));
  2754. } else {
  2755. mutable_unknown_fields()->AddVarint(
  2756. 13, static_cast< ::google::protobuf::uint64>(value));
  2757. }
  2758. } else {
  2759. goto handle_unusual;
  2760. }
  2761. break;
  2762. }
  2763. // optional float path_estimate_time = 14 [default = 0];
  2764. case 14: {
  2765. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2766. static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
  2767. set_has_path_estimate_time();
  2768. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2769. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2770. input, &path_estimate_time_)));
  2771. } else {
  2772. goto handle_unusual;
  2773. }
  2774. break;
  2775. }
  2776. // optional .message.Parkspace_status parkspace_status_target = 15 [default = eParkspace_status_unknow];
  2777. case 15: {
  2778. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2779. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  2780. int value;
  2781. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2782. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2783. input, &value)));
  2784. if (::message::Parkspace_status_IsValid(value)) {
  2785. set_parkspace_status_target(static_cast< ::message::Parkspace_status >(value));
  2786. } else {
  2787. mutable_unknown_fields()->AddVarint(
  2788. 15, static_cast< ::google::protobuf::uint64>(value));
  2789. }
  2790. } else {
  2791. goto handle_unusual;
  2792. }
  2793. break;
  2794. }
  2795. default: {
  2796. handle_unusual:
  2797. if (tag == 0) {
  2798. goto success;
  2799. }
  2800. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2801. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2802. break;
  2803. }
  2804. }
  2805. }
  2806. success:
  2807. // @@protoc_insertion_point(parse_success:message.Parkspace_info)
  2808. return true;
  2809. failure:
  2810. // @@protoc_insertion_point(parse_failure:message.Parkspace_info)
  2811. return false;
  2812. #undef DO_
  2813. }
  2814. void Parkspace_info::SerializeWithCachedSizes(
  2815. ::google::protobuf::io::CodedOutputStream* output) const {
  2816. // @@protoc_insertion_point(serialize_start:message.Parkspace_info)
  2817. ::google::protobuf::uint32 cached_has_bits = 0;
  2818. (void) cached_has_bits;
  2819. cached_has_bits = _has_bits_[0];
  2820. // optional int32 parkspace_id = 1 [default = 0];
  2821. if (cached_has_bits & 0x00000008u) {
  2822. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parkspace_id(), output);
  2823. }
  2824. // optional int32 index = 2 [default = 0];
  2825. if (cached_has_bits & 0x00000010u) {
  2826. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index(), output);
  2827. }
  2828. // optional .message.Direction direction = 3 [default = eDirection_unknow];
  2829. if (cached_has_bits & 0x00000020u) {
  2830. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2831. 3, this->direction(), output);
  2832. }
  2833. // optional int32 floor = 4 [default = 0];
  2834. if (cached_has_bits & 0x00000040u) {
  2835. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->floor(), output);
  2836. }
  2837. // optional float length = 5 [default = 0];
  2838. if (cached_has_bits & 0x00000080u) {
  2839. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->length(), output);
  2840. }
  2841. // optional float width = 6 [default = 0];
  2842. if (cached_has_bits & 0x00000100u) {
  2843. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->width(), output);
  2844. }
  2845. // optional float height = 7 [default = 0];
  2846. if (cached_has_bits & 0x00000200u) {
  2847. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->height(), output);
  2848. }
  2849. // optional .message.Parkspace_status parkspace_status = 8 [default = eParkspace_status_unknow];
  2850. if (cached_has_bits & 0x00000400u) {
  2851. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2852. 8, this->parkspace_status(), output);
  2853. }
  2854. // optional .message.Car_info car_info = 9;
  2855. if (cached_has_bits & 0x00000004u) {
  2856. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2857. 9, *this->car_info_, output);
  2858. }
  2859. // optional string entry_time = 10 [default = ""];
  2860. if (cached_has_bits & 0x00000001u) {
  2861. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2862. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  2863. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2864. "message.Parkspace_info.entry_time");
  2865. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2866. 10, this->entry_time(), output);
  2867. }
  2868. // optional string leave_time = 11 [default = ""];
  2869. if (cached_has_bits & 0x00000002u) {
  2870. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2871. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  2872. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2873. "message.Parkspace_info.leave_time");
  2874. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2875. 11, this->leave_time(), output);
  2876. }
  2877. // optional int32 block_id = 12 [default = 0];
  2878. if (cached_has_bits & 0x00000800u) {
  2879. ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->block_id(), output);
  2880. }
  2881. // optional .message.Parkspace_path parkspace_path = 13 [default = UNKNOW_PATH];
  2882. if (cached_has_bits & 0x00001000u) {
  2883. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2884. 13, this->parkspace_path(), output);
  2885. }
  2886. // optional float path_estimate_time = 14 [default = 0];
  2887. if (cached_has_bits & 0x00002000u) {
  2888. ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->path_estimate_time(), output);
  2889. }
  2890. // optional .message.Parkspace_status parkspace_status_target = 15 [default = eParkspace_status_unknow];
  2891. if (cached_has_bits & 0x00004000u) {
  2892. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2893. 15, this->parkspace_status_target(), output);
  2894. }
  2895. if (_internal_metadata_.have_unknown_fields()) {
  2896. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2897. _internal_metadata_.unknown_fields(), output);
  2898. }
  2899. // @@protoc_insertion_point(serialize_end:message.Parkspace_info)
  2900. }
  2901. ::google::protobuf::uint8* Parkspace_info::InternalSerializeWithCachedSizesToArray(
  2902. bool deterministic, ::google::protobuf::uint8* target) const {
  2903. (void)deterministic; // Unused
  2904. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_info)
  2905. ::google::protobuf::uint32 cached_has_bits = 0;
  2906. (void) cached_has_bits;
  2907. cached_has_bits = _has_bits_[0];
  2908. // optional int32 parkspace_id = 1 [default = 0];
  2909. if (cached_has_bits & 0x00000008u) {
  2910. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parkspace_id(), target);
  2911. }
  2912. // optional int32 index = 2 [default = 0];
  2913. if (cached_has_bits & 0x00000010u) {
  2914. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index(), target);
  2915. }
  2916. // optional .message.Direction direction = 3 [default = eDirection_unknow];
  2917. if (cached_has_bits & 0x00000020u) {
  2918. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2919. 3, this->direction(), target);
  2920. }
  2921. // optional int32 floor = 4 [default = 0];
  2922. if (cached_has_bits & 0x00000040u) {
  2923. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->floor(), target);
  2924. }
  2925. // optional float length = 5 [default = 0];
  2926. if (cached_has_bits & 0x00000080u) {
  2927. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->length(), target);
  2928. }
  2929. // optional float width = 6 [default = 0];
  2930. if (cached_has_bits & 0x00000100u) {
  2931. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->width(), target);
  2932. }
  2933. // optional float height = 7 [default = 0];
  2934. if (cached_has_bits & 0x00000200u) {
  2935. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->height(), target);
  2936. }
  2937. // optional .message.Parkspace_status parkspace_status = 8 [default = eParkspace_status_unknow];
  2938. if (cached_has_bits & 0x00000400u) {
  2939. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2940. 8, this->parkspace_status(), target);
  2941. }
  2942. // optional .message.Car_info car_info = 9;
  2943. if (cached_has_bits & 0x00000004u) {
  2944. target = ::google::protobuf::internal::WireFormatLite::
  2945. InternalWriteMessageToArray(
  2946. 9, *this->car_info_, deterministic, target);
  2947. }
  2948. // optional string entry_time = 10 [default = ""];
  2949. if (cached_has_bits & 0x00000001u) {
  2950. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2951. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  2952. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2953. "message.Parkspace_info.entry_time");
  2954. target =
  2955. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2956. 10, this->entry_time(), target);
  2957. }
  2958. // optional string leave_time = 11 [default = ""];
  2959. if (cached_has_bits & 0x00000002u) {
  2960. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2961. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  2962. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2963. "message.Parkspace_info.leave_time");
  2964. target =
  2965. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2966. 11, this->leave_time(), target);
  2967. }
  2968. // optional int32 block_id = 12 [default = 0];
  2969. if (cached_has_bits & 0x00000800u) {
  2970. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->block_id(), target);
  2971. }
  2972. // optional .message.Parkspace_path parkspace_path = 13 [default = UNKNOW_PATH];
  2973. if (cached_has_bits & 0x00001000u) {
  2974. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2975. 13, this->parkspace_path(), target);
  2976. }
  2977. // optional float path_estimate_time = 14 [default = 0];
  2978. if (cached_has_bits & 0x00002000u) {
  2979. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->path_estimate_time(), target);
  2980. }
  2981. // optional .message.Parkspace_status parkspace_status_target = 15 [default = eParkspace_status_unknow];
  2982. if (cached_has_bits & 0x00004000u) {
  2983. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2984. 15, this->parkspace_status_target(), target);
  2985. }
  2986. if (_internal_metadata_.have_unknown_fields()) {
  2987. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2988. _internal_metadata_.unknown_fields(), target);
  2989. }
  2990. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_info)
  2991. return target;
  2992. }
  2993. size_t Parkspace_info::ByteSizeLong() const {
  2994. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_info)
  2995. size_t total_size = 0;
  2996. if (_internal_metadata_.have_unknown_fields()) {
  2997. total_size +=
  2998. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2999. _internal_metadata_.unknown_fields());
  3000. }
  3001. if (_has_bits_[0 / 32] & 255u) {
  3002. // optional string entry_time = 10 [default = ""];
  3003. if (has_entry_time()) {
  3004. total_size += 1 +
  3005. ::google::protobuf::internal::WireFormatLite::StringSize(
  3006. this->entry_time());
  3007. }
  3008. // optional string leave_time = 11 [default = ""];
  3009. if (has_leave_time()) {
  3010. total_size += 1 +
  3011. ::google::protobuf::internal::WireFormatLite::StringSize(
  3012. this->leave_time());
  3013. }
  3014. // optional .message.Car_info car_info = 9;
  3015. if (has_car_info()) {
  3016. total_size += 1 +
  3017. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3018. *this->car_info_);
  3019. }
  3020. // optional int32 parkspace_id = 1 [default = 0];
  3021. if (has_parkspace_id()) {
  3022. total_size += 1 +
  3023. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3024. this->parkspace_id());
  3025. }
  3026. // optional int32 index = 2 [default = 0];
  3027. if (has_index()) {
  3028. total_size += 1 +
  3029. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3030. this->index());
  3031. }
  3032. // optional .message.Direction direction = 3 [default = eDirection_unknow];
  3033. if (has_direction()) {
  3034. total_size += 1 +
  3035. ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction());
  3036. }
  3037. // optional int32 floor = 4 [default = 0];
  3038. if (has_floor()) {
  3039. total_size += 1 +
  3040. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3041. this->floor());
  3042. }
  3043. // optional float length = 5 [default = 0];
  3044. if (has_length()) {
  3045. total_size += 1 + 4;
  3046. }
  3047. }
  3048. if (_has_bits_[8 / 32] & 32512u) {
  3049. // optional float width = 6 [default = 0];
  3050. if (has_width()) {
  3051. total_size += 1 + 4;
  3052. }
  3053. // optional float height = 7 [default = 0];
  3054. if (has_height()) {
  3055. total_size += 1 + 4;
  3056. }
  3057. // optional .message.Parkspace_status parkspace_status = 8 [default = eParkspace_status_unknow];
  3058. if (has_parkspace_status()) {
  3059. total_size += 1 +
  3060. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status());
  3061. }
  3062. // optional int32 block_id = 12 [default = 0];
  3063. if (has_block_id()) {
  3064. total_size += 1 +
  3065. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3066. this->block_id());
  3067. }
  3068. // optional .message.Parkspace_path parkspace_path = 13 [default = UNKNOW_PATH];
  3069. if (has_parkspace_path()) {
  3070. total_size += 1 +
  3071. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_path());
  3072. }
  3073. // optional float path_estimate_time = 14 [default = 0];
  3074. if (has_path_estimate_time()) {
  3075. total_size += 1 + 4;
  3076. }
  3077. // optional .message.Parkspace_status parkspace_status_target = 15 [default = eParkspace_status_unknow];
  3078. if (has_parkspace_status_target()) {
  3079. total_size += 1 +
  3080. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status_target());
  3081. }
  3082. }
  3083. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3084. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3085. _cached_size_ = cached_size;
  3086. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3087. return total_size;
  3088. }
  3089. void Parkspace_info::MergeFrom(const ::google::protobuf::Message& from) {
  3090. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_info)
  3091. GOOGLE_DCHECK_NE(&from, this);
  3092. const Parkspace_info* source =
  3093. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_info>(
  3094. &from);
  3095. if (source == NULL) {
  3096. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_info)
  3097. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3098. } else {
  3099. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_info)
  3100. MergeFrom(*source);
  3101. }
  3102. }
  3103. void Parkspace_info::MergeFrom(const Parkspace_info& from) {
  3104. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_info)
  3105. GOOGLE_DCHECK_NE(&from, this);
  3106. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3107. ::google::protobuf::uint32 cached_has_bits = 0;
  3108. (void) cached_has_bits;
  3109. cached_has_bits = from._has_bits_[0];
  3110. if (cached_has_bits & 255u) {
  3111. if (cached_has_bits & 0x00000001u) {
  3112. set_has_entry_time();
  3113. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  3114. }
  3115. if (cached_has_bits & 0x00000002u) {
  3116. set_has_leave_time();
  3117. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  3118. }
  3119. if (cached_has_bits & 0x00000004u) {
  3120. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  3121. }
  3122. if (cached_has_bits & 0x00000008u) {
  3123. parkspace_id_ = from.parkspace_id_;
  3124. }
  3125. if (cached_has_bits & 0x00000010u) {
  3126. index_ = from.index_;
  3127. }
  3128. if (cached_has_bits & 0x00000020u) {
  3129. direction_ = from.direction_;
  3130. }
  3131. if (cached_has_bits & 0x00000040u) {
  3132. floor_ = from.floor_;
  3133. }
  3134. if (cached_has_bits & 0x00000080u) {
  3135. length_ = from.length_;
  3136. }
  3137. _has_bits_[0] |= cached_has_bits;
  3138. }
  3139. if (cached_has_bits & 32512u) {
  3140. if (cached_has_bits & 0x00000100u) {
  3141. width_ = from.width_;
  3142. }
  3143. if (cached_has_bits & 0x00000200u) {
  3144. height_ = from.height_;
  3145. }
  3146. if (cached_has_bits & 0x00000400u) {
  3147. parkspace_status_ = from.parkspace_status_;
  3148. }
  3149. if (cached_has_bits & 0x00000800u) {
  3150. block_id_ = from.block_id_;
  3151. }
  3152. if (cached_has_bits & 0x00001000u) {
  3153. parkspace_path_ = from.parkspace_path_;
  3154. }
  3155. if (cached_has_bits & 0x00002000u) {
  3156. path_estimate_time_ = from.path_estimate_time_;
  3157. }
  3158. if (cached_has_bits & 0x00004000u) {
  3159. parkspace_status_target_ = from.parkspace_status_target_;
  3160. }
  3161. _has_bits_[0] |= cached_has_bits;
  3162. }
  3163. }
  3164. void Parkspace_info::CopyFrom(const ::google::protobuf::Message& from) {
  3165. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_info)
  3166. if (&from == this) return;
  3167. Clear();
  3168. MergeFrom(from);
  3169. }
  3170. void Parkspace_info::CopyFrom(const Parkspace_info& from) {
  3171. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_info)
  3172. if (&from == this) return;
  3173. Clear();
  3174. MergeFrom(from);
  3175. }
  3176. bool Parkspace_info::IsInitialized() const {
  3177. return true;
  3178. }
  3179. void Parkspace_info::Swap(Parkspace_info* other) {
  3180. if (other == this) return;
  3181. InternalSwap(other);
  3182. }
  3183. void Parkspace_info::InternalSwap(Parkspace_info* other) {
  3184. using std::swap;
  3185. entry_time_.Swap(&other->entry_time_);
  3186. leave_time_.Swap(&other->leave_time_);
  3187. swap(car_info_, other->car_info_);
  3188. swap(parkspace_id_, other->parkspace_id_);
  3189. swap(index_, other->index_);
  3190. swap(direction_, other->direction_);
  3191. swap(floor_, other->floor_);
  3192. swap(length_, other->length_);
  3193. swap(width_, other->width_);
  3194. swap(height_, other->height_);
  3195. swap(parkspace_status_, other->parkspace_status_);
  3196. swap(block_id_, other->block_id_);
  3197. swap(parkspace_path_, other->parkspace_path_);
  3198. swap(path_estimate_time_, other->path_estimate_time_);
  3199. swap(parkspace_status_target_, other->parkspace_status_target_);
  3200. swap(_has_bits_[0], other->_has_bits_[0]);
  3201. _internal_metadata_.Swap(&other->_internal_metadata_);
  3202. swap(_cached_size_, other->_cached_size_);
  3203. }
  3204. ::google::protobuf::Metadata Parkspace_info::GetMetadata() const {
  3205. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  3206. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  3207. }
  3208. // @@protoc_insertion_point(namespace_scope)
  3209. } // namespace message
  3210. // @@protoc_insertion_point(global_scope)