message_base.pb.cc 111 KB

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