message_base.pb.cc 110 KB

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