message_base.pb.cc 137 KB

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