message_base.pb.cc 110 KB

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