message_base.pb.cc 110 KB

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