message_base.pb.cc 126 KB

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