message_base.pb.cc 129 KB

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