message_base.pb.cc 114 KB

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