message_base.pb.cc 114 KB

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