message_base.pb.cc 114 KB

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