parkspace_allocation_message.pb.cc 173 KB

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