message_base.pb.cc 156 KB

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