parkspace_allocation_message.pb.cc 165 KB

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