parkspace_allocation_message.pb.cc 168 KB

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