message_base.pb.cc 115 KB

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