message_base.pb.cc 122 KB

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