message_base.pb.cc 134 KB

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