message_base.pb.cc 110 KB

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