parkspace_allocation_message.pb.cc 128 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: parkspace_allocation_message.proto
  3. #include "parkspace_allocation_message.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 Parkspace_allocation_request_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_request_msg>
  23. _instance;
  24. } _Parkspace_allocation_request_msg_default_instance_;
  25. class Parkspace_allocation_response_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_response_msg>
  28. _instance;
  29. } _Parkspace_allocation_response_msg_default_instance_;
  30. class Parkspace_search_request_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_search_request_msg>
  33. _instance;
  34. } _Parkspace_search_request_msg_default_instance_;
  35. class Parkspace_search_response_msgDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_search_response_msg>
  38. _instance;
  39. } _Parkspace_search_response_msg_default_instance_;
  40. class Parkspace_release_request_msgDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_release_request_msg>
  43. _instance;
  44. } _Parkspace_release_request_msg_default_instance_;
  45. class Parkspace_release_response_msgDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_release_response_msg>
  48. _instance;
  49. } _Parkspace_release_response_msg_default_instance_;
  50. class Parkspace_allocation_status_msgDefaultTypeInternal {
  51. public:
  52. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_status_msg>
  53. _instance;
  54. } _Parkspace_allocation_status_msg_default_instance_;
  55. } // namespace message
  56. namespace protobuf_parkspace_5fallocation_5fmessage_2eproto {
  57. void InitDefaultsParkspace_allocation_request_msgImpl() {
  58. GOOGLE_PROTOBUF_VERIFY_VERSION;
  59. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  60. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  61. #else
  62. ::google::protobuf::internal::InitProtobufDefaults();
  63. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  64. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  65. protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  66. {
  67. void* ptr = &::message::_Parkspace_allocation_request_msg_default_instance_;
  68. new (ptr) ::message::Parkspace_allocation_request_msg();
  69. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  70. }
  71. ::message::Parkspace_allocation_request_msg::InitAsDefaultInstance();
  72. }
  73. void InitDefaultsParkspace_allocation_request_msg() {
  74. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  75. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_request_msgImpl);
  76. }
  77. void InitDefaultsParkspace_allocation_response_msgImpl() {
  78. GOOGLE_PROTOBUF_VERIFY_VERSION;
  79. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  80. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  81. #else
  82. ::google::protobuf::internal::InitProtobufDefaults();
  83. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  84. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  85. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  86. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  87. {
  88. void* ptr = &::message::_Parkspace_allocation_response_msg_default_instance_;
  89. new (ptr) ::message::Parkspace_allocation_response_msg();
  90. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  91. }
  92. ::message::Parkspace_allocation_response_msg::InitAsDefaultInstance();
  93. }
  94. void InitDefaultsParkspace_allocation_response_msg() {
  95. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  96. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_response_msgImpl);
  97. }
  98. void InitDefaultsParkspace_search_request_msgImpl() {
  99. GOOGLE_PROTOBUF_VERIFY_VERSION;
  100. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  101. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  102. #else
  103. ::google::protobuf::internal::InitProtobufDefaults();
  104. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  105. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  106. protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  107. {
  108. void* ptr = &::message::_Parkspace_search_request_msg_default_instance_;
  109. new (ptr) ::message::Parkspace_search_request_msg();
  110. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  111. }
  112. ::message::Parkspace_search_request_msg::InitAsDefaultInstance();
  113. }
  114. void InitDefaultsParkspace_search_request_msg() {
  115. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  116. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_request_msgImpl);
  117. }
  118. void InitDefaultsParkspace_search_response_msgImpl() {
  119. GOOGLE_PROTOBUF_VERIFY_VERSION;
  120. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  121. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  122. #else
  123. ::google::protobuf::internal::InitProtobufDefaults();
  124. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  125. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  126. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  127. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  128. {
  129. void* ptr = &::message::_Parkspace_search_response_msg_default_instance_;
  130. new (ptr) ::message::Parkspace_search_response_msg();
  131. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  132. }
  133. ::message::Parkspace_search_response_msg::InitAsDefaultInstance();
  134. }
  135. void InitDefaultsParkspace_search_response_msg() {
  136. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  137. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_response_msgImpl);
  138. }
  139. void InitDefaultsParkspace_release_request_msgImpl() {
  140. GOOGLE_PROTOBUF_VERIFY_VERSION;
  141. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  142. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  143. #else
  144. ::google::protobuf::internal::InitProtobufDefaults();
  145. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  146. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  147. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  148. {
  149. void* ptr = &::message::_Parkspace_release_request_msg_default_instance_;
  150. new (ptr) ::message::Parkspace_release_request_msg();
  151. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  152. }
  153. ::message::Parkspace_release_request_msg::InitAsDefaultInstance();
  154. }
  155. void InitDefaultsParkspace_release_request_msg() {
  156. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  157. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_request_msgImpl);
  158. }
  159. void InitDefaultsParkspace_release_response_msgImpl() {
  160. GOOGLE_PROTOBUF_VERIFY_VERSION;
  161. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  162. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  163. #else
  164. ::google::protobuf::internal::InitProtobufDefaults();
  165. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  166. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  167. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  168. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  169. {
  170. void* ptr = &::message::_Parkspace_release_response_msg_default_instance_;
  171. new (ptr) ::message::Parkspace_release_response_msg();
  172. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  173. }
  174. ::message::Parkspace_release_response_msg::InitAsDefaultInstance();
  175. }
  176. void InitDefaultsParkspace_release_response_msg() {
  177. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  178. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_response_msgImpl);
  179. }
  180. void InitDefaultsParkspace_allocation_status_msgImpl() {
  181. GOOGLE_PROTOBUF_VERIFY_VERSION;
  182. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  183. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  184. #else
  185. ::google::protobuf::internal::InitProtobufDefaults();
  186. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  187. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  188. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  189. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  190. {
  191. void* ptr = &::message::_Parkspace_allocation_status_msg_default_instance_;
  192. new (ptr) ::message::Parkspace_allocation_status_msg();
  193. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  194. }
  195. ::message::Parkspace_allocation_status_msg::InitAsDefaultInstance();
  196. }
  197. void InitDefaultsParkspace_allocation_status_msg() {
  198. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  199. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_status_msgImpl);
  200. }
  201. ::google::protobuf::Metadata file_level_metadata[7];
  202. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _has_bits_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _internal_metadata_),
  205. ~0u, // no _extensions_
  206. ~0u, // no _oneof_case_
  207. ~0u, // no _weak_field_map_
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, base_info_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, command_id_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_info_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, terminal_id_),
  212. 0,
  213. 2,
  214. 1,
  215. 3,
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_),
  218. ~0u, // no _extensions_
  219. ~0u, // no _oneof_case_
  220. ~0u, // no _weak_field_map_
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, base_info_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, command_id_),
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_space_info_),
  225. 0,
  226. 3,
  227. 1,
  228. 2,
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _has_bits_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _internal_metadata_),
  231. ~0u, // no _extensions_
  232. ~0u, // no _oneof_case_
  233. ~0u, // no _weak_field_map_
  234. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, base_info_),
  235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, command_id_),
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, car_info_),
  237. 0,
  238. 2,
  239. 1,
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _has_bits_),
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _internal_metadata_),
  242. ~0u, // no _extensions_
  243. ~0u, // no _oneof_case_
  244. ~0u, // no _weak_field_map_
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, base_info_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, command_id_),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, error_manager_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, car_position_),
  249. 0,
  250. 3,
  251. 1,
  252. 2,
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _has_bits_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _internal_metadata_),
  255. ~0u, // no _extensions_
  256. ~0u, // no _oneof_case_
  257. ~0u, // no _weak_field_map_
  258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, base_info_),
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, command_id_),
  260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, release_space_info_),
  261. 0,
  262. 2,
  263. 1,
  264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _has_bits_),
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _internal_metadata_),
  266. ~0u, // no _extensions_
  267. ~0u, // no _oneof_case_
  268. ~0u, // no _weak_field_map_
  269. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, base_info_),
  270. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, command_id_),
  271. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, error_manager_),
  272. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, release_space_info_),
  273. 0,
  274. 3,
  275. 1,
  276. 2,
  277. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _has_bits_),
  278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _internal_metadata_),
  279. ~0u, // no _extensions_
  280. ~0u, // no _oneof_case_
  281. ~0u, // no _weak_field_map_
  282. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, base_info_),
  283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, error_manager_),
  284. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, parkspace_info_),
  285. 0,
  286. 1,
  287. ~0u,
  288. };
  289. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  290. { 0, 9, sizeof(::message::Parkspace_allocation_request_msg)},
  291. { 13, 22, sizeof(::message::Parkspace_allocation_response_msg)},
  292. { 26, 34, sizeof(::message::Parkspace_search_request_msg)},
  293. { 37, 46, sizeof(::message::Parkspace_search_response_msg)},
  294. { 50, 58, sizeof(::message::Parkspace_release_request_msg)},
  295. { 61, 70, sizeof(::message::Parkspace_release_response_msg)},
  296. { 74, 82, sizeof(::message::Parkspace_allocation_status_msg)},
  297. };
  298. static ::google::protobuf::Message const * const file_default_instances[] = {
  299. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_request_msg_default_instance_),
  300. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_response_msg_default_instance_),
  301. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_search_request_msg_default_instance_),
  302. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_search_response_msg_default_instance_),
  303. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_release_request_msg_default_instance_),
  304. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_release_response_msg_default_instance_),
  305. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_status_msg_default_instance_),
  306. };
  307. void protobuf_AssignDescriptors() {
  308. AddDescriptors();
  309. ::google::protobuf::MessageFactory* factory = NULL;
  310. AssignDescriptors(
  311. "parkspace_allocation_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  312. file_level_metadata, NULL, NULL);
  313. }
  314. void protobuf_AssignDescriptorsOnce() {
  315. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  316. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  317. }
  318. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  319. void protobuf_RegisterTypes(const ::std::string&) {
  320. protobuf_AssignDescriptorsOnce();
  321. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
  322. }
  323. void AddDescriptorsImpl() {
  324. InitDefaults();
  325. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  326. "\n\"parkspace_allocation_message.proto\022\007me"
  327. "ssage\032\022message_base.proto\"\227\001\n Parkspace_"
  328. "allocation_request_msg\022%\n\tbase_info\030\001 \002("
  329. "\0132\022.message.Base_info\022\022\n\ncommand_id\030\002 \002("
  330. "\005\022#\n\010car_info\030\003 \002(\0132\021.message.Car_info\022\023"
  331. "\n\013terminal_id\030\004 \002(\005\"\304\001\n!Parkspace_alloca"
  332. "tion_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.m"
  333. "essage.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022-\n\r"
  334. "error_manager\030\003 \002(\0132\026.message.Error_mana"
  335. "ger\0225\n\024allocated_space_info\030\004 \002(\0132\027.mess"
  336. "age.Parkspace_info\"~\n\034Parkspace_search_r"
  337. "equest_msg\022%\n\tbase_info\030\001 \002(\0132\022.message."
  338. "Base_info\022\022\n\ncommand_id\030\002 \002(\005\022#\n\010car_inf"
  339. "o\030\003 \002(\0132\021.message.Car_info\"\270\001\n\035Parkspace"
  340. "_search_response_msg\022%\n\tbase_info\030\001 \002(\0132"
  341. "\022.message.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022"
  342. "-\n\rerror_manager\030\003 \002(\0132\026.message.Error_m"
  343. "anager\022-\n\014car_position\030\004 \001(\0132\027.message.P"
  344. "arkspace_info\"\217\001\n\035Parkspace_release_requ"
  345. "est_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Bas"
  346. "e_info\022\022\n\ncommand_id\030\002 \002(\005\0223\n\022release_sp"
  347. "ace_info\030\003 \002(\0132\027.message.Parkspace_info\""
  348. "\277\001\n\036Parkspace_release_response_msg\022%\n\tba"
  349. "se_info\030\001 \002(\0132\022.message.Base_info\022\022\n\ncom"
  350. "mand_id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026.m"
  351. "essage.Error_manager\0223\n\022release_space_in"
  352. "fo\030\004 \002(\0132\027.message.Parkspace_info\"\250\001\n\037Pa"
  353. "rkspace_allocation_status_msg\022%\n\tbase_in"
  354. "fo\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_ma"
  355. "nager\030\002 \002(\0132\026.message.Error_manager\022/\n\016p"
  356. "arkspace_info\030\003 \003(\0132\027.message.Parkspace_"
  357. "info"
  358. };
  359. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  360. descriptor, 1244);
  361. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  362. "parkspace_allocation_message.proto", &protobuf_RegisterTypes);
  363. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  364. }
  365. void AddDescriptors() {
  366. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  367. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  368. }
  369. // Force AddDescriptors() to be called at dynamic initialization time.
  370. struct StaticDescriptorInitializer {
  371. StaticDescriptorInitializer() {
  372. AddDescriptors();
  373. }
  374. } static_descriptor_initializer;
  375. } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto
  376. namespace message {
  377. // ===================================================================
  378. void Parkspace_allocation_request_msg::InitAsDefaultInstance() {
  379. ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  380. ::message::Base_info::internal_default_instance());
  381. ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  382. ::message::Car_info::internal_default_instance());
  383. }
  384. void Parkspace_allocation_request_msg::clear_base_info() {
  385. if (base_info_ != NULL) base_info_->Clear();
  386. clear_has_base_info();
  387. }
  388. void Parkspace_allocation_request_msg::clear_car_info() {
  389. if (car_info_ != NULL) car_info_->Clear();
  390. clear_has_car_info();
  391. }
  392. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  393. const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber;
  394. const int Parkspace_allocation_request_msg::kCommandIdFieldNumber;
  395. const int Parkspace_allocation_request_msg::kCarInfoFieldNumber;
  396. const int Parkspace_allocation_request_msg::kTerminalIdFieldNumber;
  397. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  398. Parkspace_allocation_request_msg::Parkspace_allocation_request_msg()
  399. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  400. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  401. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg();
  402. }
  403. SharedCtor();
  404. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_request_msg)
  405. }
  406. Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspace_allocation_request_msg& from)
  407. : ::google::protobuf::Message(),
  408. _internal_metadata_(NULL),
  409. _has_bits_(from._has_bits_),
  410. _cached_size_(0) {
  411. _internal_metadata_.MergeFrom(from._internal_metadata_);
  412. if (from.has_base_info()) {
  413. base_info_ = new ::message::Base_info(*from.base_info_);
  414. } else {
  415. base_info_ = NULL;
  416. }
  417. if (from.has_car_info()) {
  418. car_info_ = new ::message::Car_info(*from.car_info_);
  419. } else {
  420. car_info_ = NULL;
  421. }
  422. ::memcpy(&command_id_, &from.command_id_,
  423. static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
  424. reinterpret_cast<char*>(&command_id_)) + sizeof(terminal_id_));
  425. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg)
  426. }
  427. void Parkspace_allocation_request_msg::SharedCtor() {
  428. _cached_size_ = 0;
  429. ::memset(&base_info_, 0, static_cast<size_t>(
  430. reinterpret_cast<char*>(&terminal_id_) -
  431. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  432. }
  433. Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() {
  434. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_request_msg)
  435. SharedDtor();
  436. }
  437. void Parkspace_allocation_request_msg::SharedDtor() {
  438. if (this != internal_default_instance()) delete base_info_;
  439. if (this != internal_default_instance()) delete car_info_;
  440. }
  441. void Parkspace_allocation_request_msg::SetCachedSize(int size) const {
  442. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  443. _cached_size_ = size;
  444. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  445. }
  446. const ::google::protobuf::Descriptor* Parkspace_allocation_request_msg::descriptor() {
  447. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  448. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  449. }
  450. const Parkspace_allocation_request_msg& Parkspace_allocation_request_msg::default_instance() {
  451. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg();
  452. return *internal_default_instance();
  453. }
  454. Parkspace_allocation_request_msg* Parkspace_allocation_request_msg::New(::google::protobuf::Arena* arena) const {
  455. Parkspace_allocation_request_msg* n = new Parkspace_allocation_request_msg;
  456. if (arena != NULL) {
  457. arena->Own(n);
  458. }
  459. return n;
  460. }
  461. void Parkspace_allocation_request_msg::Clear() {
  462. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_request_msg)
  463. ::google::protobuf::uint32 cached_has_bits = 0;
  464. // Prevent compiler warnings about cached_has_bits being unused
  465. (void) cached_has_bits;
  466. cached_has_bits = _has_bits_[0];
  467. if (cached_has_bits & 3u) {
  468. if (cached_has_bits & 0x00000001u) {
  469. GOOGLE_DCHECK(base_info_ != NULL);
  470. base_info_->Clear();
  471. }
  472. if (cached_has_bits & 0x00000002u) {
  473. GOOGLE_DCHECK(car_info_ != NULL);
  474. car_info_->Clear();
  475. }
  476. }
  477. if (cached_has_bits & 12u) {
  478. ::memset(&command_id_, 0, static_cast<size_t>(
  479. reinterpret_cast<char*>(&terminal_id_) -
  480. reinterpret_cast<char*>(&command_id_)) + sizeof(terminal_id_));
  481. }
  482. _has_bits_.Clear();
  483. _internal_metadata_.Clear();
  484. }
  485. bool Parkspace_allocation_request_msg::MergePartialFromCodedStream(
  486. ::google::protobuf::io::CodedInputStream* input) {
  487. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  488. ::google::protobuf::uint32 tag;
  489. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_request_msg)
  490. for (;;) {
  491. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  492. tag = p.first;
  493. if (!p.second) goto handle_unusual;
  494. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  495. // required .message.Base_info base_info = 1;
  496. case 1: {
  497. if (static_cast< ::google::protobuf::uint8>(tag) ==
  498. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  499. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  500. input, mutable_base_info()));
  501. } else {
  502. goto handle_unusual;
  503. }
  504. break;
  505. }
  506. // required int32 command_id = 2;
  507. case 2: {
  508. if (static_cast< ::google::protobuf::uint8>(tag) ==
  509. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  510. set_has_command_id();
  511. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  512. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  513. input, &command_id_)));
  514. } else {
  515. goto handle_unusual;
  516. }
  517. break;
  518. }
  519. // required .message.Car_info car_info = 3;
  520. case 3: {
  521. if (static_cast< ::google::protobuf::uint8>(tag) ==
  522. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  523. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  524. input, mutable_car_info()));
  525. } else {
  526. goto handle_unusual;
  527. }
  528. break;
  529. }
  530. // required int32 terminal_id = 4;
  531. case 4: {
  532. if (static_cast< ::google::protobuf::uint8>(tag) ==
  533. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  534. set_has_terminal_id();
  535. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  536. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  537. input, &terminal_id_)));
  538. } else {
  539. goto handle_unusual;
  540. }
  541. break;
  542. }
  543. default: {
  544. handle_unusual:
  545. if (tag == 0) {
  546. goto success;
  547. }
  548. DO_(::google::protobuf::internal::WireFormat::SkipField(
  549. input, tag, _internal_metadata_.mutable_unknown_fields()));
  550. break;
  551. }
  552. }
  553. }
  554. success:
  555. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_request_msg)
  556. return true;
  557. failure:
  558. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_request_msg)
  559. return false;
  560. #undef DO_
  561. }
  562. void Parkspace_allocation_request_msg::SerializeWithCachedSizes(
  563. ::google::protobuf::io::CodedOutputStream* output) const {
  564. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_request_msg)
  565. ::google::protobuf::uint32 cached_has_bits = 0;
  566. (void) cached_has_bits;
  567. cached_has_bits = _has_bits_[0];
  568. // required .message.Base_info base_info = 1;
  569. if (cached_has_bits & 0x00000001u) {
  570. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  571. 1, *this->base_info_, output);
  572. }
  573. // required int32 command_id = 2;
  574. if (cached_has_bits & 0x00000004u) {
  575. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  576. }
  577. // required .message.Car_info car_info = 3;
  578. if (cached_has_bits & 0x00000002u) {
  579. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  580. 3, *this->car_info_, output);
  581. }
  582. // required int32 terminal_id = 4;
  583. if (cached_has_bits & 0x00000008u) {
  584. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output);
  585. }
  586. if (_internal_metadata_.have_unknown_fields()) {
  587. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  588. _internal_metadata_.unknown_fields(), output);
  589. }
  590. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_request_msg)
  591. }
  592. ::google::protobuf::uint8* Parkspace_allocation_request_msg::InternalSerializeWithCachedSizesToArray(
  593. bool deterministic, ::google::protobuf::uint8* target) const {
  594. (void)deterministic; // Unused
  595. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_request_msg)
  596. ::google::protobuf::uint32 cached_has_bits = 0;
  597. (void) cached_has_bits;
  598. cached_has_bits = _has_bits_[0];
  599. // required .message.Base_info base_info = 1;
  600. if (cached_has_bits & 0x00000001u) {
  601. target = ::google::protobuf::internal::WireFormatLite::
  602. InternalWriteMessageToArray(
  603. 1, *this->base_info_, deterministic, target);
  604. }
  605. // required int32 command_id = 2;
  606. if (cached_has_bits & 0x00000004u) {
  607. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  608. }
  609. // required .message.Car_info car_info = 3;
  610. if (cached_has_bits & 0x00000002u) {
  611. target = ::google::protobuf::internal::WireFormatLite::
  612. InternalWriteMessageToArray(
  613. 3, *this->car_info_, deterministic, target);
  614. }
  615. // required int32 terminal_id = 4;
  616. if (cached_has_bits & 0x00000008u) {
  617. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), target);
  618. }
  619. if (_internal_metadata_.have_unknown_fields()) {
  620. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  621. _internal_metadata_.unknown_fields(), target);
  622. }
  623. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_request_msg)
  624. return target;
  625. }
  626. size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const {
  627. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_request_msg)
  628. size_t total_size = 0;
  629. if (has_base_info()) {
  630. // required .message.Base_info base_info = 1;
  631. total_size += 1 +
  632. ::google::protobuf::internal::WireFormatLite::MessageSize(
  633. *this->base_info_);
  634. }
  635. if (has_car_info()) {
  636. // required .message.Car_info car_info = 3;
  637. total_size += 1 +
  638. ::google::protobuf::internal::WireFormatLite::MessageSize(
  639. *this->car_info_);
  640. }
  641. if (has_command_id()) {
  642. // required int32 command_id = 2;
  643. total_size += 1 +
  644. ::google::protobuf::internal::WireFormatLite::Int32Size(
  645. this->command_id());
  646. }
  647. if (has_terminal_id()) {
  648. // required int32 terminal_id = 4;
  649. total_size += 1 +
  650. ::google::protobuf::internal::WireFormatLite::Int32Size(
  651. this->terminal_id());
  652. }
  653. return total_size;
  654. }
  655. size_t Parkspace_allocation_request_msg::ByteSizeLong() const {
  656. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_request_msg)
  657. size_t total_size = 0;
  658. if (_internal_metadata_.have_unknown_fields()) {
  659. total_size +=
  660. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  661. _internal_metadata_.unknown_fields());
  662. }
  663. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  664. // required .message.Base_info base_info = 1;
  665. total_size += 1 +
  666. ::google::protobuf::internal::WireFormatLite::MessageSize(
  667. *this->base_info_);
  668. // required .message.Car_info car_info = 3;
  669. total_size += 1 +
  670. ::google::protobuf::internal::WireFormatLite::MessageSize(
  671. *this->car_info_);
  672. // required int32 command_id = 2;
  673. total_size += 1 +
  674. ::google::protobuf::internal::WireFormatLite::Int32Size(
  675. this->command_id());
  676. // required int32 terminal_id = 4;
  677. total_size += 1 +
  678. ::google::protobuf::internal::WireFormatLite::Int32Size(
  679. this->terminal_id());
  680. } else {
  681. total_size += RequiredFieldsByteSizeFallback();
  682. }
  683. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  684. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  685. _cached_size_ = cached_size;
  686. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  687. return total_size;
  688. }
  689. void Parkspace_allocation_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  690. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_request_msg)
  691. GOOGLE_DCHECK_NE(&from, this);
  692. const Parkspace_allocation_request_msg* source =
  693. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_request_msg>(
  694. &from);
  695. if (source == NULL) {
  696. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_request_msg)
  697. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  698. } else {
  699. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_request_msg)
  700. MergeFrom(*source);
  701. }
  702. }
  703. void Parkspace_allocation_request_msg::MergeFrom(const Parkspace_allocation_request_msg& from) {
  704. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_request_msg)
  705. GOOGLE_DCHECK_NE(&from, this);
  706. _internal_metadata_.MergeFrom(from._internal_metadata_);
  707. ::google::protobuf::uint32 cached_has_bits = 0;
  708. (void) cached_has_bits;
  709. cached_has_bits = from._has_bits_[0];
  710. if (cached_has_bits & 15u) {
  711. if (cached_has_bits & 0x00000001u) {
  712. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  713. }
  714. if (cached_has_bits & 0x00000002u) {
  715. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  716. }
  717. if (cached_has_bits & 0x00000004u) {
  718. command_id_ = from.command_id_;
  719. }
  720. if (cached_has_bits & 0x00000008u) {
  721. terminal_id_ = from.terminal_id_;
  722. }
  723. _has_bits_[0] |= cached_has_bits;
  724. }
  725. }
  726. void Parkspace_allocation_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  727. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_request_msg)
  728. if (&from == this) return;
  729. Clear();
  730. MergeFrom(from);
  731. }
  732. void Parkspace_allocation_request_msg::CopyFrom(const Parkspace_allocation_request_msg& from) {
  733. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_request_msg)
  734. if (&from == this) return;
  735. Clear();
  736. MergeFrom(from);
  737. }
  738. bool Parkspace_allocation_request_msg::IsInitialized() const {
  739. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  740. if (has_base_info()) {
  741. if (!this->base_info_->IsInitialized()) return false;
  742. }
  743. if (has_car_info()) {
  744. if (!this->car_info_->IsInitialized()) return false;
  745. }
  746. return true;
  747. }
  748. void Parkspace_allocation_request_msg::Swap(Parkspace_allocation_request_msg* other) {
  749. if (other == this) return;
  750. InternalSwap(other);
  751. }
  752. void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request_msg* other) {
  753. using std::swap;
  754. swap(base_info_, other->base_info_);
  755. swap(car_info_, other->car_info_);
  756. swap(command_id_, other->command_id_);
  757. swap(terminal_id_, other->terminal_id_);
  758. swap(_has_bits_[0], other->_has_bits_[0]);
  759. _internal_metadata_.Swap(&other->_internal_metadata_);
  760. swap(_cached_size_, other->_cached_size_);
  761. }
  762. ::google::protobuf::Metadata Parkspace_allocation_request_msg::GetMetadata() const {
  763. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  764. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  765. }
  766. // ===================================================================
  767. void Parkspace_allocation_response_msg::InitAsDefaultInstance() {
  768. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  769. ::message::Base_info::internal_default_instance());
  770. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  771. ::message::Error_manager::internal_default_instance());
  772. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->allocated_space_info_ = const_cast< ::message::Parkspace_info*>(
  773. ::message::Parkspace_info::internal_default_instance());
  774. }
  775. void Parkspace_allocation_response_msg::clear_base_info() {
  776. if (base_info_ != NULL) base_info_->Clear();
  777. clear_has_base_info();
  778. }
  779. void Parkspace_allocation_response_msg::clear_error_manager() {
  780. if (error_manager_ != NULL) error_manager_->Clear();
  781. clear_has_error_manager();
  782. }
  783. void Parkspace_allocation_response_msg::clear_allocated_space_info() {
  784. if (allocated_space_info_ != NULL) allocated_space_info_->Clear();
  785. clear_has_allocated_space_info();
  786. }
  787. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  788. const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber;
  789. const int Parkspace_allocation_response_msg::kCommandIdFieldNumber;
  790. const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber;
  791. const int Parkspace_allocation_response_msg::kAllocatedSpaceInfoFieldNumber;
  792. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  793. Parkspace_allocation_response_msg::Parkspace_allocation_response_msg()
  794. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  795. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  796. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg();
  797. }
  798. SharedCtor();
  799. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_response_msg)
  800. }
  801. Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parkspace_allocation_response_msg& from)
  802. : ::google::protobuf::Message(),
  803. _internal_metadata_(NULL),
  804. _has_bits_(from._has_bits_),
  805. _cached_size_(0) {
  806. _internal_metadata_.MergeFrom(from._internal_metadata_);
  807. if (from.has_base_info()) {
  808. base_info_ = new ::message::Base_info(*from.base_info_);
  809. } else {
  810. base_info_ = NULL;
  811. }
  812. if (from.has_error_manager()) {
  813. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  814. } else {
  815. error_manager_ = NULL;
  816. }
  817. if (from.has_allocated_space_info()) {
  818. allocated_space_info_ = new ::message::Parkspace_info(*from.allocated_space_info_);
  819. } else {
  820. allocated_space_info_ = NULL;
  821. }
  822. command_id_ = from.command_id_;
  823. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg)
  824. }
  825. void Parkspace_allocation_response_msg::SharedCtor() {
  826. _cached_size_ = 0;
  827. ::memset(&base_info_, 0, static_cast<size_t>(
  828. reinterpret_cast<char*>(&command_id_) -
  829. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  830. }
  831. Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() {
  832. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg)
  833. SharedDtor();
  834. }
  835. void Parkspace_allocation_response_msg::SharedDtor() {
  836. if (this != internal_default_instance()) delete base_info_;
  837. if (this != internal_default_instance()) delete error_manager_;
  838. if (this != internal_default_instance()) delete allocated_space_info_;
  839. }
  840. void Parkspace_allocation_response_msg::SetCachedSize(int size) const {
  841. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  842. _cached_size_ = size;
  843. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  844. }
  845. const ::google::protobuf::Descriptor* Parkspace_allocation_response_msg::descriptor() {
  846. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  847. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  848. }
  849. const Parkspace_allocation_response_msg& Parkspace_allocation_response_msg::default_instance() {
  850. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg();
  851. return *internal_default_instance();
  852. }
  853. Parkspace_allocation_response_msg* Parkspace_allocation_response_msg::New(::google::protobuf::Arena* arena) const {
  854. Parkspace_allocation_response_msg* n = new Parkspace_allocation_response_msg;
  855. if (arena != NULL) {
  856. arena->Own(n);
  857. }
  858. return n;
  859. }
  860. void Parkspace_allocation_response_msg::Clear() {
  861. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_response_msg)
  862. ::google::protobuf::uint32 cached_has_bits = 0;
  863. // Prevent compiler warnings about cached_has_bits being unused
  864. (void) cached_has_bits;
  865. cached_has_bits = _has_bits_[0];
  866. if (cached_has_bits & 7u) {
  867. if (cached_has_bits & 0x00000001u) {
  868. GOOGLE_DCHECK(base_info_ != NULL);
  869. base_info_->Clear();
  870. }
  871. if (cached_has_bits & 0x00000002u) {
  872. GOOGLE_DCHECK(error_manager_ != NULL);
  873. error_manager_->Clear();
  874. }
  875. if (cached_has_bits & 0x00000004u) {
  876. GOOGLE_DCHECK(allocated_space_info_ != NULL);
  877. allocated_space_info_->Clear();
  878. }
  879. }
  880. command_id_ = 0;
  881. _has_bits_.Clear();
  882. _internal_metadata_.Clear();
  883. }
  884. bool Parkspace_allocation_response_msg::MergePartialFromCodedStream(
  885. ::google::protobuf::io::CodedInputStream* input) {
  886. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  887. ::google::protobuf::uint32 tag;
  888. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_response_msg)
  889. for (;;) {
  890. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  891. tag = p.first;
  892. if (!p.second) goto handle_unusual;
  893. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  894. // required .message.Base_info base_info = 1;
  895. case 1: {
  896. if (static_cast< ::google::protobuf::uint8>(tag) ==
  897. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  898. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  899. input, mutable_base_info()));
  900. } else {
  901. goto handle_unusual;
  902. }
  903. break;
  904. }
  905. // required int32 command_id = 2;
  906. case 2: {
  907. if (static_cast< ::google::protobuf::uint8>(tag) ==
  908. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  909. set_has_command_id();
  910. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  911. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  912. input, &command_id_)));
  913. } else {
  914. goto handle_unusual;
  915. }
  916. break;
  917. }
  918. // required .message.Error_manager error_manager = 3;
  919. case 3: {
  920. if (static_cast< ::google::protobuf::uint8>(tag) ==
  921. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  922. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  923. input, mutable_error_manager()));
  924. } else {
  925. goto handle_unusual;
  926. }
  927. break;
  928. }
  929. // required .message.Parkspace_info allocated_space_info = 4;
  930. case 4: {
  931. if (static_cast< ::google::protobuf::uint8>(tag) ==
  932. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  933. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  934. input, mutable_allocated_space_info()));
  935. } else {
  936. goto handle_unusual;
  937. }
  938. break;
  939. }
  940. default: {
  941. handle_unusual:
  942. if (tag == 0) {
  943. goto success;
  944. }
  945. DO_(::google::protobuf::internal::WireFormat::SkipField(
  946. input, tag, _internal_metadata_.mutable_unknown_fields()));
  947. break;
  948. }
  949. }
  950. }
  951. success:
  952. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_response_msg)
  953. return true;
  954. failure:
  955. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_response_msg)
  956. return false;
  957. #undef DO_
  958. }
  959. void Parkspace_allocation_response_msg::SerializeWithCachedSizes(
  960. ::google::protobuf::io::CodedOutputStream* output) const {
  961. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_response_msg)
  962. ::google::protobuf::uint32 cached_has_bits = 0;
  963. (void) cached_has_bits;
  964. cached_has_bits = _has_bits_[0];
  965. // required .message.Base_info base_info = 1;
  966. if (cached_has_bits & 0x00000001u) {
  967. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  968. 1, *this->base_info_, output);
  969. }
  970. // required int32 command_id = 2;
  971. if (cached_has_bits & 0x00000008u) {
  972. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  973. }
  974. // required .message.Error_manager error_manager = 3;
  975. if (cached_has_bits & 0x00000002u) {
  976. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  977. 3, *this->error_manager_, output);
  978. }
  979. // required .message.Parkspace_info allocated_space_info = 4;
  980. if (cached_has_bits & 0x00000004u) {
  981. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  982. 4, *this->allocated_space_info_, output);
  983. }
  984. if (_internal_metadata_.have_unknown_fields()) {
  985. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  986. _internal_metadata_.unknown_fields(), output);
  987. }
  988. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_response_msg)
  989. }
  990. ::google::protobuf::uint8* Parkspace_allocation_response_msg::InternalSerializeWithCachedSizesToArray(
  991. bool deterministic, ::google::protobuf::uint8* target) const {
  992. (void)deterministic; // Unused
  993. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_response_msg)
  994. ::google::protobuf::uint32 cached_has_bits = 0;
  995. (void) cached_has_bits;
  996. cached_has_bits = _has_bits_[0];
  997. // required .message.Base_info base_info = 1;
  998. if (cached_has_bits & 0x00000001u) {
  999. target = ::google::protobuf::internal::WireFormatLite::
  1000. InternalWriteMessageToArray(
  1001. 1, *this->base_info_, deterministic, target);
  1002. }
  1003. // required int32 command_id = 2;
  1004. if (cached_has_bits & 0x00000008u) {
  1005. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1006. }
  1007. // required .message.Error_manager error_manager = 3;
  1008. if (cached_has_bits & 0x00000002u) {
  1009. target = ::google::protobuf::internal::WireFormatLite::
  1010. InternalWriteMessageToArray(
  1011. 3, *this->error_manager_, deterministic, target);
  1012. }
  1013. // required .message.Parkspace_info allocated_space_info = 4;
  1014. if (cached_has_bits & 0x00000004u) {
  1015. target = ::google::protobuf::internal::WireFormatLite::
  1016. InternalWriteMessageToArray(
  1017. 4, *this->allocated_space_info_, deterministic, target);
  1018. }
  1019. if (_internal_metadata_.have_unknown_fields()) {
  1020. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1021. _internal_metadata_.unknown_fields(), target);
  1022. }
  1023. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_response_msg)
  1024. return target;
  1025. }
  1026. size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const {
  1027. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_response_msg)
  1028. size_t total_size = 0;
  1029. if (has_base_info()) {
  1030. // required .message.Base_info base_info = 1;
  1031. total_size += 1 +
  1032. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1033. *this->base_info_);
  1034. }
  1035. if (has_error_manager()) {
  1036. // required .message.Error_manager error_manager = 3;
  1037. total_size += 1 +
  1038. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1039. *this->error_manager_);
  1040. }
  1041. if (has_allocated_space_info()) {
  1042. // required .message.Parkspace_info allocated_space_info = 4;
  1043. total_size += 1 +
  1044. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1045. *this->allocated_space_info_);
  1046. }
  1047. if (has_command_id()) {
  1048. // required int32 command_id = 2;
  1049. total_size += 1 +
  1050. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1051. this->command_id());
  1052. }
  1053. return total_size;
  1054. }
  1055. size_t Parkspace_allocation_response_msg::ByteSizeLong() const {
  1056. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_response_msg)
  1057. size_t total_size = 0;
  1058. if (_internal_metadata_.have_unknown_fields()) {
  1059. total_size +=
  1060. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1061. _internal_metadata_.unknown_fields());
  1062. }
  1063. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1064. // required .message.Base_info base_info = 1;
  1065. total_size += 1 +
  1066. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1067. *this->base_info_);
  1068. // required .message.Error_manager error_manager = 3;
  1069. total_size += 1 +
  1070. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1071. *this->error_manager_);
  1072. // required .message.Parkspace_info allocated_space_info = 4;
  1073. total_size += 1 +
  1074. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1075. *this->allocated_space_info_);
  1076. // required int32 command_id = 2;
  1077. total_size += 1 +
  1078. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1079. this->command_id());
  1080. } else {
  1081. total_size += RequiredFieldsByteSizeFallback();
  1082. }
  1083. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1084. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1085. _cached_size_ = cached_size;
  1086. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1087. return total_size;
  1088. }
  1089. void Parkspace_allocation_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1090. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_response_msg)
  1091. GOOGLE_DCHECK_NE(&from, this);
  1092. const Parkspace_allocation_response_msg* source =
  1093. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_response_msg>(
  1094. &from);
  1095. if (source == NULL) {
  1096. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_response_msg)
  1097. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1098. } else {
  1099. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_response_msg)
  1100. MergeFrom(*source);
  1101. }
  1102. }
  1103. void Parkspace_allocation_response_msg::MergeFrom(const Parkspace_allocation_response_msg& from) {
  1104. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_response_msg)
  1105. GOOGLE_DCHECK_NE(&from, this);
  1106. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1107. ::google::protobuf::uint32 cached_has_bits = 0;
  1108. (void) cached_has_bits;
  1109. cached_has_bits = from._has_bits_[0];
  1110. if (cached_has_bits & 15u) {
  1111. if (cached_has_bits & 0x00000001u) {
  1112. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1113. }
  1114. if (cached_has_bits & 0x00000002u) {
  1115. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1116. }
  1117. if (cached_has_bits & 0x00000004u) {
  1118. mutable_allocated_space_info()->::message::Parkspace_info::MergeFrom(from.allocated_space_info());
  1119. }
  1120. if (cached_has_bits & 0x00000008u) {
  1121. command_id_ = from.command_id_;
  1122. }
  1123. _has_bits_[0] |= cached_has_bits;
  1124. }
  1125. }
  1126. void Parkspace_allocation_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1127. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_response_msg)
  1128. if (&from == this) return;
  1129. Clear();
  1130. MergeFrom(from);
  1131. }
  1132. void Parkspace_allocation_response_msg::CopyFrom(const Parkspace_allocation_response_msg& from) {
  1133. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_response_msg)
  1134. if (&from == this) return;
  1135. Clear();
  1136. MergeFrom(from);
  1137. }
  1138. bool Parkspace_allocation_response_msg::IsInitialized() const {
  1139. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1140. if (has_base_info()) {
  1141. if (!this->base_info_->IsInitialized()) return false;
  1142. }
  1143. if (has_error_manager()) {
  1144. if (!this->error_manager_->IsInitialized()) return false;
  1145. }
  1146. if (has_allocated_space_info()) {
  1147. if (!this->allocated_space_info_->IsInitialized()) return false;
  1148. }
  1149. return true;
  1150. }
  1151. void Parkspace_allocation_response_msg::Swap(Parkspace_allocation_response_msg* other) {
  1152. if (other == this) return;
  1153. InternalSwap(other);
  1154. }
  1155. void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_response_msg* other) {
  1156. using std::swap;
  1157. swap(base_info_, other->base_info_);
  1158. swap(error_manager_, other->error_manager_);
  1159. swap(allocated_space_info_, other->allocated_space_info_);
  1160. swap(command_id_, other->command_id_);
  1161. swap(_has_bits_[0], other->_has_bits_[0]);
  1162. _internal_metadata_.Swap(&other->_internal_metadata_);
  1163. swap(_cached_size_, other->_cached_size_);
  1164. }
  1165. ::google::protobuf::Metadata Parkspace_allocation_response_msg::GetMetadata() const {
  1166. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1167. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1168. }
  1169. // ===================================================================
  1170. void Parkspace_search_request_msg::InitAsDefaultInstance() {
  1171. ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1172. ::message::Base_info::internal_default_instance());
  1173. ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  1174. ::message::Car_info::internal_default_instance());
  1175. }
  1176. void Parkspace_search_request_msg::clear_base_info() {
  1177. if (base_info_ != NULL) base_info_->Clear();
  1178. clear_has_base_info();
  1179. }
  1180. void Parkspace_search_request_msg::clear_car_info() {
  1181. if (car_info_ != NULL) car_info_->Clear();
  1182. clear_has_car_info();
  1183. }
  1184. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1185. const int Parkspace_search_request_msg::kBaseInfoFieldNumber;
  1186. const int Parkspace_search_request_msg::kCommandIdFieldNumber;
  1187. const int Parkspace_search_request_msg::kCarInfoFieldNumber;
  1188. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1189. Parkspace_search_request_msg::Parkspace_search_request_msg()
  1190. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1191. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1192. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg();
  1193. }
  1194. SharedCtor();
  1195. // @@protoc_insertion_point(constructor:message.Parkspace_search_request_msg)
  1196. }
  1197. Parkspace_search_request_msg::Parkspace_search_request_msg(const Parkspace_search_request_msg& from)
  1198. : ::google::protobuf::Message(),
  1199. _internal_metadata_(NULL),
  1200. _has_bits_(from._has_bits_),
  1201. _cached_size_(0) {
  1202. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1203. if (from.has_base_info()) {
  1204. base_info_ = new ::message::Base_info(*from.base_info_);
  1205. } else {
  1206. base_info_ = NULL;
  1207. }
  1208. if (from.has_car_info()) {
  1209. car_info_ = new ::message::Car_info(*from.car_info_);
  1210. } else {
  1211. car_info_ = NULL;
  1212. }
  1213. command_id_ = from.command_id_;
  1214. // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_request_msg)
  1215. }
  1216. void Parkspace_search_request_msg::SharedCtor() {
  1217. _cached_size_ = 0;
  1218. ::memset(&base_info_, 0, static_cast<size_t>(
  1219. reinterpret_cast<char*>(&command_id_) -
  1220. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  1221. }
  1222. Parkspace_search_request_msg::~Parkspace_search_request_msg() {
  1223. // @@protoc_insertion_point(destructor:message.Parkspace_search_request_msg)
  1224. SharedDtor();
  1225. }
  1226. void Parkspace_search_request_msg::SharedDtor() {
  1227. if (this != internal_default_instance()) delete base_info_;
  1228. if (this != internal_default_instance()) delete car_info_;
  1229. }
  1230. void Parkspace_search_request_msg::SetCachedSize(int size) const {
  1231. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1232. _cached_size_ = size;
  1233. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1234. }
  1235. const ::google::protobuf::Descriptor* Parkspace_search_request_msg::descriptor() {
  1236. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1237. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1238. }
  1239. const Parkspace_search_request_msg& Parkspace_search_request_msg::default_instance() {
  1240. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg();
  1241. return *internal_default_instance();
  1242. }
  1243. Parkspace_search_request_msg* Parkspace_search_request_msg::New(::google::protobuf::Arena* arena) const {
  1244. Parkspace_search_request_msg* n = new Parkspace_search_request_msg;
  1245. if (arena != NULL) {
  1246. arena->Own(n);
  1247. }
  1248. return n;
  1249. }
  1250. void Parkspace_search_request_msg::Clear() {
  1251. // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_request_msg)
  1252. ::google::protobuf::uint32 cached_has_bits = 0;
  1253. // Prevent compiler warnings about cached_has_bits being unused
  1254. (void) cached_has_bits;
  1255. cached_has_bits = _has_bits_[0];
  1256. if (cached_has_bits & 3u) {
  1257. if (cached_has_bits & 0x00000001u) {
  1258. GOOGLE_DCHECK(base_info_ != NULL);
  1259. base_info_->Clear();
  1260. }
  1261. if (cached_has_bits & 0x00000002u) {
  1262. GOOGLE_DCHECK(car_info_ != NULL);
  1263. car_info_->Clear();
  1264. }
  1265. }
  1266. command_id_ = 0;
  1267. _has_bits_.Clear();
  1268. _internal_metadata_.Clear();
  1269. }
  1270. bool Parkspace_search_request_msg::MergePartialFromCodedStream(
  1271. ::google::protobuf::io::CodedInputStream* input) {
  1272. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1273. ::google::protobuf::uint32 tag;
  1274. // @@protoc_insertion_point(parse_start:message.Parkspace_search_request_msg)
  1275. for (;;) {
  1276. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1277. tag = p.first;
  1278. if (!p.second) goto handle_unusual;
  1279. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1280. // required .message.Base_info base_info = 1;
  1281. case 1: {
  1282. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1283. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1284. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1285. input, mutable_base_info()));
  1286. } else {
  1287. goto handle_unusual;
  1288. }
  1289. break;
  1290. }
  1291. // required int32 command_id = 2;
  1292. case 2: {
  1293. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1294. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1295. set_has_command_id();
  1296. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1297. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1298. input, &command_id_)));
  1299. } else {
  1300. goto handle_unusual;
  1301. }
  1302. break;
  1303. }
  1304. // required .message.Car_info car_info = 3;
  1305. case 3: {
  1306. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1307. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1308. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1309. input, mutable_car_info()));
  1310. } else {
  1311. goto handle_unusual;
  1312. }
  1313. break;
  1314. }
  1315. default: {
  1316. handle_unusual:
  1317. if (tag == 0) {
  1318. goto success;
  1319. }
  1320. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1321. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1322. break;
  1323. }
  1324. }
  1325. }
  1326. success:
  1327. // @@protoc_insertion_point(parse_success:message.Parkspace_search_request_msg)
  1328. return true;
  1329. failure:
  1330. // @@protoc_insertion_point(parse_failure:message.Parkspace_search_request_msg)
  1331. return false;
  1332. #undef DO_
  1333. }
  1334. void Parkspace_search_request_msg::SerializeWithCachedSizes(
  1335. ::google::protobuf::io::CodedOutputStream* output) const {
  1336. // @@protoc_insertion_point(serialize_start:message.Parkspace_search_request_msg)
  1337. ::google::protobuf::uint32 cached_has_bits = 0;
  1338. (void) cached_has_bits;
  1339. cached_has_bits = _has_bits_[0];
  1340. // required .message.Base_info base_info = 1;
  1341. if (cached_has_bits & 0x00000001u) {
  1342. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1343. 1, *this->base_info_, output);
  1344. }
  1345. // required int32 command_id = 2;
  1346. if (cached_has_bits & 0x00000004u) {
  1347. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1348. }
  1349. // required .message.Car_info car_info = 3;
  1350. if (cached_has_bits & 0x00000002u) {
  1351. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1352. 3, *this->car_info_, output);
  1353. }
  1354. if (_internal_metadata_.have_unknown_fields()) {
  1355. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1356. _internal_metadata_.unknown_fields(), output);
  1357. }
  1358. // @@protoc_insertion_point(serialize_end:message.Parkspace_search_request_msg)
  1359. }
  1360. ::google::protobuf::uint8* Parkspace_search_request_msg::InternalSerializeWithCachedSizesToArray(
  1361. bool deterministic, ::google::protobuf::uint8* target) const {
  1362. (void)deterministic; // Unused
  1363. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_request_msg)
  1364. ::google::protobuf::uint32 cached_has_bits = 0;
  1365. (void) cached_has_bits;
  1366. cached_has_bits = _has_bits_[0];
  1367. // required .message.Base_info base_info = 1;
  1368. if (cached_has_bits & 0x00000001u) {
  1369. target = ::google::protobuf::internal::WireFormatLite::
  1370. InternalWriteMessageToArray(
  1371. 1, *this->base_info_, deterministic, target);
  1372. }
  1373. // required int32 command_id = 2;
  1374. if (cached_has_bits & 0x00000004u) {
  1375. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1376. }
  1377. // required .message.Car_info car_info = 3;
  1378. if (cached_has_bits & 0x00000002u) {
  1379. target = ::google::protobuf::internal::WireFormatLite::
  1380. InternalWriteMessageToArray(
  1381. 3, *this->car_info_, deterministic, target);
  1382. }
  1383. if (_internal_metadata_.have_unknown_fields()) {
  1384. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1385. _internal_metadata_.unknown_fields(), target);
  1386. }
  1387. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_search_request_msg)
  1388. return target;
  1389. }
  1390. size_t Parkspace_search_request_msg::RequiredFieldsByteSizeFallback() const {
  1391. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_request_msg)
  1392. size_t total_size = 0;
  1393. if (has_base_info()) {
  1394. // required .message.Base_info base_info = 1;
  1395. total_size += 1 +
  1396. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1397. *this->base_info_);
  1398. }
  1399. if (has_car_info()) {
  1400. // required .message.Car_info car_info = 3;
  1401. total_size += 1 +
  1402. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1403. *this->car_info_);
  1404. }
  1405. if (has_command_id()) {
  1406. // required int32 command_id = 2;
  1407. total_size += 1 +
  1408. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1409. this->command_id());
  1410. }
  1411. return total_size;
  1412. }
  1413. size_t Parkspace_search_request_msg::ByteSizeLong() const {
  1414. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_request_msg)
  1415. size_t total_size = 0;
  1416. if (_internal_metadata_.have_unknown_fields()) {
  1417. total_size +=
  1418. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1419. _internal_metadata_.unknown_fields());
  1420. }
  1421. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1422. // required .message.Base_info base_info = 1;
  1423. total_size += 1 +
  1424. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1425. *this->base_info_);
  1426. // required .message.Car_info car_info = 3;
  1427. total_size += 1 +
  1428. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1429. *this->car_info_);
  1430. // required int32 command_id = 2;
  1431. total_size += 1 +
  1432. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1433. this->command_id());
  1434. } else {
  1435. total_size += RequiredFieldsByteSizeFallback();
  1436. }
  1437. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1438. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1439. _cached_size_ = cached_size;
  1440. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1441. return total_size;
  1442. }
  1443. void Parkspace_search_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1444. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_request_msg)
  1445. GOOGLE_DCHECK_NE(&from, this);
  1446. const Parkspace_search_request_msg* source =
  1447. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_search_request_msg>(
  1448. &from);
  1449. if (source == NULL) {
  1450. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_request_msg)
  1451. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1452. } else {
  1453. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_request_msg)
  1454. MergeFrom(*source);
  1455. }
  1456. }
  1457. void Parkspace_search_request_msg::MergeFrom(const Parkspace_search_request_msg& from) {
  1458. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_request_msg)
  1459. GOOGLE_DCHECK_NE(&from, this);
  1460. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1461. ::google::protobuf::uint32 cached_has_bits = 0;
  1462. (void) cached_has_bits;
  1463. cached_has_bits = from._has_bits_[0];
  1464. if (cached_has_bits & 7u) {
  1465. if (cached_has_bits & 0x00000001u) {
  1466. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1467. }
  1468. if (cached_has_bits & 0x00000002u) {
  1469. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  1470. }
  1471. if (cached_has_bits & 0x00000004u) {
  1472. command_id_ = from.command_id_;
  1473. }
  1474. _has_bits_[0] |= cached_has_bits;
  1475. }
  1476. }
  1477. void Parkspace_search_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1478. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_request_msg)
  1479. if (&from == this) return;
  1480. Clear();
  1481. MergeFrom(from);
  1482. }
  1483. void Parkspace_search_request_msg::CopyFrom(const Parkspace_search_request_msg& from) {
  1484. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_request_msg)
  1485. if (&from == this) return;
  1486. Clear();
  1487. MergeFrom(from);
  1488. }
  1489. bool Parkspace_search_request_msg::IsInitialized() const {
  1490. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1491. if (has_base_info()) {
  1492. if (!this->base_info_->IsInitialized()) return false;
  1493. }
  1494. if (has_car_info()) {
  1495. if (!this->car_info_->IsInitialized()) return false;
  1496. }
  1497. return true;
  1498. }
  1499. void Parkspace_search_request_msg::Swap(Parkspace_search_request_msg* other) {
  1500. if (other == this) return;
  1501. InternalSwap(other);
  1502. }
  1503. void Parkspace_search_request_msg::InternalSwap(Parkspace_search_request_msg* other) {
  1504. using std::swap;
  1505. swap(base_info_, other->base_info_);
  1506. swap(car_info_, other->car_info_);
  1507. swap(command_id_, other->command_id_);
  1508. swap(_has_bits_[0], other->_has_bits_[0]);
  1509. _internal_metadata_.Swap(&other->_internal_metadata_);
  1510. swap(_cached_size_, other->_cached_size_);
  1511. }
  1512. ::google::protobuf::Metadata Parkspace_search_request_msg::GetMetadata() const {
  1513. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1514. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1515. }
  1516. // ===================================================================
  1517. void Parkspace_search_response_msg::InitAsDefaultInstance() {
  1518. ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1519. ::message::Base_info::internal_default_instance());
  1520. ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1521. ::message::Error_manager::internal_default_instance());
  1522. ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->car_position_ = const_cast< ::message::Parkspace_info*>(
  1523. ::message::Parkspace_info::internal_default_instance());
  1524. }
  1525. void Parkspace_search_response_msg::clear_base_info() {
  1526. if (base_info_ != NULL) base_info_->Clear();
  1527. clear_has_base_info();
  1528. }
  1529. void Parkspace_search_response_msg::clear_error_manager() {
  1530. if (error_manager_ != NULL) error_manager_->Clear();
  1531. clear_has_error_manager();
  1532. }
  1533. void Parkspace_search_response_msg::clear_car_position() {
  1534. if (car_position_ != NULL) car_position_->Clear();
  1535. clear_has_car_position();
  1536. }
  1537. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1538. const int Parkspace_search_response_msg::kBaseInfoFieldNumber;
  1539. const int Parkspace_search_response_msg::kCommandIdFieldNumber;
  1540. const int Parkspace_search_response_msg::kErrorManagerFieldNumber;
  1541. const int Parkspace_search_response_msg::kCarPositionFieldNumber;
  1542. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1543. Parkspace_search_response_msg::Parkspace_search_response_msg()
  1544. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1545. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1546. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_response_msg();
  1547. }
  1548. SharedCtor();
  1549. // @@protoc_insertion_point(constructor:message.Parkspace_search_response_msg)
  1550. }
  1551. Parkspace_search_response_msg::Parkspace_search_response_msg(const Parkspace_search_response_msg& from)
  1552. : ::google::protobuf::Message(),
  1553. _internal_metadata_(NULL),
  1554. _has_bits_(from._has_bits_),
  1555. _cached_size_(0) {
  1556. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1557. if (from.has_base_info()) {
  1558. base_info_ = new ::message::Base_info(*from.base_info_);
  1559. } else {
  1560. base_info_ = NULL;
  1561. }
  1562. if (from.has_error_manager()) {
  1563. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1564. } else {
  1565. error_manager_ = NULL;
  1566. }
  1567. if (from.has_car_position()) {
  1568. car_position_ = new ::message::Parkspace_info(*from.car_position_);
  1569. } else {
  1570. car_position_ = NULL;
  1571. }
  1572. command_id_ = from.command_id_;
  1573. // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_response_msg)
  1574. }
  1575. void Parkspace_search_response_msg::SharedCtor() {
  1576. _cached_size_ = 0;
  1577. ::memset(&base_info_, 0, static_cast<size_t>(
  1578. reinterpret_cast<char*>(&command_id_) -
  1579. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  1580. }
  1581. Parkspace_search_response_msg::~Parkspace_search_response_msg() {
  1582. // @@protoc_insertion_point(destructor:message.Parkspace_search_response_msg)
  1583. SharedDtor();
  1584. }
  1585. void Parkspace_search_response_msg::SharedDtor() {
  1586. if (this != internal_default_instance()) delete base_info_;
  1587. if (this != internal_default_instance()) delete error_manager_;
  1588. if (this != internal_default_instance()) delete car_position_;
  1589. }
  1590. void Parkspace_search_response_msg::SetCachedSize(int size) const {
  1591. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1592. _cached_size_ = size;
  1593. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1594. }
  1595. const ::google::protobuf::Descriptor* Parkspace_search_response_msg::descriptor() {
  1596. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1597. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1598. }
  1599. const Parkspace_search_response_msg& Parkspace_search_response_msg::default_instance() {
  1600. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_response_msg();
  1601. return *internal_default_instance();
  1602. }
  1603. Parkspace_search_response_msg* Parkspace_search_response_msg::New(::google::protobuf::Arena* arena) const {
  1604. Parkspace_search_response_msg* n = new Parkspace_search_response_msg;
  1605. if (arena != NULL) {
  1606. arena->Own(n);
  1607. }
  1608. return n;
  1609. }
  1610. void Parkspace_search_response_msg::Clear() {
  1611. // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_response_msg)
  1612. ::google::protobuf::uint32 cached_has_bits = 0;
  1613. // Prevent compiler warnings about cached_has_bits being unused
  1614. (void) cached_has_bits;
  1615. cached_has_bits = _has_bits_[0];
  1616. if (cached_has_bits & 7u) {
  1617. if (cached_has_bits & 0x00000001u) {
  1618. GOOGLE_DCHECK(base_info_ != NULL);
  1619. base_info_->Clear();
  1620. }
  1621. if (cached_has_bits & 0x00000002u) {
  1622. GOOGLE_DCHECK(error_manager_ != NULL);
  1623. error_manager_->Clear();
  1624. }
  1625. if (cached_has_bits & 0x00000004u) {
  1626. GOOGLE_DCHECK(car_position_ != NULL);
  1627. car_position_->Clear();
  1628. }
  1629. }
  1630. command_id_ = 0;
  1631. _has_bits_.Clear();
  1632. _internal_metadata_.Clear();
  1633. }
  1634. bool Parkspace_search_response_msg::MergePartialFromCodedStream(
  1635. ::google::protobuf::io::CodedInputStream* input) {
  1636. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1637. ::google::protobuf::uint32 tag;
  1638. // @@protoc_insertion_point(parse_start:message.Parkspace_search_response_msg)
  1639. for (;;) {
  1640. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1641. tag = p.first;
  1642. if (!p.second) goto handle_unusual;
  1643. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1644. // required .message.Base_info base_info = 1;
  1645. case 1: {
  1646. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1647. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1648. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1649. input, mutable_base_info()));
  1650. } else {
  1651. goto handle_unusual;
  1652. }
  1653. break;
  1654. }
  1655. // required int32 command_id = 2;
  1656. case 2: {
  1657. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1658. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1659. set_has_command_id();
  1660. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1661. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1662. input, &command_id_)));
  1663. } else {
  1664. goto handle_unusual;
  1665. }
  1666. break;
  1667. }
  1668. // required .message.Error_manager error_manager = 3;
  1669. case 3: {
  1670. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1671. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1672. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1673. input, mutable_error_manager()));
  1674. } else {
  1675. goto handle_unusual;
  1676. }
  1677. break;
  1678. }
  1679. // optional .message.Parkspace_info car_position = 4;
  1680. case 4: {
  1681. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1682. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1683. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1684. input, mutable_car_position()));
  1685. } else {
  1686. goto handle_unusual;
  1687. }
  1688. break;
  1689. }
  1690. default: {
  1691. handle_unusual:
  1692. if (tag == 0) {
  1693. goto success;
  1694. }
  1695. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1696. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1697. break;
  1698. }
  1699. }
  1700. }
  1701. success:
  1702. // @@protoc_insertion_point(parse_success:message.Parkspace_search_response_msg)
  1703. return true;
  1704. failure:
  1705. // @@protoc_insertion_point(parse_failure:message.Parkspace_search_response_msg)
  1706. return false;
  1707. #undef DO_
  1708. }
  1709. void Parkspace_search_response_msg::SerializeWithCachedSizes(
  1710. ::google::protobuf::io::CodedOutputStream* output) const {
  1711. // @@protoc_insertion_point(serialize_start:message.Parkspace_search_response_msg)
  1712. ::google::protobuf::uint32 cached_has_bits = 0;
  1713. (void) cached_has_bits;
  1714. cached_has_bits = _has_bits_[0];
  1715. // required .message.Base_info base_info = 1;
  1716. if (cached_has_bits & 0x00000001u) {
  1717. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1718. 1, *this->base_info_, output);
  1719. }
  1720. // required int32 command_id = 2;
  1721. if (cached_has_bits & 0x00000008u) {
  1722. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1723. }
  1724. // required .message.Error_manager error_manager = 3;
  1725. if (cached_has_bits & 0x00000002u) {
  1726. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1727. 3, *this->error_manager_, output);
  1728. }
  1729. // optional .message.Parkspace_info car_position = 4;
  1730. if (cached_has_bits & 0x00000004u) {
  1731. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1732. 4, *this->car_position_, output);
  1733. }
  1734. if (_internal_metadata_.have_unknown_fields()) {
  1735. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1736. _internal_metadata_.unknown_fields(), output);
  1737. }
  1738. // @@protoc_insertion_point(serialize_end:message.Parkspace_search_response_msg)
  1739. }
  1740. ::google::protobuf::uint8* Parkspace_search_response_msg::InternalSerializeWithCachedSizesToArray(
  1741. bool deterministic, ::google::protobuf::uint8* target) const {
  1742. (void)deterministic; // Unused
  1743. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_response_msg)
  1744. ::google::protobuf::uint32 cached_has_bits = 0;
  1745. (void) cached_has_bits;
  1746. cached_has_bits = _has_bits_[0];
  1747. // required .message.Base_info base_info = 1;
  1748. if (cached_has_bits & 0x00000001u) {
  1749. target = ::google::protobuf::internal::WireFormatLite::
  1750. InternalWriteMessageToArray(
  1751. 1, *this->base_info_, deterministic, target);
  1752. }
  1753. // required int32 command_id = 2;
  1754. if (cached_has_bits & 0x00000008u) {
  1755. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1756. }
  1757. // required .message.Error_manager error_manager = 3;
  1758. if (cached_has_bits & 0x00000002u) {
  1759. target = ::google::protobuf::internal::WireFormatLite::
  1760. InternalWriteMessageToArray(
  1761. 3, *this->error_manager_, deterministic, target);
  1762. }
  1763. // optional .message.Parkspace_info car_position = 4;
  1764. if (cached_has_bits & 0x00000004u) {
  1765. target = ::google::protobuf::internal::WireFormatLite::
  1766. InternalWriteMessageToArray(
  1767. 4, *this->car_position_, deterministic, target);
  1768. }
  1769. if (_internal_metadata_.have_unknown_fields()) {
  1770. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1771. _internal_metadata_.unknown_fields(), target);
  1772. }
  1773. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_search_response_msg)
  1774. return target;
  1775. }
  1776. size_t Parkspace_search_response_msg::RequiredFieldsByteSizeFallback() const {
  1777. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_response_msg)
  1778. size_t total_size = 0;
  1779. if (has_base_info()) {
  1780. // required .message.Base_info base_info = 1;
  1781. total_size += 1 +
  1782. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1783. *this->base_info_);
  1784. }
  1785. if (has_error_manager()) {
  1786. // required .message.Error_manager error_manager = 3;
  1787. total_size += 1 +
  1788. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1789. *this->error_manager_);
  1790. }
  1791. if (has_command_id()) {
  1792. // required int32 command_id = 2;
  1793. total_size += 1 +
  1794. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1795. this->command_id());
  1796. }
  1797. return total_size;
  1798. }
  1799. size_t Parkspace_search_response_msg::ByteSizeLong() const {
  1800. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_response_msg)
  1801. size_t total_size = 0;
  1802. if (_internal_metadata_.have_unknown_fields()) {
  1803. total_size +=
  1804. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1805. _internal_metadata_.unknown_fields());
  1806. }
  1807. if (((_has_bits_[0] & 0x0000000b) ^ 0x0000000b) == 0) { // All required fields are present.
  1808. // required .message.Base_info base_info = 1;
  1809. total_size += 1 +
  1810. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1811. *this->base_info_);
  1812. // required .message.Error_manager error_manager = 3;
  1813. total_size += 1 +
  1814. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1815. *this->error_manager_);
  1816. // required int32 command_id = 2;
  1817. total_size += 1 +
  1818. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1819. this->command_id());
  1820. } else {
  1821. total_size += RequiredFieldsByteSizeFallback();
  1822. }
  1823. // optional .message.Parkspace_info car_position = 4;
  1824. if (has_car_position()) {
  1825. total_size += 1 +
  1826. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1827. *this->car_position_);
  1828. }
  1829. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1830. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1831. _cached_size_ = cached_size;
  1832. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1833. return total_size;
  1834. }
  1835. void Parkspace_search_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1836. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_response_msg)
  1837. GOOGLE_DCHECK_NE(&from, this);
  1838. const Parkspace_search_response_msg* source =
  1839. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_search_response_msg>(
  1840. &from);
  1841. if (source == NULL) {
  1842. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_response_msg)
  1843. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1844. } else {
  1845. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_response_msg)
  1846. MergeFrom(*source);
  1847. }
  1848. }
  1849. void Parkspace_search_response_msg::MergeFrom(const Parkspace_search_response_msg& from) {
  1850. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_response_msg)
  1851. GOOGLE_DCHECK_NE(&from, this);
  1852. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1853. ::google::protobuf::uint32 cached_has_bits = 0;
  1854. (void) cached_has_bits;
  1855. cached_has_bits = from._has_bits_[0];
  1856. if (cached_has_bits & 15u) {
  1857. if (cached_has_bits & 0x00000001u) {
  1858. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1859. }
  1860. if (cached_has_bits & 0x00000002u) {
  1861. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1862. }
  1863. if (cached_has_bits & 0x00000004u) {
  1864. mutable_car_position()->::message::Parkspace_info::MergeFrom(from.car_position());
  1865. }
  1866. if (cached_has_bits & 0x00000008u) {
  1867. command_id_ = from.command_id_;
  1868. }
  1869. _has_bits_[0] |= cached_has_bits;
  1870. }
  1871. }
  1872. void Parkspace_search_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1873. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_response_msg)
  1874. if (&from == this) return;
  1875. Clear();
  1876. MergeFrom(from);
  1877. }
  1878. void Parkspace_search_response_msg::CopyFrom(const Parkspace_search_response_msg& from) {
  1879. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_response_msg)
  1880. if (&from == this) return;
  1881. Clear();
  1882. MergeFrom(from);
  1883. }
  1884. bool Parkspace_search_response_msg::IsInitialized() const {
  1885. if ((_has_bits_[0] & 0x0000000b) != 0x0000000b) return false;
  1886. if (has_base_info()) {
  1887. if (!this->base_info_->IsInitialized()) return false;
  1888. }
  1889. if (has_error_manager()) {
  1890. if (!this->error_manager_->IsInitialized()) return false;
  1891. }
  1892. if (has_car_position()) {
  1893. if (!this->car_position_->IsInitialized()) return false;
  1894. }
  1895. return true;
  1896. }
  1897. void Parkspace_search_response_msg::Swap(Parkspace_search_response_msg* other) {
  1898. if (other == this) return;
  1899. InternalSwap(other);
  1900. }
  1901. void Parkspace_search_response_msg::InternalSwap(Parkspace_search_response_msg* other) {
  1902. using std::swap;
  1903. swap(base_info_, other->base_info_);
  1904. swap(error_manager_, other->error_manager_);
  1905. swap(car_position_, other->car_position_);
  1906. swap(command_id_, other->command_id_);
  1907. swap(_has_bits_[0], other->_has_bits_[0]);
  1908. _internal_metadata_.Swap(&other->_internal_metadata_);
  1909. swap(_cached_size_, other->_cached_size_);
  1910. }
  1911. ::google::protobuf::Metadata Parkspace_search_response_msg::GetMetadata() const {
  1912. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1913. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1914. }
  1915. // ===================================================================
  1916. void Parkspace_release_request_msg::InitAsDefaultInstance() {
  1917. ::message::_Parkspace_release_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1918. ::message::Base_info::internal_default_instance());
  1919. ::message::_Parkspace_release_request_msg_default_instance_._instance.get_mutable()->release_space_info_ = const_cast< ::message::Parkspace_info*>(
  1920. ::message::Parkspace_info::internal_default_instance());
  1921. }
  1922. void Parkspace_release_request_msg::clear_base_info() {
  1923. if (base_info_ != NULL) base_info_->Clear();
  1924. clear_has_base_info();
  1925. }
  1926. void Parkspace_release_request_msg::clear_release_space_info() {
  1927. if (release_space_info_ != NULL) release_space_info_->Clear();
  1928. clear_has_release_space_info();
  1929. }
  1930. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1931. const int Parkspace_release_request_msg::kBaseInfoFieldNumber;
  1932. const int Parkspace_release_request_msg::kCommandIdFieldNumber;
  1933. const int Parkspace_release_request_msg::kReleaseSpaceInfoFieldNumber;
  1934. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1935. Parkspace_release_request_msg::Parkspace_release_request_msg()
  1936. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1937. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1938. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_request_msg();
  1939. }
  1940. SharedCtor();
  1941. // @@protoc_insertion_point(constructor:message.Parkspace_release_request_msg)
  1942. }
  1943. Parkspace_release_request_msg::Parkspace_release_request_msg(const Parkspace_release_request_msg& from)
  1944. : ::google::protobuf::Message(),
  1945. _internal_metadata_(NULL),
  1946. _has_bits_(from._has_bits_),
  1947. _cached_size_(0) {
  1948. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1949. if (from.has_base_info()) {
  1950. base_info_ = new ::message::Base_info(*from.base_info_);
  1951. } else {
  1952. base_info_ = NULL;
  1953. }
  1954. if (from.has_release_space_info()) {
  1955. release_space_info_ = new ::message::Parkspace_info(*from.release_space_info_);
  1956. } else {
  1957. release_space_info_ = NULL;
  1958. }
  1959. command_id_ = from.command_id_;
  1960. // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_request_msg)
  1961. }
  1962. void Parkspace_release_request_msg::SharedCtor() {
  1963. _cached_size_ = 0;
  1964. ::memset(&base_info_, 0, static_cast<size_t>(
  1965. reinterpret_cast<char*>(&command_id_) -
  1966. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  1967. }
  1968. Parkspace_release_request_msg::~Parkspace_release_request_msg() {
  1969. // @@protoc_insertion_point(destructor:message.Parkspace_release_request_msg)
  1970. SharedDtor();
  1971. }
  1972. void Parkspace_release_request_msg::SharedDtor() {
  1973. if (this != internal_default_instance()) delete base_info_;
  1974. if (this != internal_default_instance()) delete release_space_info_;
  1975. }
  1976. void Parkspace_release_request_msg::SetCachedSize(int size) const {
  1977. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1978. _cached_size_ = size;
  1979. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1980. }
  1981. const ::google::protobuf::Descriptor* Parkspace_release_request_msg::descriptor() {
  1982. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1983. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1984. }
  1985. const Parkspace_release_request_msg& Parkspace_release_request_msg::default_instance() {
  1986. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_request_msg();
  1987. return *internal_default_instance();
  1988. }
  1989. Parkspace_release_request_msg* Parkspace_release_request_msg::New(::google::protobuf::Arena* arena) const {
  1990. Parkspace_release_request_msg* n = new Parkspace_release_request_msg;
  1991. if (arena != NULL) {
  1992. arena->Own(n);
  1993. }
  1994. return n;
  1995. }
  1996. void Parkspace_release_request_msg::Clear() {
  1997. // @@protoc_insertion_point(message_clear_start:message.Parkspace_release_request_msg)
  1998. ::google::protobuf::uint32 cached_has_bits = 0;
  1999. // Prevent compiler warnings about cached_has_bits being unused
  2000. (void) cached_has_bits;
  2001. cached_has_bits = _has_bits_[0];
  2002. if (cached_has_bits & 3u) {
  2003. if (cached_has_bits & 0x00000001u) {
  2004. GOOGLE_DCHECK(base_info_ != NULL);
  2005. base_info_->Clear();
  2006. }
  2007. if (cached_has_bits & 0x00000002u) {
  2008. GOOGLE_DCHECK(release_space_info_ != NULL);
  2009. release_space_info_->Clear();
  2010. }
  2011. }
  2012. command_id_ = 0;
  2013. _has_bits_.Clear();
  2014. _internal_metadata_.Clear();
  2015. }
  2016. bool Parkspace_release_request_msg::MergePartialFromCodedStream(
  2017. ::google::protobuf::io::CodedInputStream* input) {
  2018. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2019. ::google::protobuf::uint32 tag;
  2020. // @@protoc_insertion_point(parse_start:message.Parkspace_release_request_msg)
  2021. for (;;) {
  2022. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2023. tag = p.first;
  2024. if (!p.second) goto handle_unusual;
  2025. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2026. // required .message.Base_info base_info = 1;
  2027. case 1: {
  2028. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2029. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2030. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2031. input, mutable_base_info()));
  2032. } else {
  2033. goto handle_unusual;
  2034. }
  2035. break;
  2036. }
  2037. // required int32 command_id = 2;
  2038. case 2: {
  2039. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2040. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2041. set_has_command_id();
  2042. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2043. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2044. input, &command_id_)));
  2045. } else {
  2046. goto handle_unusual;
  2047. }
  2048. break;
  2049. }
  2050. // required .message.Parkspace_info release_space_info = 3;
  2051. case 3: {
  2052. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2053. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2054. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2055. input, mutable_release_space_info()));
  2056. } else {
  2057. goto handle_unusual;
  2058. }
  2059. break;
  2060. }
  2061. default: {
  2062. handle_unusual:
  2063. if (tag == 0) {
  2064. goto success;
  2065. }
  2066. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2067. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2068. break;
  2069. }
  2070. }
  2071. }
  2072. success:
  2073. // @@protoc_insertion_point(parse_success:message.Parkspace_release_request_msg)
  2074. return true;
  2075. failure:
  2076. // @@protoc_insertion_point(parse_failure:message.Parkspace_release_request_msg)
  2077. return false;
  2078. #undef DO_
  2079. }
  2080. void Parkspace_release_request_msg::SerializeWithCachedSizes(
  2081. ::google::protobuf::io::CodedOutputStream* output) const {
  2082. // @@protoc_insertion_point(serialize_start:message.Parkspace_release_request_msg)
  2083. ::google::protobuf::uint32 cached_has_bits = 0;
  2084. (void) cached_has_bits;
  2085. cached_has_bits = _has_bits_[0];
  2086. // required .message.Base_info base_info = 1;
  2087. if (cached_has_bits & 0x00000001u) {
  2088. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2089. 1, *this->base_info_, output);
  2090. }
  2091. // required int32 command_id = 2;
  2092. if (cached_has_bits & 0x00000004u) {
  2093. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  2094. }
  2095. // required .message.Parkspace_info release_space_info = 3;
  2096. if (cached_has_bits & 0x00000002u) {
  2097. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2098. 3, *this->release_space_info_, output);
  2099. }
  2100. if (_internal_metadata_.have_unknown_fields()) {
  2101. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2102. _internal_metadata_.unknown_fields(), output);
  2103. }
  2104. // @@protoc_insertion_point(serialize_end:message.Parkspace_release_request_msg)
  2105. }
  2106. ::google::protobuf::uint8* Parkspace_release_request_msg::InternalSerializeWithCachedSizesToArray(
  2107. bool deterministic, ::google::protobuf::uint8* target) const {
  2108. (void)deterministic; // Unused
  2109. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_request_msg)
  2110. ::google::protobuf::uint32 cached_has_bits = 0;
  2111. (void) cached_has_bits;
  2112. cached_has_bits = _has_bits_[0];
  2113. // required .message.Base_info base_info = 1;
  2114. if (cached_has_bits & 0x00000001u) {
  2115. target = ::google::protobuf::internal::WireFormatLite::
  2116. InternalWriteMessageToArray(
  2117. 1, *this->base_info_, deterministic, target);
  2118. }
  2119. // required int32 command_id = 2;
  2120. if (cached_has_bits & 0x00000004u) {
  2121. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  2122. }
  2123. // required .message.Parkspace_info release_space_info = 3;
  2124. if (cached_has_bits & 0x00000002u) {
  2125. target = ::google::protobuf::internal::WireFormatLite::
  2126. InternalWriteMessageToArray(
  2127. 3, *this->release_space_info_, deterministic, target);
  2128. }
  2129. if (_internal_metadata_.have_unknown_fields()) {
  2130. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2131. _internal_metadata_.unknown_fields(), target);
  2132. }
  2133. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_release_request_msg)
  2134. return target;
  2135. }
  2136. size_t Parkspace_release_request_msg::RequiredFieldsByteSizeFallback() const {
  2137. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_request_msg)
  2138. size_t total_size = 0;
  2139. if (has_base_info()) {
  2140. // required .message.Base_info base_info = 1;
  2141. total_size += 1 +
  2142. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2143. *this->base_info_);
  2144. }
  2145. if (has_release_space_info()) {
  2146. // required .message.Parkspace_info release_space_info = 3;
  2147. total_size += 1 +
  2148. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2149. *this->release_space_info_);
  2150. }
  2151. if (has_command_id()) {
  2152. // required int32 command_id = 2;
  2153. total_size += 1 +
  2154. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2155. this->command_id());
  2156. }
  2157. return total_size;
  2158. }
  2159. size_t Parkspace_release_request_msg::ByteSizeLong() const {
  2160. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_release_request_msg)
  2161. size_t total_size = 0;
  2162. if (_internal_metadata_.have_unknown_fields()) {
  2163. total_size +=
  2164. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2165. _internal_metadata_.unknown_fields());
  2166. }
  2167. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  2168. // required .message.Base_info base_info = 1;
  2169. total_size += 1 +
  2170. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2171. *this->base_info_);
  2172. // required .message.Parkspace_info release_space_info = 3;
  2173. total_size += 1 +
  2174. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2175. *this->release_space_info_);
  2176. // required int32 command_id = 2;
  2177. total_size += 1 +
  2178. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2179. this->command_id());
  2180. } else {
  2181. total_size += RequiredFieldsByteSizeFallback();
  2182. }
  2183. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2184. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2185. _cached_size_ = cached_size;
  2186. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2187. return total_size;
  2188. }
  2189. void Parkspace_release_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2190. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_release_request_msg)
  2191. GOOGLE_DCHECK_NE(&from, this);
  2192. const Parkspace_release_request_msg* source =
  2193. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_release_request_msg>(
  2194. &from);
  2195. if (source == NULL) {
  2196. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_release_request_msg)
  2197. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2198. } else {
  2199. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_release_request_msg)
  2200. MergeFrom(*source);
  2201. }
  2202. }
  2203. void Parkspace_release_request_msg::MergeFrom(const Parkspace_release_request_msg& from) {
  2204. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_release_request_msg)
  2205. GOOGLE_DCHECK_NE(&from, this);
  2206. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2207. ::google::protobuf::uint32 cached_has_bits = 0;
  2208. (void) cached_has_bits;
  2209. cached_has_bits = from._has_bits_[0];
  2210. if (cached_has_bits & 7u) {
  2211. if (cached_has_bits & 0x00000001u) {
  2212. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2213. }
  2214. if (cached_has_bits & 0x00000002u) {
  2215. mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info());
  2216. }
  2217. if (cached_has_bits & 0x00000004u) {
  2218. command_id_ = from.command_id_;
  2219. }
  2220. _has_bits_[0] |= cached_has_bits;
  2221. }
  2222. }
  2223. void Parkspace_release_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2224. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_release_request_msg)
  2225. if (&from == this) return;
  2226. Clear();
  2227. MergeFrom(from);
  2228. }
  2229. void Parkspace_release_request_msg::CopyFrom(const Parkspace_release_request_msg& from) {
  2230. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_release_request_msg)
  2231. if (&from == this) return;
  2232. Clear();
  2233. MergeFrom(from);
  2234. }
  2235. bool Parkspace_release_request_msg::IsInitialized() const {
  2236. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  2237. if (has_base_info()) {
  2238. if (!this->base_info_->IsInitialized()) return false;
  2239. }
  2240. if (has_release_space_info()) {
  2241. if (!this->release_space_info_->IsInitialized()) return false;
  2242. }
  2243. return true;
  2244. }
  2245. void Parkspace_release_request_msg::Swap(Parkspace_release_request_msg* other) {
  2246. if (other == this) return;
  2247. InternalSwap(other);
  2248. }
  2249. void Parkspace_release_request_msg::InternalSwap(Parkspace_release_request_msg* other) {
  2250. using std::swap;
  2251. swap(base_info_, other->base_info_);
  2252. swap(release_space_info_, other->release_space_info_);
  2253. swap(command_id_, other->command_id_);
  2254. swap(_has_bits_[0], other->_has_bits_[0]);
  2255. _internal_metadata_.Swap(&other->_internal_metadata_);
  2256. swap(_cached_size_, other->_cached_size_);
  2257. }
  2258. ::google::protobuf::Metadata Parkspace_release_request_msg::GetMetadata() const {
  2259. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2260. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2261. }
  2262. // ===================================================================
  2263. void Parkspace_release_response_msg::InitAsDefaultInstance() {
  2264. ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2265. ::message::Base_info::internal_default_instance());
  2266. ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  2267. ::message::Error_manager::internal_default_instance());
  2268. ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->release_space_info_ = const_cast< ::message::Parkspace_info*>(
  2269. ::message::Parkspace_info::internal_default_instance());
  2270. }
  2271. void Parkspace_release_response_msg::clear_base_info() {
  2272. if (base_info_ != NULL) base_info_->Clear();
  2273. clear_has_base_info();
  2274. }
  2275. void Parkspace_release_response_msg::clear_error_manager() {
  2276. if (error_manager_ != NULL) error_manager_->Clear();
  2277. clear_has_error_manager();
  2278. }
  2279. void Parkspace_release_response_msg::clear_release_space_info() {
  2280. if (release_space_info_ != NULL) release_space_info_->Clear();
  2281. clear_has_release_space_info();
  2282. }
  2283. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2284. const int Parkspace_release_response_msg::kBaseInfoFieldNumber;
  2285. const int Parkspace_release_response_msg::kCommandIdFieldNumber;
  2286. const int Parkspace_release_response_msg::kErrorManagerFieldNumber;
  2287. const int Parkspace_release_response_msg::kReleaseSpaceInfoFieldNumber;
  2288. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2289. Parkspace_release_response_msg::Parkspace_release_response_msg()
  2290. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2291. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2292. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_response_msg();
  2293. }
  2294. SharedCtor();
  2295. // @@protoc_insertion_point(constructor:message.Parkspace_release_response_msg)
  2296. }
  2297. Parkspace_release_response_msg::Parkspace_release_response_msg(const Parkspace_release_response_msg& from)
  2298. : ::google::protobuf::Message(),
  2299. _internal_metadata_(NULL),
  2300. _has_bits_(from._has_bits_),
  2301. _cached_size_(0) {
  2302. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2303. if (from.has_base_info()) {
  2304. base_info_ = new ::message::Base_info(*from.base_info_);
  2305. } else {
  2306. base_info_ = NULL;
  2307. }
  2308. if (from.has_error_manager()) {
  2309. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2310. } else {
  2311. error_manager_ = NULL;
  2312. }
  2313. if (from.has_release_space_info()) {
  2314. release_space_info_ = new ::message::Parkspace_info(*from.release_space_info_);
  2315. } else {
  2316. release_space_info_ = NULL;
  2317. }
  2318. command_id_ = from.command_id_;
  2319. // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_response_msg)
  2320. }
  2321. void Parkspace_release_response_msg::SharedCtor() {
  2322. _cached_size_ = 0;
  2323. ::memset(&base_info_, 0, static_cast<size_t>(
  2324. reinterpret_cast<char*>(&command_id_) -
  2325. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  2326. }
  2327. Parkspace_release_response_msg::~Parkspace_release_response_msg() {
  2328. // @@protoc_insertion_point(destructor:message.Parkspace_release_response_msg)
  2329. SharedDtor();
  2330. }
  2331. void Parkspace_release_response_msg::SharedDtor() {
  2332. if (this != internal_default_instance()) delete base_info_;
  2333. if (this != internal_default_instance()) delete error_manager_;
  2334. if (this != internal_default_instance()) delete release_space_info_;
  2335. }
  2336. void Parkspace_release_response_msg::SetCachedSize(int size) const {
  2337. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2338. _cached_size_ = size;
  2339. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2340. }
  2341. const ::google::protobuf::Descriptor* Parkspace_release_response_msg::descriptor() {
  2342. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2343. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2344. }
  2345. const Parkspace_release_response_msg& Parkspace_release_response_msg::default_instance() {
  2346. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_response_msg();
  2347. return *internal_default_instance();
  2348. }
  2349. Parkspace_release_response_msg* Parkspace_release_response_msg::New(::google::protobuf::Arena* arena) const {
  2350. Parkspace_release_response_msg* n = new Parkspace_release_response_msg;
  2351. if (arena != NULL) {
  2352. arena->Own(n);
  2353. }
  2354. return n;
  2355. }
  2356. void Parkspace_release_response_msg::Clear() {
  2357. // @@protoc_insertion_point(message_clear_start:message.Parkspace_release_response_msg)
  2358. ::google::protobuf::uint32 cached_has_bits = 0;
  2359. // Prevent compiler warnings about cached_has_bits being unused
  2360. (void) cached_has_bits;
  2361. cached_has_bits = _has_bits_[0];
  2362. if (cached_has_bits & 7u) {
  2363. if (cached_has_bits & 0x00000001u) {
  2364. GOOGLE_DCHECK(base_info_ != NULL);
  2365. base_info_->Clear();
  2366. }
  2367. if (cached_has_bits & 0x00000002u) {
  2368. GOOGLE_DCHECK(error_manager_ != NULL);
  2369. error_manager_->Clear();
  2370. }
  2371. if (cached_has_bits & 0x00000004u) {
  2372. GOOGLE_DCHECK(release_space_info_ != NULL);
  2373. release_space_info_->Clear();
  2374. }
  2375. }
  2376. command_id_ = 0;
  2377. _has_bits_.Clear();
  2378. _internal_metadata_.Clear();
  2379. }
  2380. bool Parkspace_release_response_msg::MergePartialFromCodedStream(
  2381. ::google::protobuf::io::CodedInputStream* input) {
  2382. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2383. ::google::protobuf::uint32 tag;
  2384. // @@protoc_insertion_point(parse_start:message.Parkspace_release_response_msg)
  2385. for (;;) {
  2386. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2387. tag = p.first;
  2388. if (!p.second) goto handle_unusual;
  2389. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2390. // required .message.Base_info base_info = 1;
  2391. case 1: {
  2392. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2393. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2394. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2395. input, mutable_base_info()));
  2396. } else {
  2397. goto handle_unusual;
  2398. }
  2399. break;
  2400. }
  2401. // required int32 command_id = 2;
  2402. case 2: {
  2403. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2404. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2405. set_has_command_id();
  2406. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2407. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2408. input, &command_id_)));
  2409. } else {
  2410. goto handle_unusual;
  2411. }
  2412. break;
  2413. }
  2414. // required .message.Error_manager error_manager = 3;
  2415. case 3: {
  2416. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2417. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2418. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2419. input, mutable_error_manager()));
  2420. } else {
  2421. goto handle_unusual;
  2422. }
  2423. break;
  2424. }
  2425. // required .message.Parkspace_info release_space_info = 4;
  2426. case 4: {
  2427. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2428. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2429. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2430. input, mutable_release_space_info()));
  2431. } else {
  2432. goto handle_unusual;
  2433. }
  2434. break;
  2435. }
  2436. default: {
  2437. handle_unusual:
  2438. if (tag == 0) {
  2439. goto success;
  2440. }
  2441. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2442. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2443. break;
  2444. }
  2445. }
  2446. }
  2447. success:
  2448. // @@protoc_insertion_point(parse_success:message.Parkspace_release_response_msg)
  2449. return true;
  2450. failure:
  2451. // @@protoc_insertion_point(parse_failure:message.Parkspace_release_response_msg)
  2452. return false;
  2453. #undef DO_
  2454. }
  2455. void Parkspace_release_response_msg::SerializeWithCachedSizes(
  2456. ::google::protobuf::io::CodedOutputStream* output) const {
  2457. // @@protoc_insertion_point(serialize_start:message.Parkspace_release_response_msg)
  2458. ::google::protobuf::uint32 cached_has_bits = 0;
  2459. (void) cached_has_bits;
  2460. cached_has_bits = _has_bits_[0];
  2461. // required .message.Base_info base_info = 1;
  2462. if (cached_has_bits & 0x00000001u) {
  2463. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2464. 1, *this->base_info_, output);
  2465. }
  2466. // required int32 command_id = 2;
  2467. if (cached_has_bits & 0x00000008u) {
  2468. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  2469. }
  2470. // required .message.Error_manager error_manager = 3;
  2471. if (cached_has_bits & 0x00000002u) {
  2472. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2473. 3, *this->error_manager_, output);
  2474. }
  2475. // required .message.Parkspace_info release_space_info = 4;
  2476. if (cached_has_bits & 0x00000004u) {
  2477. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2478. 4, *this->release_space_info_, output);
  2479. }
  2480. if (_internal_metadata_.have_unknown_fields()) {
  2481. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2482. _internal_metadata_.unknown_fields(), output);
  2483. }
  2484. // @@protoc_insertion_point(serialize_end:message.Parkspace_release_response_msg)
  2485. }
  2486. ::google::protobuf::uint8* Parkspace_release_response_msg::InternalSerializeWithCachedSizesToArray(
  2487. bool deterministic, ::google::protobuf::uint8* target) const {
  2488. (void)deterministic; // Unused
  2489. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_response_msg)
  2490. ::google::protobuf::uint32 cached_has_bits = 0;
  2491. (void) cached_has_bits;
  2492. cached_has_bits = _has_bits_[0];
  2493. // required .message.Base_info base_info = 1;
  2494. if (cached_has_bits & 0x00000001u) {
  2495. target = ::google::protobuf::internal::WireFormatLite::
  2496. InternalWriteMessageToArray(
  2497. 1, *this->base_info_, deterministic, target);
  2498. }
  2499. // required int32 command_id = 2;
  2500. if (cached_has_bits & 0x00000008u) {
  2501. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  2502. }
  2503. // required .message.Error_manager error_manager = 3;
  2504. if (cached_has_bits & 0x00000002u) {
  2505. target = ::google::protobuf::internal::WireFormatLite::
  2506. InternalWriteMessageToArray(
  2507. 3, *this->error_manager_, deterministic, target);
  2508. }
  2509. // required .message.Parkspace_info release_space_info = 4;
  2510. if (cached_has_bits & 0x00000004u) {
  2511. target = ::google::protobuf::internal::WireFormatLite::
  2512. InternalWriteMessageToArray(
  2513. 4, *this->release_space_info_, deterministic, target);
  2514. }
  2515. if (_internal_metadata_.have_unknown_fields()) {
  2516. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2517. _internal_metadata_.unknown_fields(), target);
  2518. }
  2519. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_release_response_msg)
  2520. return target;
  2521. }
  2522. size_t Parkspace_release_response_msg::RequiredFieldsByteSizeFallback() const {
  2523. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_response_msg)
  2524. size_t total_size = 0;
  2525. if (has_base_info()) {
  2526. // required .message.Base_info base_info = 1;
  2527. total_size += 1 +
  2528. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2529. *this->base_info_);
  2530. }
  2531. if (has_error_manager()) {
  2532. // required .message.Error_manager error_manager = 3;
  2533. total_size += 1 +
  2534. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2535. *this->error_manager_);
  2536. }
  2537. if (has_release_space_info()) {
  2538. // required .message.Parkspace_info release_space_info = 4;
  2539. total_size += 1 +
  2540. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2541. *this->release_space_info_);
  2542. }
  2543. if (has_command_id()) {
  2544. // required int32 command_id = 2;
  2545. total_size += 1 +
  2546. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2547. this->command_id());
  2548. }
  2549. return total_size;
  2550. }
  2551. size_t Parkspace_release_response_msg::ByteSizeLong() const {
  2552. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_release_response_msg)
  2553. size_t total_size = 0;
  2554. if (_internal_metadata_.have_unknown_fields()) {
  2555. total_size +=
  2556. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2557. _internal_metadata_.unknown_fields());
  2558. }
  2559. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  2560. // required .message.Base_info base_info = 1;
  2561. total_size += 1 +
  2562. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2563. *this->base_info_);
  2564. // required .message.Error_manager error_manager = 3;
  2565. total_size += 1 +
  2566. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2567. *this->error_manager_);
  2568. // required .message.Parkspace_info release_space_info = 4;
  2569. total_size += 1 +
  2570. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2571. *this->release_space_info_);
  2572. // required int32 command_id = 2;
  2573. total_size += 1 +
  2574. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2575. this->command_id());
  2576. } else {
  2577. total_size += RequiredFieldsByteSizeFallback();
  2578. }
  2579. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2580. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2581. _cached_size_ = cached_size;
  2582. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2583. return total_size;
  2584. }
  2585. void Parkspace_release_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2586. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_release_response_msg)
  2587. GOOGLE_DCHECK_NE(&from, this);
  2588. const Parkspace_release_response_msg* source =
  2589. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_release_response_msg>(
  2590. &from);
  2591. if (source == NULL) {
  2592. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_release_response_msg)
  2593. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2594. } else {
  2595. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_release_response_msg)
  2596. MergeFrom(*source);
  2597. }
  2598. }
  2599. void Parkspace_release_response_msg::MergeFrom(const Parkspace_release_response_msg& from) {
  2600. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_release_response_msg)
  2601. GOOGLE_DCHECK_NE(&from, this);
  2602. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2603. ::google::protobuf::uint32 cached_has_bits = 0;
  2604. (void) cached_has_bits;
  2605. cached_has_bits = from._has_bits_[0];
  2606. if (cached_has_bits & 15u) {
  2607. if (cached_has_bits & 0x00000001u) {
  2608. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2609. }
  2610. if (cached_has_bits & 0x00000002u) {
  2611. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  2612. }
  2613. if (cached_has_bits & 0x00000004u) {
  2614. mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info());
  2615. }
  2616. if (cached_has_bits & 0x00000008u) {
  2617. command_id_ = from.command_id_;
  2618. }
  2619. _has_bits_[0] |= cached_has_bits;
  2620. }
  2621. }
  2622. void Parkspace_release_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2623. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_release_response_msg)
  2624. if (&from == this) return;
  2625. Clear();
  2626. MergeFrom(from);
  2627. }
  2628. void Parkspace_release_response_msg::CopyFrom(const Parkspace_release_response_msg& from) {
  2629. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_release_response_msg)
  2630. if (&from == this) return;
  2631. Clear();
  2632. MergeFrom(from);
  2633. }
  2634. bool Parkspace_release_response_msg::IsInitialized() const {
  2635. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  2636. if (has_base_info()) {
  2637. if (!this->base_info_->IsInitialized()) return false;
  2638. }
  2639. if (has_error_manager()) {
  2640. if (!this->error_manager_->IsInitialized()) return false;
  2641. }
  2642. if (has_release_space_info()) {
  2643. if (!this->release_space_info_->IsInitialized()) return false;
  2644. }
  2645. return true;
  2646. }
  2647. void Parkspace_release_response_msg::Swap(Parkspace_release_response_msg* other) {
  2648. if (other == this) return;
  2649. InternalSwap(other);
  2650. }
  2651. void Parkspace_release_response_msg::InternalSwap(Parkspace_release_response_msg* other) {
  2652. using std::swap;
  2653. swap(base_info_, other->base_info_);
  2654. swap(error_manager_, other->error_manager_);
  2655. swap(release_space_info_, other->release_space_info_);
  2656. swap(command_id_, other->command_id_);
  2657. swap(_has_bits_[0], other->_has_bits_[0]);
  2658. _internal_metadata_.Swap(&other->_internal_metadata_);
  2659. swap(_cached_size_, other->_cached_size_);
  2660. }
  2661. ::google::protobuf::Metadata Parkspace_release_response_msg::GetMetadata() const {
  2662. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2663. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2664. }
  2665. // ===================================================================
  2666. void Parkspace_allocation_status_msg::InitAsDefaultInstance() {
  2667. ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2668. ::message::Base_info::internal_default_instance());
  2669. ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  2670. ::message::Error_manager::internal_default_instance());
  2671. }
  2672. void Parkspace_allocation_status_msg::clear_base_info() {
  2673. if (base_info_ != NULL) base_info_->Clear();
  2674. clear_has_base_info();
  2675. }
  2676. void Parkspace_allocation_status_msg::clear_error_manager() {
  2677. if (error_manager_ != NULL) error_manager_->Clear();
  2678. clear_has_error_manager();
  2679. }
  2680. void Parkspace_allocation_status_msg::clear_parkspace_info() {
  2681. parkspace_info_.Clear();
  2682. }
  2683. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2684. const int Parkspace_allocation_status_msg::kBaseInfoFieldNumber;
  2685. const int Parkspace_allocation_status_msg::kErrorManagerFieldNumber;
  2686. const int Parkspace_allocation_status_msg::kParkspaceInfoFieldNumber;
  2687. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2688. Parkspace_allocation_status_msg::Parkspace_allocation_status_msg()
  2689. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2690. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2691. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg();
  2692. }
  2693. SharedCtor();
  2694. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_status_msg)
  2695. }
  2696. Parkspace_allocation_status_msg::Parkspace_allocation_status_msg(const Parkspace_allocation_status_msg& from)
  2697. : ::google::protobuf::Message(),
  2698. _internal_metadata_(NULL),
  2699. _has_bits_(from._has_bits_),
  2700. _cached_size_(0),
  2701. parkspace_info_(from.parkspace_info_) {
  2702. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2703. if (from.has_base_info()) {
  2704. base_info_ = new ::message::Base_info(*from.base_info_);
  2705. } else {
  2706. base_info_ = NULL;
  2707. }
  2708. if (from.has_error_manager()) {
  2709. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2710. } else {
  2711. error_manager_ = NULL;
  2712. }
  2713. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_status_msg)
  2714. }
  2715. void Parkspace_allocation_status_msg::SharedCtor() {
  2716. _cached_size_ = 0;
  2717. ::memset(&base_info_, 0, static_cast<size_t>(
  2718. reinterpret_cast<char*>(&error_manager_) -
  2719. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  2720. }
  2721. Parkspace_allocation_status_msg::~Parkspace_allocation_status_msg() {
  2722. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_status_msg)
  2723. SharedDtor();
  2724. }
  2725. void Parkspace_allocation_status_msg::SharedDtor() {
  2726. if (this != internal_default_instance()) delete base_info_;
  2727. if (this != internal_default_instance()) delete error_manager_;
  2728. }
  2729. void Parkspace_allocation_status_msg::SetCachedSize(int size) const {
  2730. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2731. _cached_size_ = size;
  2732. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2733. }
  2734. const ::google::protobuf::Descriptor* Parkspace_allocation_status_msg::descriptor() {
  2735. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2736. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2737. }
  2738. const Parkspace_allocation_status_msg& Parkspace_allocation_status_msg::default_instance() {
  2739. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg();
  2740. return *internal_default_instance();
  2741. }
  2742. Parkspace_allocation_status_msg* Parkspace_allocation_status_msg::New(::google::protobuf::Arena* arena) const {
  2743. Parkspace_allocation_status_msg* n = new Parkspace_allocation_status_msg;
  2744. if (arena != NULL) {
  2745. arena->Own(n);
  2746. }
  2747. return n;
  2748. }
  2749. void Parkspace_allocation_status_msg::Clear() {
  2750. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_status_msg)
  2751. ::google::protobuf::uint32 cached_has_bits = 0;
  2752. // Prevent compiler warnings about cached_has_bits being unused
  2753. (void) cached_has_bits;
  2754. parkspace_info_.Clear();
  2755. cached_has_bits = _has_bits_[0];
  2756. if (cached_has_bits & 3u) {
  2757. if (cached_has_bits & 0x00000001u) {
  2758. GOOGLE_DCHECK(base_info_ != NULL);
  2759. base_info_->Clear();
  2760. }
  2761. if (cached_has_bits & 0x00000002u) {
  2762. GOOGLE_DCHECK(error_manager_ != NULL);
  2763. error_manager_->Clear();
  2764. }
  2765. }
  2766. _has_bits_.Clear();
  2767. _internal_metadata_.Clear();
  2768. }
  2769. bool Parkspace_allocation_status_msg::MergePartialFromCodedStream(
  2770. ::google::protobuf::io::CodedInputStream* input) {
  2771. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2772. ::google::protobuf::uint32 tag;
  2773. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_status_msg)
  2774. for (;;) {
  2775. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2776. tag = p.first;
  2777. if (!p.second) goto handle_unusual;
  2778. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2779. // required .message.Base_info base_info = 1;
  2780. case 1: {
  2781. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2782. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2783. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2784. input, mutable_base_info()));
  2785. } else {
  2786. goto handle_unusual;
  2787. }
  2788. break;
  2789. }
  2790. // required .message.Error_manager error_manager = 2;
  2791. case 2: {
  2792. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2793. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2794. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2795. input, mutable_error_manager()));
  2796. } else {
  2797. goto handle_unusual;
  2798. }
  2799. break;
  2800. }
  2801. // repeated .message.Parkspace_info parkspace_info = 3;
  2802. case 3: {
  2803. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2804. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2805. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_parkspace_info()));
  2806. } else {
  2807. goto handle_unusual;
  2808. }
  2809. break;
  2810. }
  2811. default: {
  2812. handle_unusual:
  2813. if (tag == 0) {
  2814. goto success;
  2815. }
  2816. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2817. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2818. break;
  2819. }
  2820. }
  2821. }
  2822. success:
  2823. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_status_msg)
  2824. return true;
  2825. failure:
  2826. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_status_msg)
  2827. return false;
  2828. #undef DO_
  2829. }
  2830. void Parkspace_allocation_status_msg::SerializeWithCachedSizes(
  2831. ::google::protobuf::io::CodedOutputStream* output) const {
  2832. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_status_msg)
  2833. ::google::protobuf::uint32 cached_has_bits = 0;
  2834. (void) cached_has_bits;
  2835. cached_has_bits = _has_bits_[0];
  2836. // required .message.Base_info base_info = 1;
  2837. if (cached_has_bits & 0x00000001u) {
  2838. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2839. 1, *this->base_info_, output);
  2840. }
  2841. // required .message.Error_manager error_manager = 2;
  2842. if (cached_has_bits & 0x00000002u) {
  2843. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2844. 2, *this->error_manager_, output);
  2845. }
  2846. // repeated .message.Parkspace_info parkspace_info = 3;
  2847. for (unsigned int i = 0,
  2848. n = static_cast<unsigned int>(this->parkspace_info_size()); i < n; i++) {
  2849. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2850. 3, this->parkspace_info(static_cast<int>(i)), output);
  2851. }
  2852. if (_internal_metadata_.have_unknown_fields()) {
  2853. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2854. _internal_metadata_.unknown_fields(), output);
  2855. }
  2856. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_status_msg)
  2857. }
  2858. ::google::protobuf::uint8* Parkspace_allocation_status_msg::InternalSerializeWithCachedSizesToArray(
  2859. bool deterministic, ::google::protobuf::uint8* target) const {
  2860. (void)deterministic; // Unused
  2861. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_status_msg)
  2862. ::google::protobuf::uint32 cached_has_bits = 0;
  2863. (void) cached_has_bits;
  2864. cached_has_bits = _has_bits_[0];
  2865. // required .message.Base_info base_info = 1;
  2866. if (cached_has_bits & 0x00000001u) {
  2867. target = ::google::protobuf::internal::WireFormatLite::
  2868. InternalWriteMessageToArray(
  2869. 1, *this->base_info_, deterministic, target);
  2870. }
  2871. // required .message.Error_manager error_manager = 2;
  2872. if (cached_has_bits & 0x00000002u) {
  2873. target = ::google::protobuf::internal::WireFormatLite::
  2874. InternalWriteMessageToArray(
  2875. 2, *this->error_manager_, deterministic, target);
  2876. }
  2877. // repeated .message.Parkspace_info parkspace_info = 3;
  2878. for (unsigned int i = 0,
  2879. n = static_cast<unsigned int>(this->parkspace_info_size()); i < n; i++) {
  2880. target = ::google::protobuf::internal::WireFormatLite::
  2881. InternalWriteMessageToArray(
  2882. 3, this->parkspace_info(static_cast<int>(i)), deterministic, target);
  2883. }
  2884. if (_internal_metadata_.have_unknown_fields()) {
  2885. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2886. _internal_metadata_.unknown_fields(), target);
  2887. }
  2888. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_status_msg)
  2889. return target;
  2890. }
  2891. size_t Parkspace_allocation_status_msg::RequiredFieldsByteSizeFallback() const {
  2892. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_status_msg)
  2893. size_t total_size = 0;
  2894. if (has_base_info()) {
  2895. // required .message.Base_info base_info = 1;
  2896. total_size += 1 +
  2897. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2898. *this->base_info_);
  2899. }
  2900. if (has_error_manager()) {
  2901. // required .message.Error_manager error_manager = 2;
  2902. total_size += 1 +
  2903. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2904. *this->error_manager_);
  2905. }
  2906. return total_size;
  2907. }
  2908. size_t Parkspace_allocation_status_msg::ByteSizeLong() const {
  2909. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_status_msg)
  2910. size_t total_size = 0;
  2911. if (_internal_metadata_.have_unknown_fields()) {
  2912. total_size +=
  2913. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2914. _internal_metadata_.unknown_fields());
  2915. }
  2916. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  2917. // required .message.Base_info base_info = 1;
  2918. total_size += 1 +
  2919. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2920. *this->base_info_);
  2921. // required .message.Error_manager error_manager = 2;
  2922. total_size += 1 +
  2923. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2924. *this->error_manager_);
  2925. } else {
  2926. total_size += RequiredFieldsByteSizeFallback();
  2927. }
  2928. // repeated .message.Parkspace_info parkspace_info = 3;
  2929. {
  2930. unsigned int count = static_cast<unsigned int>(this->parkspace_info_size());
  2931. total_size += 1UL * count;
  2932. for (unsigned int i = 0; i < count; i++) {
  2933. total_size +=
  2934. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2935. this->parkspace_info(static_cast<int>(i)));
  2936. }
  2937. }
  2938. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2939. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2940. _cached_size_ = cached_size;
  2941. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2942. return total_size;
  2943. }
  2944. void Parkspace_allocation_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2945. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_status_msg)
  2946. GOOGLE_DCHECK_NE(&from, this);
  2947. const Parkspace_allocation_status_msg* source =
  2948. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_status_msg>(
  2949. &from);
  2950. if (source == NULL) {
  2951. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_status_msg)
  2952. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2953. } else {
  2954. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_status_msg)
  2955. MergeFrom(*source);
  2956. }
  2957. }
  2958. void Parkspace_allocation_status_msg::MergeFrom(const Parkspace_allocation_status_msg& from) {
  2959. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_status_msg)
  2960. GOOGLE_DCHECK_NE(&from, this);
  2961. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2962. ::google::protobuf::uint32 cached_has_bits = 0;
  2963. (void) cached_has_bits;
  2964. parkspace_info_.MergeFrom(from.parkspace_info_);
  2965. cached_has_bits = from._has_bits_[0];
  2966. if (cached_has_bits & 3u) {
  2967. if (cached_has_bits & 0x00000001u) {
  2968. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2969. }
  2970. if (cached_has_bits & 0x00000002u) {
  2971. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  2972. }
  2973. }
  2974. }
  2975. void Parkspace_allocation_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2976. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_status_msg)
  2977. if (&from == this) return;
  2978. Clear();
  2979. MergeFrom(from);
  2980. }
  2981. void Parkspace_allocation_status_msg::CopyFrom(const Parkspace_allocation_status_msg& from) {
  2982. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_status_msg)
  2983. if (&from == this) return;
  2984. Clear();
  2985. MergeFrom(from);
  2986. }
  2987. bool Parkspace_allocation_status_msg::IsInitialized() const {
  2988. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  2989. if (!::google::protobuf::internal::AllAreInitialized(this->parkspace_info())) return false;
  2990. if (has_base_info()) {
  2991. if (!this->base_info_->IsInitialized()) return false;
  2992. }
  2993. if (has_error_manager()) {
  2994. if (!this->error_manager_->IsInitialized()) return false;
  2995. }
  2996. return true;
  2997. }
  2998. void Parkspace_allocation_status_msg::Swap(Parkspace_allocation_status_msg* other) {
  2999. if (other == this) return;
  3000. InternalSwap(other);
  3001. }
  3002. void Parkspace_allocation_status_msg::InternalSwap(Parkspace_allocation_status_msg* other) {
  3003. using std::swap;
  3004. parkspace_info_.InternalSwap(&other->parkspace_info_);
  3005. swap(base_info_, other->base_info_);
  3006. swap(error_manager_, other->error_manager_);
  3007. swap(_has_bits_[0], other->_has_bits_[0]);
  3008. _internal_metadata_.Swap(&other->_internal_metadata_);
  3009. swap(_cached_size_, other->_cached_size_);
  3010. }
  3011. ::google::protobuf::Metadata Parkspace_allocation_status_msg::GetMetadata() const {
  3012. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3013. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3014. }
  3015. // @@protoc_insertion_point(namespace_scope)
  3016. } // namespace message
  3017. // @@protoc_insertion_point(global_scope)