message_base.pb.cc 132 KB

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