parkspace_allocation_message.pb.cc 215 KB

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