message_base.pb.cc 151 KB

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