parkspace_allocation_message.pb.cc 175 KB

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