parkspace_allocation_message.pb.cc 164 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279
  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_confirm_alloc_request_msgDefaultTypeInternal {
  51. public:
  52. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_confirm_alloc_request_msg>
  53. _instance;
  54. } _Parkspace_confirm_alloc_request_msg_default_instance_;
  55. class Parkspace_confirm_alloc_response_msgDefaultTypeInternal {
  56. public:
  57. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_confirm_alloc_response_msg>
  58. _instance;
  59. } _Parkspace_confirm_alloc_response_msg_default_instance_;
  60. class Parkspace_allocation_status_msgDefaultTypeInternal {
  61. public:
  62. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_status_msg>
  63. _instance;
  64. } _Parkspace_allocation_status_msg_default_instance_;
  65. } // namespace message
  66. namespace protobuf_parkspace_5fallocation_5fmessage_2eproto {
  67. void InitDefaultsParkspace_allocation_request_msgImpl() {
  68. GOOGLE_PROTOBUF_VERIFY_VERSION;
  69. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  70. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  71. #else
  72. ::google::protobuf::internal::InitProtobufDefaults();
  73. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  74. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  75. protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  76. {
  77. void* ptr = &::message::_Parkspace_allocation_request_msg_default_instance_;
  78. new (ptr) ::message::Parkspace_allocation_request_msg();
  79. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  80. }
  81. ::message::Parkspace_allocation_request_msg::InitAsDefaultInstance();
  82. }
  83. void InitDefaultsParkspace_allocation_request_msg() {
  84. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  85. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_request_msgImpl);
  86. }
  87. void InitDefaultsParkspace_allocation_response_msgImpl() {
  88. GOOGLE_PROTOBUF_VERIFY_VERSION;
  89. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  90. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  91. #else
  92. ::google::protobuf::internal::InitProtobufDefaults();
  93. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  94. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  95. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  96. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  97. {
  98. void* ptr = &::message::_Parkspace_allocation_response_msg_default_instance_;
  99. new (ptr) ::message::Parkspace_allocation_response_msg();
  100. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  101. }
  102. ::message::Parkspace_allocation_response_msg::InitAsDefaultInstance();
  103. }
  104. void InitDefaultsParkspace_allocation_response_msg() {
  105. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  106. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_response_msgImpl);
  107. }
  108. void InitDefaultsParkspace_search_request_msgImpl() {
  109. GOOGLE_PROTOBUF_VERIFY_VERSION;
  110. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  111. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  112. #else
  113. ::google::protobuf::internal::InitProtobufDefaults();
  114. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  115. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  116. protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  117. {
  118. void* ptr = &::message::_Parkspace_search_request_msg_default_instance_;
  119. new (ptr) ::message::Parkspace_search_request_msg();
  120. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  121. }
  122. ::message::Parkspace_search_request_msg::InitAsDefaultInstance();
  123. }
  124. void InitDefaultsParkspace_search_request_msg() {
  125. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  126. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_request_msgImpl);
  127. }
  128. void InitDefaultsParkspace_search_response_msgImpl() {
  129. GOOGLE_PROTOBUF_VERIFY_VERSION;
  130. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  131. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  132. #else
  133. ::google::protobuf::internal::InitProtobufDefaults();
  134. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  135. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  136. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  137. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  138. {
  139. void* ptr = &::message::_Parkspace_search_response_msg_default_instance_;
  140. new (ptr) ::message::Parkspace_search_response_msg();
  141. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  142. }
  143. ::message::Parkspace_search_response_msg::InitAsDefaultInstance();
  144. }
  145. void InitDefaultsParkspace_search_response_msg() {
  146. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  147. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_response_msgImpl);
  148. }
  149. void InitDefaultsParkspace_release_request_msgImpl() {
  150. GOOGLE_PROTOBUF_VERIFY_VERSION;
  151. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  152. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  153. #else
  154. ::google::protobuf::internal::InitProtobufDefaults();
  155. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  156. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  157. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  158. {
  159. void* ptr = &::message::_Parkspace_release_request_msg_default_instance_;
  160. new (ptr) ::message::Parkspace_release_request_msg();
  161. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  162. }
  163. ::message::Parkspace_release_request_msg::InitAsDefaultInstance();
  164. }
  165. void InitDefaultsParkspace_release_request_msg() {
  166. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  167. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_request_msgImpl);
  168. }
  169. void InitDefaultsParkspace_release_response_msgImpl() {
  170. GOOGLE_PROTOBUF_VERIFY_VERSION;
  171. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  172. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  173. #else
  174. ::google::protobuf::internal::InitProtobufDefaults();
  175. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  176. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  177. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  178. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  179. {
  180. void* ptr = &::message::_Parkspace_release_response_msg_default_instance_;
  181. new (ptr) ::message::Parkspace_release_response_msg();
  182. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  183. }
  184. ::message::Parkspace_release_response_msg::InitAsDefaultInstance();
  185. }
  186. void InitDefaultsParkspace_release_response_msg() {
  187. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  188. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_response_msgImpl);
  189. }
  190. void InitDefaultsParkspace_confirm_alloc_request_msgImpl() {
  191. GOOGLE_PROTOBUF_VERIFY_VERSION;
  192. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  193. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  194. #else
  195. ::google::protobuf::internal::InitProtobufDefaults();
  196. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  197. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  198. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  199. {
  200. void* ptr = &::message::_Parkspace_confirm_alloc_request_msg_default_instance_;
  201. new (ptr) ::message::Parkspace_confirm_alloc_request_msg();
  202. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  203. }
  204. ::message::Parkspace_confirm_alloc_request_msg::InitAsDefaultInstance();
  205. }
  206. void InitDefaultsParkspace_confirm_alloc_request_msg() {
  207. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  208. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_confirm_alloc_request_msgImpl);
  209. }
  210. void InitDefaultsParkspace_confirm_alloc_response_msgImpl() {
  211. GOOGLE_PROTOBUF_VERIFY_VERSION;
  212. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  213. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  214. #else
  215. ::google::protobuf::internal::InitProtobufDefaults();
  216. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  217. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  218. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  219. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  220. {
  221. void* ptr = &::message::_Parkspace_confirm_alloc_response_msg_default_instance_;
  222. new (ptr) ::message::Parkspace_confirm_alloc_response_msg();
  223. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  224. }
  225. ::message::Parkspace_confirm_alloc_response_msg::InitAsDefaultInstance();
  226. }
  227. void InitDefaultsParkspace_confirm_alloc_response_msg() {
  228. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  229. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_confirm_alloc_response_msgImpl);
  230. }
  231. void InitDefaultsParkspace_allocation_status_msgImpl() {
  232. GOOGLE_PROTOBUF_VERIFY_VERSION;
  233. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  234. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  235. #else
  236. ::google::protobuf::internal::InitProtobufDefaults();
  237. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  238. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  239. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  240. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  241. {
  242. void* ptr = &::message::_Parkspace_allocation_status_msg_default_instance_;
  243. new (ptr) ::message::Parkspace_allocation_status_msg();
  244. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  245. }
  246. ::message::Parkspace_allocation_status_msg::InitAsDefaultInstance();
  247. }
  248. void InitDefaultsParkspace_allocation_status_msg() {
  249. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  250. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_status_msgImpl);
  251. }
  252. ::google::protobuf::Metadata file_level_metadata[9];
  253. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _has_bits_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _internal_metadata_),
  256. ~0u, // no _extensions_
  257. ~0u, // no _oneof_case_
  258. ~0u, // no _weak_field_map_
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, base_info_),
  260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, command_id_),
  261. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_info_),
  262. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, terminal_id_),
  263. 0,
  264. 2,
  265. 1,
  266. 3,
  267. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_),
  268. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_),
  269. ~0u, // no _extensions_
  270. ~0u, // no _oneof_case_
  271. ~0u, // no _weak_field_map_
  272. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, base_info_),
  273. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, command_id_),
  274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_),
  275. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_space_info_),
  276. 0,
  277. 3,
  278. 1,
  279. 2,
  280. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _has_bits_),
  281. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _internal_metadata_),
  282. ~0u, // no _extensions_
  283. ~0u, // no _oneof_case_
  284. ~0u, // no _weak_field_map_
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, base_info_),
  286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, command_id_),
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, car_info_),
  288. 0,
  289. 2,
  290. 1,
  291. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _has_bits_),
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _internal_metadata_),
  293. ~0u, // no _extensions_
  294. ~0u, // no _oneof_case_
  295. ~0u, // no _weak_field_map_
  296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, base_info_),
  297. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, command_id_),
  298. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, error_manager_),
  299. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, car_position_),
  300. 0,
  301. 3,
  302. 1,
  303. 2,
  304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _has_bits_),
  305. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _internal_metadata_),
  306. ~0u, // no _extensions_
  307. ~0u, // no _oneof_case_
  308. ~0u, // no _weak_field_map_
  309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, base_info_),
  310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, command_id_),
  311. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, release_space_info_),
  312. 0,
  313. 2,
  314. 1,
  315. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _has_bits_),
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _internal_metadata_),
  317. ~0u, // no _extensions_
  318. ~0u, // no _oneof_case_
  319. ~0u, // no _weak_field_map_
  320. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, base_info_),
  321. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, command_id_),
  322. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, error_manager_),
  323. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, release_space_info_),
  324. 0,
  325. 3,
  326. 1,
  327. 2,
  328. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, _has_bits_),
  329. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, _internal_metadata_),
  330. ~0u, // no _extensions_
  331. ~0u, // no _oneof_case_
  332. ~0u, // no _weak_field_map_
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, base_info_),
  334. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, command_id_),
  335. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, confirm_space_info_),
  336. 0,
  337. 2,
  338. 1,
  339. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, _has_bits_),
  340. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, _internal_metadata_),
  341. ~0u, // no _extensions_
  342. ~0u, // no _oneof_case_
  343. ~0u, // no _weak_field_map_
  344. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, base_info_),
  345. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, command_id_),
  346. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, error_manager_),
  347. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, confirm_alloc_space_info_),
  348. 0,
  349. 3,
  350. 1,
  351. 2,
  352. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _has_bits_),
  353. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _internal_metadata_),
  354. ~0u, // no _extensions_
  355. ~0u, // no _oneof_case_
  356. ~0u, // no _weak_field_map_
  357. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, base_info_),
  358. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, error_manager_),
  359. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, parkspace_info_),
  360. 0,
  361. 1,
  362. ~0u,
  363. };
  364. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  365. { 0, 9, sizeof(::message::Parkspace_allocation_request_msg)},
  366. { 13, 22, sizeof(::message::Parkspace_allocation_response_msg)},
  367. { 26, 34, sizeof(::message::Parkspace_search_request_msg)},
  368. { 37, 46, sizeof(::message::Parkspace_search_response_msg)},
  369. { 50, 58, sizeof(::message::Parkspace_release_request_msg)},
  370. { 61, 70, sizeof(::message::Parkspace_release_response_msg)},
  371. { 74, 82, sizeof(::message::Parkspace_confirm_alloc_request_msg)},
  372. { 85, 94, sizeof(::message::Parkspace_confirm_alloc_response_msg)},
  373. { 98, 106, sizeof(::message::Parkspace_allocation_status_msg)},
  374. };
  375. static ::google::protobuf::Message const * const file_default_instances[] = {
  376. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_request_msg_default_instance_),
  377. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_response_msg_default_instance_),
  378. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_search_request_msg_default_instance_),
  379. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_search_response_msg_default_instance_),
  380. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_release_request_msg_default_instance_),
  381. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_release_response_msg_default_instance_),
  382. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_confirm_alloc_request_msg_default_instance_),
  383. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_confirm_alloc_response_msg_default_instance_),
  384. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_status_msg_default_instance_),
  385. };
  386. void protobuf_AssignDescriptors() {
  387. AddDescriptors();
  388. ::google::protobuf::MessageFactory* factory = NULL;
  389. AssignDescriptors(
  390. "parkspace_allocation_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  391. file_level_metadata, NULL, NULL);
  392. }
  393. void protobuf_AssignDescriptorsOnce() {
  394. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  395. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  396. }
  397. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  398. void protobuf_RegisterTypes(const ::std::string&) {
  399. protobuf_AssignDescriptorsOnce();
  400. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9);
  401. }
  402. void AddDescriptorsImpl() {
  403. InitDefaults();
  404. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  405. "\n\"parkspace_allocation_message.proto\022\007me"
  406. "ssage\032\022message_base.proto\"\227\001\n Parkspace_"
  407. "allocation_request_msg\022%\n\tbase_info\030\001 \002("
  408. "\0132\022.message.Base_info\022\022\n\ncommand_id\030\002 \002("
  409. "\005\022#\n\010car_info\030\003 \002(\0132\021.message.Car_info\022\023"
  410. "\n\013terminal_id\030\004 \002(\005\"\304\001\n!Parkspace_alloca"
  411. "tion_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.m"
  412. "essage.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022-\n\r"
  413. "error_manager\030\003 \002(\0132\026.message.Error_mana"
  414. "ger\0225\n\024allocated_space_info\030\004 \002(\0132\027.mess"
  415. "age.Parkspace_info\"~\n\034Parkspace_search_r"
  416. "equest_msg\022%\n\tbase_info\030\001 \002(\0132\022.message."
  417. "Base_info\022\022\n\ncommand_id\030\002 \002(\005\022#\n\010car_inf"
  418. "o\030\003 \002(\0132\021.message.Car_info\"\270\001\n\035Parkspace"
  419. "_search_response_msg\022%\n\tbase_info\030\001 \002(\0132"
  420. "\022.message.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022"
  421. "-\n\rerror_manager\030\003 \002(\0132\026.message.Error_m"
  422. "anager\022-\n\014car_position\030\004 \001(\0132\027.message.P"
  423. "arkspace_info\"\217\001\n\035Parkspace_release_requ"
  424. "est_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Bas"
  425. "e_info\022\022\n\ncommand_id\030\002 \002(\005\0223\n\022release_sp"
  426. "ace_info\030\003 \002(\0132\027.message.Parkspace_info\""
  427. "\277\001\n\036Parkspace_release_response_msg\022%\n\tba"
  428. "se_info\030\001 \002(\0132\022.message.Base_info\022\022\n\ncom"
  429. "mand_id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026.m"
  430. "essage.Error_manager\0223\n\022release_space_in"
  431. "fo\030\004 \002(\0132\027.message.Parkspace_info\"\225\001\n#Pa"
  432. "rkspace_confirm_alloc_request_msg\022%\n\tbas"
  433. "e_info\030\001 \002(\0132\022.message.Base_info\022\022\n\ncomm"
  434. "and_id\030\002 \002(\005\0223\n\022confirm_space_info\030\003 \002(\013"
  435. "2\027.message.Parkspace_info\"\313\001\n$Parkspace_"
  436. "confirm_alloc_response_msg\022%\n\tbase_info\030"
  437. "\001 \002(\0132\022.message.Base_info\022\022\n\ncommand_id\030"
  438. "\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026.message.E"
  439. "rror_manager\0229\n\030confirm_alloc_space_info"
  440. "\030\004 \002(\0132\027.message.Parkspace_info\"\250\001\n\037Park"
  441. "space_allocation_status_msg\022%\n\tbase_info"
  442. "\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_mana"
  443. "ger\030\002 \002(\0132\026.message.Error_manager\022/\n\016par"
  444. "kspace_info\030\003 \003(\0132\027.message.Parkspace_in"
  445. "fo"
  446. };
  447. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  448. descriptor, 1602);
  449. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  450. "parkspace_allocation_message.proto", &protobuf_RegisterTypes);
  451. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  452. }
  453. void AddDescriptors() {
  454. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  455. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  456. }
  457. // Force AddDescriptors() to be called at dynamic initialization time.
  458. struct StaticDescriptorInitializer {
  459. StaticDescriptorInitializer() {
  460. AddDescriptors();
  461. }
  462. } static_descriptor_initializer;
  463. } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto
  464. namespace message {
  465. // ===================================================================
  466. void Parkspace_allocation_request_msg::InitAsDefaultInstance() {
  467. ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  468. ::message::Base_info::internal_default_instance());
  469. ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  470. ::message::Car_info::internal_default_instance());
  471. }
  472. void Parkspace_allocation_request_msg::clear_base_info() {
  473. if (base_info_ != NULL) base_info_->Clear();
  474. clear_has_base_info();
  475. }
  476. void Parkspace_allocation_request_msg::clear_car_info() {
  477. if (car_info_ != NULL) car_info_->Clear();
  478. clear_has_car_info();
  479. }
  480. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  481. const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber;
  482. const int Parkspace_allocation_request_msg::kCommandIdFieldNumber;
  483. const int Parkspace_allocation_request_msg::kCarInfoFieldNumber;
  484. const int Parkspace_allocation_request_msg::kTerminalIdFieldNumber;
  485. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  486. Parkspace_allocation_request_msg::Parkspace_allocation_request_msg()
  487. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  488. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  489. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg();
  490. }
  491. SharedCtor();
  492. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_request_msg)
  493. }
  494. Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspace_allocation_request_msg& from)
  495. : ::google::protobuf::Message(),
  496. _internal_metadata_(NULL),
  497. _has_bits_(from._has_bits_),
  498. _cached_size_(0) {
  499. _internal_metadata_.MergeFrom(from._internal_metadata_);
  500. if (from.has_base_info()) {
  501. base_info_ = new ::message::Base_info(*from.base_info_);
  502. } else {
  503. base_info_ = NULL;
  504. }
  505. if (from.has_car_info()) {
  506. car_info_ = new ::message::Car_info(*from.car_info_);
  507. } else {
  508. car_info_ = NULL;
  509. }
  510. ::memcpy(&command_id_, &from.command_id_,
  511. static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
  512. reinterpret_cast<char*>(&command_id_)) + sizeof(terminal_id_));
  513. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg)
  514. }
  515. void Parkspace_allocation_request_msg::SharedCtor() {
  516. _cached_size_ = 0;
  517. ::memset(&base_info_, 0, static_cast<size_t>(
  518. reinterpret_cast<char*>(&terminal_id_) -
  519. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  520. }
  521. Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() {
  522. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_request_msg)
  523. SharedDtor();
  524. }
  525. void Parkspace_allocation_request_msg::SharedDtor() {
  526. if (this != internal_default_instance()) delete base_info_;
  527. if (this != internal_default_instance()) delete car_info_;
  528. }
  529. void Parkspace_allocation_request_msg::SetCachedSize(int size) const {
  530. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  531. _cached_size_ = size;
  532. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  533. }
  534. const ::google::protobuf::Descriptor* Parkspace_allocation_request_msg::descriptor() {
  535. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  536. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  537. }
  538. const Parkspace_allocation_request_msg& Parkspace_allocation_request_msg::default_instance() {
  539. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg();
  540. return *internal_default_instance();
  541. }
  542. Parkspace_allocation_request_msg* Parkspace_allocation_request_msg::New(::google::protobuf::Arena* arena) const {
  543. Parkspace_allocation_request_msg* n = new Parkspace_allocation_request_msg;
  544. if (arena != NULL) {
  545. arena->Own(n);
  546. }
  547. return n;
  548. }
  549. void Parkspace_allocation_request_msg::Clear() {
  550. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_request_msg)
  551. ::google::protobuf::uint32 cached_has_bits = 0;
  552. // Prevent compiler warnings about cached_has_bits being unused
  553. (void) cached_has_bits;
  554. cached_has_bits = _has_bits_[0];
  555. if (cached_has_bits & 3u) {
  556. if (cached_has_bits & 0x00000001u) {
  557. GOOGLE_DCHECK(base_info_ != NULL);
  558. base_info_->Clear();
  559. }
  560. if (cached_has_bits & 0x00000002u) {
  561. GOOGLE_DCHECK(car_info_ != NULL);
  562. car_info_->Clear();
  563. }
  564. }
  565. if (cached_has_bits & 12u) {
  566. ::memset(&command_id_, 0, static_cast<size_t>(
  567. reinterpret_cast<char*>(&terminal_id_) -
  568. reinterpret_cast<char*>(&command_id_)) + sizeof(terminal_id_));
  569. }
  570. _has_bits_.Clear();
  571. _internal_metadata_.Clear();
  572. }
  573. bool Parkspace_allocation_request_msg::MergePartialFromCodedStream(
  574. ::google::protobuf::io::CodedInputStream* input) {
  575. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  576. ::google::protobuf::uint32 tag;
  577. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_request_msg)
  578. for (;;) {
  579. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  580. tag = p.first;
  581. if (!p.second) goto handle_unusual;
  582. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  583. // required .message.Base_info base_info = 1;
  584. case 1: {
  585. if (static_cast< ::google::protobuf::uint8>(tag) ==
  586. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  587. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  588. input, mutable_base_info()));
  589. } else {
  590. goto handle_unusual;
  591. }
  592. break;
  593. }
  594. // required int32 command_id = 2;
  595. case 2: {
  596. if (static_cast< ::google::protobuf::uint8>(tag) ==
  597. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  598. set_has_command_id();
  599. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  600. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  601. input, &command_id_)));
  602. } else {
  603. goto handle_unusual;
  604. }
  605. break;
  606. }
  607. // required .message.Car_info car_info = 3;
  608. case 3: {
  609. if (static_cast< ::google::protobuf::uint8>(tag) ==
  610. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  611. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  612. input, mutable_car_info()));
  613. } else {
  614. goto handle_unusual;
  615. }
  616. break;
  617. }
  618. // required int32 terminal_id = 4;
  619. case 4: {
  620. if (static_cast< ::google::protobuf::uint8>(tag) ==
  621. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  622. set_has_terminal_id();
  623. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  624. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  625. input, &terminal_id_)));
  626. } else {
  627. goto handle_unusual;
  628. }
  629. break;
  630. }
  631. default: {
  632. handle_unusual:
  633. if (tag == 0) {
  634. goto success;
  635. }
  636. DO_(::google::protobuf::internal::WireFormat::SkipField(
  637. input, tag, _internal_metadata_.mutable_unknown_fields()));
  638. break;
  639. }
  640. }
  641. }
  642. success:
  643. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_request_msg)
  644. return true;
  645. failure:
  646. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_request_msg)
  647. return false;
  648. #undef DO_
  649. }
  650. void Parkspace_allocation_request_msg::SerializeWithCachedSizes(
  651. ::google::protobuf::io::CodedOutputStream* output) const {
  652. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_request_msg)
  653. ::google::protobuf::uint32 cached_has_bits = 0;
  654. (void) cached_has_bits;
  655. cached_has_bits = _has_bits_[0];
  656. // required .message.Base_info base_info = 1;
  657. if (cached_has_bits & 0x00000001u) {
  658. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  659. 1, *this->base_info_, output);
  660. }
  661. // required int32 command_id = 2;
  662. if (cached_has_bits & 0x00000004u) {
  663. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  664. }
  665. // required .message.Car_info car_info = 3;
  666. if (cached_has_bits & 0x00000002u) {
  667. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  668. 3, *this->car_info_, output);
  669. }
  670. // required int32 terminal_id = 4;
  671. if (cached_has_bits & 0x00000008u) {
  672. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output);
  673. }
  674. if (_internal_metadata_.have_unknown_fields()) {
  675. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  676. _internal_metadata_.unknown_fields(), output);
  677. }
  678. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_request_msg)
  679. }
  680. ::google::protobuf::uint8* Parkspace_allocation_request_msg::InternalSerializeWithCachedSizesToArray(
  681. bool deterministic, ::google::protobuf::uint8* target) const {
  682. (void)deterministic; // Unused
  683. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_request_msg)
  684. ::google::protobuf::uint32 cached_has_bits = 0;
  685. (void) cached_has_bits;
  686. cached_has_bits = _has_bits_[0];
  687. // required .message.Base_info base_info = 1;
  688. if (cached_has_bits & 0x00000001u) {
  689. target = ::google::protobuf::internal::WireFormatLite::
  690. InternalWriteMessageToArray(
  691. 1, *this->base_info_, deterministic, target);
  692. }
  693. // required int32 command_id = 2;
  694. if (cached_has_bits & 0x00000004u) {
  695. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  696. }
  697. // required .message.Car_info car_info = 3;
  698. if (cached_has_bits & 0x00000002u) {
  699. target = ::google::protobuf::internal::WireFormatLite::
  700. InternalWriteMessageToArray(
  701. 3, *this->car_info_, deterministic, target);
  702. }
  703. // required int32 terminal_id = 4;
  704. if (cached_has_bits & 0x00000008u) {
  705. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), target);
  706. }
  707. if (_internal_metadata_.have_unknown_fields()) {
  708. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  709. _internal_metadata_.unknown_fields(), target);
  710. }
  711. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_request_msg)
  712. return target;
  713. }
  714. size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const {
  715. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_request_msg)
  716. size_t total_size = 0;
  717. if (has_base_info()) {
  718. // required .message.Base_info base_info = 1;
  719. total_size += 1 +
  720. ::google::protobuf::internal::WireFormatLite::MessageSize(
  721. *this->base_info_);
  722. }
  723. if (has_car_info()) {
  724. // required .message.Car_info car_info = 3;
  725. total_size += 1 +
  726. ::google::protobuf::internal::WireFormatLite::MessageSize(
  727. *this->car_info_);
  728. }
  729. if (has_command_id()) {
  730. // required int32 command_id = 2;
  731. total_size += 1 +
  732. ::google::protobuf::internal::WireFormatLite::Int32Size(
  733. this->command_id());
  734. }
  735. if (has_terminal_id()) {
  736. // required int32 terminal_id = 4;
  737. total_size += 1 +
  738. ::google::protobuf::internal::WireFormatLite::Int32Size(
  739. this->terminal_id());
  740. }
  741. return total_size;
  742. }
  743. size_t Parkspace_allocation_request_msg::ByteSizeLong() const {
  744. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_request_msg)
  745. size_t total_size = 0;
  746. if (_internal_metadata_.have_unknown_fields()) {
  747. total_size +=
  748. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  749. _internal_metadata_.unknown_fields());
  750. }
  751. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  752. // required .message.Base_info base_info = 1;
  753. total_size += 1 +
  754. ::google::protobuf::internal::WireFormatLite::MessageSize(
  755. *this->base_info_);
  756. // required .message.Car_info car_info = 3;
  757. total_size += 1 +
  758. ::google::protobuf::internal::WireFormatLite::MessageSize(
  759. *this->car_info_);
  760. // required int32 command_id = 2;
  761. total_size += 1 +
  762. ::google::protobuf::internal::WireFormatLite::Int32Size(
  763. this->command_id());
  764. // required int32 terminal_id = 4;
  765. total_size += 1 +
  766. ::google::protobuf::internal::WireFormatLite::Int32Size(
  767. this->terminal_id());
  768. } else {
  769. total_size += RequiredFieldsByteSizeFallback();
  770. }
  771. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  772. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  773. _cached_size_ = cached_size;
  774. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  775. return total_size;
  776. }
  777. void Parkspace_allocation_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  778. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_request_msg)
  779. GOOGLE_DCHECK_NE(&from, this);
  780. const Parkspace_allocation_request_msg* source =
  781. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_request_msg>(
  782. &from);
  783. if (source == NULL) {
  784. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_request_msg)
  785. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  786. } else {
  787. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_request_msg)
  788. MergeFrom(*source);
  789. }
  790. }
  791. void Parkspace_allocation_request_msg::MergeFrom(const Parkspace_allocation_request_msg& from) {
  792. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_request_msg)
  793. GOOGLE_DCHECK_NE(&from, this);
  794. _internal_metadata_.MergeFrom(from._internal_metadata_);
  795. ::google::protobuf::uint32 cached_has_bits = 0;
  796. (void) cached_has_bits;
  797. cached_has_bits = from._has_bits_[0];
  798. if (cached_has_bits & 15u) {
  799. if (cached_has_bits & 0x00000001u) {
  800. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  801. }
  802. if (cached_has_bits & 0x00000002u) {
  803. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  804. }
  805. if (cached_has_bits & 0x00000004u) {
  806. command_id_ = from.command_id_;
  807. }
  808. if (cached_has_bits & 0x00000008u) {
  809. terminal_id_ = from.terminal_id_;
  810. }
  811. _has_bits_[0] |= cached_has_bits;
  812. }
  813. }
  814. void Parkspace_allocation_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  815. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_request_msg)
  816. if (&from == this) return;
  817. Clear();
  818. MergeFrom(from);
  819. }
  820. void Parkspace_allocation_request_msg::CopyFrom(const Parkspace_allocation_request_msg& from) {
  821. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_request_msg)
  822. if (&from == this) return;
  823. Clear();
  824. MergeFrom(from);
  825. }
  826. bool Parkspace_allocation_request_msg::IsInitialized() const {
  827. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  828. if (has_base_info()) {
  829. if (!this->base_info_->IsInitialized()) return false;
  830. }
  831. return true;
  832. }
  833. void Parkspace_allocation_request_msg::Swap(Parkspace_allocation_request_msg* other) {
  834. if (other == this) return;
  835. InternalSwap(other);
  836. }
  837. void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request_msg* other) {
  838. using std::swap;
  839. swap(base_info_, other->base_info_);
  840. swap(car_info_, other->car_info_);
  841. swap(command_id_, other->command_id_);
  842. swap(terminal_id_, other->terminal_id_);
  843. swap(_has_bits_[0], other->_has_bits_[0]);
  844. _internal_metadata_.Swap(&other->_internal_metadata_);
  845. swap(_cached_size_, other->_cached_size_);
  846. }
  847. ::google::protobuf::Metadata Parkspace_allocation_request_msg::GetMetadata() const {
  848. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  849. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  850. }
  851. // ===================================================================
  852. void Parkspace_allocation_response_msg::InitAsDefaultInstance() {
  853. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  854. ::message::Base_info::internal_default_instance());
  855. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  856. ::message::Error_manager::internal_default_instance());
  857. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->allocated_space_info_ = const_cast< ::message::Parkspace_info*>(
  858. ::message::Parkspace_info::internal_default_instance());
  859. }
  860. void Parkspace_allocation_response_msg::clear_base_info() {
  861. if (base_info_ != NULL) base_info_->Clear();
  862. clear_has_base_info();
  863. }
  864. void Parkspace_allocation_response_msg::clear_error_manager() {
  865. if (error_manager_ != NULL) error_manager_->Clear();
  866. clear_has_error_manager();
  867. }
  868. void Parkspace_allocation_response_msg::clear_allocated_space_info() {
  869. if (allocated_space_info_ != NULL) allocated_space_info_->Clear();
  870. clear_has_allocated_space_info();
  871. }
  872. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  873. const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber;
  874. const int Parkspace_allocation_response_msg::kCommandIdFieldNumber;
  875. const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber;
  876. const int Parkspace_allocation_response_msg::kAllocatedSpaceInfoFieldNumber;
  877. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  878. Parkspace_allocation_response_msg::Parkspace_allocation_response_msg()
  879. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  880. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  881. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg();
  882. }
  883. SharedCtor();
  884. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_response_msg)
  885. }
  886. Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parkspace_allocation_response_msg& from)
  887. : ::google::protobuf::Message(),
  888. _internal_metadata_(NULL),
  889. _has_bits_(from._has_bits_),
  890. _cached_size_(0) {
  891. _internal_metadata_.MergeFrom(from._internal_metadata_);
  892. if (from.has_base_info()) {
  893. base_info_ = new ::message::Base_info(*from.base_info_);
  894. } else {
  895. base_info_ = NULL;
  896. }
  897. if (from.has_error_manager()) {
  898. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  899. } else {
  900. error_manager_ = NULL;
  901. }
  902. if (from.has_allocated_space_info()) {
  903. allocated_space_info_ = new ::message::Parkspace_info(*from.allocated_space_info_);
  904. } else {
  905. allocated_space_info_ = NULL;
  906. }
  907. command_id_ = from.command_id_;
  908. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg)
  909. }
  910. void Parkspace_allocation_response_msg::SharedCtor() {
  911. _cached_size_ = 0;
  912. ::memset(&base_info_, 0, static_cast<size_t>(
  913. reinterpret_cast<char*>(&command_id_) -
  914. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  915. }
  916. Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() {
  917. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg)
  918. SharedDtor();
  919. }
  920. void Parkspace_allocation_response_msg::SharedDtor() {
  921. if (this != internal_default_instance()) delete base_info_;
  922. if (this != internal_default_instance()) delete error_manager_;
  923. if (this != internal_default_instance()) delete allocated_space_info_;
  924. }
  925. void Parkspace_allocation_response_msg::SetCachedSize(int size) const {
  926. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  927. _cached_size_ = size;
  928. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  929. }
  930. const ::google::protobuf::Descriptor* Parkspace_allocation_response_msg::descriptor() {
  931. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  932. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  933. }
  934. const Parkspace_allocation_response_msg& Parkspace_allocation_response_msg::default_instance() {
  935. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg();
  936. return *internal_default_instance();
  937. }
  938. Parkspace_allocation_response_msg* Parkspace_allocation_response_msg::New(::google::protobuf::Arena* arena) const {
  939. Parkspace_allocation_response_msg* n = new Parkspace_allocation_response_msg;
  940. if (arena != NULL) {
  941. arena->Own(n);
  942. }
  943. return n;
  944. }
  945. void Parkspace_allocation_response_msg::Clear() {
  946. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_response_msg)
  947. ::google::protobuf::uint32 cached_has_bits = 0;
  948. // Prevent compiler warnings about cached_has_bits being unused
  949. (void) cached_has_bits;
  950. cached_has_bits = _has_bits_[0];
  951. if (cached_has_bits & 7u) {
  952. if (cached_has_bits & 0x00000001u) {
  953. GOOGLE_DCHECK(base_info_ != NULL);
  954. base_info_->Clear();
  955. }
  956. if (cached_has_bits & 0x00000002u) {
  957. GOOGLE_DCHECK(error_manager_ != NULL);
  958. error_manager_->Clear();
  959. }
  960. if (cached_has_bits & 0x00000004u) {
  961. GOOGLE_DCHECK(allocated_space_info_ != NULL);
  962. allocated_space_info_->Clear();
  963. }
  964. }
  965. command_id_ = 0;
  966. _has_bits_.Clear();
  967. _internal_metadata_.Clear();
  968. }
  969. bool Parkspace_allocation_response_msg::MergePartialFromCodedStream(
  970. ::google::protobuf::io::CodedInputStream* input) {
  971. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  972. ::google::protobuf::uint32 tag;
  973. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_response_msg)
  974. for (;;) {
  975. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  976. tag = p.first;
  977. if (!p.second) goto handle_unusual;
  978. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  979. // required .message.Base_info base_info = 1;
  980. case 1: {
  981. if (static_cast< ::google::protobuf::uint8>(tag) ==
  982. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  983. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  984. input, mutable_base_info()));
  985. } else {
  986. goto handle_unusual;
  987. }
  988. break;
  989. }
  990. // required int32 command_id = 2;
  991. case 2: {
  992. if (static_cast< ::google::protobuf::uint8>(tag) ==
  993. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  994. set_has_command_id();
  995. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  996. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  997. input, &command_id_)));
  998. } else {
  999. goto handle_unusual;
  1000. }
  1001. break;
  1002. }
  1003. // required .message.Error_manager error_manager = 3;
  1004. case 3: {
  1005. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1006. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1007. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1008. input, mutable_error_manager()));
  1009. } else {
  1010. goto handle_unusual;
  1011. }
  1012. break;
  1013. }
  1014. // required .message.Parkspace_info allocated_space_info = 4;
  1015. case 4: {
  1016. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1017. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1018. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1019. input, mutable_allocated_space_info()));
  1020. } else {
  1021. goto handle_unusual;
  1022. }
  1023. break;
  1024. }
  1025. default: {
  1026. handle_unusual:
  1027. if (tag == 0) {
  1028. goto success;
  1029. }
  1030. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1031. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1032. break;
  1033. }
  1034. }
  1035. }
  1036. success:
  1037. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_response_msg)
  1038. return true;
  1039. failure:
  1040. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_response_msg)
  1041. return false;
  1042. #undef DO_
  1043. }
  1044. void Parkspace_allocation_response_msg::SerializeWithCachedSizes(
  1045. ::google::protobuf::io::CodedOutputStream* output) const {
  1046. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_response_msg)
  1047. ::google::protobuf::uint32 cached_has_bits = 0;
  1048. (void) cached_has_bits;
  1049. cached_has_bits = _has_bits_[0];
  1050. // required .message.Base_info base_info = 1;
  1051. if (cached_has_bits & 0x00000001u) {
  1052. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1053. 1, *this->base_info_, output);
  1054. }
  1055. // required int32 command_id = 2;
  1056. if (cached_has_bits & 0x00000008u) {
  1057. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1058. }
  1059. // required .message.Error_manager error_manager = 3;
  1060. if (cached_has_bits & 0x00000002u) {
  1061. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1062. 3, *this->error_manager_, output);
  1063. }
  1064. // required .message.Parkspace_info allocated_space_info = 4;
  1065. if (cached_has_bits & 0x00000004u) {
  1066. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1067. 4, *this->allocated_space_info_, output);
  1068. }
  1069. if (_internal_metadata_.have_unknown_fields()) {
  1070. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1071. _internal_metadata_.unknown_fields(), output);
  1072. }
  1073. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_response_msg)
  1074. }
  1075. ::google::protobuf::uint8* Parkspace_allocation_response_msg::InternalSerializeWithCachedSizesToArray(
  1076. bool deterministic, ::google::protobuf::uint8* target) const {
  1077. (void)deterministic; // Unused
  1078. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_response_msg)
  1079. ::google::protobuf::uint32 cached_has_bits = 0;
  1080. (void) cached_has_bits;
  1081. cached_has_bits = _has_bits_[0];
  1082. // required .message.Base_info base_info = 1;
  1083. if (cached_has_bits & 0x00000001u) {
  1084. target = ::google::protobuf::internal::WireFormatLite::
  1085. InternalWriteMessageToArray(
  1086. 1, *this->base_info_, deterministic, target);
  1087. }
  1088. // required int32 command_id = 2;
  1089. if (cached_has_bits & 0x00000008u) {
  1090. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1091. }
  1092. // required .message.Error_manager error_manager = 3;
  1093. if (cached_has_bits & 0x00000002u) {
  1094. target = ::google::protobuf::internal::WireFormatLite::
  1095. InternalWriteMessageToArray(
  1096. 3, *this->error_manager_, deterministic, target);
  1097. }
  1098. // required .message.Parkspace_info allocated_space_info = 4;
  1099. if (cached_has_bits & 0x00000004u) {
  1100. target = ::google::protobuf::internal::WireFormatLite::
  1101. InternalWriteMessageToArray(
  1102. 4, *this->allocated_space_info_, deterministic, target);
  1103. }
  1104. if (_internal_metadata_.have_unknown_fields()) {
  1105. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1106. _internal_metadata_.unknown_fields(), target);
  1107. }
  1108. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_response_msg)
  1109. return target;
  1110. }
  1111. size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const {
  1112. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_response_msg)
  1113. size_t total_size = 0;
  1114. if (has_base_info()) {
  1115. // required .message.Base_info base_info = 1;
  1116. total_size += 1 +
  1117. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1118. *this->base_info_);
  1119. }
  1120. if (has_error_manager()) {
  1121. // required .message.Error_manager error_manager = 3;
  1122. total_size += 1 +
  1123. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1124. *this->error_manager_);
  1125. }
  1126. if (has_allocated_space_info()) {
  1127. // required .message.Parkspace_info allocated_space_info = 4;
  1128. total_size += 1 +
  1129. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1130. *this->allocated_space_info_);
  1131. }
  1132. if (has_command_id()) {
  1133. // required int32 command_id = 2;
  1134. total_size += 1 +
  1135. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1136. this->command_id());
  1137. }
  1138. return total_size;
  1139. }
  1140. size_t Parkspace_allocation_response_msg::ByteSizeLong() const {
  1141. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_response_msg)
  1142. size_t total_size = 0;
  1143. if (_internal_metadata_.have_unknown_fields()) {
  1144. total_size +=
  1145. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1146. _internal_metadata_.unknown_fields());
  1147. }
  1148. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1149. // required .message.Base_info base_info = 1;
  1150. total_size += 1 +
  1151. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1152. *this->base_info_);
  1153. // required .message.Error_manager error_manager = 3;
  1154. total_size += 1 +
  1155. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1156. *this->error_manager_);
  1157. // required .message.Parkspace_info allocated_space_info = 4;
  1158. total_size += 1 +
  1159. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1160. *this->allocated_space_info_);
  1161. // required int32 command_id = 2;
  1162. total_size += 1 +
  1163. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1164. this->command_id());
  1165. } else {
  1166. total_size += RequiredFieldsByteSizeFallback();
  1167. }
  1168. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1169. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1170. _cached_size_ = cached_size;
  1171. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1172. return total_size;
  1173. }
  1174. void Parkspace_allocation_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1175. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_response_msg)
  1176. GOOGLE_DCHECK_NE(&from, this);
  1177. const Parkspace_allocation_response_msg* source =
  1178. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_response_msg>(
  1179. &from);
  1180. if (source == NULL) {
  1181. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_response_msg)
  1182. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1183. } else {
  1184. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_response_msg)
  1185. MergeFrom(*source);
  1186. }
  1187. }
  1188. void Parkspace_allocation_response_msg::MergeFrom(const Parkspace_allocation_response_msg& from) {
  1189. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_response_msg)
  1190. GOOGLE_DCHECK_NE(&from, this);
  1191. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1192. ::google::protobuf::uint32 cached_has_bits = 0;
  1193. (void) cached_has_bits;
  1194. cached_has_bits = from._has_bits_[0];
  1195. if (cached_has_bits & 15u) {
  1196. if (cached_has_bits & 0x00000001u) {
  1197. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1198. }
  1199. if (cached_has_bits & 0x00000002u) {
  1200. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1201. }
  1202. if (cached_has_bits & 0x00000004u) {
  1203. mutable_allocated_space_info()->::message::Parkspace_info::MergeFrom(from.allocated_space_info());
  1204. }
  1205. if (cached_has_bits & 0x00000008u) {
  1206. command_id_ = from.command_id_;
  1207. }
  1208. _has_bits_[0] |= cached_has_bits;
  1209. }
  1210. }
  1211. void Parkspace_allocation_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1212. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_response_msg)
  1213. if (&from == this) return;
  1214. Clear();
  1215. MergeFrom(from);
  1216. }
  1217. void Parkspace_allocation_response_msg::CopyFrom(const Parkspace_allocation_response_msg& from) {
  1218. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_response_msg)
  1219. if (&from == this) return;
  1220. Clear();
  1221. MergeFrom(from);
  1222. }
  1223. bool Parkspace_allocation_response_msg::IsInitialized() const {
  1224. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1225. if (has_base_info()) {
  1226. if (!this->base_info_->IsInitialized()) return false;
  1227. }
  1228. if (has_error_manager()) {
  1229. if (!this->error_manager_->IsInitialized()) return false;
  1230. }
  1231. return true;
  1232. }
  1233. void Parkspace_allocation_response_msg::Swap(Parkspace_allocation_response_msg* other) {
  1234. if (other == this) return;
  1235. InternalSwap(other);
  1236. }
  1237. void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_response_msg* other) {
  1238. using std::swap;
  1239. swap(base_info_, other->base_info_);
  1240. swap(error_manager_, other->error_manager_);
  1241. swap(allocated_space_info_, other->allocated_space_info_);
  1242. swap(command_id_, other->command_id_);
  1243. swap(_has_bits_[0], other->_has_bits_[0]);
  1244. _internal_metadata_.Swap(&other->_internal_metadata_);
  1245. swap(_cached_size_, other->_cached_size_);
  1246. }
  1247. ::google::protobuf::Metadata Parkspace_allocation_response_msg::GetMetadata() const {
  1248. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1249. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1250. }
  1251. // ===================================================================
  1252. void Parkspace_search_request_msg::InitAsDefaultInstance() {
  1253. ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1254. ::message::Base_info::internal_default_instance());
  1255. ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  1256. ::message::Car_info::internal_default_instance());
  1257. }
  1258. void Parkspace_search_request_msg::clear_base_info() {
  1259. if (base_info_ != NULL) base_info_->Clear();
  1260. clear_has_base_info();
  1261. }
  1262. void Parkspace_search_request_msg::clear_car_info() {
  1263. if (car_info_ != NULL) car_info_->Clear();
  1264. clear_has_car_info();
  1265. }
  1266. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1267. const int Parkspace_search_request_msg::kBaseInfoFieldNumber;
  1268. const int Parkspace_search_request_msg::kCommandIdFieldNumber;
  1269. const int Parkspace_search_request_msg::kCarInfoFieldNumber;
  1270. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1271. Parkspace_search_request_msg::Parkspace_search_request_msg()
  1272. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1273. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1274. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg();
  1275. }
  1276. SharedCtor();
  1277. // @@protoc_insertion_point(constructor:message.Parkspace_search_request_msg)
  1278. }
  1279. Parkspace_search_request_msg::Parkspace_search_request_msg(const Parkspace_search_request_msg& from)
  1280. : ::google::protobuf::Message(),
  1281. _internal_metadata_(NULL),
  1282. _has_bits_(from._has_bits_),
  1283. _cached_size_(0) {
  1284. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1285. if (from.has_base_info()) {
  1286. base_info_ = new ::message::Base_info(*from.base_info_);
  1287. } else {
  1288. base_info_ = NULL;
  1289. }
  1290. if (from.has_car_info()) {
  1291. car_info_ = new ::message::Car_info(*from.car_info_);
  1292. } else {
  1293. car_info_ = NULL;
  1294. }
  1295. command_id_ = from.command_id_;
  1296. // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_request_msg)
  1297. }
  1298. void Parkspace_search_request_msg::SharedCtor() {
  1299. _cached_size_ = 0;
  1300. ::memset(&base_info_, 0, static_cast<size_t>(
  1301. reinterpret_cast<char*>(&command_id_) -
  1302. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  1303. }
  1304. Parkspace_search_request_msg::~Parkspace_search_request_msg() {
  1305. // @@protoc_insertion_point(destructor:message.Parkspace_search_request_msg)
  1306. SharedDtor();
  1307. }
  1308. void Parkspace_search_request_msg::SharedDtor() {
  1309. if (this != internal_default_instance()) delete base_info_;
  1310. if (this != internal_default_instance()) delete car_info_;
  1311. }
  1312. void Parkspace_search_request_msg::SetCachedSize(int size) const {
  1313. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1314. _cached_size_ = size;
  1315. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1316. }
  1317. const ::google::protobuf::Descriptor* Parkspace_search_request_msg::descriptor() {
  1318. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1319. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1320. }
  1321. const Parkspace_search_request_msg& Parkspace_search_request_msg::default_instance() {
  1322. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg();
  1323. return *internal_default_instance();
  1324. }
  1325. Parkspace_search_request_msg* Parkspace_search_request_msg::New(::google::protobuf::Arena* arena) const {
  1326. Parkspace_search_request_msg* n = new Parkspace_search_request_msg;
  1327. if (arena != NULL) {
  1328. arena->Own(n);
  1329. }
  1330. return n;
  1331. }
  1332. void Parkspace_search_request_msg::Clear() {
  1333. // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_request_msg)
  1334. ::google::protobuf::uint32 cached_has_bits = 0;
  1335. // Prevent compiler warnings about cached_has_bits being unused
  1336. (void) cached_has_bits;
  1337. cached_has_bits = _has_bits_[0];
  1338. if (cached_has_bits & 3u) {
  1339. if (cached_has_bits & 0x00000001u) {
  1340. GOOGLE_DCHECK(base_info_ != NULL);
  1341. base_info_->Clear();
  1342. }
  1343. if (cached_has_bits & 0x00000002u) {
  1344. GOOGLE_DCHECK(car_info_ != NULL);
  1345. car_info_->Clear();
  1346. }
  1347. }
  1348. command_id_ = 0;
  1349. _has_bits_.Clear();
  1350. _internal_metadata_.Clear();
  1351. }
  1352. bool Parkspace_search_request_msg::MergePartialFromCodedStream(
  1353. ::google::protobuf::io::CodedInputStream* input) {
  1354. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1355. ::google::protobuf::uint32 tag;
  1356. // @@protoc_insertion_point(parse_start:message.Parkspace_search_request_msg)
  1357. for (;;) {
  1358. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1359. tag = p.first;
  1360. if (!p.second) goto handle_unusual;
  1361. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1362. // required .message.Base_info base_info = 1;
  1363. case 1: {
  1364. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1365. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1366. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1367. input, mutable_base_info()));
  1368. } else {
  1369. goto handle_unusual;
  1370. }
  1371. break;
  1372. }
  1373. // required int32 command_id = 2;
  1374. case 2: {
  1375. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1376. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1377. set_has_command_id();
  1378. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1379. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1380. input, &command_id_)));
  1381. } else {
  1382. goto handle_unusual;
  1383. }
  1384. break;
  1385. }
  1386. // required .message.Car_info car_info = 3;
  1387. case 3: {
  1388. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1389. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1390. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1391. input, mutable_car_info()));
  1392. } else {
  1393. goto handle_unusual;
  1394. }
  1395. break;
  1396. }
  1397. default: {
  1398. handle_unusual:
  1399. if (tag == 0) {
  1400. goto success;
  1401. }
  1402. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1403. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1404. break;
  1405. }
  1406. }
  1407. }
  1408. success:
  1409. // @@protoc_insertion_point(parse_success:message.Parkspace_search_request_msg)
  1410. return true;
  1411. failure:
  1412. // @@protoc_insertion_point(parse_failure:message.Parkspace_search_request_msg)
  1413. return false;
  1414. #undef DO_
  1415. }
  1416. void Parkspace_search_request_msg::SerializeWithCachedSizes(
  1417. ::google::protobuf::io::CodedOutputStream* output) const {
  1418. // @@protoc_insertion_point(serialize_start:message.Parkspace_search_request_msg)
  1419. ::google::protobuf::uint32 cached_has_bits = 0;
  1420. (void) cached_has_bits;
  1421. cached_has_bits = _has_bits_[0];
  1422. // required .message.Base_info base_info = 1;
  1423. if (cached_has_bits & 0x00000001u) {
  1424. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1425. 1, *this->base_info_, output);
  1426. }
  1427. // required int32 command_id = 2;
  1428. if (cached_has_bits & 0x00000004u) {
  1429. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1430. }
  1431. // required .message.Car_info car_info = 3;
  1432. if (cached_has_bits & 0x00000002u) {
  1433. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1434. 3, *this->car_info_, output);
  1435. }
  1436. if (_internal_metadata_.have_unknown_fields()) {
  1437. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1438. _internal_metadata_.unknown_fields(), output);
  1439. }
  1440. // @@protoc_insertion_point(serialize_end:message.Parkspace_search_request_msg)
  1441. }
  1442. ::google::protobuf::uint8* Parkspace_search_request_msg::InternalSerializeWithCachedSizesToArray(
  1443. bool deterministic, ::google::protobuf::uint8* target) const {
  1444. (void)deterministic; // Unused
  1445. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_request_msg)
  1446. ::google::protobuf::uint32 cached_has_bits = 0;
  1447. (void) cached_has_bits;
  1448. cached_has_bits = _has_bits_[0];
  1449. // required .message.Base_info base_info = 1;
  1450. if (cached_has_bits & 0x00000001u) {
  1451. target = ::google::protobuf::internal::WireFormatLite::
  1452. InternalWriteMessageToArray(
  1453. 1, *this->base_info_, deterministic, target);
  1454. }
  1455. // required int32 command_id = 2;
  1456. if (cached_has_bits & 0x00000004u) {
  1457. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1458. }
  1459. // required .message.Car_info car_info = 3;
  1460. if (cached_has_bits & 0x00000002u) {
  1461. target = ::google::protobuf::internal::WireFormatLite::
  1462. InternalWriteMessageToArray(
  1463. 3, *this->car_info_, deterministic, target);
  1464. }
  1465. if (_internal_metadata_.have_unknown_fields()) {
  1466. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1467. _internal_metadata_.unknown_fields(), target);
  1468. }
  1469. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_search_request_msg)
  1470. return target;
  1471. }
  1472. size_t Parkspace_search_request_msg::RequiredFieldsByteSizeFallback() const {
  1473. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_request_msg)
  1474. size_t total_size = 0;
  1475. if (has_base_info()) {
  1476. // required .message.Base_info base_info = 1;
  1477. total_size += 1 +
  1478. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1479. *this->base_info_);
  1480. }
  1481. if (has_car_info()) {
  1482. // required .message.Car_info car_info = 3;
  1483. total_size += 1 +
  1484. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1485. *this->car_info_);
  1486. }
  1487. if (has_command_id()) {
  1488. // required int32 command_id = 2;
  1489. total_size += 1 +
  1490. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1491. this->command_id());
  1492. }
  1493. return total_size;
  1494. }
  1495. size_t Parkspace_search_request_msg::ByteSizeLong() const {
  1496. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_request_msg)
  1497. size_t total_size = 0;
  1498. if (_internal_metadata_.have_unknown_fields()) {
  1499. total_size +=
  1500. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1501. _internal_metadata_.unknown_fields());
  1502. }
  1503. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1504. // required .message.Base_info base_info = 1;
  1505. total_size += 1 +
  1506. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1507. *this->base_info_);
  1508. // required .message.Car_info car_info = 3;
  1509. total_size += 1 +
  1510. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1511. *this->car_info_);
  1512. // required int32 command_id = 2;
  1513. total_size += 1 +
  1514. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1515. this->command_id());
  1516. } else {
  1517. total_size += RequiredFieldsByteSizeFallback();
  1518. }
  1519. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1520. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1521. _cached_size_ = cached_size;
  1522. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1523. return total_size;
  1524. }
  1525. void Parkspace_search_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1526. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_request_msg)
  1527. GOOGLE_DCHECK_NE(&from, this);
  1528. const Parkspace_search_request_msg* source =
  1529. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_search_request_msg>(
  1530. &from);
  1531. if (source == NULL) {
  1532. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_request_msg)
  1533. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1534. } else {
  1535. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_request_msg)
  1536. MergeFrom(*source);
  1537. }
  1538. }
  1539. void Parkspace_search_request_msg::MergeFrom(const Parkspace_search_request_msg& from) {
  1540. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_request_msg)
  1541. GOOGLE_DCHECK_NE(&from, this);
  1542. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1543. ::google::protobuf::uint32 cached_has_bits = 0;
  1544. (void) cached_has_bits;
  1545. cached_has_bits = from._has_bits_[0];
  1546. if (cached_has_bits & 7u) {
  1547. if (cached_has_bits & 0x00000001u) {
  1548. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1549. }
  1550. if (cached_has_bits & 0x00000002u) {
  1551. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  1552. }
  1553. if (cached_has_bits & 0x00000004u) {
  1554. command_id_ = from.command_id_;
  1555. }
  1556. _has_bits_[0] |= cached_has_bits;
  1557. }
  1558. }
  1559. void Parkspace_search_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1560. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_request_msg)
  1561. if (&from == this) return;
  1562. Clear();
  1563. MergeFrom(from);
  1564. }
  1565. void Parkspace_search_request_msg::CopyFrom(const Parkspace_search_request_msg& from) {
  1566. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_request_msg)
  1567. if (&from == this) return;
  1568. Clear();
  1569. MergeFrom(from);
  1570. }
  1571. bool Parkspace_search_request_msg::IsInitialized() const {
  1572. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1573. if (has_base_info()) {
  1574. if (!this->base_info_->IsInitialized()) return false;
  1575. }
  1576. return true;
  1577. }
  1578. void Parkspace_search_request_msg::Swap(Parkspace_search_request_msg* other) {
  1579. if (other == this) return;
  1580. InternalSwap(other);
  1581. }
  1582. void Parkspace_search_request_msg::InternalSwap(Parkspace_search_request_msg* other) {
  1583. using std::swap;
  1584. swap(base_info_, other->base_info_);
  1585. swap(car_info_, other->car_info_);
  1586. swap(command_id_, other->command_id_);
  1587. swap(_has_bits_[0], other->_has_bits_[0]);
  1588. _internal_metadata_.Swap(&other->_internal_metadata_);
  1589. swap(_cached_size_, other->_cached_size_);
  1590. }
  1591. ::google::protobuf::Metadata Parkspace_search_request_msg::GetMetadata() const {
  1592. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1593. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1594. }
  1595. // ===================================================================
  1596. void Parkspace_search_response_msg::InitAsDefaultInstance() {
  1597. ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1598. ::message::Base_info::internal_default_instance());
  1599. ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1600. ::message::Error_manager::internal_default_instance());
  1601. ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->car_position_ = const_cast< ::message::Parkspace_info*>(
  1602. ::message::Parkspace_info::internal_default_instance());
  1603. }
  1604. void Parkspace_search_response_msg::clear_base_info() {
  1605. if (base_info_ != NULL) base_info_->Clear();
  1606. clear_has_base_info();
  1607. }
  1608. void Parkspace_search_response_msg::clear_error_manager() {
  1609. if (error_manager_ != NULL) error_manager_->Clear();
  1610. clear_has_error_manager();
  1611. }
  1612. void Parkspace_search_response_msg::clear_car_position() {
  1613. if (car_position_ != NULL) car_position_->Clear();
  1614. clear_has_car_position();
  1615. }
  1616. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1617. const int Parkspace_search_response_msg::kBaseInfoFieldNumber;
  1618. const int Parkspace_search_response_msg::kCommandIdFieldNumber;
  1619. const int Parkspace_search_response_msg::kErrorManagerFieldNumber;
  1620. const int Parkspace_search_response_msg::kCarPositionFieldNumber;
  1621. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1622. Parkspace_search_response_msg::Parkspace_search_response_msg()
  1623. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1624. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1625. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_response_msg();
  1626. }
  1627. SharedCtor();
  1628. // @@protoc_insertion_point(constructor:message.Parkspace_search_response_msg)
  1629. }
  1630. Parkspace_search_response_msg::Parkspace_search_response_msg(const Parkspace_search_response_msg& from)
  1631. : ::google::protobuf::Message(),
  1632. _internal_metadata_(NULL),
  1633. _has_bits_(from._has_bits_),
  1634. _cached_size_(0) {
  1635. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1636. if (from.has_base_info()) {
  1637. base_info_ = new ::message::Base_info(*from.base_info_);
  1638. } else {
  1639. base_info_ = NULL;
  1640. }
  1641. if (from.has_error_manager()) {
  1642. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1643. } else {
  1644. error_manager_ = NULL;
  1645. }
  1646. if (from.has_car_position()) {
  1647. car_position_ = new ::message::Parkspace_info(*from.car_position_);
  1648. } else {
  1649. car_position_ = NULL;
  1650. }
  1651. command_id_ = from.command_id_;
  1652. // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_response_msg)
  1653. }
  1654. void Parkspace_search_response_msg::SharedCtor() {
  1655. _cached_size_ = 0;
  1656. ::memset(&base_info_, 0, static_cast<size_t>(
  1657. reinterpret_cast<char*>(&command_id_) -
  1658. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  1659. }
  1660. Parkspace_search_response_msg::~Parkspace_search_response_msg() {
  1661. // @@protoc_insertion_point(destructor:message.Parkspace_search_response_msg)
  1662. SharedDtor();
  1663. }
  1664. void Parkspace_search_response_msg::SharedDtor() {
  1665. if (this != internal_default_instance()) delete base_info_;
  1666. if (this != internal_default_instance()) delete error_manager_;
  1667. if (this != internal_default_instance()) delete car_position_;
  1668. }
  1669. void Parkspace_search_response_msg::SetCachedSize(int size) const {
  1670. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1671. _cached_size_ = size;
  1672. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1673. }
  1674. const ::google::protobuf::Descriptor* Parkspace_search_response_msg::descriptor() {
  1675. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1676. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1677. }
  1678. const Parkspace_search_response_msg& Parkspace_search_response_msg::default_instance() {
  1679. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_response_msg();
  1680. return *internal_default_instance();
  1681. }
  1682. Parkspace_search_response_msg* Parkspace_search_response_msg::New(::google::protobuf::Arena* arena) const {
  1683. Parkspace_search_response_msg* n = new Parkspace_search_response_msg;
  1684. if (arena != NULL) {
  1685. arena->Own(n);
  1686. }
  1687. return n;
  1688. }
  1689. void Parkspace_search_response_msg::Clear() {
  1690. // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_response_msg)
  1691. ::google::protobuf::uint32 cached_has_bits = 0;
  1692. // Prevent compiler warnings about cached_has_bits being unused
  1693. (void) cached_has_bits;
  1694. cached_has_bits = _has_bits_[0];
  1695. if (cached_has_bits & 7u) {
  1696. if (cached_has_bits & 0x00000001u) {
  1697. GOOGLE_DCHECK(base_info_ != NULL);
  1698. base_info_->Clear();
  1699. }
  1700. if (cached_has_bits & 0x00000002u) {
  1701. GOOGLE_DCHECK(error_manager_ != NULL);
  1702. error_manager_->Clear();
  1703. }
  1704. if (cached_has_bits & 0x00000004u) {
  1705. GOOGLE_DCHECK(car_position_ != NULL);
  1706. car_position_->Clear();
  1707. }
  1708. }
  1709. command_id_ = 0;
  1710. _has_bits_.Clear();
  1711. _internal_metadata_.Clear();
  1712. }
  1713. bool Parkspace_search_response_msg::MergePartialFromCodedStream(
  1714. ::google::protobuf::io::CodedInputStream* input) {
  1715. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1716. ::google::protobuf::uint32 tag;
  1717. // @@protoc_insertion_point(parse_start:message.Parkspace_search_response_msg)
  1718. for (;;) {
  1719. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1720. tag = p.first;
  1721. if (!p.second) goto handle_unusual;
  1722. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1723. // required .message.Base_info base_info = 1;
  1724. case 1: {
  1725. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1726. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1727. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1728. input, mutable_base_info()));
  1729. } else {
  1730. goto handle_unusual;
  1731. }
  1732. break;
  1733. }
  1734. // required int32 command_id = 2;
  1735. case 2: {
  1736. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1737. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1738. set_has_command_id();
  1739. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1740. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1741. input, &command_id_)));
  1742. } else {
  1743. goto handle_unusual;
  1744. }
  1745. break;
  1746. }
  1747. // required .message.Error_manager error_manager = 3;
  1748. case 3: {
  1749. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1750. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1751. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1752. input, mutable_error_manager()));
  1753. } else {
  1754. goto handle_unusual;
  1755. }
  1756. break;
  1757. }
  1758. // optional .message.Parkspace_info car_position = 4;
  1759. case 4: {
  1760. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1761. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1762. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1763. input, mutable_car_position()));
  1764. } else {
  1765. goto handle_unusual;
  1766. }
  1767. break;
  1768. }
  1769. default: {
  1770. handle_unusual:
  1771. if (tag == 0) {
  1772. goto success;
  1773. }
  1774. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1775. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1776. break;
  1777. }
  1778. }
  1779. }
  1780. success:
  1781. // @@protoc_insertion_point(parse_success:message.Parkspace_search_response_msg)
  1782. return true;
  1783. failure:
  1784. // @@protoc_insertion_point(parse_failure:message.Parkspace_search_response_msg)
  1785. return false;
  1786. #undef DO_
  1787. }
  1788. void Parkspace_search_response_msg::SerializeWithCachedSizes(
  1789. ::google::protobuf::io::CodedOutputStream* output) const {
  1790. // @@protoc_insertion_point(serialize_start:message.Parkspace_search_response_msg)
  1791. ::google::protobuf::uint32 cached_has_bits = 0;
  1792. (void) cached_has_bits;
  1793. cached_has_bits = _has_bits_[0];
  1794. // required .message.Base_info base_info = 1;
  1795. if (cached_has_bits & 0x00000001u) {
  1796. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1797. 1, *this->base_info_, output);
  1798. }
  1799. // required int32 command_id = 2;
  1800. if (cached_has_bits & 0x00000008u) {
  1801. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1802. }
  1803. // required .message.Error_manager error_manager = 3;
  1804. if (cached_has_bits & 0x00000002u) {
  1805. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1806. 3, *this->error_manager_, output);
  1807. }
  1808. // optional .message.Parkspace_info car_position = 4;
  1809. if (cached_has_bits & 0x00000004u) {
  1810. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1811. 4, *this->car_position_, output);
  1812. }
  1813. if (_internal_metadata_.have_unknown_fields()) {
  1814. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1815. _internal_metadata_.unknown_fields(), output);
  1816. }
  1817. // @@protoc_insertion_point(serialize_end:message.Parkspace_search_response_msg)
  1818. }
  1819. ::google::protobuf::uint8* Parkspace_search_response_msg::InternalSerializeWithCachedSizesToArray(
  1820. bool deterministic, ::google::protobuf::uint8* target) const {
  1821. (void)deterministic; // Unused
  1822. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_response_msg)
  1823. ::google::protobuf::uint32 cached_has_bits = 0;
  1824. (void) cached_has_bits;
  1825. cached_has_bits = _has_bits_[0];
  1826. // required .message.Base_info base_info = 1;
  1827. if (cached_has_bits & 0x00000001u) {
  1828. target = ::google::protobuf::internal::WireFormatLite::
  1829. InternalWriteMessageToArray(
  1830. 1, *this->base_info_, deterministic, target);
  1831. }
  1832. // required int32 command_id = 2;
  1833. if (cached_has_bits & 0x00000008u) {
  1834. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1835. }
  1836. // required .message.Error_manager error_manager = 3;
  1837. if (cached_has_bits & 0x00000002u) {
  1838. target = ::google::protobuf::internal::WireFormatLite::
  1839. InternalWriteMessageToArray(
  1840. 3, *this->error_manager_, deterministic, target);
  1841. }
  1842. // optional .message.Parkspace_info car_position = 4;
  1843. if (cached_has_bits & 0x00000004u) {
  1844. target = ::google::protobuf::internal::WireFormatLite::
  1845. InternalWriteMessageToArray(
  1846. 4, *this->car_position_, deterministic, target);
  1847. }
  1848. if (_internal_metadata_.have_unknown_fields()) {
  1849. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1850. _internal_metadata_.unknown_fields(), target);
  1851. }
  1852. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_search_response_msg)
  1853. return target;
  1854. }
  1855. size_t Parkspace_search_response_msg::RequiredFieldsByteSizeFallback() const {
  1856. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_response_msg)
  1857. size_t total_size = 0;
  1858. if (has_base_info()) {
  1859. // required .message.Base_info base_info = 1;
  1860. total_size += 1 +
  1861. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1862. *this->base_info_);
  1863. }
  1864. if (has_error_manager()) {
  1865. // required .message.Error_manager error_manager = 3;
  1866. total_size += 1 +
  1867. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1868. *this->error_manager_);
  1869. }
  1870. if (has_command_id()) {
  1871. // required int32 command_id = 2;
  1872. total_size += 1 +
  1873. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1874. this->command_id());
  1875. }
  1876. return total_size;
  1877. }
  1878. size_t Parkspace_search_response_msg::ByteSizeLong() const {
  1879. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_response_msg)
  1880. size_t total_size = 0;
  1881. if (_internal_metadata_.have_unknown_fields()) {
  1882. total_size +=
  1883. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1884. _internal_metadata_.unknown_fields());
  1885. }
  1886. if (((_has_bits_[0] & 0x0000000b) ^ 0x0000000b) == 0) { // All required fields are present.
  1887. // required .message.Base_info base_info = 1;
  1888. total_size += 1 +
  1889. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1890. *this->base_info_);
  1891. // required .message.Error_manager error_manager = 3;
  1892. total_size += 1 +
  1893. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1894. *this->error_manager_);
  1895. // required int32 command_id = 2;
  1896. total_size += 1 +
  1897. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1898. this->command_id());
  1899. } else {
  1900. total_size += RequiredFieldsByteSizeFallback();
  1901. }
  1902. // optional .message.Parkspace_info car_position = 4;
  1903. if (has_car_position()) {
  1904. total_size += 1 +
  1905. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1906. *this->car_position_);
  1907. }
  1908. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1909. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1910. _cached_size_ = cached_size;
  1911. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1912. return total_size;
  1913. }
  1914. void Parkspace_search_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1915. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_response_msg)
  1916. GOOGLE_DCHECK_NE(&from, this);
  1917. const Parkspace_search_response_msg* source =
  1918. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_search_response_msg>(
  1919. &from);
  1920. if (source == NULL) {
  1921. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_response_msg)
  1922. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1923. } else {
  1924. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_response_msg)
  1925. MergeFrom(*source);
  1926. }
  1927. }
  1928. void Parkspace_search_response_msg::MergeFrom(const Parkspace_search_response_msg& from) {
  1929. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_response_msg)
  1930. GOOGLE_DCHECK_NE(&from, this);
  1931. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1932. ::google::protobuf::uint32 cached_has_bits = 0;
  1933. (void) cached_has_bits;
  1934. cached_has_bits = from._has_bits_[0];
  1935. if (cached_has_bits & 15u) {
  1936. if (cached_has_bits & 0x00000001u) {
  1937. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1938. }
  1939. if (cached_has_bits & 0x00000002u) {
  1940. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1941. }
  1942. if (cached_has_bits & 0x00000004u) {
  1943. mutable_car_position()->::message::Parkspace_info::MergeFrom(from.car_position());
  1944. }
  1945. if (cached_has_bits & 0x00000008u) {
  1946. command_id_ = from.command_id_;
  1947. }
  1948. _has_bits_[0] |= cached_has_bits;
  1949. }
  1950. }
  1951. void Parkspace_search_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1952. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_response_msg)
  1953. if (&from == this) return;
  1954. Clear();
  1955. MergeFrom(from);
  1956. }
  1957. void Parkspace_search_response_msg::CopyFrom(const Parkspace_search_response_msg& from) {
  1958. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_response_msg)
  1959. if (&from == this) return;
  1960. Clear();
  1961. MergeFrom(from);
  1962. }
  1963. bool Parkspace_search_response_msg::IsInitialized() const {
  1964. if ((_has_bits_[0] & 0x0000000b) != 0x0000000b) return false;
  1965. if (has_base_info()) {
  1966. if (!this->base_info_->IsInitialized()) return false;
  1967. }
  1968. if (has_error_manager()) {
  1969. if (!this->error_manager_->IsInitialized()) return false;
  1970. }
  1971. return true;
  1972. }
  1973. void Parkspace_search_response_msg::Swap(Parkspace_search_response_msg* other) {
  1974. if (other == this) return;
  1975. InternalSwap(other);
  1976. }
  1977. void Parkspace_search_response_msg::InternalSwap(Parkspace_search_response_msg* other) {
  1978. using std::swap;
  1979. swap(base_info_, other->base_info_);
  1980. swap(error_manager_, other->error_manager_);
  1981. swap(car_position_, other->car_position_);
  1982. swap(command_id_, other->command_id_);
  1983. swap(_has_bits_[0], other->_has_bits_[0]);
  1984. _internal_metadata_.Swap(&other->_internal_metadata_);
  1985. swap(_cached_size_, other->_cached_size_);
  1986. }
  1987. ::google::protobuf::Metadata Parkspace_search_response_msg::GetMetadata() const {
  1988. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1989. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1990. }
  1991. // ===================================================================
  1992. void Parkspace_release_request_msg::InitAsDefaultInstance() {
  1993. ::message::_Parkspace_release_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1994. ::message::Base_info::internal_default_instance());
  1995. ::message::_Parkspace_release_request_msg_default_instance_._instance.get_mutable()->release_space_info_ = const_cast< ::message::Parkspace_info*>(
  1996. ::message::Parkspace_info::internal_default_instance());
  1997. }
  1998. void Parkspace_release_request_msg::clear_base_info() {
  1999. if (base_info_ != NULL) base_info_->Clear();
  2000. clear_has_base_info();
  2001. }
  2002. void Parkspace_release_request_msg::clear_release_space_info() {
  2003. if (release_space_info_ != NULL) release_space_info_->Clear();
  2004. clear_has_release_space_info();
  2005. }
  2006. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2007. const int Parkspace_release_request_msg::kBaseInfoFieldNumber;
  2008. const int Parkspace_release_request_msg::kCommandIdFieldNumber;
  2009. const int Parkspace_release_request_msg::kReleaseSpaceInfoFieldNumber;
  2010. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2011. Parkspace_release_request_msg::Parkspace_release_request_msg()
  2012. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2013. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2014. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_request_msg();
  2015. }
  2016. SharedCtor();
  2017. // @@protoc_insertion_point(constructor:message.Parkspace_release_request_msg)
  2018. }
  2019. Parkspace_release_request_msg::Parkspace_release_request_msg(const Parkspace_release_request_msg& from)
  2020. : ::google::protobuf::Message(),
  2021. _internal_metadata_(NULL),
  2022. _has_bits_(from._has_bits_),
  2023. _cached_size_(0) {
  2024. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2025. if (from.has_base_info()) {
  2026. base_info_ = new ::message::Base_info(*from.base_info_);
  2027. } else {
  2028. base_info_ = NULL;
  2029. }
  2030. if (from.has_release_space_info()) {
  2031. release_space_info_ = new ::message::Parkspace_info(*from.release_space_info_);
  2032. } else {
  2033. release_space_info_ = NULL;
  2034. }
  2035. command_id_ = from.command_id_;
  2036. // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_request_msg)
  2037. }
  2038. void Parkspace_release_request_msg::SharedCtor() {
  2039. _cached_size_ = 0;
  2040. ::memset(&base_info_, 0, static_cast<size_t>(
  2041. reinterpret_cast<char*>(&command_id_) -
  2042. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  2043. }
  2044. Parkspace_release_request_msg::~Parkspace_release_request_msg() {
  2045. // @@protoc_insertion_point(destructor:message.Parkspace_release_request_msg)
  2046. SharedDtor();
  2047. }
  2048. void Parkspace_release_request_msg::SharedDtor() {
  2049. if (this != internal_default_instance()) delete base_info_;
  2050. if (this != internal_default_instance()) delete release_space_info_;
  2051. }
  2052. void Parkspace_release_request_msg::SetCachedSize(int size) const {
  2053. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2054. _cached_size_ = size;
  2055. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2056. }
  2057. const ::google::protobuf::Descriptor* Parkspace_release_request_msg::descriptor() {
  2058. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2059. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2060. }
  2061. const Parkspace_release_request_msg& Parkspace_release_request_msg::default_instance() {
  2062. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_request_msg();
  2063. return *internal_default_instance();
  2064. }
  2065. Parkspace_release_request_msg* Parkspace_release_request_msg::New(::google::protobuf::Arena* arena) const {
  2066. Parkspace_release_request_msg* n = new Parkspace_release_request_msg;
  2067. if (arena != NULL) {
  2068. arena->Own(n);
  2069. }
  2070. return n;
  2071. }
  2072. void Parkspace_release_request_msg::Clear() {
  2073. // @@protoc_insertion_point(message_clear_start:message.Parkspace_release_request_msg)
  2074. ::google::protobuf::uint32 cached_has_bits = 0;
  2075. // Prevent compiler warnings about cached_has_bits being unused
  2076. (void) cached_has_bits;
  2077. cached_has_bits = _has_bits_[0];
  2078. if (cached_has_bits & 3u) {
  2079. if (cached_has_bits & 0x00000001u) {
  2080. GOOGLE_DCHECK(base_info_ != NULL);
  2081. base_info_->Clear();
  2082. }
  2083. if (cached_has_bits & 0x00000002u) {
  2084. GOOGLE_DCHECK(release_space_info_ != NULL);
  2085. release_space_info_->Clear();
  2086. }
  2087. }
  2088. command_id_ = 0;
  2089. _has_bits_.Clear();
  2090. _internal_metadata_.Clear();
  2091. }
  2092. bool Parkspace_release_request_msg::MergePartialFromCodedStream(
  2093. ::google::protobuf::io::CodedInputStream* input) {
  2094. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2095. ::google::protobuf::uint32 tag;
  2096. // @@protoc_insertion_point(parse_start:message.Parkspace_release_request_msg)
  2097. for (;;) {
  2098. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2099. tag = p.first;
  2100. if (!p.second) goto handle_unusual;
  2101. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2102. // required .message.Base_info base_info = 1;
  2103. case 1: {
  2104. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2105. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2106. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2107. input, mutable_base_info()));
  2108. } else {
  2109. goto handle_unusual;
  2110. }
  2111. break;
  2112. }
  2113. // required int32 command_id = 2;
  2114. case 2: {
  2115. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2116. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2117. set_has_command_id();
  2118. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2119. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2120. input, &command_id_)));
  2121. } else {
  2122. goto handle_unusual;
  2123. }
  2124. break;
  2125. }
  2126. // required .message.Parkspace_info release_space_info = 3;
  2127. case 3: {
  2128. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2129. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2130. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2131. input, mutable_release_space_info()));
  2132. } else {
  2133. goto handle_unusual;
  2134. }
  2135. break;
  2136. }
  2137. default: {
  2138. handle_unusual:
  2139. if (tag == 0) {
  2140. goto success;
  2141. }
  2142. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2143. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2144. break;
  2145. }
  2146. }
  2147. }
  2148. success:
  2149. // @@protoc_insertion_point(parse_success:message.Parkspace_release_request_msg)
  2150. return true;
  2151. failure:
  2152. // @@protoc_insertion_point(parse_failure:message.Parkspace_release_request_msg)
  2153. return false;
  2154. #undef DO_
  2155. }
  2156. void Parkspace_release_request_msg::SerializeWithCachedSizes(
  2157. ::google::protobuf::io::CodedOutputStream* output) const {
  2158. // @@protoc_insertion_point(serialize_start:message.Parkspace_release_request_msg)
  2159. ::google::protobuf::uint32 cached_has_bits = 0;
  2160. (void) cached_has_bits;
  2161. cached_has_bits = _has_bits_[0];
  2162. // required .message.Base_info base_info = 1;
  2163. if (cached_has_bits & 0x00000001u) {
  2164. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2165. 1, *this->base_info_, output);
  2166. }
  2167. // required int32 command_id = 2;
  2168. if (cached_has_bits & 0x00000004u) {
  2169. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  2170. }
  2171. // required .message.Parkspace_info release_space_info = 3;
  2172. if (cached_has_bits & 0x00000002u) {
  2173. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2174. 3, *this->release_space_info_, output);
  2175. }
  2176. if (_internal_metadata_.have_unknown_fields()) {
  2177. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2178. _internal_metadata_.unknown_fields(), output);
  2179. }
  2180. // @@protoc_insertion_point(serialize_end:message.Parkspace_release_request_msg)
  2181. }
  2182. ::google::protobuf::uint8* Parkspace_release_request_msg::InternalSerializeWithCachedSizesToArray(
  2183. bool deterministic, ::google::protobuf::uint8* target) const {
  2184. (void)deterministic; // Unused
  2185. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_request_msg)
  2186. ::google::protobuf::uint32 cached_has_bits = 0;
  2187. (void) cached_has_bits;
  2188. cached_has_bits = _has_bits_[0];
  2189. // required .message.Base_info base_info = 1;
  2190. if (cached_has_bits & 0x00000001u) {
  2191. target = ::google::protobuf::internal::WireFormatLite::
  2192. InternalWriteMessageToArray(
  2193. 1, *this->base_info_, deterministic, target);
  2194. }
  2195. // required int32 command_id = 2;
  2196. if (cached_has_bits & 0x00000004u) {
  2197. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  2198. }
  2199. // required .message.Parkspace_info release_space_info = 3;
  2200. if (cached_has_bits & 0x00000002u) {
  2201. target = ::google::protobuf::internal::WireFormatLite::
  2202. InternalWriteMessageToArray(
  2203. 3, *this->release_space_info_, deterministic, target);
  2204. }
  2205. if (_internal_metadata_.have_unknown_fields()) {
  2206. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2207. _internal_metadata_.unknown_fields(), target);
  2208. }
  2209. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_release_request_msg)
  2210. return target;
  2211. }
  2212. size_t Parkspace_release_request_msg::RequiredFieldsByteSizeFallback() const {
  2213. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_request_msg)
  2214. size_t total_size = 0;
  2215. if (has_base_info()) {
  2216. // required .message.Base_info base_info = 1;
  2217. total_size += 1 +
  2218. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2219. *this->base_info_);
  2220. }
  2221. if (has_release_space_info()) {
  2222. // required .message.Parkspace_info release_space_info = 3;
  2223. total_size += 1 +
  2224. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2225. *this->release_space_info_);
  2226. }
  2227. if (has_command_id()) {
  2228. // required int32 command_id = 2;
  2229. total_size += 1 +
  2230. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2231. this->command_id());
  2232. }
  2233. return total_size;
  2234. }
  2235. size_t Parkspace_release_request_msg::ByteSizeLong() const {
  2236. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_release_request_msg)
  2237. size_t total_size = 0;
  2238. if (_internal_metadata_.have_unknown_fields()) {
  2239. total_size +=
  2240. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2241. _internal_metadata_.unknown_fields());
  2242. }
  2243. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  2244. // required .message.Base_info base_info = 1;
  2245. total_size += 1 +
  2246. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2247. *this->base_info_);
  2248. // required .message.Parkspace_info release_space_info = 3;
  2249. total_size += 1 +
  2250. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2251. *this->release_space_info_);
  2252. // required int32 command_id = 2;
  2253. total_size += 1 +
  2254. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2255. this->command_id());
  2256. } else {
  2257. total_size += RequiredFieldsByteSizeFallback();
  2258. }
  2259. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2260. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2261. _cached_size_ = cached_size;
  2262. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2263. return total_size;
  2264. }
  2265. void Parkspace_release_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2266. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_release_request_msg)
  2267. GOOGLE_DCHECK_NE(&from, this);
  2268. const Parkspace_release_request_msg* source =
  2269. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_release_request_msg>(
  2270. &from);
  2271. if (source == NULL) {
  2272. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_release_request_msg)
  2273. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2274. } else {
  2275. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_release_request_msg)
  2276. MergeFrom(*source);
  2277. }
  2278. }
  2279. void Parkspace_release_request_msg::MergeFrom(const Parkspace_release_request_msg& from) {
  2280. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_release_request_msg)
  2281. GOOGLE_DCHECK_NE(&from, this);
  2282. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2283. ::google::protobuf::uint32 cached_has_bits = 0;
  2284. (void) cached_has_bits;
  2285. cached_has_bits = from._has_bits_[0];
  2286. if (cached_has_bits & 7u) {
  2287. if (cached_has_bits & 0x00000001u) {
  2288. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2289. }
  2290. if (cached_has_bits & 0x00000002u) {
  2291. mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info());
  2292. }
  2293. if (cached_has_bits & 0x00000004u) {
  2294. command_id_ = from.command_id_;
  2295. }
  2296. _has_bits_[0] |= cached_has_bits;
  2297. }
  2298. }
  2299. void Parkspace_release_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2300. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_release_request_msg)
  2301. if (&from == this) return;
  2302. Clear();
  2303. MergeFrom(from);
  2304. }
  2305. void Parkspace_release_request_msg::CopyFrom(const Parkspace_release_request_msg& from) {
  2306. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_release_request_msg)
  2307. if (&from == this) return;
  2308. Clear();
  2309. MergeFrom(from);
  2310. }
  2311. bool Parkspace_release_request_msg::IsInitialized() const {
  2312. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  2313. if (has_base_info()) {
  2314. if (!this->base_info_->IsInitialized()) return false;
  2315. }
  2316. return true;
  2317. }
  2318. void Parkspace_release_request_msg::Swap(Parkspace_release_request_msg* other) {
  2319. if (other == this) return;
  2320. InternalSwap(other);
  2321. }
  2322. void Parkspace_release_request_msg::InternalSwap(Parkspace_release_request_msg* other) {
  2323. using std::swap;
  2324. swap(base_info_, other->base_info_);
  2325. swap(release_space_info_, other->release_space_info_);
  2326. swap(command_id_, other->command_id_);
  2327. swap(_has_bits_[0], other->_has_bits_[0]);
  2328. _internal_metadata_.Swap(&other->_internal_metadata_);
  2329. swap(_cached_size_, other->_cached_size_);
  2330. }
  2331. ::google::protobuf::Metadata Parkspace_release_request_msg::GetMetadata() const {
  2332. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2333. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2334. }
  2335. // ===================================================================
  2336. void Parkspace_release_response_msg::InitAsDefaultInstance() {
  2337. ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2338. ::message::Base_info::internal_default_instance());
  2339. ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  2340. ::message::Error_manager::internal_default_instance());
  2341. ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->release_space_info_ = const_cast< ::message::Parkspace_info*>(
  2342. ::message::Parkspace_info::internal_default_instance());
  2343. }
  2344. void Parkspace_release_response_msg::clear_base_info() {
  2345. if (base_info_ != NULL) base_info_->Clear();
  2346. clear_has_base_info();
  2347. }
  2348. void Parkspace_release_response_msg::clear_error_manager() {
  2349. if (error_manager_ != NULL) error_manager_->Clear();
  2350. clear_has_error_manager();
  2351. }
  2352. void Parkspace_release_response_msg::clear_release_space_info() {
  2353. if (release_space_info_ != NULL) release_space_info_->Clear();
  2354. clear_has_release_space_info();
  2355. }
  2356. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2357. const int Parkspace_release_response_msg::kBaseInfoFieldNumber;
  2358. const int Parkspace_release_response_msg::kCommandIdFieldNumber;
  2359. const int Parkspace_release_response_msg::kErrorManagerFieldNumber;
  2360. const int Parkspace_release_response_msg::kReleaseSpaceInfoFieldNumber;
  2361. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2362. Parkspace_release_response_msg::Parkspace_release_response_msg()
  2363. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2364. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2365. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_response_msg();
  2366. }
  2367. SharedCtor();
  2368. // @@protoc_insertion_point(constructor:message.Parkspace_release_response_msg)
  2369. }
  2370. Parkspace_release_response_msg::Parkspace_release_response_msg(const Parkspace_release_response_msg& from)
  2371. : ::google::protobuf::Message(),
  2372. _internal_metadata_(NULL),
  2373. _has_bits_(from._has_bits_),
  2374. _cached_size_(0) {
  2375. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2376. if (from.has_base_info()) {
  2377. base_info_ = new ::message::Base_info(*from.base_info_);
  2378. } else {
  2379. base_info_ = NULL;
  2380. }
  2381. if (from.has_error_manager()) {
  2382. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2383. } else {
  2384. error_manager_ = NULL;
  2385. }
  2386. if (from.has_release_space_info()) {
  2387. release_space_info_ = new ::message::Parkspace_info(*from.release_space_info_);
  2388. } else {
  2389. release_space_info_ = NULL;
  2390. }
  2391. command_id_ = from.command_id_;
  2392. // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_response_msg)
  2393. }
  2394. void Parkspace_release_response_msg::SharedCtor() {
  2395. _cached_size_ = 0;
  2396. ::memset(&base_info_, 0, static_cast<size_t>(
  2397. reinterpret_cast<char*>(&command_id_) -
  2398. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  2399. }
  2400. Parkspace_release_response_msg::~Parkspace_release_response_msg() {
  2401. // @@protoc_insertion_point(destructor:message.Parkspace_release_response_msg)
  2402. SharedDtor();
  2403. }
  2404. void Parkspace_release_response_msg::SharedDtor() {
  2405. if (this != internal_default_instance()) delete base_info_;
  2406. if (this != internal_default_instance()) delete error_manager_;
  2407. if (this != internal_default_instance()) delete release_space_info_;
  2408. }
  2409. void Parkspace_release_response_msg::SetCachedSize(int size) const {
  2410. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2411. _cached_size_ = size;
  2412. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2413. }
  2414. const ::google::protobuf::Descriptor* Parkspace_release_response_msg::descriptor() {
  2415. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2416. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2417. }
  2418. const Parkspace_release_response_msg& Parkspace_release_response_msg::default_instance() {
  2419. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_response_msg();
  2420. return *internal_default_instance();
  2421. }
  2422. Parkspace_release_response_msg* Parkspace_release_response_msg::New(::google::protobuf::Arena* arena) const {
  2423. Parkspace_release_response_msg* n = new Parkspace_release_response_msg;
  2424. if (arena != NULL) {
  2425. arena->Own(n);
  2426. }
  2427. return n;
  2428. }
  2429. void Parkspace_release_response_msg::Clear() {
  2430. // @@protoc_insertion_point(message_clear_start:message.Parkspace_release_response_msg)
  2431. ::google::protobuf::uint32 cached_has_bits = 0;
  2432. // Prevent compiler warnings about cached_has_bits being unused
  2433. (void) cached_has_bits;
  2434. cached_has_bits = _has_bits_[0];
  2435. if (cached_has_bits & 7u) {
  2436. if (cached_has_bits & 0x00000001u) {
  2437. GOOGLE_DCHECK(base_info_ != NULL);
  2438. base_info_->Clear();
  2439. }
  2440. if (cached_has_bits & 0x00000002u) {
  2441. GOOGLE_DCHECK(error_manager_ != NULL);
  2442. error_manager_->Clear();
  2443. }
  2444. if (cached_has_bits & 0x00000004u) {
  2445. GOOGLE_DCHECK(release_space_info_ != NULL);
  2446. release_space_info_->Clear();
  2447. }
  2448. }
  2449. command_id_ = 0;
  2450. _has_bits_.Clear();
  2451. _internal_metadata_.Clear();
  2452. }
  2453. bool Parkspace_release_response_msg::MergePartialFromCodedStream(
  2454. ::google::protobuf::io::CodedInputStream* input) {
  2455. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2456. ::google::protobuf::uint32 tag;
  2457. // @@protoc_insertion_point(parse_start:message.Parkspace_release_response_msg)
  2458. for (;;) {
  2459. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2460. tag = p.first;
  2461. if (!p.second) goto handle_unusual;
  2462. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2463. // required .message.Base_info base_info = 1;
  2464. case 1: {
  2465. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2466. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2467. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2468. input, mutable_base_info()));
  2469. } else {
  2470. goto handle_unusual;
  2471. }
  2472. break;
  2473. }
  2474. // required int32 command_id = 2;
  2475. case 2: {
  2476. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2477. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2478. set_has_command_id();
  2479. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2480. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2481. input, &command_id_)));
  2482. } else {
  2483. goto handle_unusual;
  2484. }
  2485. break;
  2486. }
  2487. // required .message.Error_manager error_manager = 3;
  2488. case 3: {
  2489. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2490. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2491. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2492. input, mutable_error_manager()));
  2493. } else {
  2494. goto handle_unusual;
  2495. }
  2496. break;
  2497. }
  2498. // required .message.Parkspace_info release_space_info = 4;
  2499. case 4: {
  2500. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2501. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2502. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2503. input, mutable_release_space_info()));
  2504. } else {
  2505. goto handle_unusual;
  2506. }
  2507. break;
  2508. }
  2509. default: {
  2510. handle_unusual:
  2511. if (tag == 0) {
  2512. goto success;
  2513. }
  2514. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2515. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2516. break;
  2517. }
  2518. }
  2519. }
  2520. success:
  2521. // @@protoc_insertion_point(parse_success:message.Parkspace_release_response_msg)
  2522. return true;
  2523. failure:
  2524. // @@protoc_insertion_point(parse_failure:message.Parkspace_release_response_msg)
  2525. return false;
  2526. #undef DO_
  2527. }
  2528. void Parkspace_release_response_msg::SerializeWithCachedSizes(
  2529. ::google::protobuf::io::CodedOutputStream* output) const {
  2530. // @@protoc_insertion_point(serialize_start:message.Parkspace_release_response_msg)
  2531. ::google::protobuf::uint32 cached_has_bits = 0;
  2532. (void) cached_has_bits;
  2533. cached_has_bits = _has_bits_[0];
  2534. // required .message.Base_info base_info = 1;
  2535. if (cached_has_bits & 0x00000001u) {
  2536. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2537. 1, *this->base_info_, output);
  2538. }
  2539. // required int32 command_id = 2;
  2540. if (cached_has_bits & 0x00000008u) {
  2541. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  2542. }
  2543. // required .message.Error_manager error_manager = 3;
  2544. if (cached_has_bits & 0x00000002u) {
  2545. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2546. 3, *this->error_manager_, output);
  2547. }
  2548. // required .message.Parkspace_info release_space_info = 4;
  2549. if (cached_has_bits & 0x00000004u) {
  2550. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2551. 4, *this->release_space_info_, output);
  2552. }
  2553. if (_internal_metadata_.have_unknown_fields()) {
  2554. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2555. _internal_metadata_.unknown_fields(), output);
  2556. }
  2557. // @@protoc_insertion_point(serialize_end:message.Parkspace_release_response_msg)
  2558. }
  2559. ::google::protobuf::uint8* Parkspace_release_response_msg::InternalSerializeWithCachedSizesToArray(
  2560. bool deterministic, ::google::protobuf::uint8* target) const {
  2561. (void)deterministic; // Unused
  2562. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_response_msg)
  2563. ::google::protobuf::uint32 cached_has_bits = 0;
  2564. (void) cached_has_bits;
  2565. cached_has_bits = _has_bits_[0];
  2566. // required .message.Base_info base_info = 1;
  2567. if (cached_has_bits & 0x00000001u) {
  2568. target = ::google::protobuf::internal::WireFormatLite::
  2569. InternalWriteMessageToArray(
  2570. 1, *this->base_info_, deterministic, target);
  2571. }
  2572. // required int32 command_id = 2;
  2573. if (cached_has_bits & 0x00000008u) {
  2574. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  2575. }
  2576. // required .message.Error_manager error_manager = 3;
  2577. if (cached_has_bits & 0x00000002u) {
  2578. target = ::google::protobuf::internal::WireFormatLite::
  2579. InternalWriteMessageToArray(
  2580. 3, *this->error_manager_, deterministic, target);
  2581. }
  2582. // required .message.Parkspace_info release_space_info = 4;
  2583. if (cached_has_bits & 0x00000004u) {
  2584. target = ::google::protobuf::internal::WireFormatLite::
  2585. InternalWriteMessageToArray(
  2586. 4, *this->release_space_info_, deterministic, target);
  2587. }
  2588. if (_internal_metadata_.have_unknown_fields()) {
  2589. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2590. _internal_metadata_.unknown_fields(), target);
  2591. }
  2592. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_release_response_msg)
  2593. return target;
  2594. }
  2595. size_t Parkspace_release_response_msg::RequiredFieldsByteSizeFallback() const {
  2596. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_response_msg)
  2597. size_t total_size = 0;
  2598. if (has_base_info()) {
  2599. // required .message.Base_info base_info = 1;
  2600. total_size += 1 +
  2601. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2602. *this->base_info_);
  2603. }
  2604. if (has_error_manager()) {
  2605. // required .message.Error_manager error_manager = 3;
  2606. total_size += 1 +
  2607. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2608. *this->error_manager_);
  2609. }
  2610. if (has_release_space_info()) {
  2611. // required .message.Parkspace_info release_space_info = 4;
  2612. total_size += 1 +
  2613. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2614. *this->release_space_info_);
  2615. }
  2616. if (has_command_id()) {
  2617. // required int32 command_id = 2;
  2618. total_size += 1 +
  2619. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2620. this->command_id());
  2621. }
  2622. return total_size;
  2623. }
  2624. size_t Parkspace_release_response_msg::ByteSizeLong() const {
  2625. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_release_response_msg)
  2626. size_t total_size = 0;
  2627. if (_internal_metadata_.have_unknown_fields()) {
  2628. total_size +=
  2629. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2630. _internal_metadata_.unknown_fields());
  2631. }
  2632. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  2633. // required .message.Base_info base_info = 1;
  2634. total_size += 1 +
  2635. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2636. *this->base_info_);
  2637. // required .message.Error_manager error_manager = 3;
  2638. total_size += 1 +
  2639. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2640. *this->error_manager_);
  2641. // required .message.Parkspace_info release_space_info = 4;
  2642. total_size += 1 +
  2643. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2644. *this->release_space_info_);
  2645. // required int32 command_id = 2;
  2646. total_size += 1 +
  2647. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2648. this->command_id());
  2649. } else {
  2650. total_size += RequiredFieldsByteSizeFallback();
  2651. }
  2652. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2653. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2654. _cached_size_ = cached_size;
  2655. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2656. return total_size;
  2657. }
  2658. void Parkspace_release_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2659. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_release_response_msg)
  2660. GOOGLE_DCHECK_NE(&from, this);
  2661. const Parkspace_release_response_msg* source =
  2662. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_release_response_msg>(
  2663. &from);
  2664. if (source == NULL) {
  2665. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_release_response_msg)
  2666. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2667. } else {
  2668. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_release_response_msg)
  2669. MergeFrom(*source);
  2670. }
  2671. }
  2672. void Parkspace_release_response_msg::MergeFrom(const Parkspace_release_response_msg& from) {
  2673. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_release_response_msg)
  2674. GOOGLE_DCHECK_NE(&from, this);
  2675. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2676. ::google::protobuf::uint32 cached_has_bits = 0;
  2677. (void) cached_has_bits;
  2678. cached_has_bits = from._has_bits_[0];
  2679. if (cached_has_bits & 15u) {
  2680. if (cached_has_bits & 0x00000001u) {
  2681. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2682. }
  2683. if (cached_has_bits & 0x00000002u) {
  2684. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  2685. }
  2686. if (cached_has_bits & 0x00000004u) {
  2687. mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info());
  2688. }
  2689. if (cached_has_bits & 0x00000008u) {
  2690. command_id_ = from.command_id_;
  2691. }
  2692. _has_bits_[0] |= cached_has_bits;
  2693. }
  2694. }
  2695. void Parkspace_release_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2696. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_release_response_msg)
  2697. if (&from == this) return;
  2698. Clear();
  2699. MergeFrom(from);
  2700. }
  2701. void Parkspace_release_response_msg::CopyFrom(const Parkspace_release_response_msg& from) {
  2702. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_release_response_msg)
  2703. if (&from == this) return;
  2704. Clear();
  2705. MergeFrom(from);
  2706. }
  2707. bool Parkspace_release_response_msg::IsInitialized() const {
  2708. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  2709. if (has_base_info()) {
  2710. if (!this->base_info_->IsInitialized()) return false;
  2711. }
  2712. if (has_error_manager()) {
  2713. if (!this->error_manager_->IsInitialized()) return false;
  2714. }
  2715. return true;
  2716. }
  2717. void Parkspace_release_response_msg::Swap(Parkspace_release_response_msg* other) {
  2718. if (other == this) return;
  2719. InternalSwap(other);
  2720. }
  2721. void Parkspace_release_response_msg::InternalSwap(Parkspace_release_response_msg* other) {
  2722. using std::swap;
  2723. swap(base_info_, other->base_info_);
  2724. swap(error_manager_, other->error_manager_);
  2725. swap(release_space_info_, other->release_space_info_);
  2726. swap(command_id_, other->command_id_);
  2727. swap(_has_bits_[0], other->_has_bits_[0]);
  2728. _internal_metadata_.Swap(&other->_internal_metadata_);
  2729. swap(_cached_size_, other->_cached_size_);
  2730. }
  2731. ::google::protobuf::Metadata Parkspace_release_response_msg::GetMetadata() const {
  2732. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2733. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2734. }
  2735. // ===================================================================
  2736. void Parkspace_confirm_alloc_request_msg::InitAsDefaultInstance() {
  2737. ::message::_Parkspace_confirm_alloc_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2738. ::message::Base_info::internal_default_instance());
  2739. ::message::_Parkspace_confirm_alloc_request_msg_default_instance_._instance.get_mutable()->confirm_space_info_ = const_cast< ::message::Parkspace_info*>(
  2740. ::message::Parkspace_info::internal_default_instance());
  2741. }
  2742. void Parkspace_confirm_alloc_request_msg::clear_base_info() {
  2743. if (base_info_ != NULL) base_info_->Clear();
  2744. clear_has_base_info();
  2745. }
  2746. void Parkspace_confirm_alloc_request_msg::clear_confirm_space_info() {
  2747. if (confirm_space_info_ != NULL) confirm_space_info_->Clear();
  2748. clear_has_confirm_space_info();
  2749. }
  2750. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2751. const int Parkspace_confirm_alloc_request_msg::kBaseInfoFieldNumber;
  2752. const int Parkspace_confirm_alloc_request_msg::kCommandIdFieldNumber;
  2753. const int Parkspace_confirm_alloc_request_msg::kConfirmSpaceInfoFieldNumber;
  2754. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2755. Parkspace_confirm_alloc_request_msg::Parkspace_confirm_alloc_request_msg()
  2756. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2757. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2758. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_request_msg();
  2759. }
  2760. SharedCtor();
  2761. // @@protoc_insertion_point(constructor:message.Parkspace_confirm_alloc_request_msg)
  2762. }
  2763. Parkspace_confirm_alloc_request_msg::Parkspace_confirm_alloc_request_msg(const Parkspace_confirm_alloc_request_msg& from)
  2764. : ::google::protobuf::Message(),
  2765. _internal_metadata_(NULL),
  2766. _has_bits_(from._has_bits_),
  2767. _cached_size_(0) {
  2768. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2769. if (from.has_base_info()) {
  2770. base_info_ = new ::message::Base_info(*from.base_info_);
  2771. } else {
  2772. base_info_ = NULL;
  2773. }
  2774. if (from.has_confirm_space_info()) {
  2775. confirm_space_info_ = new ::message::Parkspace_info(*from.confirm_space_info_);
  2776. } else {
  2777. confirm_space_info_ = NULL;
  2778. }
  2779. command_id_ = from.command_id_;
  2780. // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_request_msg)
  2781. }
  2782. void Parkspace_confirm_alloc_request_msg::SharedCtor() {
  2783. _cached_size_ = 0;
  2784. ::memset(&base_info_, 0, static_cast<size_t>(
  2785. reinterpret_cast<char*>(&command_id_) -
  2786. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  2787. }
  2788. Parkspace_confirm_alloc_request_msg::~Parkspace_confirm_alloc_request_msg() {
  2789. // @@protoc_insertion_point(destructor:message.Parkspace_confirm_alloc_request_msg)
  2790. SharedDtor();
  2791. }
  2792. void Parkspace_confirm_alloc_request_msg::SharedDtor() {
  2793. if (this != internal_default_instance()) delete base_info_;
  2794. if (this != internal_default_instance()) delete confirm_space_info_;
  2795. }
  2796. void Parkspace_confirm_alloc_request_msg::SetCachedSize(int size) const {
  2797. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2798. _cached_size_ = size;
  2799. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2800. }
  2801. const ::google::protobuf::Descriptor* Parkspace_confirm_alloc_request_msg::descriptor() {
  2802. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2803. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2804. }
  2805. const Parkspace_confirm_alloc_request_msg& Parkspace_confirm_alloc_request_msg::default_instance() {
  2806. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_request_msg();
  2807. return *internal_default_instance();
  2808. }
  2809. Parkspace_confirm_alloc_request_msg* Parkspace_confirm_alloc_request_msg::New(::google::protobuf::Arena* arena) const {
  2810. Parkspace_confirm_alloc_request_msg* n = new Parkspace_confirm_alloc_request_msg;
  2811. if (arena != NULL) {
  2812. arena->Own(n);
  2813. }
  2814. return n;
  2815. }
  2816. void Parkspace_confirm_alloc_request_msg::Clear() {
  2817. // @@protoc_insertion_point(message_clear_start:message.Parkspace_confirm_alloc_request_msg)
  2818. ::google::protobuf::uint32 cached_has_bits = 0;
  2819. // Prevent compiler warnings about cached_has_bits being unused
  2820. (void) cached_has_bits;
  2821. cached_has_bits = _has_bits_[0];
  2822. if (cached_has_bits & 3u) {
  2823. if (cached_has_bits & 0x00000001u) {
  2824. GOOGLE_DCHECK(base_info_ != NULL);
  2825. base_info_->Clear();
  2826. }
  2827. if (cached_has_bits & 0x00000002u) {
  2828. GOOGLE_DCHECK(confirm_space_info_ != NULL);
  2829. confirm_space_info_->Clear();
  2830. }
  2831. }
  2832. command_id_ = 0;
  2833. _has_bits_.Clear();
  2834. _internal_metadata_.Clear();
  2835. }
  2836. bool Parkspace_confirm_alloc_request_msg::MergePartialFromCodedStream(
  2837. ::google::protobuf::io::CodedInputStream* input) {
  2838. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2839. ::google::protobuf::uint32 tag;
  2840. // @@protoc_insertion_point(parse_start:message.Parkspace_confirm_alloc_request_msg)
  2841. for (;;) {
  2842. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2843. tag = p.first;
  2844. if (!p.second) goto handle_unusual;
  2845. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2846. // required .message.Base_info base_info = 1;
  2847. case 1: {
  2848. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2849. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2850. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2851. input, mutable_base_info()));
  2852. } else {
  2853. goto handle_unusual;
  2854. }
  2855. break;
  2856. }
  2857. // required int32 command_id = 2;
  2858. case 2: {
  2859. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2860. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2861. set_has_command_id();
  2862. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2863. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2864. input, &command_id_)));
  2865. } else {
  2866. goto handle_unusual;
  2867. }
  2868. break;
  2869. }
  2870. // required .message.Parkspace_info confirm_space_info = 3;
  2871. case 3: {
  2872. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2873. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2874. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2875. input, mutable_confirm_space_info()));
  2876. } else {
  2877. goto handle_unusual;
  2878. }
  2879. break;
  2880. }
  2881. default: {
  2882. handle_unusual:
  2883. if (tag == 0) {
  2884. goto success;
  2885. }
  2886. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2887. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2888. break;
  2889. }
  2890. }
  2891. }
  2892. success:
  2893. // @@protoc_insertion_point(parse_success:message.Parkspace_confirm_alloc_request_msg)
  2894. return true;
  2895. failure:
  2896. // @@protoc_insertion_point(parse_failure:message.Parkspace_confirm_alloc_request_msg)
  2897. return false;
  2898. #undef DO_
  2899. }
  2900. void Parkspace_confirm_alloc_request_msg::SerializeWithCachedSizes(
  2901. ::google::protobuf::io::CodedOutputStream* output) const {
  2902. // @@protoc_insertion_point(serialize_start:message.Parkspace_confirm_alloc_request_msg)
  2903. ::google::protobuf::uint32 cached_has_bits = 0;
  2904. (void) cached_has_bits;
  2905. cached_has_bits = _has_bits_[0];
  2906. // required .message.Base_info base_info = 1;
  2907. if (cached_has_bits & 0x00000001u) {
  2908. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2909. 1, *this->base_info_, output);
  2910. }
  2911. // required int32 command_id = 2;
  2912. if (cached_has_bits & 0x00000004u) {
  2913. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  2914. }
  2915. // required .message.Parkspace_info confirm_space_info = 3;
  2916. if (cached_has_bits & 0x00000002u) {
  2917. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2918. 3, *this->confirm_space_info_, output);
  2919. }
  2920. if (_internal_metadata_.have_unknown_fields()) {
  2921. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2922. _internal_metadata_.unknown_fields(), output);
  2923. }
  2924. // @@protoc_insertion_point(serialize_end:message.Parkspace_confirm_alloc_request_msg)
  2925. }
  2926. ::google::protobuf::uint8* Parkspace_confirm_alloc_request_msg::InternalSerializeWithCachedSizesToArray(
  2927. bool deterministic, ::google::protobuf::uint8* target) const {
  2928. (void)deterministic; // Unused
  2929. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_confirm_alloc_request_msg)
  2930. ::google::protobuf::uint32 cached_has_bits = 0;
  2931. (void) cached_has_bits;
  2932. cached_has_bits = _has_bits_[0];
  2933. // required .message.Base_info base_info = 1;
  2934. if (cached_has_bits & 0x00000001u) {
  2935. target = ::google::protobuf::internal::WireFormatLite::
  2936. InternalWriteMessageToArray(
  2937. 1, *this->base_info_, deterministic, target);
  2938. }
  2939. // required int32 command_id = 2;
  2940. if (cached_has_bits & 0x00000004u) {
  2941. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  2942. }
  2943. // required .message.Parkspace_info confirm_space_info = 3;
  2944. if (cached_has_bits & 0x00000002u) {
  2945. target = ::google::protobuf::internal::WireFormatLite::
  2946. InternalWriteMessageToArray(
  2947. 3, *this->confirm_space_info_, deterministic, target);
  2948. }
  2949. if (_internal_metadata_.have_unknown_fields()) {
  2950. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2951. _internal_metadata_.unknown_fields(), target);
  2952. }
  2953. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_confirm_alloc_request_msg)
  2954. return target;
  2955. }
  2956. size_t Parkspace_confirm_alloc_request_msg::RequiredFieldsByteSizeFallback() const {
  2957. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_confirm_alloc_request_msg)
  2958. size_t total_size = 0;
  2959. if (has_base_info()) {
  2960. // required .message.Base_info base_info = 1;
  2961. total_size += 1 +
  2962. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2963. *this->base_info_);
  2964. }
  2965. if (has_confirm_space_info()) {
  2966. // required .message.Parkspace_info confirm_space_info = 3;
  2967. total_size += 1 +
  2968. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2969. *this->confirm_space_info_);
  2970. }
  2971. if (has_command_id()) {
  2972. // required int32 command_id = 2;
  2973. total_size += 1 +
  2974. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2975. this->command_id());
  2976. }
  2977. return total_size;
  2978. }
  2979. size_t Parkspace_confirm_alloc_request_msg::ByteSizeLong() const {
  2980. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_confirm_alloc_request_msg)
  2981. size_t total_size = 0;
  2982. if (_internal_metadata_.have_unknown_fields()) {
  2983. total_size +=
  2984. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2985. _internal_metadata_.unknown_fields());
  2986. }
  2987. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  2988. // required .message.Base_info base_info = 1;
  2989. total_size += 1 +
  2990. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2991. *this->base_info_);
  2992. // required .message.Parkspace_info confirm_space_info = 3;
  2993. total_size += 1 +
  2994. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2995. *this->confirm_space_info_);
  2996. // required int32 command_id = 2;
  2997. total_size += 1 +
  2998. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2999. this->command_id());
  3000. } else {
  3001. total_size += RequiredFieldsByteSizeFallback();
  3002. }
  3003. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3004. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3005. _cached_size_ = cached_size;
  3006. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3007. return total_size;
  3008. }
  3009. void Parkspace_confirm_alloc_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  3010. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_confirm_alloc_request_msg)
  3011. GOOGLE_DCHECK_NE(&from, this);
  3012. const Parkspace_confirm_alloc_request_msg* source =
  3013. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_confirm_alloc_request_msg>(
  3014. &from);
  3015. if (source == NULL) {
  3016. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_confirm_alloc_request_msg)
  3017. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3018. } else {
  3019. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_confirm_alloc_request_msg)
  3020. MergeFrom(*source);
  3021. }
  3022. }
  3023. void Parkspace_confirm_alloc_request_msg::MergeFrom(const Parkspace_confirm_alloc_request_msg& from) {
  3024. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_confirm_alloc_request_msg)
  3025. GOOGLE_DCHECK_NE(&from, this);
  3026. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3027. ::google::protobuf::uint32 cached_has_bits = 0;
  3028. (void) cached_has_bits;
  3029. cached_has_bits = from._has_bits_[0];
  3030. if (cached_has_bits & 7u) {
  3031. if (cached_has_bits & 0x00000001u) {
  3032. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  3033. }
  3034. if (cached_has_bits & 0x00000002u) {
  3035. mutable_confirm_space_info()->::message::Parkspace_info::MergeFrom(from.confirm_space_info());
  3036. }
  3037. if (cached_has_bits & 0x00000004u) {
  3038. command_id_ = from.command_id_;
  3039. }
  3040. _has_bits_[0] |= cached_has_bits;
  3041. }
  3042. }
  3043. void Parkspace_confirm_alloc_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  3044. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_confirm_alloc_request_msg)
  3045. if (&from == this) return;
  3046. Clear();
  3047. MergeFrom(from);
  3048. }
  3049. void Parkspace_confirm_alloc_request_msg::CopyFrom(const Parkspace_confirm_alloc_request_msg& from) {
  3050. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_confirm_alloc_request_msg)
  3051. if (&from == this) return;
  3052. Clear();
  3053. MergeFrom(from);
  3054. }
  3055. bool Parkspace_confirm_alloc_request_msg::IsInitialized() const {
  3056. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  3057. if (has_base_info()) {
  3058. if (!this->base_info_->IsInitialized()) return false;
  3059. }
  3060. return true;
  3061. }
  3062. void Parkspace_confirm_alloc_request_msg::Swap(Parkspace_confirm_alloc_request_msg* other) {
  3063. if (other == this) return;
  3064. InternalSwap(other);
  3065. }
  3066. void Parkspace_confirm_alloc_request_msg::InternalSwap(Parkspace_confirm_alloc_request_msg* other) {
  3067. using std::swap;
  3068. swap(base_info_, other->base_info_);
  3069. swap(confirm_space_info_, other->confirm_space_info_);
  3070. swap(command_id_, other->command_id_);
  3071. swap(_has_bits_[0], other->_has_bits_[0]);
  3072. _internal_metadata_.Swap(&other->_internal_metadata_);
  3073. swap(_cached_size_, other->_cached_size_);
  3074. }
  3075. ::google::protobuf::Metadata Parkspace_confirm_alloc_request_msg::GetMetadata() const {
  3076. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3077. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3078. }
  3079. // ===================================================================
  3080. void Parkspace_confirm_alloc_response_msg::InitAsDefaultInstance() {
  3081. ::message::_Parkspace_confirm_alloc_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  3082. ::message::Base_info::internal_default_instance());
  3083. ::message::_Parkspace_confirm_alloc_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  3084. ::message::Error_manager::internal_default_instance());
  3085. ::message::_Parkspace_confirm_alloc_response_msg_default_instance_._instance.get_mutable()->confirm_alloc_space_info_ = const_cast< ::message::Parkspace_info*>(
  3086. ::message::Parkspace_info::internal_default_instance());
  3087. }
  3088. void Parkspace_confirm_alloc_response_msg::clear_base_info() {
  3089. if (base_info_ != NULL) base_info_->Clear();
  3090. clear_has_base_info();
  3091. }
  3092. void Parkspace_confirm_alloc_response_msg::clear_error_manager() {
  3093. if (error_manager_ != NULL) error_manager_->Clear();
  3094. clear_has_error_manager();
  3095. }
  3096. void Parkspace_confirm_alloc_response_msg::clear_confirm_alloc_space_info() {
  3097. if (confirm_alloc_space_info_ != NULL) confirm_alloc_space_info_->Clear();
  3098. clear_has_confirm_alloc_space_info();
  3099. }
  3100. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3101. const int Parkspace_confirm_alloc_response_msg::kBaseInfoFieldNumber;
  3102. const int Parkspace_confirm_alloc_response_msg::kCommandIdFieldNumber;
  3103. const int Parkspace_confirm_alloc_response_msg::kErrorManagerFieldNumber;
  3104. const int Parkspace_confirm_alloc_response_msg::kConfirmAllocSpaceInfoFieldNumber;
  3105. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3106. Parkspace_confirm_alloc_response_msg::Parkspace_confirm_alloc_response_msg()
  3107. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3108. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  3109. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_response_msg();
  3110. }
  3111. SharedCtor();
  3112. // @@protoc_insertion_point(constructor:message.Parkspace_confirm_alloc_response_msg)
  3113. }
  3114. Parkspace_confirm_alloc_response_msg::Parkspace_confirm_alloc_response_msg(const Parkspace_confirm_alloc_response_msg& from)
  3115. : ::google::protobuf::Message(),
  3116. _internal_metadata_(NULL),
  3117. _has_bits_(from._has_bits_),
  3118. _cached_size_(0) {
  3119. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3120. if (from.has_base_info()) {
  3121. base_info_ = new ::message::Base_info(*from.base_info_);
  3122. } else {
  3123. base_info_ = NULL;
  3124. }
  3125. if (from.has_error_manager()) {
  3126. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  3127. } else {
  3128. error_manager_ = NULL;
  3129. }
  3130. if (from.has_confirm_alloc_space_info()) {
  3131. confirm_alloc_space_info_ = new ::message::Parkspace_info(*from.confirm_alloc_space_info_);
  3132. } else {
  3133. confirm_alloc_space_info_ = NULL;
  3134. }
  3135. command_id_ = from.command_id_;
  3136. // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_response_msg)
  3137. }
  3138. void Parkspace_confirm_alloc_response_msg::SharedCtor() {
  3139. _cached_size_ = 0;
  3140. ::memset(&base_info_, 0, static_cast<size_t>(
  3141. reinterpret_cast<char*>(&command_id_) -
  3142. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  3143. }
  3144. Parkspace_confirm_alloc_response_msg::~Parkspace_confirm_alloc_response_msg() {
  3145. // @@protoc_insertion_point(destructor:message.Parkspace_confirm_alloc_response_msg)
  3146. SharedDtor();
  3147. }
  3148. void Parkspace_confirm_alloc_response_msg::SharedDtor() {
  3149. if (this != internal_default_instance()) delete base_info_;
  3150. if (this != internal_default_instance()) delete error_manager_;
  3151. if (this != internal_default_instance()) delete confirm_alloc_space_info_;
  3152. }
  3153. void Parkspace_confirm_alloc_response_msg::SetCachedSize(int size) const {
  3154. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3155. _cached_size_ = size;
  3156. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3157. }
  3158. const ::google::protobuf::Descriptor* Parkspace_confirm_alloc_response_msg::descriptor() {
  3159. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3160. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3161. }
  3162. const Parkspace_confirm_alloc_response_msg& Parkspace_confirm_alloc_response_msg::default_instance() {
  3163. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_response_msg();
  3164. return *internal_default_instance();
  3165. }
  3166. Parkspace_confirm_alloc_response_msg* Parkspace_confirm_alloc_response_msg::New(::google::protobuf::Arena* arena) const {
  3167. Parkspace_confirm_alloc_response_msg* n = new Parkspace_confirm_alloc_response_msg;
  3168. if (arena != NULL) {
  3169. arena->Own(n);
  3170. }
  3171. return n;
  3172. }
  3173. void Parkspace_confirm_alloc_response_msg::Clear() {
  3174. // @@protoc_insertion_point(message_clear_start:message.Parkspace_confirm_alloc_response_msg)
  3175. ::google::protobuf::uint32 cached_has_bits = 0;
  3176. // Prevent compiler warnings about cached_has_bits being unused
  3177. (void) cached_has_bits;
  3178. cached_has_bits = _has_bits_[0];
  3179. if (cached_has_bits & 7u) {
  3180. if (cached_has_bits & 0x00000001u) {
  3181. GOOGLE_DCHECK(base_info_ != NULL);
  3182. base_info_->Clear();
  3183. }
  3184. if (cached_has_bits & 0x00000002u) {
  3185. GOOGLE_DCHECK(error_manager_ != NULL);
  3186. error_manager_->Clear();
  3187. }
  3188. if (cached_has_bits & 0x00000004u) {
  3189. GOOGLE_DCHECK(confirm_alloc_space_info_ != NULL);
  3190. confirm_alloc_space_info_->Clear();
  3191. }
  3192. }
  3193. command_id_ = 0;
  3194. _has_bits_.Clear();
  3195. _internal_metadata_.Clear();
  3196. }
  3197. bool Parkspace_confirm_alloc_response_msg::MergePartialFromCodedStream(
  3198. ::google::protobuf::io::CodedInputStream* input) {
  3199. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3200. ::google::protobuf::uint32 tag;
  3201. // @@protoc_insertion_point(parse_start:message.Parkspace_confirm_alloc_response_msg)
  3202. for (;;) {
  3203. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3204. tag = p.first;
  3205. if (!p.second) goto handle_unusual;
  3206. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3207. // required .message.Base_info base_info = 1;
  3208. case 1: {
  3209. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3210. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  3211. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3212. input, mutable_base_info()));
  3213. } else {
  3214. goto handle_unusual;
  3215. }
  3216. break;
  3217. }
  3218. // required int32 command_id = 2;
  3219. case 2: {
  3220. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3221. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  3222. set_has_command_id();
  3223. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3224. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3225. input, &command_id_)));
  3226. } else {
  3227. goto handle_unusual;
  3228. }
  3229. break;
  3230. }
  3231. // required .message.Error_manager error_manager = 3;
  3232. case 3: {
  3233. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3234. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  3235. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3236. input, mutable_error_manager()));
  3237. } else {
  3238. goto handle_unusual;
  3239. }
  3240. break;
  3241. }
  3242. // required .message.Parkspace_info confirm_alloc_space_info = 4;
  3243. case 4: {
  3244. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3245. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  3246. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3247. input, mutable_confirm_alloc_space_info()));
  3248. } else {
  3249. goto handle_unusual;
  3250. }
  3251. break;
  3252. }
  3253. default: {
  3254. handle_unusual:
  3255. if (tag == 0) {
  3256. goto success;
  3257. }
  3258. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3259. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3260. break;
  3261. }
  3262. }
  3263. }
  3264. success:
  3265. // @@protoc_insertion_point(parse_success:message.Parkspace_confirm_alloc_response_msg)
  3266. return true;
  3267. failure:
  3268. // @@protoc_insertion_point(parse_failure:message.Parkspace_confirm_alloc_response_msg)
  3269. return false;
  3270. #undef DO_
  3271. }
  3272. void Parkspace_confirm_alloc_response_msg::SerializeWithCachedSizes(
  3273. ::google::protobuf::io::CodedOutputStream* output) const {
  3274. // @@protoc_insertion_point(serialize_start:message.Parkspace_confirm_alloc_response_msg)
  3275. ::google::protobuf::uint32 cached_has_bits = 0;
  3276. (void) cached_has_bits;
  3277. cached_has_bits = _has_bits_[0];
  3278. // required .message.Base_info base_info = 1;
  3279. if (cached_has_bits & 0x00000001u) {
  3280. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3281. 1, *this->base_info_, output);
  3282. }
  3283. // required int32 command_id = 2;
  3284. if (cached_has_bits & 0x00000008u) {
  3285. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  3286. }
  3287. // required .message.Error_manager error_manager = 3;
  3288. if (cached_has_bits & 0x00000002u) {
  3289. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3290. 3, *this->error_manager_, output);
  3291. }
  3292. // required .message.Parkspace_info confirm_alloc_space_info = 4;
  3293. if (cached_has_bits & 0x00000004u) {
  3294. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3295. 4, *this->confirm_alloc_space_info_, output);
  3296. }
  3297. if (_internal_metadata_.have_unknown_fields()) {
  3298. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3299. _internal_metadata_.unknown_fields(), output);
  3300. }
  3301. // @@protoc_insertion_point(serialize_end:message.Parkspace_confirm_alloc_response_msg)
  3302. }
  3303. ::google::protobuf::uint8* Parkspace_confirm_alloc_response_msg::InternalSerializeWithCachedSizesToArray(
  3304. bool deterministic, ::google::protobuf::uint8* target) const {
  3305. (void)deterministic; // Unused
  3306. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_confirm_alloc_response_msg)
  3307. ::google::protobuf::uint32 cached_has_bits = 0;
  3308. (void) cached_has_bits;
  3309. cached_has_bits = _has_bits_[0];
  3310. // required .message.Base_info base_info = 1;
  3311. if (cached_has_bits & 0x00000001u) {
  3312. target = ::google::protobuf::internal::WireFormatLite::
  3313. InternalWriteMessageToArray(
  3314. 1, *this->base_info_, deterministic, target);
  3315. }
  3316. // required int32 command_id = 2;
  3317. if (cached_has_bits & 0x00000008u) {
  3318. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  3319. }
  3320. // required .message.Error_manager error_manager = 3;
  3321. if (cached_has_bits & 0x00000002u) {
  3322. target = ::google::protobuf::internal::WireFormatLite::
  3323. InternalWriteMessageToArray(
  3324. 3, *this->error_manager_, deterministic, target);
  3325. }
  3326. // required .message.Parkspace_info confirm_alloc_space_info = 4;
  3327. if (cached_has_bits & 0x00000004u) {
  3328. target = ::google::protobuf::internal::WireFormatLite::
  3329. InternalWriteMessageToArray(
  3330. 4, *this->confirm_alloc_space_info_, deterministic, target);
  3331. }
  3332. if (_internal_metadata_.have_unknown_fields()) {
  3333. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3334. _internal_metadata_.unknown_fields(), target);
  3335. }
  3336. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_confirm_alloc_response_msg)
  3337. return target;
  3338. }
  3339. size_t Parkspace_confirm_alloc_response_msg::RequiredFieldsByteSizeFallback() const {
  3340. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_confirm_alloc_response_msg)
  3341. size_t total_size = 0;
  3342. if (has_base_info()) {
  3343. // required .message.Base_info base_info = 1;
  3344. total_size += 1 +
  3345. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3346. *this->base_info_);
  3347. }
  3348. if (has_error_manager()) {
  3349. // required .message.Error_manager error_manager = 3;
  3350. total_size += 1 +
  3351. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3352. *this->error_manager_);
  3353. }
  3354. if (has_confirm_alloc_space_info()) {
  3355. // required .message.Parkspace_info confirm_alloc_space_info = 4;
  3356. total_size += 1 +
  3357. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3358. *this->confirm_alloc_space_info_);
  3359. }
  3360. if (has_command_id()) {
  3361. // required int32 command_id = 2;
  3362. total_size += 1 +
  3363. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3364. this->command_id());
  3365. }
  3366. return total_size;
  3367. }
  3368. size_t Parkspace_confirm_alloc_response_msg::ByteSizeLong() const {
  3369. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_confirm_alloc_response_msg)
  3370. size_t total_size = 0;
  3371. if (_internal_metadata_.have_unknown_fields()) {
  3372. total_size +=
  3373. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3374. _internal_metadata_.unknown_fields());
  3375. }
  3376. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  3377. // required .message.Base_info base_info = 1;
  3378. total_size += 1 +
  3379. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3380. *this->base_info_);
  3381. // required .message.Error_manager error_manager = 3;
  3382. total_size += 1 +
  3383. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3384. *this->error_manager_);
  3385. // required .message.Parkspace_info confirm_alloc_space_info = 4;
  3386. total_size += 1 +
  3387. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3388. *this->confirm_alloc_space_info_);
  3389. // required int32 command_id = 2;
  3390. total_size += 1 +
  3391. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3392. this->command_id());
  3393. } else {
  3394. total_size += RequiredFieldsByteSizeFallback();
  3395. }
  3396. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3397. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3398. _cached_size_ = cached_size;
  3399. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3400. return total_size;
  3401. }
  3402. void Parkspace_confirm_alloc_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  3403. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_confirm_alloc_response_msg)
  3404. GOOGLE_DCHECK_NE(&from, this);
  3405. const Parkspace_confirm_alloc_response_msg* source =
  3406. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_confirm_alloc_response_msg>(
  3407. &from);
  3408. if (source == NULL) {
  3409. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_confirm_alloc_response_msg)
  3410. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3411. } else {
  3412. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_confirm_alloc_response_msg)
  3413. MergeFrom(*source);
  3414. }
  3415. }
  3416. void Parkspace_confirm_alloc_response_msg::MergeFrom(const Parkspace_confirm_alloc_response_msg& from) {
  3417. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_confirm_alloc_response_msg)
  3418. GOOGLE_DCHECK_NE(&from, this);
  3419. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3420. ::google::protobuf::uint32 cached_has_bits = 0;
  3421. (void) cached_has_bits;
  3422. cached_has_bits = from._has_bits_[0];
  3423. if (cached_has_bits & 15u) {
  3424. if (cached_has_bits & 0x00000001u) {
  3425. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  3426. }
  3427. if (cached_has_bits & 0x00000002u) {
  3428. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  3429. }
  3430. if (cached_has_bits & 0x00000004u) {
  3431. mutable_confirm_alloc_space_info()->::message::Parkspace_info::MergeFrom(from.confirm_alloc_space_info());
  3432. }
  3433. if (cached_has_bits & 0x00000008u) {
  3434. command_id_ = from.command_id_;
  3435. }
  3436. _has_bits_[0] |= cached_has_bits;
  3437. }
  3438. }
  3439. void Parkspace_confirm_alloc_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  3440. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_confirm_alloc_response_msg)
  3441. if (&from == this) return;
  3442. Clear();
  3443. MergeFrom(from);
  3444. }
  3445. void Parkspace_confirm_alloc_response_msg::CopyFrom(const Parkspace_confirm_alloc_response_msg& from) {
  3446. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_confirm_alloc_response_msg)
  3447. if (&from == this) return;
  3448. Clear();
  3449. MergeFrom(from);
  3450. }
  3451. bool Parkspace_confirm_alloc_response_msg::IsInitialized() const {
  3452. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  3453. if (has_base_info()) {
  3454. if (!this->base_info_->IsInitialized()) return false;
  3455. }
  3456. if (has_error_manager()) {
  3457. if (!this->error_manager_->IsInitialized()) return false;
  3458. }
  3459. return true;
  3460. }
  3461. void Parkspace_confirm_alloc_response_msg::Swap(Parkspace_confirm_alloc_response_msg* other) {
  3462. if (other == this) return;
  3463. InternalSwap(other);
  3464. }
  3465. void Parkspace_confirm_alloc_response_msg::InternalSwap(Parkspace_confirm_alloc_response_msg* other) {
  3466. using std::swap;
  3467. swap(base_info_, other->base_info_);
  3468. swap(error_manager_, other->error_manager_);
  3469. swap(confirm_alloc_space_info_, other->confirm_alloc_space_info_);
  3470. swap(command_id_, other->command_id_);
  3471. swap(_has_bits_[0], other->_has_bits_[0]);
  3472. _internal_metadata_.Swap(&other->_internal_metadata_);
  3473. swap(_cached_size_, other->_cached_size_);
  3474. }
  3475. ::google::protobuf::Metadata Parkspace_confirm_alloc_response_msg::GetMetadata() const {
  3476. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3477. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3478. }
  3479. // ===================================================================
  3480. void Parkspace_allocation_status_msg::InitAsDefaultInstance() {
  3481. ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  3482. ::message::Base_info::internal_default_instance());
  3483. ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  3484. ::message::Error_manager::internal_default_instance());
  3485. }
  3486. void Parkspace_allocation_status_msg::clear_base_info() {
  3487. if (base_info_ != NULL) base_info_->Clear();
  3488. clear_has_base_info();
  3489. }
  3490. void Parkspace_allocation_status_msg::clear_error_manager() {
  3491. if (error_manager_ != NULL) error_manager_->Clear();
  3492. clear_has_error_manager();
  3493. }
  3494. void Parkspace_allocation_status_msg::clear_parkspace_info() {
  3495. parkspace_info_.Clear();
  3496. }
  3497. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3498. const int Parkspace_allocation_status_msg::kBaseInfoFieldNumber;
  3499. const int Parkspace_allocation_status_msg::kErrorManagerFieldNumber;
  3500. const int Parkspace_allocation_status_msg::kParkspaceInfoFieldNumber;
  3501. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3502. Parkspace_allocation_status_msg::Parkspace_allocation_status_msg()
  3503. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3504. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  3505. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg();
  3506. }
  3507. SharedCtor();
  3508. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_status_msg)
  3509. }
  3510. Parkspace_allocation_status_msg::Parkspace_allocation_status_msg(const Parkspace_allocation_status_msg& from)
  3511. : ::google::protobuf::Message(),
  3512. _internal_metadata_(NULL),
  3513. _has_bits_(from._has_bits_),
  3514. _cached_size_(0),
  3515. parkspace_info_(from.parkspace_info_) {
  3516. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3517. if (from.has_base_info()) {
  3518. base_info_ = new ::message::Base_info(*from.base_info_);
  3519. } else {
  3520. base_info_ = NULL;
  3521. }
  3522. if (from.has_error_manager()) {
  3523. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  3524. } else {
  3525. error_manager_ = NULL;
  3526. }
  3527. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_status_msg)
  3528. }
  3529. void Parkspace_allocation_status_msg::SharedCtor() {
  3530. _cached_size_ = 0;
  3531. ::memset(&base_info_, 0, static_cast<size_t>(
  3532. reinterpret_cast<char*>(&error_manager_) -
  3533. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  3534. }
  3535. Parkspace_allocation_status_msg::~Parkspace_allocation_status_msg() {
  3536. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_status_msg)
  3537. SharedDtor();
  3538. }
  3539. void Parkspace_allocation_status_msg::SharedDtor() {
  3540. if (this != internal_default_instance()) delete base_info_;
  3541. if (this != internal_default_instance()) delete error_manager_;
  3542. }
  3543. void Parkspace_allocation_status_msg::SetCachedSize(int size) const {
  3544. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3545. _cached_size_ = size;
  3546. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3547. }
  3548. const ::google::protobuf::Descriptor* Parkspace_allocation_status_msg::descriptor() {
  3549. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3550. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3551. }
  3552. const Parkspace_allocation_status_msg& Parkspace_allocation_status_msg::default_instance() {
  3553. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg();
  3554. return *internal_default_instance();
  3555. }
  3556. Parkspace_allocation_status_msg* Parkspace_allocation_status_msg::New(::google::protobuf::Arena* arena) const {
  3557. Parkspace_allocation_status_msg* n = new Parkspace_allocation_status_msg;
  3558. if (arena != NULL) {
  3559. arena->Own(n);
  3560. }
  3561. return n;
  3562. }
  3563. void Parkspace_allocation_status_msg::Clear() {
  3564. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_status_msg)
  3565. ::google::protobuf::uint32 cached_has_bits = 0;
  3566. // Prevent compiler warnings about cached_has_bits being unused
  3567. (void) cached_has_bits;
  3568. parkspace_info_.Clear();
  3569. cached_has_bits = _has_bits_[0];
  3570. if (cached_has_bits & 3u) {
  3571. if (cached_has_bits & 0x00000001u) {
  3572. GOOGLE_DCHECK(base_info_ != NULL);
  3573. base_info_->Clear();
  3574. }
  3575. if (cached_has_bits & 0x00000002u) {
  3576. GOOGLE_DCHECK(error_manager_ != NULL);
  3577. error_manager_->Clear();
  3578. }
  3579. }
  3580. _has_bits_.Clear();
  3581. _internal_metadata_.Clear();
  3582. }
  3583. bool Parkspace_allocation_status_msg::MergePartialFromCodedStream(
  3584. ::google::protobuf::io::CodedInputStream* input) {
  3585. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3586. ::google::protobuf::uint32 tag;
  3587. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_status_msg)
  3588. for (;;) {
  3589. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3590. tag = p.first;
  3591. if (!p.second) goto handle_unusual;
  3592. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3593. // required .message.Base_info base_info = 1;
  3594. case 1: {
  3595. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3596. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  3597. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3598. input, mutable_base_info()));
  3599. } else {
  3600. goto handle_unusual;
  3601. }
  3602. break;
  3603. }
  3604. // required .message.Error_manager error_manager = 2;
  3605. case 2: {
  3606. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3607. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  3608. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3609. input, mutable_error_manager()));
  3610. } else {
  3611. goto handle_unusual;
  3612. }
  3613. break;
  3614. }
  3615. // repeated .message.Parkspace_info parkspace_info = 3;
  3616. case 3: {
  3617. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3618. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  3619. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_parkspace_info()));
  3620. } else {
  3621. goto handle_unusual;
  3622. }
  3623. break;
  3624. }
  3625. default: {
  3626. handle_unusual:
  3627. if (tag == 0) {
  3628. goto success;
  3629. }
  3630. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3631. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3632. break;
  3633. }
  3634. }
  3635. }
  3636. success:
  3637. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_status_msg)
  3638. return true;
  3639. failure:
  3640. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_status_msg)
  3641. return false;
  3642. #undef DO_
  3643. }
  3644. void Parkspace_allocation_status_msg::SerializeWithCachedSizes(
  3645. ::google::protobuf::io::CodedOutputStream* output) const {
  3646. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_status_msg)
  3647. ::google::protobuf::uint32 cached_has_bits = 0;
  3648. (void) cached_has_bits;
  3649. cached_has_bits = _has_bits_[0];
  3650. // required .message.Base_info base_info = 1;
  3651. if (cached_has_bits & 0x00000001u) {
  3652. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3653. 1, *this->base_info_, output);
  3654. }
  3655. // required .message.Error_manager error_manager = 2;
  3656. if (cached_has_bits & 0x00000002u) {
  3657. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3658. 2, *this->error_manager_, output);
  3659. }
  3660. // repeated .message.Parkspace_info parkspace_info = 3;
  3661. for (unsigned int i = 0,
  3662. n = static_cast<unsigned int>(this->parkspace_info_size()); i < n; i++) {
  3663. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3664. 3, this->parkspace_info(static_cast<int>(i)), output);
  3665. }
  3666. if (_internal_metadata_.have_unknown_fields()) {
  3667. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3668. _internal_metadata_.unknown_fields(), output);
  3669. }
  3670. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_status_msg)
  3671. }
  3672. ::google::protobuf::uint8* Parkspace_allocation_status_msg::InternalSerializeWithCachedSizesToArray(
  3673. bool deterministic, ::google::protobuf::uint8* target) const {
  3674. (void)deterministic; // Unused
  3675. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_status_msg)
  3676. ::google::protobuf::uint32 cached_has_bits = 0;
  3677. (void) cached_has_bits;
  3678. cached_has_bits = _has_bits_[0];
  3679. // required .message.Base_info base_info = 1;
  3680. if (cached_has_bits & 0x00000001u) {
  3681. target = ::google::protobuf::internal::WireFormatLite::
  3682. InternalWriteMessageToArray(
  3683. 1, *this->base_info_, deterministic, target);
  3684. }
  3685. // required .message.Error_manager error_manager = 2;
  3686. if (cached_has_bits & 0x00000002u) {
  3687. target = ::google::protobuf::internal::WireFormatLite::
  3688. InternalWriteMessageToArray(
  3689. 2, *this->error_manager_, deterministic, target);
  3690. }
  3691. // repeated .message.Parkspace_info parkspace_info = 3;
  3692. for (unsigned int i = 0,
  3693. n = static_cast<unsigned int>(this->parkspace_info_size()); i < n; i++) {
  3694. target = ::google::protobuf::internal::WireFormatLite::
  3695. InternalWriteMessageToArray(
  3696. 3, this->parkspace_info(static_cast<int>(i)), deterministic, target);
  3697. }
  3698. if (_internal_metadata_.have_unknown_fields()) {
  3699. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3700. _internal_metadata_.unknown_fields(), target);
  3701. }
  3702. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_status_msg)
  3703. return target;
  3704. }
  3705. size_t Parkspace_allocation_status_msg::RequiredFieldsByteSizeFallback() const {
  3706. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_status_msg)
  3707. size_t total_size = 0;
  3708. if (has_base_info()) {
  3709. // required .message.Base_info base_info = 1;
  3710. total_size += 1 +
  3711. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3712. *this->base_info_);
  3713. }
  3714. if (has_error_manager()) {
  3715. // required .message.Error_manager error_manager = 2;
  3716. total_size += 1 +
  3717. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3718. *this->error_manager_);
  3719. }
  3720. return total_size;
  3721. }
  3722. size_t Parkspace_allocation_status_msg::ByteSizeLong() const {
  3723. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_status_msg)
  3724. size_t total_size = 0;
  3725. if (_internal_metadata_.have_unknown_fields()) {
  3726. total_size +=
  3727. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3728. _internal_metadata_.unknown_fields());
  3729. }
  3730. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  3731. // required .message.Base_info base_info = 1;
  3732. total_size += 1 +
  3733. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3734. *this->base_info_);
  3735. // required .message.Error_manager error_manager = 2;
  3736. total_size += 1 +
  3737. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3738. *this->error_manager_);
  3739. } else {
  3740. total_size += RequiredFieldsByteSizeFallback();
  3741. }
  3742. // repeated .message.Parkspace_info parkspace_info = 3;
  3743. {
  3744. unsigned int count = static_cast<unsigned int>(this->parkspace_info_size());
  3745. total_size += 1UL * count;
  3746. for (unsigned int i = 0; i < count; i++) {
  3747. total_size +=
  3748. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3749. this->parkspace_info(static_cast<int>(i)));
  3750. }
  3751. }
  3752. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3753. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3754. _cached_size_ = cached_size;
  3755. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3756. return total_size;
  3757. }
  3758. void Parkspace_allocation_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  3759. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_status_msg)
  3760. GOOGLE_DCHECK_NE(&from, this);
  3761. const Parkspace_allocation_status_msg* source =
  3762. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_status_msg>(
  3763. &from);
  3764. if (source == NULL) {
  3765. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_status_msg)
  3766. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3767. } else {
  3768. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_status_msg)
  3769. MergeFrom(*source);
  3770. }
  3771. }
  3772. void Parkspace_allocation_status_msg::MergeFrom(const Parkspace_allocation_status_msg& from) {
  3773. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_status_msg)
  3774. GOOGLE_DCHECK_NE(&from, this);
  3775. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3776. ::google::protobuf::uint32 cached_has_bits = 0;
  3777. (void) cached_has_bits;
  3778. parkspace_info_.MergeFrom(from.parkspace_info_);
  3779. cached_has_bits = from._has_bits_[0];
  3780. if (cached_has_bits & 3u) {
  3781. if (cached_has_bits & 0x00000001u) {
  3782. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  3783. }
  3784. if (cached_has_bits & 0x00000002u) {
  3785. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  3786. }
  3787. }
  3788. }
  3789. void Parkspace_allocation_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  3790. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_status_msg)
  3791. if (&from == this) return;
  3792. Clear();
  3793. MergeFrom(from);
  3794. }
  3795. void Parkspace_allocation_status_msg::CopyFrom(const Parkspace_allocation_status_msg& from) {
  3796. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_status_msg)
  3797. if (&from == this) return;
  3798. Clear();
  3799. MergeFrom(from);
  3800. }
  3801. bool Parkspace_allocation_status_msg::IsInitialized() const {
  3802. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  3803. if (has_base_info()) {
  3804. if (!this->base_info_->IsInitialized()) return false;
  3805. }
  3806. if (has_error_manager()) {
  3807. if (!this->error_manager_->IsInitialized()) return false;
  3808. }
  3809. return true;
  3810. }
  3811. void Parkspace_allocation_status_msg::Swap(Parkspace_allocation_status_msg* other) {
  3812. if (other == this) return;
  3813. InternalSwap(other);
  3814. }
  3815. void Parkspace_allocation_status_msg::InternalSwap(Parkspace_allocation_status_msg* other) {
  3816. using std::swap;
  3817. parkspace_info_.InternalSwap(&other->parkspace_info_);
  3818. swap(base_info_, other->base_info_);
  3819. swap(error_manager_, other->error_manager_);
  3820. swap(_has_bits_[0], other->_has_bits_[0]);
  3821. _internal_metadata_.Swap(&other->_internal_metadata_);
  3822. swap(_cached_size_, other->_cached_size_);
  3823. }
  3824. ::google::protobuf::Metadata Parkspace_allocation_status_msg::GetMetadata() const {
  3825. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3826. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3827. }
  3828. // @@protoc_insertion_point(namespace_scope)
  3829. } // namespace message
  3830. // @@protoc_insertion_point(global_scope)