message_base.pb.cc 112 KB

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