message_base.pb.cc 127 KB

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