message_base.pb.cc 131 KB

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