message_base.pb.cc 122 KB

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