message_base.pb.cc 139 KB

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