message_base.pb.cc 112 KB

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