message_base.pb.cc 114 KB

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