parkspace_allocation_message.pb.cc 87 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: parkspace_allocation_message.proto
  3. #include "parkspace_allocation_message.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 Parkspace_allocation_request_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_request_msg>
  23. _instance;
  24. } _Parkspace_allocation_request_msg_default_instance_;
  25. class Parkspace_allocation_response_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_response_msg>
  28. _instance;
  29. } _Parkspace_allocation_response_msg_default_instance_;
  30. class Parkspace_allocation_status_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_status_msg>
  33. _instance;
  34. } _Parkspace_allocation_status_msg_default_instance_;
  35. class Parkspace_infoDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_info>
  38. _instance;
  39. } _Parkspace_info_default_instance_;
  40. } // namespace message
  41. namespace protobuf_parkspace_5fallocation_5fmessage_2eproto {
  42. void InitDefaultsParkspace_allocation_request_msgImpl() {
  43. GOOGLE_PROTOBUF_VERIFY_VERSION;
  44. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  45. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  46. #else
  47. ::google::protobuf::internal::InitProtobufDefaults();
  48. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  49. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  50. {
  51. void* ptr = &::message::_Parkspace_allocation_request_msg_default_instance_;
  52. new (ptr) ::message::Parkspace_allocation_request_msg();
  53. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  54. }
  55. ::message::Parkspace_allocation_request_msg::InitAsDefaultInstance();
  56. }
  57. void InitDefaultsParkspace_allocation_request_msg() {
  58. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  59. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_request_msgImpl);
  60. }
  61. void InitDefaultsParkspace_allocation_response_msgImpl() {
  62. GOOGLE_PROTOBUF_VERIFY_VERSION;
  63. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  64. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  65. #else
  66. ::google::protobuf::internal::InitProtobufDefaults();
  67. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  68. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  69. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  70. {
  71. void* ptr = &::message::_Parkspace_allocation_response_msg_default_instance_;
  72. new (ptr) ::message::Parkspace_allocation_response_msg();
  73. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  74. }
  75. ::message::Parkspace_allocation_response_msg::InitAsDefaultInstance();
  76. }
  77. void InitDefaultsParkspace_allocation_response_msg() {
  78. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  79. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_response_msgImpl);
  80. }
  81. void InitDefaultsParkspace_allocation_status_msgImpl() {
  82. GOOGLE_PROTOBUF_VERIFY_VERSION;
  83. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  84. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  85. #else
  86. ::google::protobuf::internal::InitProtobufDefaults();
  87. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  88. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  89. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  90. protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info();
  91. {
  92. void* ptr = &::message::_Parkspace_allocation_status_msg_default_instance_;
  93. new (ptr) ::message::Parkspace_allocation_status_msg();
  94. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  95. }
  96. ::message::Parkspace_allocation_status_msg::InitAsDefaultInstance();
  97. }
  98. void InitDefaultsParkspace_allocation_status_msg() {
  99. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  100. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_status_msgImpl);
  101. }
  102. void InitDefaultsParkspace_infoImpl() {
  103. GOOGLE_PROTOBUF_VERIFY_VERSION;
  104. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  105. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  106. #else
  107. ::google::protobuf::internal::InitProtobufDefaults();
  108. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  109. {
  110. void* ptr = &::message::_Parkspace_info_default_instance_;
  111. new (ptr) ::message::Parkspace_info();
  112. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  113. }
  114. ::message::Parkspace_info::InitAsDefaultInstance();
  115. }
  116. void InitDefaultsParkspace_info() {
  117. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  118. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl);
  119. }
  120. ::google::protobuf::Metadata file_level_metadata[4];
  121. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  122. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _has_bits_),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _internal_metadata_),
  125. ~0u, // no _extensions_
  126. ~0u, // no _oneof_case_
  127. ~0u, // no _weak_field_map_
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, base_info_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, command_id_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_length_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_width_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_height_),
  133. 0,
  134. 1,
  135. 2,
  136. 3,
  137. 4,
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_),
  140. ~0u, // no _extensions_
  141. ~0u, // no _oneof_case_
  142. ~0u, // no _weak_field_map_
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, base_info_),
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, command_id_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_space_id_),
  147. 0,
  148. 2,
  149. 1,
  150. 3,
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _has_bits_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _internal_metadata_),
  153. ~0u, // no _extensions_
  154. ~0u, // no _oneof_case_
  155. ~0u, // no _weak_field_map_
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, base_info_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, error_manager_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, parkspace_info_),
  159. 0,
  160. 1,
  161. ~0u,
  162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _has_bits_),
  163. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _internal_metadata_),
  164. ~0u, // no _extensions_
  165. ~0u, // no _oneof_case_
  166. ~0u, // no _weak_field_map_
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_id_),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, x_coordinate_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, y_coordinate_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, z_coordinate_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, length_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, width_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, height_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, license_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, entry_time_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, leave_time_),
  178. 2,
  179. 3,
  180. 4,
  181. 5,
  182. 6,
  183. 7,
  184. 8,
  185. 9,
  186. 10,
  187. 0,
  188. 1,
  189. };
  190. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  191. { 0, 10, sizeof(::message::Parkspace_allocation_request_msg)},
  192. { 15, 24, sizeof(::message::Parkspace_allocation_response_msg)},
  193. { 28, 36, sizeof(::message::Parkspace_allocation_status_msg)},
  194. { 39, 55, sizeof(::message::Parkspace_info)},
  195. };
  196. static ::google::protobuf::Message const * const file_default_instances[] = {
  197. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_request_msg_default_instance_),
  198. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_response_msg_default_instance_),
  199. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_status_msg_default_instance_),
  200. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_info_default_instance_),
  201. };
  202. void protobuf_AssignDescriptors() {
  203. AddDescriptors();
  204. ::google::protobuf::MessageFactory* factory = NULL;
  205. AssignDescriptors(
  206. "parkspace_allocation_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  207. file_level_metadata, file_level_enum_descriptors, NULL);
  208. }
  209. void protobuf_AssignDescriptorsOnce() {
  210. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  211. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  212. }
  213. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  214. void protobuf_RegisterTypes(const ::std::string&) {
  215. protobuf_AssignDescriptorsOnce();
  216. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  217. }
  218. void AddDescriptorsImpl() {
  219. InitDefaults();
  220. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  221. "\n\"parkspace_allocation_message.proto\022\007me"
  222. "ssage\032\022message_base.proto\"\230\001\n Parkspace_"
  223. "allocation_request_msg\022%\n\tbase_info\030\001 \002("
  224. "\0132\022.message.Base_info\022\022\n\ncommand_id\030\002 \002("
  225. "\005\022\022\n\ncar_length\030\003 \002(\005\022\021\n\tcar_width\030\004 \002(\005"
  226. "\022\022\n\ncar_height\030\005 \002(\005\"\251\001\n!Parkspace_alloc"
  227. "ation_response_msg\022%\n\tbase_info\030\001 \002(\0132\022."
  228. "message.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022-\n"
  229. "\rerror_manager\030\003 \002(\0132\026.message.Error_man"
  230. "ager\022\032\n\022allocated_space_id\030\004 \002(\005\"\250\001\n\037Par"
  231. "kspace_allocation_status_msg\022%\n\tbase_inf"
  232. "o\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_man"
  233. "ager\030\002 \002(\0132\026.message.Error_manager\022/\n\016pa"
  234. "rkspace_info\030\003 \003(\0132\027.message.Parkspace_i"
  235. "nfo\"\205\002\n\016Parkspace_info\022\024\n\014parkspace_id\030\001"
  236. " \002(\005\022\024\n\014x_coordinate\030\002 \002(\005\022\024\n\014y_coordina"
  237. "te\030\003 \002(\005\022\024\n\014z_coordinate\030\004 \002(\005\022\016\n\006length"
  238. "\030\005 \002(\005\022\r\n\005width\030\006 \002(\005\022\016\n\006height\030\007 \002(\005\0223\n"
  239. "\020parkspace_status\030\010 \002(\0162\031.message.Parksp"
  240. "ace_status\022\017\n\007license\030\t \001(\005\022\022\n\nentry_tim"
  241. "e\030\n \001(\t\022\022\n\nleave_time\030\013 \001(\t*q\n\020Parkspace"
  242. "_status\022\024\n\020eParkspace_empty\020\000\022\027\n\023eParksp"
  243. "ace_occupied\020\001\022\030\n\024eParkspace_reserverd\020\002"
  244. "\022\024\n\020eParkspace_error\020\003"
  245. };
  246. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  247. descriptor, 942);
  248. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  249. "parkspace_allocation_message.proto", &protobuf_RegisterTypes);
  250. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  251. }
  252. void AddDescriptors() {
  253. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  254. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  255. }
  256. // Force AddDescriptors() to be called at dynamic initialization time.
  257. struct StaticDescriptorInitializer {
  258. StaticDescriptorInitializer() {
  259. AddDescriptors();
  260. }
  261. } static_descriptor_initializer;
  262. } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto
  263. namespace message {
  264. const ::google::protobuf::EnumDescriptor* Parkspace_status_descriptor() {
  265. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  266. return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[0];
  267. }
  268. bool Parkspace_status_IsValid(int value) {
  269. switch (value) {
  270. case 0:
  271. case 1:
  272. case 2:
  273. case 3:
  274. return true;
  275. default:
  276. return false;
  277. }
  278. }
  279. // ===================================================================
  280. void Parkspace_allocation_request_msg::InitAsDefaultInstance() {
  281. ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  282. ::message::Base_info::internal_default_instance());
  283. }
  284. void Parkspace_allocation_request_msg::clear_base_info() {
  285. if (base_info_ != NULL) base_info_->Clear();
  286. clear_has_base_info();
  287. }
  288. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  289. const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber;
  290. const int Parkspace_allocation_request_msg::kCommandIdFieldNumber;
  291. const int Parkspace_allocation_request_msg::kCarLengthFieldNumber;
  292. const int Parkspace_allocation_request_msg::kCarWidthFieldNumber;
  293. const int Parkspace_allocation_request_msg::kCarHeightFieldNumber;
  294. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  295. Parkspace_allocation_request_msg::Parkspace_allocation_request_msg()
  296. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  297. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  298. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg();
  299. }
  300. SharedCtor();
  301. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_request_msg)
  302. }
  303. Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspace_allocation_request_msg& from)
  304. : ::google::protobuf::Message(),
  305. _internal_metadata_(NULL),
  306. _has_bits_(from._has_bits_),
  307. _cached_size_(0) {
  308. _internal_metadata_.MergeFrom(from._internal_metadata_);
  309. if (from.has_base_info()) {
  310. base_info_ = new ::message::Base_info(*from.base_info_);
  311. } else {
  312. base_info_ = NULL;
  313. }
  314. ::memcpy(&command_id_, &from.command_id_,
  315. static_cast<size_t>(reinterpret_cast<char*>(&car_height_) -
  316. reinterpret_cast<char*>(&command_id_)) + sizeof(car_height_));
  317. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg)
  318. }
  319. void Parkspace_allocation_request_msg::SharedCtor() {
  320. _cached_size_ = 0;
  321. ::memset(&base_info_, 0, static_cast<size_t>(
  322. reinterpret_cast<char*>(&car_height_) -
  323. reinterpret_cast<char*>(&base_info_)) + sizeof(car_height_));
  324. }
  325. Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() {
  326. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_request_msg)
  327. SharedDtor();
  328. }
  329. void Parkspace_allocation_request_msg::SharedDtor() {
  330. if (this != internal_default_instance()) delete base_info_;
  331. }
  332. void Parkspace_allocation_request_msg::SetCachedSize(int size) const {
  333. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  334. _cached_size_ = size;
  335. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  336. }
  337. const ::google::protobuf::Descriptor* Parkspace_allocation_request_msg::descriptor() {
  338. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  339. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  340. }
  341. const Parkspace_allocation_request_msg& Parkspace_allocation_request_msg::default_instance() {
  342. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg();
  343. return *internal_default_instance();
  344. }
  345. Parkspace_allocation_request_msg* Parkspace_allocation_request_msg::New(::google::protobuf::Arena* arena) const {
  346. Parkspace_allocation_request_msg* n = new Parkspace_allocation_request_msg;
  347. if (arena != NULL) {
  348. arena->Own(n);
  349. }
  350. return n;
  351. }
  352. void Parkspace_allocation_request_msg::Clear() {
  353. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_request_msg)
  354. ::google::protobuf::uint32 cached_has_bits = 0;
  355. // Prevent compiler warnings about cached_has_bits being unused
  356. (void) cached_has_bits;
  357. cached_has_bits = _has_bits_[0];
  358. if (cached_has_bits & 0x00000001u) {
  359. GOOGLE_DCHECK(base_info_ != NULL);
  360. base_info_->Clear();
  361. }
  362. if (cached_has_bits & 30u) {
  363. ::memset(&command_id_, 0, static_cast<size_t>(
  364. reinterpret_cast<char*>(&car_height_) -
  365. reinterpret_cast<char*>(&command_id_)) + sizeof(car_height_));
  366. }
  367. _has_bits_.Clear();
  368. _internal_metadata_.Clear();
  369. }
  370. bool Parkspace_allocation_request_msg::MergePartialFromCodedStream(
  371. ::google::protobuf::io::CodedInputStream* input) {
  372. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  373. ::google::protobuf::uint32 tag;
  374. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_request_msg)
  375. for (;;) {
  376. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  377. tag = p.first;
  378. if (!p.second) goto handle_unusual;
  379. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  380. // required .message.Base_info base_info = 1;
  381. case 1: {
  382. if (static_cast< ::google::protobuf::uint8>(tag) ==
  383. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  384. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  385. input, mutable_base_info()));
  386. } else {
  387. goto handle_unusual;
  388. }
  389. break;
  390. }
  391. // required int32 command_id = 2;
  392. case 2: {
  393. if (static_cast< ::google::protobuf::uint8>(tag) ==
  394. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  395. set_has_command_id();
  396. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  397. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  398. input, &command_id_)));
  399. } else {
  400. goto handle_unusual;
  401. }
  402. break;
  403. }
  404. // required int32 car_length = 3;
  405. case 3: {
  406. if (static_cast< ::google::protobuf::uint8>(tag) ==
  407. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  408. set_has_car_length();
  409. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  410. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  411. input, &car_length_)));
  412. } else {
  413. goto handle_unusual;
  414. }
  415. break;
  416. }
  417. // required int32 car_width = 4;
  418. case 4: {
  419. if (static_cast< ::google::protobuf::uint8>(tag) ==
  420. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  421. set_has_car_width();
  422. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  423. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  424. input, &car_width_)));
  425. } else {
  426. goto handle_unusual;
  427. }
  428. break;
  429. }
  430. // required int32 car_height = 5;
  431. case 5: {
  432. if (static_cast< ::google::protobuf::uint8>(tag) ==
  433. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  434. set_has_car_height();
  435. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  436. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  437. input, &car_height_)));
  438. } else {
  439. goto handle_unusual;
  440. }
  441. break;
  442. }
  443. default: {
  444. handle_unusual:
  445. if (tag == 0) {
  446. goto success;
  447. }
  448. DO_(::google::protobuf::internal::WireFormat::SkipField(
  449. input, tag, _internal_metadata_.mutable_unknown_fields()));
  450. break;
  451. }
  452. }
  453. }
  454. success:
  455. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_request_msg)
  456. return true;
  457. failure:
  458. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_request_msg)
  459. return false;
  460. #undef DO_
  461. }
  462. void Parkspace_allocation_request_msg::SerializeWithCachedSizes(
  463. ::google::protobuf::io::CodedOutputStream* output) const {
  464. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_request_msg)
  465. ::google::protobuf::uint32 cached_has_bits = 0;
  466. (void) cached_has_bits;
  467. cached_has_bits = _has_bits_[0];
  468. // required .message.Base_info base_info = 1;
  469. if (cached_has_bits & 0x00000001u) {
  470. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  471. 1, *this->base_info_, output);
  472. }
  473. // required int32 command_id = 2;
  474. if (cached_has_bits & 0x00000002u) {
  475. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  476. }
  477. // required int32 car_length = 3;
  478. if (cached_has_bits & 0x00000004u) {
  479. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->car_length(), output);
  480. }
  481. // required int32 car_width = 4;
  482. if (cached_has_bits & 0x00000008u) {
  483. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->car_width(), output);
  484. }
  485. // required int32 car_height = 5;
  486. if (cached_has_bits & 0x00000010u) {
  487. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->car_height(), output);
  488. }
  489. if (_internal_metadata_.have_unknown_fields()) {
  490. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  491. _internal_metadata_.unknown_fields(), output);
  492. }
  493. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_request_msg)
  494. }
  495. ::google::protobuf::uint8* Parkspace_allocation_request_msg::InternalSerializeWithCachedSizesToArray(
  496. bool deterministic, ::google::protobuf::uint8* target) const {
  497. (void)deterministic; // Unused
  498. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_request_msg)
  499. ::google::protobuf::uint32 cached_has_bits = 0;
  500. (void) cached_has_bits;
  501. cached_has_bits = _has_bits_[0];
  502. // required .message.Base_info base_info = 1;
  503. if (cached_has_bits & 0x00000001u) {
  504. target = ::google::protobuf::internal::WireFormatLite::
  505. InternalWriteMessageToArray(
  506. 1, *this->base_info_, deterministic, target);
  507. }
  508. // required int32 command_id = 2;
  509. if (cached_has_bits & 0x00000002u) {
  510. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  511. }
  512. // required int32 car_length = 3;
  513. if (cached_has_bits & 0x00000004u) {
  514. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->car_length(), target);
  515. }
  516. // required int32 car_width = 4;
  517. if (cached_has_bits & 0x00000008u) {
  518. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->car_width(), target);
  519. }
  520. // required int32 car_height = 5;
  521. if (cached_has_bits & 0x00000010u) {
  522. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->car_height(), target);
  523. }
  524. if (_internal_metadata_.have_unknown_fields()) {
  525. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  526. _internal_metadata_.unknown_fields(), target);
  527. }
  528. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_request_msg)
  529. return target;
  530. }
  531. size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const {
  532. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_request_msg)
  533. size_t total_size = 0;
  534. if (has_base_info()) {
  535. // required .message.Base_info base_info = 1;
  536. total_size += 1 +
  537. ::google::protobuf::internal::WireFormatLite::MessageSize(
  538. *this->base_info_);
  539. }
  540. if (has_command_id()) {
  541. // required int32 command_id = 2;
  542. total_size += 1 +
  543. ::google::protobuf::internal::WireFormatLite::Int32Size(
  544. this->command_id());
  545. }
  546. if (has_car_length()) {
  547. // required int32 car_length = 3;
  548. total_size += 1 +
  549. ::google::protobuf::internal::WireFormatLite::Int32Size(
  550. this->car_length());
  551. }
  552. if (has_car_width()) {
  553. // required int32 car_width = 4;
  554. total_size += 1 +
  555. ::google::protobuf::internal::WireFormatLite::Int32Size(
  556. this->car_width());
  557. }
  558. if (has_car_height()) {
  559. // required int32 car_height = 5;
  560. total_size += 1 +
  561. ::google::protobuf::internal::WireFormatLite::Int32Size(
  562. this->car_height());
  563. }
  564. return total_size;
  565. }
  566. size_t Parkspace_allocation_request_msg::ByteSizeLong() const {
  567. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_request_msg)
  568. size_t total_size = 0;
  569. if (_internal_metadata_.have_unknown_fields()) {
  570. total_size +=
  571. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  572. _internal_metadata_.unknown_fields());
  573. }
  574. if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present.
  575. // required .message.Base_info base_info = 1;
  576. total_size += 1 +
  577. ::google::protobuf::internal::WireFormatLite::MessageSize(
  578. *this->base_info_);
  579. // required int32 command_id = 2;
  580. total_size += 1 +
  581. ::google::protobuf::internal::WireFormatLite::Int32Size(
  582. this->command_id());
  583. // required int32 car_length = 3;
  584. total_size += 1 +
  585. ::google::protobuf::internal::WireFormatLite::Int32Size(
  586. this->car_length());
  587. // required int32 car_width = 4;
  588. total_size += 1 +
  589. ::google::protobuf::internal::WireFormatLite::Int32Size(
  590. this->car_width());
  591. // required int32 car_height = 5;
  592. total_size += 1 +
  593. ::google::protobuf::internal::WireFormatLite::Int32Size(
  594. this->car_height());
  595. } else {
  596. total_size += RequiredFieldsByteSizeFallback();
  597. }
  598. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  599. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  600. _cached_size_ = cached_size;
  601. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  602. return total_size;
  603. }
  604. void Parkspace_allocation_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  605. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_request_msg)
  606. GOOGLE_DCHECK_NE(&from, this);
  607. const Parkspace_allocation_request_msg* source =
  608. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_request_msg>(
  609. &from);
  610. if (source == NULL) {
  611. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_request_msg)
  612. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  613. } else {
  614. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_request_msg)
  615. MergeFrom(*source);
  616. }
  617. }
  618. void Parkspace_allocation_request_msg::MergeFrom(const Parkspace_allocation_request_msg& from) {
  619. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_request_msg)
  620. GOOGLE_DCHECK_NE(&from, this);
  621. _internal_metadata_.MergeFrom(from._internal_metadata_);
  622. ::google::protobuf::uint32 cached_has_bits = 0;
  623. (void) cached_has_bits;
  624. cached_has_bits = from._has_bits_[0];
  625. if (cached_has_bits & 31u) {
  626. if (cached_has_bits & 0x00000001u) {
  627. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  628. }
  629. if (cached_has_bits & 0x00000002u) {
  630. command_id_ = from.command_id_;
  631. }
  632. if (cached_has_bits & 0x00000004u) {
  633. car_length_ = from.car_length_;
  634. }
  635. if (cached_has_bits & 0x00000008u) {
  636. car_width_ = from.car_width_;
  637. }
  638. if (cached_has_bits & 0x00000010u) {
  639. car_height_ = from.car_height_;
  640. }
  641. _has_bits_[0] |= cached_has_bits;
  642. }
  643. }
  644. void Parkspace_allocation_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  645. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_request_msg)
  646. if (&from == this) return;
  647. Clear();
  648. MergeFrom(from);
  649. }
  650. void Parkspace_allocation_request_msg::CopyFrom(const Parkspace_allocation_request_msg& from) {
  651. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_request_msg)
  652. if (&from == this) return;
  653. Clear();
  654. MergeFrom(from);
  655. }
  656. bool Parkspace_allocation_request_msg::IsInitialized() const {
  657. if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
  658. if (has_base_info()) {
  659. if (!this->base_info_->IsInitialized()) return false;
  660. }
  661. return true;
  662. }
  663. void Parkspace_allocation_request_msg::Swap(Parkspace_allocation_request_msg* other) {
  664. if (other == this) return;
  665. InternalSwap(other);
  666. }
  667. void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request_msg* other) {
  668. using std::swap;
  669. swap(base_info_, other->base_info_);
  670. swap(command_id_, other->command_id_);
  671. swap(car_length_, other->car_length_);
  672. swap(car_width_, other->car_width_);
  673. swap(car_height_, other->car_height_);
  674. swap(_has_bits_[0], other->_has_bits_[0]);
  675. _internal_metadata_.Swap(&other->_internal_metadata_);
  676. swap(_cached_size_, other->_cached_size_);
  677. }
  678. ::google::protobuf::Metadata Parkspace_allocation_request_msg::GetMetadata() const {
  679. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  680. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  681. }
  682. // ===================================================================
  683. void Parkspace_allocation_response_msg::InitAsDefaultInstance() {
  684. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  685. ::message::Base_info::internal_default_instance());
  686. ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  687. ::message::Error_manager::internal_default_instance());
  688. }
  689. void Parkspace_allocation_response_msg::clear_base_info() {
  690. if (base_info_ != NULL) base_info_->Clear();
  691. clear_has_base_info();
  692. }
  693. void Parkspace_allocation_response_msg::clear_error_manager() {
  694. if (error_manager_ != NULL) error_manager_->Clear();
  695. clear_has_error_manager();
  696. }
  697. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  698. const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber;
  699. const int Parkspace_allocation_response_msg::kCommandIdFieldNumber;
  700. const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber;
  701. const int Parkspace_allocation_response_msg::kAllocatedSpaceIdFieldNumber;
  702. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  703. Parkspace_allocation_response_msg::Parkspace_allocation_response_msg()
  704. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  705. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  706. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg();
  707. }
  708. SharedCtor();
  709. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_response_msg)
  710. }
  711. Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parkspace_allocation_response_msg& from)
  712. : ::google::protobuf::Message(),
  713. _internal_metadata_(NULL),
  714. _has_bits_(from._has_bits_),
  715. _cached_size_(0) {
  716. _internal_metadata_.MergeFrom(from._internal_metadata_);
  717. if (from.has_base_info()) {
  718. base_info_ = new ::message::Base_info(*from.base_info_);
  719. } else {
  720. base_info_ = NULL;
  721. }
  722. if (from.has_error_manager()) {
  723. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  724. } else {
  725. error_manager_ = NULL;
  726. }
  727. ::memcpy(&command_id_, &from.command_id_,
  728. static_cast<size_t>(reinterpret_cast<char*>(&allocated_space_id_) -
  729. reinterpret_cast<char*>(&command_id_)) + sizeof(allocated_space_id_));
  730. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg)
  731. }
  732. void Parkspace_allocation_response_msg::SharedCtor() {
  733. _cached_size_ = 0;
  734. ::memset(&base_info_, 0, static_cast<size_t>(
  735. reinterpret_cast<char*>(&allocated_space_id_) -
  736. reinterpret_cast<char*>(&base_info_)) + sizeof(allocated_space_id_));
  737. }
  738. Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() {
  739. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg)
  740. SharedDtor();
  741. }
  742. void Parkspace_allocation_response_msg::SharedDtor() {
  743. if (this != internal_default_instance()) delete base_info_;
  744. if (this != internal_default_instance()) delete error_manager_;
  745. }
  746. void Parkspace_allocation_response_msg::SetCachedSize(int size) const {
  747. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  748. _cached_size_ = size;
  749. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  750. }
  751. const ::google::protobuf::Descriptor* Parkspace_allocation_response_msg::descriptor() {
  752. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  753. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  754. }
  755. const Parkspace_allocation_response_msg& Parkspace_allocation_response_msg::default_instance() {
  756. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg();
  757. return *internal_default_instance();
  758. }
  759. Parkspace_allocation_response_msg* Parkspace_allocation_response_msg::New(::google::protobuf::Arena* arena) const {
  760. Parkspace_allocation_response_msg* n = new Parkspace_allocation_response_msg;
  761. if (arena != NULL) {
  762. arena->Own(n);
  763. }
  764. return n;
  765. }
  766. void Parkspace_allocation_response_msg::Clear() {
  767. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_response_msg)
  768. ::google::protobuf::uint32 cached_has_bits = 0;
  769. // Prevent compiler warnings about cached_has_bits being unused
  770. (void) cached_has_bits;
  771. cached_has_bits = _has_bits_[0];
  772. if (cached_has_bits & 3u) {
  773. if (cached_has_bits & 0x00000001u) {
  774. GOOGLE_DCHECK(base_info_ != NULL);
  775. base_info_->Clear();
  776. }
  777. if (cached_has_bits & 0x00000002u) {
  778. GOOGLE_DCHECK(error_manager_ != NULL);
  779. error_manager_->Clear();
  780. }
  781. }
  782. if (cached_has_bits & 12u) {
  783. ::memset(&command_id_, 0, static_cast<size_t>(
  784. reinterpret_cast<char*>(&allocated_space_id_) -
  785. reinterpret_cast<char*>(&command_id_)) + sizeof(allocated_space_id_));
  786. }
  787. _has_bits_.Clear();
  788. _internal_metadata_.Clear();
  789. }
  790. bool Parkspace_allocation_response_msg::MergePartialFromCodedStream(
  791. ::google::protobuf::io::CodedInputStream* input) {
  792. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  793. ::google::protobuf::uint32 tag;
  794. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_response_msg)
  795. for (;;) {
  796. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  797. tag = p.first;
  798. if (!p.second) goto handle_unusual;
  799. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  800. // required .message.Base_info base_info = 1;
  801. case 1: {
  802. if (static_cast< ::google::protobuf::uint8>(tag) ==
  803. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  804. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  805. input, mutable_base_info()));
  806. } else {
  807. goto handle_unusual;
  808. }
  809. break;
  810. }
  811. // required int32 command_id = 2;
  812. case 2: {
  813. if (static_cast< ::google::protobuf::uint8>(tag) ==
  814. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  815. set_has_command_id();
  816. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  817. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  818. input, &command_id_)));
  819. } else {
  820. goto handle_unusual;
  821. }
  822. break;
  823. }
  824. // required .message.Error_manager error_manager = 3;
  825. case 3: {
  826. if (static_cast< ::google::protobuf::uint8>(tag) ==
  827. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  828. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  829. input, mutable_error_manager()));
  830. } else {
  831. goto handle_unusual;
  832. }
  833. break;
  834. }
  835. // required int32 allocated_space_id = 4;
  836. case 4: {
  837. if (static_cast< ::google::protobuf::uint8>(tag) ==
  838. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  839. set_has_allocated_space_id();
  840. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  841. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  842. input, &allocated_space_id_)));
  843. } else {
  844. goto handle_unusual;
  845. }
  846. break;
  847. }
  848. default: {
  849. handle_unusual:
  850. if (tag == 0) {
  851. goto success;
  852. }
  853. DO_(::google::protobuf::internal::WireFormat::SkipField(
  854. input, tag, _internal_metadata_.mutable_unknown_fields()));
  855. break;
  856. }
  857. }
  858. }
  859. success:
  860. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_response_msg)
  861. return true;
  862. failure:
  863. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_response_msg)
  864. return false;
  865. #undef DO_
  866. }
  867. void Parkspace_allocation_response_msg::SerializeWithCachedSizes(
  868. ::google::protobuf::io::CodedOutputStream* output) const {
  869. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_response_msg)
  870. ::google::protobuf::uint32 cached_has_bits = 0;
  871. (void) cached_has_bits;
  872. cached_has_bits = _has_bits_[0];
  873. // required .message.Base_info base_info = 1;
  874. if (cached_has_bits & 0x00000001u) {
  875. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  876. 1, *this->base_info_, output);
  877. }
  878. // required int32 command_id = 2;
  879. if (cached_has_bits & 0x00000004u) {
  880. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  881. }
  882. // required .message.Error_manager error_manager = 3;
  883. if (cached_has_bits & 0x00000002u) {
  884. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  885. 3, *this->error_manager_, output);
  886. }
  887. // required int32 allocated_space_id = 4;
  888. if (cached_has_bits & 0x00000008u) {
  889. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->allocated_space_id(), output);
  890. }
  891. if (_internal_metadata_.have_unknown_fields()) {
  892. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  893. _internal_metadata_.unknown_fields(), output);
  894. }
  895. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_response_msg)
  896. }
  897. ::google::protobuf::uint8* Parkspace_allocation_response_msg::InternalSerializeWithCachedSizesToArray(
  898. bool deterministic, ::google::protobuf::uint8* target) const {
  899. (void)deterministic; // Unused
  900. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_response_msg)
  901. ::google::protobuf::uint32 cached_has_bits = 0;
  902. (void) cached_has_bits;
  903. cached_has_bits = _has_bits_[0];
  904. // required .message.Base_info base_info = 1;
  905. if (cached_has_bits & 0x00000001u) {
  906. target = ::google::protobuf::internal::WireFormatLite::
  907. InternalWriteMessageToArray(
  908. 1, *this->base_info_, deterministic, target);
  909. }
  910. // required int32 command_id = 2;
  911. if (cached_has_bits & 0x00000004u) {
  912. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  913. }
  914. // required .message.Error_manager error_manager = 3;
  915. if (cached_has_bits & 0x00000002u) {
  916. target = ::google::protobuf::internal::WireFormatLite::
  917. InternalWriteMessageToArray(
  918. 3, *this->error_manager_, deterministic, target);
  919. }
  920. // required int32 allocated_space_id = 4;
  921. if (cached_has_bits & 0x00000008u) {
  922. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->allocated_space_id(), target);
  923. }
  924. if (_internal_metadata_.have_unknown_fields()) {
  925. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  926. _internal_metadata_.unknown_fields(), target);
  927. }
  928. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_response_msg)
  929. return target;
  930. }
  931. size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const {
  932. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_response_msg)
  933. size_t total_size = 0;
  934. if (has_base_info()) {
  935. // required .message.Base_info base_info = 1;
  936. total_size += 1 +
  937. ::google::protobuf::internal::WireFormatLite::MessageSize(
  938. *this->base_info_);
  939. }
  940. if (has_error_manager()) {
  941. // required .message.Error_manager error_manager = 3;
  942. total_size += 1 +
  943. ::google::protobuf::internal::WireFormatLite::MessageSize(
  944. *this->error_manager_);
  945. }
  946. if (has_command_id()) {
  947. // required int32 command_id = 2;
  948. total_size += 1 +
  949. ::google::protobuf::internal::WireFormatLite::Int32Size(
  950. this->command_id());
  951. }
  952. if (has_allocated_space_id()) {
  953. // required int32 allocated_space_id = 4;
  954. total_size += 1 +
  955. ::google::protobuf::internal::WireFormatLite::Int32Size(
  956. this->allocated_space_id());
  957. }
  958. return total_size;
  959. }
  960. size_t Parkspace_allocation_response_msg::ByteSizeLong() const {
  961. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_response_msg)
  962. size_t total_size = 0;
  963. if (_internal_metadata_.have_unknown_fields()) {
  964. total_size +=
  965. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  966. _internal_metadata_.unknown_fields());
  967. }
  968. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  969. // required .message.Base_info base_info = 1;
  970. total_size += 1 +
  971. ::google::protobuf::internal::WireFormatLite::MessageSize(
  972. *this->base_info_);
  973. // required .message.Error_manager error_manager = 3;
  974. total_size += 1 +
  975. ::google::protobuf::internal::WireFormatLite::MessageSize(
  976. *this->error_manager_);
  977. // required int32 command_id = 2;
  978. total_size += 1 +
  979. ::google::protobuf::internal::WireFormatLite::Int32Size(
  980. this->command_id());
  981. // required int32 allocated_space_id = 4;
  982. total_size += 1 +
  983. ::google::protobuf::internal::WireFormatLite::Int32Size(
  984. this->allocated_space_id());
  985. } else {
  986. total_size += RequiredFieldsByteSizeFallback();
  987. }
  988. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  989. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  990. _cached_size_ = cached_size;
  991. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  992. return total_size;
  993. }
  994. void Parkspace_allocation_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  995. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_response_msg)
  996. GOOGLE_DCHECK_NE(&from, this);
  997. const Parkspace_allocation_response_msg* source =
  998. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_response_msg>(
  999. &from);
  1000. if (source == NULL) {
  1001. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_response_msg)
  1002. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1003. } else {
  1004. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_response_msg)
  1005. MergeFrom(*source);
  1006. }
  1007. }
  1008. void Parkspace_allocation_response_msg::MergeFrom(const Parkspace_allocation_response_msg& from) {
  1009. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_response_msg)
  1010. GOOGLE_DCHECK_NE(&from, this);
  1011. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1012. ::google::protobuf::uint32 cached_has_bits = 0;
  1013. (void) cached_has_bits;
  1014. cached_has_bits = from._has_bits_[0];
  1015. if (cached_has_bits & 15u) {
  1016. if (cached_has_bits & 0x00000001u) {
  1017. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1018. }
  1019. if (cached_has_bits & 0x00000002u) {
  1020. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1021. }
  1022. if (cached_has_bits & 0x00000004u) {
  1023. command_id_ = from.command_id_;
  1024. }
  1025. if (cached_has_bits & 0x00000008u) {
  1026. allocated_space_id_ = from.allocated_space_id_;
  1027. }
  1028. _has_bits_[0] |= cached_has_bits;
  1029. }
  1030. }
  1031. void Parkspace_allocation_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1032. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_response_msg)
  1033. if (&from == this) return;
  1034. Clear();
  1035. MergeFrom(from);
  1036. }
  1037. void Parkspace_allocation_response_msg::CopyFrom(const Parkspace_allocation_response_msg& from) {
  1038. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_response_msg)
  1039. if (&from == this) return;
  1040. Clear();
  1041. MergeFrom(from);
  1042. }
  1043. bool Parkspace_allocation_response_msg::IsInitialized() const {
  1044. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1045. if (has_base_info()) {
  1046. if (!this->base_info_->IsInitialized()) return false;
  1047. }
  1048. if (has_error_manager()) {
  1049. if (!this->error_manager_->IsInitialized()) return false;
  1050. }
  1051. return true;
  1052. }
  1053. void Parkspace_allocation_response_msg::Swap(Parkspace_allocation_response_msg* other) {
  1054. if (other == this) return;
  1055. InternalSwap(other);
  1056. }
  1057. void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_response_msg* other) {
  1058. using std::swap;
  1059. swap(base_info_, other->base_info_);
  1060. swap(error_manager_, other->error_manager_);
  1061. swap(command_id_, other->command_id_);
  1062. swap(allocated_space_id_, other->allocated_space_id_);
  1063. swap(_has_bits_[0], other->_has_bits_[0]);
  1064. _internal_metadata_.Swap(&other->_internal_metadata_);
  1065. swap(_cached_size_, other->_cached_size_);
  1066. }
  1067. ::google::protobuf::Metadata Parkspace_allocation_response_msg::GetMetadata() const {
  1068. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1069. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1070. }
  1071. // ===================================================================
  1072. void Parkspace_allocation_status_msg::InitAsDefaultInstance() {
  1073. ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1074. ::message::Base_info::internal_default_instance());
  1075. ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1076. ::message::Error_manager::internal_default_instance());
  1077. }
  1078. void Parkspace_allocation_status_msg::clear_base_info() {
  1079. if (base_info_ != NULL) base_info_->Clear();
  1080. clear_has_base_info();
  1081. }
  1082. void Parkspace_allocation_status_msg::clear_error_manager() {
  1083. if (error_manager_ != NULL) error_manager_->Clear();
  1084. clear_has_error_manager();
  1085. }
  1086. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1087. const int Parkspace_allocation_status_msg::kBaseInfoFieldNumber;
  1088. const int Parkspace_allocation_status_msg::kErrorManagerFieldNumber;
  1089. const int Parkspace_allocation_status_msg::kParkspaceInfoFieldNumber;
  1090. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1091. Parkspace_allocation_status_msg::Parkspace_allocation_status_msg()
  1092. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1093. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1094. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg();
  1095. }
  1096. SharedCtor();
  1097. // @@protoc_insertion_point(constructor:message.Parkspace_allocation_status_msg)
  1098. }
  1099. Parkspace_allocation_status_msg::Parkspace_allocation_status_msg(const Parkspace_allocation_status_msg& from)
  1100. : ::google::protobuf::Message(),
  1101. _internal_metadata_(NULL),
  1102. _has_bits_(from._has_bits_),
  1103. _cached_size_(0),
  1104. parkspace_info_(from.parkspace_info_) {
  1105. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1106. if (from.has_base_info()) {
  1107. base_info_ = new ::message::Base_info(*from.base_info_);
  1108. } else {
  1109. base_info_ = NULL;
  1110. }
  1111. if (from.has_error_manager()) {
  1112. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1113. } else {
  1114. error_manager_ = NULL;
  1115. }
  1116. // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_status_msg)
  1117. }
  1118. void Parkspace_allocation_status_msg::SharedCtor() {
  1119. _cached_size_ = 0;
  1120. ::memset(&base_info_, 0, static_cast<size_t>(
  1121. reinterpret_cast<char*>(&error_manager_) -
  1122. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  1123. }
  1124. Parkspace_allocation_status_msg::~Parkspace_allocation_status_msg() {
  1125. // @@protoc_insertion_point(destructor:message.Parkspace_allocation_status_msg)
  1126. SharedDtor();
  1127. }
  1128. void Parkspace_allocation_status_msg::SharedDtor() {
  1129. if (this != internal_default_instance()) delete base_info_;
  1130. if (this != internal_default_instance()) delete error_manager_;
  1131. }
  1132. void Parkspace_allocation_status_msg::SetCachedSize(int size) const {
  1133. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1134. _cached_size_ = size;
  1135. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1136. }
  1137. const ::google::protobuf::Descriptor* Parkspace_allocation_status_msg::descriptor() {
  1138. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1139. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1140. }
  1141. const Parkspace_allocation_status_msg& Parkspace_allocation_status_msg::default_instance() {
  1142. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg();
  1143. return *internal_default_instance();
  1144. }
  1145. Parkspace_allocation_status_msg* Parkspace_allocation_status_msg::New(::google::protobuf::Arena* arena) const {
  1146. Parkspace_allocation_status_msg* n = new Parkspace_allocation_status_msg;
  1147. if (arena != NULL) {
  1148. arena->Own(n);
  1149. }
  1150. return n;
  1151. }
  1152. void Parkspace_allocation_status_msg::Clear() {
  1153. // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_status_msg)
  1154. ::google::protobuf::uint32 cached_has_bits = 0;
  1155. // Prevent compiler warnings about cached_has_bits being unused
  1156. (void) cached_has_bits;
  1157. parkspace_info_.Clear();
  1158. cached_has_bits = _has_bits_[0];
  1159. if (cached_has_bits & 3u) {
  1160. if (cached_has_bits & 0x00000001u) {
  1161. GOOGLE_DCHECK(base_info_ != NULL);
  1162. base_info_->Clear();
  1163. }
  1164. if (cached_has_bits & 0x00000002u) {
  1165. GOOGLE_DCHECK(error_manager_ != NULL);
  1166. error_manager_->Clear();
  1167. }
  1168. }
  1169. _has_bits_.Clear();
  1170. _internal_metadata_.Clear();
  1171. }
  1172. bool Parkspace_allocation_status_msg::MergePartialFromCodedStream(
  1173. ::google::protobuf::io::CodedInputStream* input) {
  1174. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1175. ::google::protobuf::uint32 tag;
  1176. // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_status_msg)
  1177. for (;;) {
  1178. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1179. tag = p.first;
  1180. if (!p.second) goto handle_unusual;
  1181. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1182. // required .message.Base_info base_info = 1;
  1183. case 1: {
  1184. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1185. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1186. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1187. input, mutable_base_info()));
  1188. } else {
  1189. goto handle_unusual;
  1190. }
  1191. break;
  1192. }
  1193. // required .message.Error_manager error_manager = 2;
  1194. case 2: {
  1195. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1196. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1197. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1198. input, mutable_error_manager()));
  1199. } else {
  1200. goto handle_unusual;
  1201. }
  1202. break;
  1203. }
  1204. // repeated .message.Parkspace_info parkspace_info = 3;
  1205. case 3: {
  1206. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1207. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1208. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_parkspace_info()));
  1209. } else {
  1210. goto handle_unusual;
  1211. }
  1212. break;
  1213. }
  1214. default: {
  1215. handle_unusual:
  1216. if (tag == 0) {
  1217. goto success;
  1218. }
  1219. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1220. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1221. break;
  1222. }
  1223. }
  1224. }
  1225. success:
  1226. // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_status_msg)
  1227. return true;
  1228. failure:
  1229. // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_status_msg)
  1230. return false;
  1231. #undef DO_
  1232. }
  1233. void Parkspace_allocation_status_msg::SerializeWithCachedSizes(
  1234. ::google::protobuf::io::CodedOutputStream* output) const {
  1235. // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_status_msg)
  1236. ::google::protobuf::uint32 cached_has_bits = 0;
  1237. (void) cached_has_bits;
  1238. cached_has_bits = _has_bits_[0];
  1239. // required .message.Base_info base_info = 1;
  1240. if (cached_has_bits & 0x00000001u) {
  1241. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1242. 1, *this->base_info_, output);
  1243. }
  1244. // required .message.Error_manager error_manager = 2;
  1245. if (cached_has_bits & 0x00000002u) {
  1246. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1247. 2, *this->error_manager_, output);
  1248. }
  1249. // repeated .message.Parkspace_info parkspace_info = 3;
  1250. for (unsigned int i = 0,
  1251. n = static_cast<unsigned int>(this->parkspace_info_size()); i < n; i++) {
  1252. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1253. 3, this->parkspace_info(static_cast<int>(i)), output);
  1254. }
  1255. if (_internal_metadata_.have_unknown_fields()) {
  1256. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1257. _internal_metadata_.unknown_fields(), output);
  1258. }
  1259. // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_status_msg)
  1260. }
  1261. ::google::protobuf::uint8* Parkspace_allocation_status_msg::InternalSerializeWithCachedSizesToArray(
  1262. bool deterministic, ::google::protobuf::uint8* target) const {
  1263. (void)deterministic; // Unused
  1264. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_status_msg)
  1265. ::google::protobuf::uint32 cached_has_bits = 0;
  1266. (void) cached_has_bits;
  1267. cached_has_bits = _has_bits_[0];
  1268. // required .message.Base_info base_info = 1;
  1269. if (cached_has_bits & 0x00000001u) {
  1270. target = ::google::protobuf::internal::WireFormatLite::
  1271. InternalWriteMessageToArray(
  1272. 1, *this->base_info_, deterministic, target);
  1273. }
  1274. // required .message.Error_manager error_manager = 2;
  1275. if (cached_has_bits & 0x00000002u) {
  1276. target = ::google::protobuf::internal::WireFormatLite::
  1277. InternalWriteMessageToArray(
  1278. 2, *this->error_manager_, deterministic, target);
  1279. }
  1280. // repeated .message.Parkspace_info parkspace_info = 3;
  1281. for (unsigned int i = 0,
  1282. n = static_cast<unsigned int>(this->parkspace_info_size()); i < n; i++) {
  1283. target = ::google::protobuf::internal::WireFormatLite::
  1284. InternalWriteMessageToArray(
  1285. 3, this->parkspace_info(static_cast<int>(i)), deterministic, target);
  1286. }
  1287. if (_internal_metadata_.have_unknown_fields()) {
  1288. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1289. _internal_metadata_.unknown_fields(), target);
  1290. }
  1291. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_status_msg)
  1292. return target;
  1293. }
  1294. size_t Parkspace_allocation_status_msg::RequiredFieldsByteSizeFallback() const {
  1295. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_status_msg)
  1296. size_t total_size = 0;
  1297. if (has_base_info()) {
  1298. // required .message.Base_info base_info = 1;
  1299. total_size += 1 +
  1300. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1301. *this->base_info_);
  1302. }
  1303. if (has_error_manager()) {
  1304. // required .message.Error_manager error_manager = 2;
  1305. total_size += 1 +
  1306. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1307. *this->error_manager_);
  1308. }
  1309. return total_size;
  1310. }
  1311. size_t Parkspace_allocation_status_msg::ByteSizeLong() const {
  1312. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_status_msg)
  1313. size_t total_size = 0;
  1314. if (_internal_metadata_.have_unknown_fields()) {
  1315. total_size +=
  1316. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1317. _internal_metadata_.unknown_fields());
  1318. }
  1319. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  1320. // required .message.Base_info base_info = 1;
  1321. total_size += 1 +
  1322. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1323. *this->base_info_);
  1324. // required .message.Error_manager error_manager = 2;
  1325. total_size += 1 +
  1326. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1327. *this->error_manager_);
  1328. } else {
  1329. total_size += RequiredFieldsByteSizeFallback();
  1330. }
  1331. // repeated .message.Parkspace_info parkspace_info = 3;
  1332. {
  1333. unsigned int count = static_cast<unsigned int>(this->parkspace_info_size());
  1334. total_size += 1UL * count;
  1335. for (unsigned int i = 0; i < count; i++) {
  1336. total_size +=
  1337. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1338. this->parkspace_info(static_cast<int>(i)));
  1339. }
  1340. }
  1341. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1342. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1343. _cached_size_ = cached_size;
  1344. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1345. return total_size;
  1346. }
  1347. void Parkspace_allocation_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1348. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_status_msg)
  1349. GOOGLE_DCHECK_NE(&from, this);
  1350. const Parkspace_allocation_status_msg* source =
  1351. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_allocation_status_msg>(
  1352. &from);
  1353. if (source == NULL) {
  1354. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_status_msg)
  1355. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1356. } else {
  1357. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_status_msg)
  1358. MergeFrom(*source);
  1359. }
  1360. }
  1361. void Parkspace_allocation_status_msg::MergeFrom(const Parkspace_allocation_status_msg& from) {
  1362. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_status_msg)
  1363. GOOGLE_DCHECK_NE(&from, this);
  1364. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1365. ::google::protobuf::uint32 cached_has_bits = 0;
  1366. (void) cached_has_bits;
  1367. parkspace_info_.MergeFrom(from.parkspace_info_);
  1368. cached_has_bits = from._has_bits_[0];
  1369. if (cached_has_bits & 3u) {
  1370. if (cached_has_bits & 0x00000001u) {
  1371. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1372. }
  1373. if (cached_has_bits & 0x00000002u) {
  1374. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1375. }
  1376. }
  1377. }
  1378. void Parkspace_allocation_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1379. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_status_msg)
  1380. if (&from == this) return;
  1381. Clear();
  1382. MergeFrom(from);
  1383. }
  1384. void Parkspace_allocation_status_msg::CopyFrom(const Parkspace_allocation_status_msg& from) {
  1385. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_status_msg)
  1386. if (&from == this) return;
  1387. Clear();
  1388. MergeFrom(from);
  1389. }
  1390. bool Parkspace_allocation_status_msg::IsInitialized() const {
  1391. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1392. if (!::google::protobuf::internal::AllAreInitialized(this->parkspace_info())) return false;
  1393. if (has_base_info()) {
  1394. if (!this->base_info_->IsInitialized()) return false;
  1395. }
  1396. if (has_error_manager()) {
  1397. if (!this->error_manager_->IsInitialized()) return false;
  1398. }
  1399. return true;
  1400. }
  1401. void Parkspace_allocation_status_msg::Swap(Parkspace_allocation_status_msg* other) {
  1402. if (other == this) return;
  1403. InternalSwap(other);
  1404. }
  1405. void Parkspace_allocation_status_msg::InternalSwap(Parkspace_allocation_status_msg* other) {
  1406. using std::swap;
  1407. parkspace_info_.InternalSwap(&other->parkspace_info_);
  1408. swap(base_info_, other->base_info_);
  1409. swap(error_manager_, other->error_manager_);
  1410. swap(_has_bits_[0], other->_has_bits_[0]);
  1411. _internal_metadata_.Swap(&other->_internal_metadata_);
  1412. swap(_cached_size_, other->_cached_size_);
  1413. }
  1414. ::google::protobuf::Metadata Parkspace_allocation_status_msg::GetMetadata() const {
  1415. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1416. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1417. }
  1418. // ===================================================================
  1419. void Parkspace_info::InitAsDefaultInstance() {
  1420. }
  1421. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1422. const int Parkspace_info::kParkspaceIdFieldNumber;
  1423. const int Parkspace_info::kXCoordinateFieldNumber;
  1424. const int Parkspace_info::kYCoordinateFieldNumber;
  1425. const int Parkspace_info::kZCoordinateFieldNumber;
  1426. const int Parkspace_info::kLengthFieldNumber;
  1427. const int Parkspace_info::kWidthFieldNumber;
  1428. const int Parkspace_info::kHeightFieldNumber;
  1429. const int Parkspace_info::kParkspaceStatusFieldNumber;
  1430. const int Parkspace_info::kLicenseFieldNumber;
  1431. const int Parkspace_info::kEntryTimeFieldNumber;
  1432. const int Parkspace_info::kLeaveTimeFieldNumber;
  1433. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1434. Parkspace_info::Parkspace_info()
  1435. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1436. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1437. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info();
  1438. }
  1439. SharedCtor();
  1440. // @@protoc_insertion_point(constructor:message.Parkspace_info)
  1441. }
  1442. Parkspace_info::Parkspace_info(const Parkspace_info& from)
  1443. : ::google::protobuf::Message(),
  1444. _internal_metadata_(NULL),
  1445. _has_bits_(from._has_bits_),
  1446. _cached_size_(0) {
  1447. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1448. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1449. if (from.has_entry_time()) {
  1450. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  1451. }
  1452. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1453. if (from.has_leave_time()) {
  1454. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  1455. }
  1456. ::memcpy(&parkspace_id_, &from.parkspace_id_,
  1457. static_cast<size_t>(reinterpret_cast<char*>(&license_) -
  1458. reinterpret_cast<char*>(&parkspace_id_)) + sizeof(license_));
  1459. // @@protoc_insertion_point(copy_constructor:message.Parkspace_info)
  1460. }
  1461. void Parkspace_info::SharedCtor() {
  1462. _cached_size_ = 0;
  1463. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1464. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1465. ::memset(&parkspace_id_, 0, static_cast<size_t>(
  1466. reinterpret_cast<char*>(&license_) -
  1467. reinterpret_cast<char*>(&parkspace_id_)) + sizeof(license_));
  1468. }
  1469. Parkspace_info::~Parkspace_info() {
  1470. // @@protoc_insertion_point(destructor:message.Parkspace_info)
  1471. SharedDtor();
  1472. }
  1473. void Parkspace_info::SharedDtor() {
  1474. entry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1475. leave_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1476. }
  1477. void Parkspace_info::SetCachedSize(int size) const {
  1478. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1479. _cached_size_ = size;
  1480. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1481. }
  1482. const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
  1483. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1484. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1485. }
  1486. const Parkspace_info& Parkspace_info::default_instance() {
  1487. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info();
  1488. return *internal_default_instance();
  1489. }
  1490. Parkspace_info* Parkspace_info::New(::google::protobuf::Arena* arena) const {
  1491. Parkspace_info* n = new Parkspace_info;
  1492. if (arena != NULL) {
  1493. arena->Own(n);
  1494. }
  1495. return n;
  1496. }
  1497. void Parkspace_info::Clear() {
  1498. // @@protoc_insertion_point(message_clear_start:message.Parkspace_info)
  1499. ::google::protobuf::uint32 cached_has_bits = 0;
  1500. // Prevent compiler warnings about cached_has_bits being unused
  1501. (void) cached_has_bits;
  1502. cached_has_bits = _has_bits_[0];
  1503. if (cached_has_bits & 3u) {
  1504. if (cached_has_bits & 0x00000001u) {
  1505. GOOGLE_DCHECK(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1506. (*entry_time_.UnsafeRawStringPointer())->clear();
  1507. }
  1508. if (cached_has_bits & 0x00000002u) {
  1509. GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1510. (*leave_time_.UnsafeRawStringPointer())->clear();
  1511. }
  1512. }
  1513. if (cached_has_bits & 252u) {
  1514. ::memset(&parkspace_id_, 0, static_cast<size_t>(
  1515. reinterpret_cast<char*>(&width_) -
  1516. reinterpret_cast<char*>(&parkspace_id_)) + sizeof(width_));
  1517. }
  1518. if (cached_has_bits & 1792u) {
  1519. ::memset(&height_, 0, static_cast<size_t>(
  1520. reinterpret_cast<char*>(&license_) -
  1521. reinterpret_cast<char*>(&height_)) + sizeof(license_));
  1522. }
  1523. _has_bits_.Clear();
  1524. _internal_metadata_.Clear();
  1525. }
  1526. bool Parkspace_info::MergePartialFromCodedStream(
  1527. ::google::protobuf::io::CodedInputStream* input) {
  1528. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1529. ::google::protobuf::uint32 tag;
  1530. // @@protoc_insertion_point(parse_start:message.Parkspace_info)
  1531. for (;;) {
  1532. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1533. tag = p.first;
  1534. if (!p.second) goto handle_unusual;
  1535. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1536. // required int32 parkspace_id = 1;
  1537. case 1: {
  1538. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1539. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1540. set_has_parkspace_id();
  1541. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1542. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1543. input, &parkspace_id_)));
  1544. } else {
  1545. goto handle_unusual;
  1546. }
  1547. break;
  1548. }
  1549. // required int32 x_coordinate = 2;
  1550. case 2: {
  1551. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1552. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1553. set_has_x_coordinate();
  1554. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1555. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1556. input, &x_coordinate_)));
  1557. } else {
  1558. goto handle_unusual;
  1559. }
  1560. break;
  1561. }
  1562. // required int32 y_coordinate = 3;
  1563. case 3: {
  1564. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1565. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1566. set_has_y_coordinate();
  1567. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1568. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1569. input, &y_coordinate_)));
  1570. } else {
  1571. goto handle_unusual;
  1572. }
  1573. break;
  1574. }
  1575. // required int32 z_coordinate = 4;
  1576. case 4: {
  1577. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1578. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1579. set_has_z_coordinate();
  1580. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1581. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1582. input, &z_coordinate_)));
  1583. } else {
  1584. goto handle_unusual;
  1585. }
  1586. break;
  1587. }
  1588. // required int32 length = 5;
  1589. case 5: {
  1590. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1591. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1592. set_has_length();
  1593. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1594. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1595. input, &length_)));
  1596. } else {
  1597. goto handle_unusual;
  1598. }
  1599. break;
  1600. }
  1601. // required int32 width = 6;
  1602. case 6: {
  1603. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1604. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  1605. set_has_width();
  1606. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1607. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1608. input, &width_)));
  1609. } else {
  1610. goto handle_unusual;
  1611. }
  1612. break;
  1613. }
  1614. // required int32 height = 7;
  1615. case 7: {
  1616. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1617. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1618. set_has_height();
  1619. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1620. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1621. input, &height_)));
  1622. } else {
  1623. goto handle_unusual;
  1624. }
  1625. break;
  1626. }
  1627. // required .message.Parkspace_status parkspace_status = 8;
  1628. case 8: {
  1629. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1630. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1631. int value;
  1632. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1633. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1634. input, &value)));
  1635. if (::message::Parkspace_status_IsValid(value)) {
  1636. set_parkspace_status(static_cast< ::message::Parkspace_status >(value));
  1637. } else {
  1638. mutable_unknown_fields()->AddVarint(
  1639. 8, static_cast< ::google::protobuf::uint64>(value));
  1640. }
  1641. } else {
  1642. goto handle_unusual;
  1643. }
  1644. break;
  1645. }
  1646. // optional int32 license = 9;
  1647. case 9: {
  1648. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1649. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1650. set_has_license();
  1651. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1652. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1653. input, &license_)));
  1654. } else {
  1655. goto handle_unusual;
  1656. }
  1657. break;
  1658. }
  1659. // optional string entry_time = 10;
  1660. case 10: {
  1661. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1662. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  1663. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1664. input, this->mutable_entry_time()));
  1665. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1666. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  1667. ::google::protobuf::internal::WireFormat::PARSE,
  1668. "message.Parkspace_info.entry_time");
  1669. } else {
  1670. goto handle_unusual;
  1671. }
  1672. break;
  1673. }
  1674. // optional string leave_time = 11;
  1675. case 11: {
  1676. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1677. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  1678. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1679. input, this->mutable_leave_time()));
  1680. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1681. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  1682. ::google::protobuf::internal::WireFormat::PARSE,
  1683. "message.Parkspace_info.leave_time");
  1684. } else {
  1685. goto handle_unusual;
  1686. }
  1687. break;
  1688. }
  1689. default: {
  1690. handle_unusual:
  1691. if (tag == 0) {
  1692. goto success;
  1693. }
  1694. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1695. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1696. break;
  1697. }
  1698. }
  1699. }
  1700. success:
  1701. // @@protoc_insertion_point(parse_success:message.Parkspace_info)
  1702. return true;
  1703. failure:
  1704. // @@protoc_insertion_point(parse_failure:message.Parkspace_info)
  1705. return false;
  1706. #undef DO_
  1707. }
  1708. void Parkspace_info::SerializeWithCachedSizes(
  1709. ::google::protobuf::io::CodedOutputStream* output) const {
  1710. // @@protoc_insertion_point(serialize_start:message.Parkspace_info)
  1711. ::google::protobuf::uint32 cached_has_bits = 0;
  1712. (void) cached_has_bits;
  1713. cached_has_bits = _has_bits_[0];
  1714. // required int32 parkspace_id = 1;
  1715. if (cached_has_bits & 0x00000004u) {
  1716. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parkspace_id(), output);
  1717. }
  1718. // required int32 x_coordinate = 2;
  1719. if (cached_has_bits & 0x00000008u) {
  1720. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->x_coordinate(), output);
  1721. }
  1722. // required int32 y_coordinate = 3;
  1723. if (cached_has_bits & 0x00000010u) {
  1724. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->y_coordinate(), output);
  1725. }
  1726. // required int32 z_coordinate = 4;
  1727. if (cached_has_bits & 0x00000020u) {
  1728. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->z_coordinate(), output);
  1729. }
  1730. // required int32 length = 5;
  1731. if (cached_has_bits & 0x00000040u) {
  1732. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->length(), output);
  1733. }
  1734. // required int32 width = 6;
  1735. if (cached_has_bits & 0x00000080u) {
  1736. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->width(), output);
  1737. }
  1738. // required int32 height = 7;
  1739. if (cached_has_bits & 0x00000100u) {
  1740. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->height(), output);
  1741. }
  1742. // required .message.Parkspace_status parkspace_status = 8;
  1743. if (cached_has_bits & 0x00000200u) {
  1744. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1745. 8, this->parkspace_status(), output);
  1746. }
  1747. // optional int32 license = 9;
  1748. if (cached_has_bits & 0x00000400u) {
  1749. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->license(), output);
  1750. }
  1751. // optional string entry_time = 10;
  1752. if (cached_has_bits & 0x00000001u) {
  1753. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1754. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  1755. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1756. "message.Parkspace_info.entry_time");
  1757. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1758. 10, this->entry_time(), output);
  1759. }
  1760. // optional string leave_time = 11;
  1761. if (cached_has_bits & 0x00000002u) {
  1762. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1763. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  1764. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1765. "message.Parkspace_info.leave_time");
  1766. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1767. 11, this->leave_time(), output);
  1768. }
  1769. if (_internal_metadata_.have_unknown_fields()) {
  1770. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1771. _internal_metadata_.unknown_fields(), output);
  1772. }
  1773. // @@protoc_insertion_point(serialize_end:message.Parkspace_info)
  1774. }
  1775. ::google::protobuf::uint8* Parkspace_info::InternalSerializeWithCachedSizesToArray(
  1776. bool deterministic, ::google::protobuf::uint8* target) const {
  1777. (void)deterministic; // Unused
  1778. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_info)
  1779. ::google::protobuf::uint32 cached_has_bits = 0;
  1780. (void) cached_has_bits;
  1781. cached_has_bits = _has_bits_[0];
  1782. // required int32 parkspace_id = 1;
  1783. if (cached_has_bits & 0x00000004u) {
  1784. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parkspace_id(), target);
  1785. }
  1786. // required int32 x_coordinate = 2;
  1787. if (cached_has_bits & 0x00000008u) {
  1788. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->x_coordinate(), target);
  1789. }
  1790. // required int32 y_coordinate = 3;
  1791. if (cached_has_bits & 0x00000010u) {
  1792. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->y_coordinate(), target);
  1793. }
  1794. // required int32 z_coordinate = 4;
  1795. if (cached_has_bits & 0x00000020u) {
  1796. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->z_coordinate(), target);
  1797. }
  1798. // required int32 length = 5;
  1799. if (cached_has_bits & 0x00000040u) {
  1800. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->length(), target);
  1801. }
  1802. // required int32 width = 6;
  1803. if (cached_has_bits & 0x00000080u) {
  1804. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->width(), target);
  1805. }
  1806. // required int32 height = 7;
  1807. if (cached_has_bits & 0x00000100u) {
  1808. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->height(), target);
  1809. }
  1810. // required .message.Parkspace_status parkspace_status = 8;
  1811. if (cached_has_bits & 0x00000200u) {
  1812. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1813. 8, this->parkspace_status(), target);
  1814. }
  1815. // optional int32 license = 9;
  1816. if (cached_has_bits & 0x00000400u) {
  1817. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->license(), target);
  1818. }
  1819. // optional string entry_time = 10;
  1820. if (cached_has_bits & 0x00000001u) {
  1821. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1822. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  1823. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1824. "message.Parkspace_info.entry_time");
  1825. target =
  1826. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1827. 10, this->entry_time(), target);
  1828. }
  1829. // optional string leave_time = 11;
  1830. if (cached_has_bits & 0x00000002u) {
  1831. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1832. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  1833. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1834. "message.Parkspace_info.leave_time");
  1835. target =
  1836. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1837. 11, this->leave_time(), target);
  1838. }
  1839. if (_internal_metadata_.have_unknown_fields()) {
  1840. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1841. _internal_metadata_.unknown_fields(), target);
  1842. }
  1843. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_info)
  1844. return target;
  1845. }
  1846. size_t Parkspace_info::RequiredFieldsByteSizeFallback() const {
  1847. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_info)
  1848. size_t total_size = 0;
  1849. if (has_parkspace_id()) {
  1850. // required int32 parkspace_id = 1;
  1851. total_size += 1 +
  1852. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1853. this->parkspace_id());
  1854. }
  1855. if (has_x_coordinate()) {
  1856. // required int32 x_coordinate = 2;
  1857. total_size += 1 +
  1858. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1859. this->x_coordinate());
  1860. }
  1861. if (has_y_coordinate()) {
  1862. // required int32 y_coordinate = 3;
  1863. total_size += 1 +
  1864. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1865. this->y_coordinate());
  1866. }
  1867. if (has_z_coordinate()) {
  1868. // required int32 z_coordinate = 4;
  1869. total_size += 1 +
  1870. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1871. this->z_coordinate());
  1872. }
  1873. if (has_length()) {
  1874. // required int32 length = 5;
  1875. total_size += 1 +
  1876. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1877. this->length());
  1878. }
  1879. if (has_width()) {
  1880. // required int32 width = 6;
  1881. total_size += 1 +
  1882. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1883. this->width());
  1884. }
  1885. if (has_height()) {
  1886. // required int32 height = 7;
  1887. total_size += 1 +
  1888. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1889. this->height());
  1890. }
  1891. if (has_parkspace_status()) {
  1892. // required .message.Parkspace_status parkspace_status = 8;
  1893. total_size += 1 +
  1894. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status());
  1895. }
  1896. return total_size;
  1897. }
  1898. size_t Parkspace_info::ByteSizeLong() const {
  1899. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_info)
  1900. size_t total_size = 0;
  1901. if (_internal_metadata_.have_unknown_fields()) {
  1902. total_size +=
  1903. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1904. _internal_metadata_.unknown_fields());
  1905. }
  1906. if (((_has_bits_[0] & 0x000003fc) ^ 0x000003fc) == 0) { // All required fields are present.
  1907. // required int32 parkspace_id = 1;
  1908. total_size += 1 +
  1909. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1910. this->parkspace_id());
  1911. // required int32 x_coordinate = 2;
  1912. total_size += 1 +
  1913. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1914. this->x_coordinate());
  1915. // required int32 y_coordinate = 3;
  1916. total_size += 1 +
  1917. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1918. this->y_coordinate());
  1919. // required int32 z_coordinate = 4;
  1920. total_size += 1 +
  1921. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1922. this->z_coordinate());
  1923. // required int32 length = 5;
  1924. total_size += 1 +
  1925. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1926. this->length());
  1927. // required int32 width = 6;
  1928. total_size += 1 +
  1929. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1930. this->width());
  1931. // required int32 height = 7;
  1932. total_size += 1 +
  1933. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1934. this->height());
  1935. // required .message.Parkspace_status parkspace_status = 8;
  1936. total_size += 1 +
  1937. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status());
  1938. } else {
  1939. total_size += RequiredFieldsByteSizeFallback();
  1940. }
  1941. if (_has_bits_[0 / 32] & 3u) {
  1942. // optional string entry_time = 10;
  1943. if (has_entry_time()) {
  1944. total_size += 1 +
  1945. ::google::protobuf::internal::WireFormatLite::StringSize(
  1946. this->entry_time());
  1947. }
  1948. // optional string leave_time = 11;
  1949. if (has_leave_time()) {
  1950. total_size += 1 +
  1951. ::google::protobuf::internal::WireFormatLite::StringSize(
  1952. this->leave_time());
  1953. }
  1954. }
  1955. // optional int32 license = 9;
  1956. if (has_license()) {
  1957. total_size += 1 +
  1958. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1959. this->license());
  1960. }
  1961. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1962. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1963. _cached_size_ = cached_size;
  1964. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1965. return total_size;
  1966. }
  1967. void Parkspace_info::MergeFrom(const ::google::protobuf::Message& from) {
  1968. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_info)
  1969. GOOGLE_DCHECK_NE(&from, this);
  1970. const Parkspace_info* source =
  1971. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_info>(
  1972. &from);
  1973. if (source == NULL) {
  1974. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_info)
  1975. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1976. } else {
  1977. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_info)
  1978. MergeFrom(*source);
  1979. }
  1980. }
  1981. void Parkspace_info::MergeFrom(const Parkspace_info& from) {
  1982. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_info)
  1983. GOOGLE_DCHECK_NE(&from, this);
  1984. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1985. ::google::protobuf::uint32 cached_has_bits = 0;
  1986. (void) cached_has_bits;
  1987. cached_has_bits = from._has_bits_[0];
  1988. if (cached_has_bits & 255u) {
  1989. if (cached_has_bits & 0x00000001u) {
  1990. set_has_entry_time();
  1991. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  1992. }
  1993. if (cached_has_bits & 0x00000002u) {
  1994. set_has_leave_time();
  1995. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  1996. }
  1997. if (cached_has_bits & 0x00000004u) {
  1998. parkspace_id_ = from.parkspace_id_;
  1999. }
  2000. if (cached_has_bits & 0x00000008u) {
  2001. x_coordinate_ = from.x_coordinate_;
  2002. }
  2003. if (cached_has_bits & 0x00000010u) {
  2004. y_coordinate_ = from.y_coordinate_;
  2005. }
  2006. if (cached_has_bits & 0x00000020u) {
  2007. z_coordinate_ = from.z_coordinate_;
  2008. }
  2009. if (cached_has_bits & 0x00000040u) {
  2010. length_ = from.length_;
  2011. }
  2012. if (cached_has_bits & 0x00000080u) {
  2013. width_ = from.width_;
  2014. }
  2015. _has_bits_[0] |= cached_has_bits;
  2016. }
  2017. if (cached_has_bits & 1792u) {
  2018. if (cached_has_bits & 0x00000100u) {
  2019. height_ = from.height_;
  2020. }
  2021. if (cached_has_bits & 0x00000200u) {
  2022. parkspace_status_ = from.parkspace_status_;
  2023. }
  2024. if (cached_has_bits & 0x00000400u) {
  2025. license_ = from.license_;
  2026. }
  2027. _has_bits_[0] |= cached_has_bits;
  2028. }
  2029. }
  2030. void Parkspace_info::CopyFrom(const ::google::protobuf::Message& from) {
  2031. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_info)
  2032. if (&from == this) return;
  2033. Clear();
  2034. MergeFrom(from);
  2035. }
  2036. void Parkspace_info::CopyFrom(const Parkspace_info& from) {
  2037. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_info)
  2038. if (&from == this) return;
  2039. Clear();
  2040. MergeFrom(from);
  2041. }
  2042. bool Parkspace_info::IsInitialized() const {
  2043. if ((_has_bits_[0] & 0x000003fc) != 0x000003fc) return false;
  2044. return true;
  2045. }
  2046. void Parkspace_info::Swap(Parkspace_info* other) {
  2047. if (other == this) return;
  2048. InternalSwap(other);
  2049. }
  2050. void Parkspace_info::InternalSwap(Parkspace_info* other) {
  2051. using std::swap;
  2052. entry_time_.Swap(&other->entry_time_);
  2053. leave_time_.Swap(&other->leave_time_);
  2054. swap(parkspace_id_, other->parkspace_id_);
  2055. swap(x_coordinate_, other->x_coordinate_);
  2056. swap(y_coordinate_, other->y_coordinate_);
  2057. swap(z_coordinate_, other->z_coordinate_);
  2058. swap(length_, other->length_);
  2059. swap(width_, other->width_);
  2060. swap(height_, other->height_);
  2061. swap(parkspace_status_, other->parkspace_status_);
  2062. swap(license_, other->license_);
  2063. swap(_has_bits_[0], other->_has_bits_[0]);
  2064. _internal_metadata_.Swap(&other->_internal_metadata_);
  2065. swap(_cached_size_, other->_cached_size_);
  2066. }
  2067. ::google::protobuf::Metadata Parkspace_info::GetMetadata() const {
  2068. protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2069. return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2070. }
  2071. // @@protoc_insertion_point(namespace_scope)
  2072. } // namespace message
  2073. // @@protoc_insertion_point(global_scope)