message_base.pb.cc 110 KB

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