message_base.pb.cc 135 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698
  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/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_message_5fbase_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Car_info;
  21. } // namespace protobuf_message_5fbase_2eproto
  22. namespace message {
  23. class Base_infoDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<Base_info>
  26. _instance;
  27. } _Base_info_default_instance_;
  28. class Base_msgDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<Base_msg>
  31. _instance;
  32. } _Base_msg_default_instance_;
  33. class Error_managerDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<Error_manager>
  36. _instance;
  37. } _Error_manager_default_instance_;
  38. class Locate_informationDefaultTypeInternal {
  39. public:
  40. ::google::protobuf::internal::ExplicitlyConstructed<Locate_information>
  41. _instance;
  42. } _Locate_information_default_instance_;
  43. class Car_infoDefaultTypeInternal {
  44. public:
  45. ::google::protobuf::internal::ExplicitlyConstructed<Car_info>
  46. _instance;
  47. } _Car_info_default_instance_;
  48. class Parkspace_infoDefaultTypeInternal {
  49. public:
  50. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_info>
  51. _instance;
  52. } _Parkspace_info_default_instance_;
  53. } // namespace message
  54. namespace protobuf_message_5fbase_2eproto {
  55. static void InitDefaultsBase_info() {
  56. GOOGLE_PROTOBUF_VERIFY_VERSION;
  57. {
  58. void* ptr = &::message::_Base_info_default_instance_;
  59. new (ptr) ::message::Base_info();
  60. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  61. }
  62. ::message::Base_info::InitAsDefaultInstance();
  63. }
  64. ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info =
  65. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBase_info}, {}};
  66. static void InitDefaultsBase_msg() {
  67. GOOGLE_PROTOBUF_VERIFY_VERSION;
  68. {
  69. void* ptr = &::message::_Base_msg_default_instance_;
  70. new (ptr) ::message::Base_msg();
  71. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  72. }
  73. ::message::Base_msg::InitAsDefaultInstance();
  74. }
  75. ::google::protobuf::internal::SCCInfo<1> scc_info_Base_msg =
  76. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBase_msg}, {
  77. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,}};
  78. static void InitDefaultsError_manager() {
  79. GOOGLE_PROTOBUF_VERIFY_VERSION;
  80. {
  81. void* ptr = &::message::_Error_manager_default_instance_;
  82. new (ptr) ::message::Error_manager();
  83. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  84. }
  85. ::message::Error_manager::InitAsDefaultInstance();
  86. }
  87. ::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager =
  88. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsError_manager}, {}};
  89. static void InitDefaultsLocate_information() {
  90. GOOGLE_PROTOBUF_VERIFY_VERSION;
  91. {
  92. void* ptr = &::message::_Locate_information_default_instance_;
  93. new (ptr) ::message::Locate_information();
  94. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  95. }
  96. ::message::Locate_information::InitAsDefaultInstance();
  97. }
  98. ::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information =
  99. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLocate_information}, {}};
  100. static void InitDefaultsCar_info() {
  101. GOOGLE_PROTOBUF_VERIFY_VERSION;
  102. {
  103. void* ptr = &::message::_Car_info_default_instance_;
  104. new (ptr) ::message::Car_info();
  105. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  106. }
  107. ::message::Car_info::InitAsDefaultInstance();
  108. }
  109. ::google::protobuf::internal::SCCInfo<0> scc_info_Car_info =
  110. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCar_info}, {}};
  111. static void InitDefaultsParkspace_info() {
  112. GOOGLE_PROTOBUF_VERIFY_VERSION;
  113. {
  114. void* ptr = &::message::_Parkspace_info_default_instance_;
  115. new (ptr) ::message::Parkspace_info();
  116. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  117. }
  118. ::message::Parkspace_info::InitAsDefaultInstance();
  119. }
  120. ::google::protobuf::internal::SCCInfo<1> scc_info_Parkspace_info =
  121. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParkspace_info}, {
  122. &protobuf_message_5fbase_2eproto::scc_info_Car_info.base,}};
  123. void InitDefaults() {
  124. ::google::protobuf::internal::InitSCC(&scc_info_Base_info.base);
  125. ::google::protobuf::internal::InitSCC(&scc_info_Base_msg.base);
  126. ::google::protobuf::internal::InitSCC(&scc_info_Error_manager.base);
  127. ::google::protobuf::internal::InitSCC(&scc_info_Locate_information.base);
  128. ::google::protobuf::internal::InitSCC(&scc_info_Car_info.base);
  129. ::google::protobuf::internal::InitSCC(&scc_info_Parkspace_info.base);
  130. }
  131. ::google::protobuf::Metadata file_level_metadata[6];
  132. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[12];
  133. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, _has_bits_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, _internal_metadata_),
  136. ~0u, // no _extensions_
  137. ~0u, // no _oneof_case_
  138. ~0u, // no _weak_field_map_
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, msg_type_),
  140. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, timeout_ms_),
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, sender_),
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, receiver_),
  143. 0,
  144. 1,
  145. 2,
  146. 3,
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, _has_bits_),
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, _internal_metadata_),
  149. ~0u, // no _extensions_
  150. ~0u, // no _oneof_case_
  151. ~0u, // no _weak_field_map_
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, base_info_),
  153. 0,
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, _has_bits_),
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, _internal_metadata_),
  156. ~0u, // no _extensions_
  157. ~0u, // no _oneof_case_
  158. ~0u, // no _weak_field_map_
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, error_code_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, error_level_),
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Error_manager, error_description_),
  162. 1,
  163. 2,
  164. 0,
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, _has_bits_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, _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::Locate_information, locate_x_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_y_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_angle_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_length_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_width_),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_height_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_wheel_base_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_wheel_width_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_correct_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_front_theta_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, uniformed_car_x_),
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, uniformed_car_y_),
  182. 0,
  183. 1,
  184. 2,
  185. 3,
  186. 4,
  187. 5,
  188. 6,
  189. 7,
  190. 8,
  191. 9,
  192. 10,
  193. 11,
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _has_bits_),
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _internal_metadata_),
  196. ~0u, // no _extensions_
  197. ~0u, // no _oneof_case_
  198. ~0u, // no _weak_field_map_
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_length_),
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_width_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_height_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, license_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_wheel_base_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_wheel_width_),
  205. 1,
  206. 2,
  207. 3,
  208. 0,
  209. 4,
  210. 5,
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _has_bits_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _internal_metadata_),
  213. ~0u, // no _extensions_
  214. ~0u, // no _oneof_case_
  215. ~0u, // no _weak_field_map_
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_index_id_),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_type_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_unit_id_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_label_id_),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_room_id_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_direction_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_floor_id_),
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_width_),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_height_),
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_status_),
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, car_info_),
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, entry_time_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, leave_time_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_path_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, path_estimate_time_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_target_),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, car_type_),
  233. 3,
  234. 4,
  235. 5,
  236. 6,
  237. 7,
  238. 8,
  239. 9,
  240. 10,
  241. 11,
  242. 12,
  243. 2,
  244. 0,
  245. 1,
  246. 13,
  247. 14,
  248. 15,
  249. 16,
  250. };
  251. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  252. { 0, 9, sizeof(::message::Base_info)},
  253. { 13, 19, sizeof(::message::Base_msg)},
  254. { 20, 28, sizeof(::message::Error_manager)},
  255. { 31, 48, sizeof(::message::Locate_information)},
  256. { 60, 71, sizeof(::message::Car_info)},
  257. { 77, 99, sizeof(::message::Parkspace_info)},
  258. };
  259. static ::google::protobuf::Message const * const file_default_instances[] = {
  260. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Base_info_default_instance_),
  261. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Base_msg_default_instance_),
  262. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Error_manager_default_instance_),
  263. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Locate_information_default_instance_),
  264. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Car_info_default_instance_),
  265. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_info_default_instance_),
  266. };
  267. void protobuf_AssignDescriptors() {
  268. AddDescriptors();
  269. AssignDescriptors(
  270. "message_base.proto", schemas, file_default_instances, TableStruct::offsets,
  271. file_level_metadata, file_level_enum_descriptors, NULL);
  272. }
  273. void protobuf_AssignDescriptorsOnce() {
  274. static ::google::protobuf::internal::once_flag once;
  275. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  276. }
  277. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  278. void protobuf_RegisterTypes(const ::std::string&) {
  279. protobuf_AssignDescriptorsOnce();
  280. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
  281. }
  282. void AddDescriptorsImpl() {
  283. InitDefaults();
  284. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  285. "\n\022message_base.proto\022\007message\"\266\001\n\tBase_i"
  286. "nfo\0222\n\010msg_type\030\001 \002(\0162\025.message.Message_"
  287. "type:\teBase_msg\022\025\n\ntimeout_ms\030\002 \001(\005:\0010\022-"
  288. "\n\006sender\030\003 \002(\0162\025.message.Communicator:\006e"
  289. "Empty\022/\n\010receiver\030\004 \002(\0162\025.message.Commun"
  290. "icator:\006eEmpty\"1\n\010Base_msg\022%\n\tbase_info\030"
  291. "\001 \002(\0132\022.message.Base_info\"v\n\rError_manag"
  292. "er\022\025\n\nerror_code\030\001 \002(\005:\0010\0221\n\013error_level"
  293. "\030\002 \001(\0162\024.message.Error_level:\006NORMAL\022\033\n\021"
  294. "error_description\030\003 \001(\t:\000\"\321\002\n\022Locate_inf"
  295. "ormation\022\023\n\010locate_x\030\001 \001(\002:\0010\022\023\n\010locate_"
  296. "y\030\002 \001(\002:\0010\022\027\n\014locate_angle\030\003 \001(\002:\0010\022\030\n\rl"
  297. "ocate_length\030\004 \001(\002:\0010\022\027\n\014locate_width\030\005 "
  298. "\001(\002:\0010\022\030\n\rlocate_height\030\006 \001(\002:\0010\022\034\n\021loca"
  299. "te_wheel_base\030\007 \001(\002:\0010\022\035\n\022locate_wheel_w"
  300. "idth\030\010 \001(\002:\0010\022\035\n\016locate_correct\030\t \001(\010:\005f"
  301. "alse\022\035\n\022locate_front_theta\030\n \001(\002:\0010\022\027\n\017u"
  302. "niformed_car_x\030\013 \001(\002\022\027\n\017uniformed_car_y\030"
  303. "\014 \001(\002\"\230\001\n\010Car_info\022\025\n\ncar_length\030\001 \001(\002:\001"
  304. "0\022\024\n\tcar_width\030\002 \001(\002:\0010\022\025\n\ncar_height\030\003 "
  305. "\001(\002:\0010\022\021\n\007license\030\004 \001(\t:\000\022\031\n\016car_wheel_b"
  306. "ase\030\005 \001(\002:\0010\022\032\n\017car_wheel_width\030\006 \001(\002:\0010"
  307. "\"\375\004\n\016Parkspace_info\022\035\n\025parkingspace_inde"
  308. "x_id\030\001 \001(\005\0222\n\021parkingspace_type\030\002 \001(\0162\027."
  309. "message.Parkspace_type\022\034\n\024parkingspace_u"
  310. "nit_id\030\003 \001(\005\022\035\n\025parkingspace_label_id\030\004 "
  311. "\001(\005\022\034\n\024parkingspace_room_id\030\005 \001(\005\0222\n\026par"
  312. "kingspace_direction\030\006 \001(\0162\022.message.Dire"
  313. "ction\022\035\n\025parkingspace_floor_id\030\007 \001(\005\022\032\n\022"
  314. "parkingspace_width\030\010 \001(\002\022\033\n\023parkingspace"
  315. "_height\030\t \001(\002\0226\n\023parkingspace_status\030\n \001"
  316. "(\0162\031.message.Parkspace_status\022#\n\010car_inf"
  317. "o\030\013 \001(\0132\021.message.Car_info\022\022\n\nentry_time"
  318. "\030\014 \001(\t\022\022\n\nleave_time\030\r \001(\t\022/\n\016parkspace_"
  319. "path\030\016 \001(\0162\027.message.Parkspace_path\022\032\n\022p"
  320. "ath_estimate_time\030\017 \001(\002\022:\n\027parkspace_sta"
  321. "tus_target\030\020 \001(\0162\031.message.Parkspace_sta"
  322. "tus\022#\n\010car_type\030\021 \001(\0162\021.message.Car_type"
  323. "*\345\n\n\014Message_type\022\r\n\teBase_msg\020\000\022\020\n\014eCom"
  324. "mand_msg\020\001\022\026\n\022eLocate_status_msg\020\021\022\027\n\023eL"
  325. "ocate_request_msg\020\022\022\030\n\024eLocate_response_"
  326. "msg\020\023\022\034\n\030eLocate_sift_request_msg\020\024\022\035\n\031e"
  327. "Locate_sift_response_msg\020\025\022\030\n\024eDispatch_"
  328. "status_msg\020!\022\031\n\025eDispatch_request_msg\020\"\022"
  329. "\032\n\026eDispatch_response_msg\020#\022$\n eParkspac"
  330. "e_allocation_status_msg\0201\022%\n!eParkspace_"
  331. "allocation_request_msg\0202\022&\n\"eParkspace_a"
  332. "llocation_response_msg\0203\022!\n\035eParkspace_s"
  333. "earch_request_msg\0204\022\"\n\036eParkspace_search"
  334. "_response_msg\0205\022\"\n\036eParkspace_release_re"
  335. "quest_msg\0206\022#\n\037eParkspace_release_respon"
  336. "se_msg\0207\022\'\n#eParkspace_force_update_requ"
  337. "est_msg\0208\022(\n$eParkspace_force_update_res"
  338. "ponse_msg\0209\022(\n$eParkspace_confirm_alloc_"
  339. "request_msg\020:\022)\n%eParkspace_confirm_allo"
  340. "c_response_msg\020;\022\"\n\036eParkspace_allocatio"
  341. "n_data_msg\020<\022+\n\'eParkspace_allocation_da"
  342. "ta_response_msg\020=\022\036\n\032eStore_command_requ"
  343. "est_msg\020A\022\037\n\033eStore_command_response_msg"
  344. "\020B\022\037\n\033ePickup_command_request_msg\020C\022 \n\034e"
  345. "Pickup_command_response_msg\020D\022\037\n\032eStorin"
  346. "g_process_statu_msg\020\220\001\022\037\n\032ePicking_proce"
  347. "ss_statu_msg\020\221\001\022\"\n\035eCentral_controller_s"
  348. "tatu_msg\020\240\001\022#\n\036eEntrance_manual_operatio"
  349. "n_msg\020\260\001\022\"\n\035eProcess_manual_operation_ms"
  350. "g\020\261\001\022\037\n\032eDispatch_plan_request_msg\020\340\001\022 \n"
  351. "\033eDispatch_plan_response_msg\020\341\001\022\"\n\035eDisp"
  352. "atch_control_request_msg\020\342\001\022#\n\036eDispatch"
  353. "_control_response_msg\020\343\001\022!\n\034eDispatch_ma"
  354. "nager_status_msg\020\352\001\022\037\n\032eDispatch_manager"
  355. "_data_msg\020\353\001\022\037\n\032eGround_detect_request_m"
  356. "sg\020\360\001\022 \n\033eGround_detect_response_msg\020\361\001\022"
  357. "\027\n\022eGround_status_msg\020\362\001*\271\001\n\014Communicato"
  358. "r\022\n\n\006eEmpty\020\000\022\t\n\005eMain\020\001\022\016\n\teTerminor\020\200\002"
  359. "\022\017\n\neParkspace\020\200\004\022\016\n\teMeasurer\020\200\006\022\032\n\025eMe"
  360. "asurer_sift_server\020\201\006\022\026\n\021eDispatch_manag"
  361. "er\020\200\010\022\026\n\021eDispatch_control\020\201\010\022\025\n\020eGround"
  362. "_measurer\020\200\036**\n\014Process_type\022\014\n\010eStoring"
  363. "\020\001\022\014\n\010ePicking\020\002*e\n\013Error_level\022\n\n\006NORMA"
  364. "L\020\000\022\024\n\020NEGLIGIBLE_ERROR\020\001\022\017\n\013MINOR_ERROR"
  365. "\020\002\022\017\n\013MAJOR_ERROR\020\003\022\022\n\016CRITICAL_ERROR\020\004*"
  366. "\245\001\n\020Parkspace_status\022\034\n\030eParkspace_statu"
  367. "s_unknow\020\000\022\024\n\020eParkspace_empty\020\001\022\027\n\023ePar"
  368. "kspace_occupied\020\002\022\027\n\023eParkspace_reserved"
  369. "\020\003\022\025\n\021eParkspace_locked\020\004\022\024\n\020eParkspace_"
  370. "error\020\005*\?\n\tDirection\022\025\n\021eDirection_unkno"
  371. "w\020\000\022\014\n\010eForward\020\001\022\r\n\teBackward\020\002*l\n\016Park"
  372. "space_path\022\017\n\013UNKNOW_PATH\020\000\022\020\n\014OPTIMAL_P"
  373. "ATH\020\001\022\r\n\tLEFT_PATH\020\002\022\016\n\nRIGHT_PATH\020\003\022\030\n\024"
  374. "TEMPORARY_CACHE_PATH\020\004*m\n\016Parkspace_type"
  375. "\022\031\n\025UNKNOW_PARKSPACE_TYPE\020\000\022\024\n\020MIN_PARKI"
  376. "NGSPACE\020\001\022\024\n\020MID_PARKINGSPACE\020\002\022\024\n\020BIG_P"
  377. "ARKINGSPACE\020\003*F\n\010Car_type\022\023\n\017UNKNOW_CAR_"
  378. "TYPE\020\000\022\013\n\007MIN_CAR\020\001\022\013\n\007MID_CAR\020\002\022\013\n\007BIG_"
  379. "CAR\020\003*\335\002\n\tStep_type\022\017\n\013eAlloc_step\020\000\022\021\n\r"
  380. "eMeasure_step\020\001\022\021\n\reCompare_step\020\002\022\022\n\016eD"
  381. "ispatch_step\020\003\022\021\n\reConfirm_step\020\004\022\020\n\014eSe"
  382. "arch_step\020\005\022\016\n\neWait_step\020\006\022\021\n\reRelease_"
  383. "step\020\007\022\r\n\teComplete\020\010\022\025\n\021eBackConfirm_st"
  384. "ep\020\t\022\026\n\022eBack_compare_step\020\n\022\025\n\021eBackMea"
  385. "sure_step\020\013\022\023\n\017eBackAlloc_step\020\014\022\022\n\016eBac"
  386. "kWait_step\020\r\022\026\n\022eBackDispatch_step\020\016\022\024\n\020"
  387. "eBackSearch_step\020\017\022\021\n\reBackComplete\020\020*C\n"
  388. "\nStep_statu\022\014\n\010eWaiting\020\000\022\014\n\010eWorking\020\001\022"
  389. "\n\n\006eError\020\002\022\r\n\teFinished\020\003*\370\001\n\024Dispatch_"
  390. "device_type\022\013\n\007ROBOT_1\020e\022\013\n\007ROBOT_2\020f\022\016\n"
  391. "\tCARRIER_1\020\310\001\022\016\n\tCARRIER_2\020\317\001\022\016\n\tCARRIER"
  392. "_3\020\313\001\022\021\n\014PASSAGEWAY_0\020\254\002\022\021\n\014PASSAGEWAY_1"
  393. "\020\255\002\022\021\n\014PASSAGEWAY_2\020\256\002\022\021\n\014PASSAGEWAY_3\020\257"
  394. "\002\022\021\n\014PASSAGEWAY_4\020\260\002\022\021\n\014PASSAGEWAY_5\020\261\002\022"
  395. "\021\n\014PASSAGEWAY_6\020\262\002\022\021\n\014PASSAGEWAY_7\020\263\002"
  396. };
  397. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  398. descriptor, 4437);
  399. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  400. "message_base.proto", &protobuf_RegisterTypes);
  401. }
  402. void AddDescriptors() {
  403. static ::google::protobuf::internal::once_flag once;
  404. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  405. }
  406. // Force AddDescriptors() to be called at dynamic initialization time.
  407. struct StaticDescriptorInitializer {
  408. StaticDescriptorInitializer() {
  409. AddDescriptors();
  410. }
  411. } static_descriptor_initializer;
  412. } // namespace protobuf_message_5fbase_2eproto
  413. namespace message {
  414. const ::google::protobuf::EnumDescriptor* Message_type_descriptor() {
  415. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  416. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[0];
  417. }
  418. bool Message_type_IsValid(int value) {
  419. switch (value) {
  420. case 0:
  421. case 1:
  422. case 17:
  423. case 18:
  424. case 19:
  425. case 20:
  426. case 21:
  427. case 33:
  428. case 34:
  429. case 35:
  430. case 49:
  431. case 50:
  432. case 51:
  433. case 52:
  434. case 53:
  435. case 54:
  436. case 55:
  437. case 56:
  438. case 57:
  439. case 58:
  440. case 59:
  441. case 60:
  442. case 61:
  443. case 65:
  444. case 66:
  445. case 67:
  446. case 68:
  447. case 144:
  448. case 145:
  449. case 160:
  450. case 176:
  451. case 177:
  452. case 224:
  453. case 225:
  454. case 226:
  455. case 227:
  456. case 234:
  457. case 235:
  458. case 240:
  459. case 241:
  460. case 242:
  461. return true;
  462. default:
  463. return false;
  464. }
  465. }
  466. const ::google::protobuf::EnumDescriptor* Communicator_descriptor() {
  467. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  468. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[1];
  469. }
  470. bool Communicator_IsValid(int value) {
  471. switch (value) {
  472. case 0:
  473. case 1:
  474. case 256:
  475. case 512:
  476. case 768:
  477. case 769:
  478. case 1024:
  479. case 1025:
  480. case 3840:
  481. return true;
  482. default:
  483. return false;
  484. }
  485. }
  486. const ::google::protobuf::EnumDescriptor* Process_type_descriptor() {
  487. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  488. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[2];
  489. }
  490. bool Process_type_IsValid(int value) {
  491. switch (value) {
  492. case 1:
  493. case 2:
  494. return true;
  495. default:
  496. return false;
  497. }
  498. }
  499. const ::google::protobuf::EnumDescriptor* Error_level_descriptor() {
  500. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  501. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[3];
  502. }
  503. bool Error_level_IsValid(int value) {
  504. switch (value) {
  505. case 0:
  506. case 1:
  507. case 2:
  508. case 3:
  509. case 4:
  510. return true;
  511. default:
  512. return false;
  513. }
  514. }
  515. const ::google::protobuf::EnumDescriptor* Parkspace_status_descriptor() {
  516. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  517. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[4];
  518. }
  519. bool Parkspace_status_IsValid(int value) {
  520. switch (value) {
  521. case 0:
  522. case 1:
  523. case 2:
  524. case 3:
  525. case 4:
  526. case 5:
  527. return true;
  528. default:
  529. return false;
  530. }
  531. }
  532. const ::google::protobuf::EnumDescriptor* Direction_descriptor() {
  533. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  534. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[5];
  535. }
  536. bool Direction_IsValid(int value) {
  537. switch (value) {
  538. case 0:
  539. case 1:
  540. case 2:
  541. return true;
  542. default:
  543. return false;
  544. }
  545. }
  546. const ::google::protobuf::EnumDescriptor* Parkspace_path_descriptor() {
  547. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  548. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[6];
  549. }
  550. bool Parkspace_path_IsValid(int value) {
  551. switch (value) {
  552. case 0:
  553. case 1:
  554. case 2:
  555. case 3:
  556. case 4:
  557. return true;
  558. default:
  559. return false;
  560. }
  561. }
  562. const ::google::protobuf::EnumDescriptor* Parkspace_type_descriptor() {
  563. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  564. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[7];
  565. }
  566. bool Parkspace_type_IsValid(int value) {
  567. switch (value) {
  568. case 0:
  569. case 1:
  570. case 2:
  571. case 3:
  572. return true;
  573. default:
  574. return false;
  575. }
  576. }
  577. const ::google::protobuf::EnumDescriptor* Car_type_descriptor() {
  578. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  579. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[8];
  580. }
  581. bool Car_type_IsValid(int value) {
  582. switch (value) {
  583. case 0:
  584. case 1:
  585. case 2:
  586. case 3:
  587. return true;
  588. default:
  589. return false;
  590. }
  591. }
  592. const ::google::protobuf::EnumDescriptor* Step_type_descriptor() {
  593. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  594. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[9];
  595. }
  596. bool Step_type_IsValid(int value) {
  597. switch (value) {
  598. case 0:
  599. case 1:
  600. case 2:
  601. case 3:
  602. case 4:
  603. case 5:
  604. case 6:
  605. case 7:
  606. case 8:
  607. case 9:
  608. case 10:
  609. case 11:
  610. case 12:
  611. case 13:
  612. case 14:
  613. case 15:
  614. case 16:
  615. return true;
  616. default:
  617. return false;
  618. }
  619. }
  620. const ::google::protobuf::EnumDescriptor* Step_statu_descriptor() {
  621. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  622. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[10];
  623. }
  624. bool Step_statu_IsValid(int value) {
  625. switch (value) {
  626. case 0:
  627. case 1:
  628. case 2:
  629. case 3:
  630. return true;
  631. default:
  632. return false;
  633. }
  634. }
  635. const ::google::protobuf::EnumDescriptor* Dispatch_device_type_descriptor() {
  636. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  637. return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[11];
  638. }
  639. bool Dispatch_device_type_IsValid(int value) {
  640. switch (value) {
  641. case 101:
  642. case 102:
  643. case 200:
  644. case 203:
  645. case 207:
  646. case 300:
  647. case 301:
  648. case 302:
  649. case 303:
  650. case 304:
  651. case 305:
  652. case 306:
  653. case 307:
  654. return true;
  655. default:
  656. return false;
  657. }
  658. }
  659. // ===================================================================
  660. void Base_info::InitAsDefaultInstance() {
  661. }
  662. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  663. const int Base_info::kMsgTypeFieldNumber;
  664. const int Base_info::kTimeoutMsFieldNumber;
  665. const int Base_info::kSenderFieldNumber;
  666. const int Base_info::kReceiverFieldNumber;
  667. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  668. Base_info::Base_info()
  669. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  670. ::google::protobuf::internal::InitSCC(
  671. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
  672. SharedCtor();
  673. // @@protoc_insertion_point(constructor:message.Base_info)
  674. }
  675. Base_info::Base_info(const Base_info& from)
  676. : ::google::protobuf::Message(),
  677. _internal_metadata_(NULL),
  678. _has_bits_(from._has_bits_) {
  679. _internal_metadata_.MergeFrom(from._internal_metadata_);
  680. ::memcpy(&msg_type_, &from.msg_type_,
  681. static_cast<size_t>(reinterpret_cast<char*>(&receiver_) -
  682. reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
  683. // @@protoc_insertion_point(copy_constructor:message.Base_info)
  684. }
  685. void Base_info::SharedCtor() {
  686. ::memset(&msg_type_, 0, static_cast<size_t>(
  687. reinterpret_cast<char*>(&receiver_) -
  688. reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
  689. }
  690. Base_info::~Base_info() {
  691. // @@protoc_insertion_point(destructor:message.Base_info)
  692. SharedDtor();
  693. }
  694. void Base_info::SharedDtor() {
  695. }
  696. void Base_info::SetCachedSize(int size) const {
  697. _cached_size_.Set(size);
  698. }
  699. const ::google::protobuf::Descriptor* Base_info::descriptor() {
  700. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  701. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  702. }
  703. const Base_info& Base_info::default_instance() {
  704. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
  705. return *internal_default_instance();
  706. }
  707. void Base_info::Clear() {
  708. // @@protoc_insertion_point(message_clear_start:message.Base_info)
  709. ::google::protobuf::uint32 cached_has_bits = 0;
  710. // Prevent compiler warnings about cached_has_bits being unused
  711. (void) cached_has_bits;
  712. cached_has_bits = _has_bits_[0];
  713. if (cached_has_bits & 15u) {
  714. ::memset(&msg_type_, 0, static_cast<size_t>(
  715. reinterpret_cast<char*>(&receiver_) -
  716. reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
  717. }
  718. _has_bits_.Clear();
  719. _internal_metadata_.Clear();
  720. }
  721. bool Base_info::MergePartialFromCodedStream(
  722. ::google::protobuf::io::CodedInputStream* input) {
  723. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  724. ::google::protobuf::uint32 tag;
  725. // @@protoc_insertion_point(parse_start:message.Base_info)
  726. for (;;) {
  727. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  728. tag = p.first;
  729. if (!p.second) goto handle_unusual;
  730. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  731. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  732. case 1: {
  733. if (static_cast< ::google::protobuf::uint8>(tag) ==
  734. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  735. int value;
  736. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  737. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  738. input, &value)));
  739. if (::message::Message_type_IsValid(value)) {
  740. set_msg_type(static_cast< ::message::Message_type >(value));
  741. } else {
  742. mutable_unknown_fields()->AddVarint(
  743. 1, static_cast< ::google::protobuf::uint64>(value));
  744. }
  745. } else {
  746. goto handle_unusual;
  747. }
  748. break;
  749. }
  750. // optional int32 timeout_ms = 2 [default = 0];
  751. case 2: {
  752. if (static_cast< ::google::protobuf::uint8>(tag) ==
  753. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  754. set_has_timeout_ms();
  755. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  756. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  757. input, &timeout_ms_)));
  758. } else {
  759. goto handle_unusual;
  760. }
  761. break;
  762. }
  763. // required .message.Communicator sender = 3 [default = eEmpty];
  764. case 3: {
  765. if (static_cast< ::google::protobuf::uint8>(tag) ==
  766. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  767. int value;
  768. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  769. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  770. input, &value)));
  771. if (::message::Communicator_IsValid(value)) {
  772. set_sender(static_cast< ::message::Communicator >(value));
  773. } else {
  774. mutable_unknown_fields()->AddVarint(
  775. 3, static_cast< ::google::protobuf::uint64>(value));
  776. }
  777. } else {
  778. goto handle_unusual;
  779. }
  780. break;
  781. }
  782. // required .message.Communicator receiver = 4 [default = eEmpty];
  783. case 4: {
  784. if (static_cast< ::google::protobuf::uint8>(tag) ==
  785. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  786. int value;
  787. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  788. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  789. input, &value)));
  790. if (::message::Communicator_IsValid(value)) {
  791. set_receiver(static_cast< ::message::Communicator >(value));
  792. } else {
  793. mutable_unknown_fields()->AddVarint(
  794. 4, static_cast< ::google::protobuf::uint64>(value));
  795. }
  796. } else {
  797. goto handle_unusual;
  798. }
  799. break;
  800. }
  801. default: {
  802. handle_unusual:
  803. if (tag == 0) {
  804. goto success;
  805. }
  806. DO_(::google::protobuf::internal::WireFormat::SkipField(
  807. input, tag, _internal_metadata_.mutable_unknown_fields()));
  808. break;
  809. }
  810. }
  811. }
  812. success:
  813. // @@protoc_insertion_point(parse_success:message.Base_info)
  814. return true;
  815. failure:
  816. // @@protoc_insertion_point(parse_failure:message.Base_info)
  817. return false;
  818. #undef DO_
  819. }
  820. void Base_info::SerializeWithCachedSizes(
  821. ::google::protobuf::io::CodedOutputStream* output) const {
  822. // @@protoc_insertion_point(serialize_start:message.Base_info)
  823. ::google::protobuf::uint32 cached_has_bits = 0;
  824. (void) cached_has_bits;
  825. cached_has_bits = _has_bits_[0];
  826. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  827. if (cached_has_bits & 0x00000001u) {
  828. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  829. 1, this->msg_type(), output);
  830. }
  831. // optional int32 timeout_ms = 2 [default = 0];
  832. if (cached_has_bits & 0x00000002u) {
  833. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->timeout_ms(), output);
  834. }
  835. // required .message.Communicator sender = 3 [default = eEmpty];
  836. if (cached_has_bits & 0x00000004u) {
  837. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  838. 3, this->sender(), output);
  839. }
  840. // required .message.Communicator receiver = 4 [default = eEmpty];
  841. if (cached_has_bits & 0x00000008u) {
  842. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  843. 4, this->receiver(), output);
  844. }
  845. if (_internal_metadata_.have_unknown_fields()) {
  846. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  847. _internal_metadata_.unknown_fields(), output);
  848. }
  849. // @@protoc_insertion_point(serialize_end:message.Base_info)
  850. }
  851. ::google::protobuf::uint8* Base_info::InternalSerializeWithCachedSizesToArray(
  852. bool deterministic, ::google::protobuf::uint8* target) const {
  853. (void)deterministic; // Unused
  854. // @@protoc_insertion_point(serialize_to_array_start:message.Base_info)
  855. ::google::protobuf::uint32 cached_has_bits = 0;
  856. (void) cached_has_bits;
  857. cached_has_bits = _has_bits_[0];
  858. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  859. if (cached_has_bits & 0x00000001u) {
  860. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  861. 1, this->msg_type(), target);
  862. }
  863. // optional int32 timeout_ms = 2 [default = 0];
  864. if (cached_has_bits & 0x00000002u) {
  865. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->timeout_ms(), target);
  866. }
  867. // required .message.Communicator sender = 3 [default = eEmpty];
  868. if (cached_has_bits & 0x00000004u) {
  869. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  870. 3, this->sender(), target);
  871. }
  872. // required .message.Communicator receiver = 4 [default = eEmpty];
  873. if (cached_has_bits & 0x00000008u) {
  874. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  875. 4, this->receiver(), target);
  876. }
  877. if (_internal_metadata_.have_unknown_fields()) {
  878. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  879. _internal_metadata_.unknown_fields(), target);
  880. }
  881. // @@protoc_insertion_point(serialize_to_array_end:message.Base_info)
  882. return target;
  883. }
  884. size_t Base_info::RequiredFieldsByteSizeFallback() const {
  885. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Base_info)
  886. size_t total_size = 0;
  887. if (has_msg_type()) {
  888. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  889. total_size += 1 +
  890. ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
  891. }
  892. if (has_sender()) {
  893. // required .message.Communicator sender = 3 [default = eEmpty];
  894. total_size += 1 +
  895. ::google::protobuf::internal::WireFormatLite::EnumSize(this->sender());
  896. }
  897. if (has_receiver()) {
  898. // required .message.Communicator receiver = 4 [default = eEmpty];
  899. total_size += 1 +
  900. ::google::protobuf::internal::WireFormatLite::EnumSize(this->receiver());
  901. }
  902. return total_size;
  903. }
  904. size_t Base_info::ByteSizeLong() const {
  905. // @@protoc_insertion_point(message_byte_size_start:message.Base_info)
  906. size_t total_size = 0;
  907. if (_internal_metadata_.have_unknown_fields()) {
  908. total_size +=
  909. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  910. _internal_metadata_.unknown_fields());
  911. }
  912. if (((_has_bits_[0] & 0x0000000d) ^ 0x0000000d) == 0) { // All required fields are present.
  913. // required .message.Message_type msg_type = 1 [default = eBase_msg];
  914. total_size += 1 +
  915. ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
  916. // required .message.Communicator sender = 3 [default = eEmpty];
  917. total_size += 1 +
  918. ::google::protobuf::internal::WireFormatLite::EnumSize(this->sender());
  919. // required .message.Communicator receiver = 4 [default = eEmpty];
  920. total_size += 1 +
  921. ::google::protobuf::internal::WireFormatLite::EnumSize(this->receiver());
  922. } else {
  923. total_size += RequiredFieldsByteSizeFallback();
  924. }
  925. // optional int32 timeout_ms = 2 [default = 0];
  926. if (has_timeout_ms()) {
  927. total_size += 1 +
  928. ::google::protobuf::internal::WireFormatLite::Int32Size(
  929. this->timeout_ms());
  930. }
  931. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  932. SetCachedSize(cached_size);
  933. return total_size;
  934. }
  935. void Base_info::MergeFrom(const ::google::protobuf::Message& from) {
  936. // @@protoc_insertion_point(generalized_merge_from_start:message.Base_info)
  937. GOOGLE_DCHECK_NE(&from, this);
  938. const Base_info* source =
  939. ::google::protobuf::internal::DynamicCastToGenerated<const Base_info>(
  940. &from);
  941. if (source == NULL) {
  942. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Base_info)
  943. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  944. } else {
  945. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Base_info)
  946. MergeFrom(*source);
  947. }
  948. }
  949. void Base_info::MergeFrom(const Base_info& from) {
  950. // @@protoc_insertion_point(class_specific_merge_from_start:message.Base_info)
  951. GOOGLE_DCHECK_NE(&from, this);
  952. _internal_metadata_.MergeFrom(from._internal_metadata_);
  953. ::google::protobuf::uint32 cached_has_bits = 0;
  954. (void) cached_has_bits;
  955. cached_has_bits = from._has_bits_[0];
  956. if (cached_has_bits & 15u) {
  957. if (cached_has_bits & 0x00000001u) {
  958. msg_type_ = from.msg_type_;
  959. }
  960. if (cached_has_bits & 0x00000002u) {
  961. timeout_ms_ = from.timeout_ms_;
  962. }
  963. if (cached_has_bits & 0x00000004u) {
  964. sender_ = from.sender_;
  965. }
  966. if (cached_has_bits & 0x00000008u) {
  967. receiver_ = from.receiver_;
  968. }
  969. _has_bits_[0] |= cached_has_bits;
  970. }
  971. }
  972. void Base_info::CopyFrom(const ::google::protobuf::Message& from) {
  973. // @@protoc_insertion_point(generalized_copy_from_start:message.Base_info)
  974. if (&from == this) return;
  975. Clear();
  976. MergeFrom(from);
  977. }
  978. void Base_info::CopyFrom(const Base_info& from) {
  979. // @@protoc_insertion_point(class_specific_copy_from_start:message.Base_info)
  980. if (&from == this) return;
  981. Clear();
  982. MergeFrom(from);
  983. }
  984. bool Base_info::IsInitialized() const {
  985. if ((_has_bits_[0] & 0x0000000d) != 0x0000000d) return false;
  986. return true;
  987. }
  988. void Base_info::Swap(Base_info* other) {
  989. if (other == this) return;
  990. InternalSwap(other);
  991. }
  992. void Base_info::InternalSwap(Base_info* other) {
  993. using std::swap;
  994. swap(msg_type_, other->msg_type_);
  995. swap(timeout_ms_, other->timeout_ms_);
  996. swap(sender_, other->sender_);
  997. swap(receiver_, other->receiver_);
  998. swap(_has_bits_[0], other->_has_bits_[0]);
  999. _internal_metadata_.Swap(&other->_internal_metadata_);
  1000. }
  1001. ::google::protobuf::Metadata Base_info::GetMetadata() const {
  1002. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1003. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  1004. }
  1005. // ===================================================================
  1006. void Base_msg::InitAsDefaultInstance() {
  1007. ::message::_Base_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1008. ::message::Base_info::internal_default_instance());
  1009. }
  1010. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1011. const int Base_msg::kBaseInfoFieldNumber;
  1012. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1013. Base_msg::Base_msg()
  1014. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1015. ::google::protobuf::internal::InitSCC(
  1016. &protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
  1017. SharedCtor();
  1018. // @@protoc_insertion_point(constructor:message.Base_msg)
  1019. }
  1020. Base_msg::Base_msg(const Base_msg& from)
  1021. : ::google::protobuf::Message(),
  1022. _internal_metadata_(NULL),
  1023. _has_bits_(from._has_bits_) {
  1024. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1025. if (from.has_base_info()) {
  1026. base_info_ = new ::message::Base_info(*from.base_info_);
  1027. } else {
  1028. base_info_ = NULL;
  1029. }
  1030. // @@protoc_insertion_point(copy_constructor:message.Base_msg)
  1031. }
  1032. void Base_msg::SharedCtor() {
  1033. base_info_ = NULL;
  1034. }
  1035. Base_msg::~Base_msg() {
  1036. // @@protoc_insertion_point(destructor:message.Base_msg)
  1037. SharedDtor();
  1038. }
  1039. void Base_msg::SharedDtor() {
  1040. if (this != internal_default_instance()) delete base_info_;
  1041. }
  1042. void Base_msg::SetCachedSize(int size) const {
  1043. _cached_size_.Set(size);
  1044. }
  1045. const ::google::protobuf::Descriptor* Base_msg::descriptor() {
  1046. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1047. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1048. }
  1049. const Base_msg& Base_msg::default_instance() {
  1050. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
  1051. return *internal_default_instance();
  1052. }
  1053. void Base_msg::Clear() {
  1054. // @@protoc_insertion_point(message_clear_start:message.Base_msg)
  1055. ::google::protobuf::uint32 cached_has_bits = 0;
  1056. // Prevent compiler warnings about cached_has_bits being unused
  1057. (void) cached_has_bits;
  1058. cached_has_bits = _has_bits_[0];
  1059. if (cached_has_bits & 0x00000001u) {
  1060. GOOGLE_DCHECK(base_info_ != NULL);
  1061. base_info_->Clear();
  1062. }
  1063. _has_bits_.Clear();
  1064. _internal_metadata_.Clear();
  1065. }
  1066. bool Base_msg::MergePartialFromCodedStream(
  1067. ::google::protobuf::io::CodedInputStream* input) {
  1068. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1069. ::google::protobuf::uint32 tag;
  1070. // @@protoc_insertion_point(parse_start:message.Base_msg)
  1071. for (;;) {
  1072. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1073. tag = p.first;
  1074. if (!p.second) goto handle_unusual;
  1075. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1076. // required .message.Base_info base_info = 1;
  1077. case 1: {
  1078. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1079. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1080. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1081. input, mutable_base_info()));
  1082. } else {
  1083. goto handle_unusual;
  1084. }
  1085. break;
  1086. }
  1087. default: {
  1088. handle_unusual:
  1089. if (tag == 0) {
  1090. goto success;
  1091. }
  1092. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1093. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1094. break;
  1095. }
  1096. }
  1097. }
  1098. success:
  1099. // @@protoc_insertion_point(parse_success:message.Base_msg)
  1100. return true;
  1101. failure:
  1102. // @@protoc_insertion_point(parse_failure:message.Base_msg)
  1103. return false;
  1104. #undef DO_
  1105. }
  1106. void Base_msg::SerializeWithCachedSizes(
  1107. ::google::protobuf::io::CodedOutputStream* output) const {
  1108. // @@protoc_insertion_point(serialize_start:message.Base_msg)
  1109. ::google::protobuf::uint32 cached_has_bits = 0;
  1110. (void) cached_has_bits;
  1111. cached_has_bits = _has_bits_[0];
  1112. // required .message.Base_info base_info = 1;
  1113. if (cached_has_bits & 0x00000001u) {
  1114. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1115. 1, this->_internal_base_info(), output);
  1116. }
  1117. if (_internal_metadata_.have_unknown_fields()) {
  1118. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1119. _internal_metadata_.unknown_fields(), output);
  1120. }
  1121. // @@protoc_insertion_point(serialize_end:message.Base_msg)
  1122. }
  1123. ::google::protobuf::uint8* Base_msg::InternalSerializeWithCachedSizesToArray(
  1124. bool deterministic, ::google::protobuf::uint8* target) const {
  1125. (void)deterministic; // Unused
  1126. // @@protoc_insertion_point(serialize_to_array_start:message.Base_msg)
  1127. ::google::protobuf::uint32 cached_has_bits = 0;
  1128. (void) cached_has_bits;
  1129. cached_has_bits = _has_bits_[0];
  1130. // required .message.Base_info base_info = 1;
  1131. if (cached_has_bits & 0x00000001u) {
  1132. target = ::google::protobuf::internal::WireFormatLite::
  1133. InternalWriteMessageToArray(
  1134. 1, this->_internal_base_info(), deterministic, target);
  1135. }
  1136. if (_internal_metadata_.have_unknown_fields()) {
  1137. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1138. _internal_metadata_.unknown_fields(), target);
  1139. }
  1140. // @@protoc_insertion_point(serialize_to_array_end:message.Base_msg)
  1141. return target;
  1142. }
  1143. size_t Base_msg::ByteSizeLong() const {
  1144. // @@protoc_insertion_point(message_byte_size_start:message.Base_msg)
  1145. size_t total_size = 0;
  1146. if (_internal_metadata_.have_unknown_fields()) {
  1147. total_size +=
  1148. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1149. _internal_metadata_.unknown_fields());
  1150. }
  1151. // required .message.Base_info base_info = 1;
  1152. if (has_base_info()) {
  1153. total_size += 1 +
  1154. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1155. *base_info_);
  1156. }
  1157. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1158. SetCachedSize(cached_size);
  1159. return total_size;
  1160. }
  1161. void Base_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1162. // @@protoc_insertion_point(generalized_merge_from_start:message.Base_msg)
  1163. GOOGLE_DCHECK_NE(&from, this);
  1164. const Base_msg* source =
  1165. ::google::protobuf::internal::DynamicCastToGenerated<const Base_msg>(
  1166. &from);
  1167. if (source == NULL) {
  1168. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Base_msg)
  1169. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1170. } else {
  1171. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Base_msg)
  1172. MergeFrom(*source);
  1173. }
  1174. }
  1175. void Base_msg::MergeFrom(const Base_msg& from) {
  1176. // @@protoc_insertion_point(class_specific_merge_from_start:message.Base_msg)
  1177. GOOGLE_DCHECK_NE(&from, this);
  1178. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1179. ::google::protobuf::uint32 cached_has_bits = 0;
  1180. (void) cached_has_bits;
  1181. if (from.has_base_info()) {
  1182. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1183. }
  1184. }
  1185. void Base_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1186. // @@protoc_insertion_point(generalized_copy_from_start:message.Base_msg)
  1187. if (&from == this) return;
  1188. Clear();
  1189. MergeFrom(from);
  1190. }
  1191. void Base_msg::CopyFrom(const Base_msg& from) {
  1192. // @@protoc_insertion_point(class_specific_copy_from_start:message.Base_msg)
  1193. if (&from == this) return;
  1194. Clear();
  1195. MergeFrom(from);
  1196. }
  1197. bool Base_msg::IsInitialized() const {
  1198. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  1199. if (has_base_info()) {
  1200. if (!this->base_info_->IsInitialized()) return false;
  1201. }
  1202. return true;
  1203. }
  1204. void Base_msg::Swap(Base_msg* other) {
  1205. if (other == this) return;
  1206. InternalSwap(other);
  1207. }
  1208. void Base_msg::InternalSwap(Base_msg* other) {
  1209. using std::swap;
  1210. swap(base_info_, other->base_info_);
  1211. swap(_has_bits_[0], other->_has_bits_[0]);
  1212. _internal_metadata_.Swap(&other->_internal_metadata_);
  1213. }
  1214. ::google::protobuf::Metadata Base_msg::GetMetadata() const {
  1215. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1216. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  1217. }
  1218. // ===================================================================
  1219. void Error_manager::InitAsDefaultInstance() {
  1220. }
  1221. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1222. const int Error_manager::kErrorCodeFieldNumber;
  1223. const int Error_manager::kErrorLevelFieldNumber;
  1224. const int Error_manager::kErrorDescriptionFieldNumber;
  1225. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1226. Error_manager::Error_manager()
  1227. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1228. ::google::protobuf::internal::InitSCC(
  1229. &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
  1230. SharedCtor();
  1231. // @@protoc_insertion_point(constructor:message.Error_manager)
  1232. }
  1233. Error_manager::Error_manager(const Error_manager& from)
  1234. : ::google::protobuf::Message(),
  1235. _internal_metadata_(NULL),
  1236. _has_bits_(from._has_bits_) {
  1237. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1238. error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1239. if (from.has_error_description()) {
  1240. error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_description_);
  1241. }
  1242. ::memcpy(&error_code_, &from.error_code_,
  1243. static_cast<size_t>(reinterpret_cast<char*>(&error_level_) -
  1244. reinterpret_cast<char*>(&error_code_)) + sizeof(error_level_));
  1245. // @@protoc_insertion_point(copy_constructor:message.Error_manager)
  1246. }
  1247. void Error_manager::SharedCtor() {
  1248. error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1249. ::memset(&error_code_, 0, static_cast<size_t>(
  1250. reinterpret_cast<char*>(&error_level_) -
  1251. reinterpret_cast<char*>(&error_code_)) + sizeof(error_level_));
  1252. }
  1253. Error_manager::~Error_manager() {
  1254. // @@protoc_insertion_point(destructor:message.Error_manager)
  1255. SharedDtor();
  1256. }
  1257. void Error_manager::SharedDtor() {
  1258. error_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1259. }
  1260. void Error_manager::SetCachedSize(int size) const {
  1261. _cached_size_.Set(size);
  1262. }
  1263. const ::google::protobuf::Descriptor* Error_manager::descriptor() {
  1264. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1265. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1266. }
  1267. const Error_manager& Error_manager::default_instance() {
  1268. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
  1269. return *internal_default_instance();
  1270. }
  1271. void Error_manager::Clear() {
  1272. // @@protoc_insertion_point(message_clear_start:message.Error_manager)
  1273. ::google::protobuf::uint32 cached_has_bits = 0;
  1274. // Prevent compiler warnings about cached_has_bits being unused
  1275. (void) cached_has_bits;
  1276. cached_has_bits = _has_bits_[0];
  1277. if (cached_has_bits & 0x00000001u) {
  1278. error_description_.ClearNonDefaultToEmptyNoArena();
  1279. }
  1280. if (cached_has_bits & 6u) {
  1281. ::memset(&error_code_, 0, static_cast<size_t>(
  1282. reinterpret_cast<char*>(&error_level_) -
  1283. reinterpret_cast<char*>(&error_code_)) + sizeof(error_level_));
  1284. }
  1285. _has_bits_.Clear();
  1286. _internal_metadata_.Clear();
  1287. }
  1288. bool Error_manager::MergePartialFromCodedStream(
  1289. ::google::protobuf::io::CodedInputStream* input) {
  1290. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1291. ::google::protobuf::uint32 tag;
  1292. // @@protoc_insertion_point(parse_start:message.Error_manager)
  1293. for (;;) {
  1294. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1295. tag = p.first;
  1296. if (!p.second) goto handle_unusual;
  1297. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1298. // required int32 error_code = 1 [default = 0];
  1299. case 1: {
  1300. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1301. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1302. set_has_error_code();
  1303. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1304. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1305. input, &error_code_)));
  1306. } else {
  1307. goto handle_unusual;
  1308. }
  1309. break;
  1310. }
  1311. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1312. case 2: {
  1313. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1314. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1315. int value;
  1316. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1317. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1318. input, &value)));
  1319. if (::message::Error_level_IsValid(value)) {
  1320. set_error_level(static_cast< ::message::Error_level >(value));
  1321. } else {
  1322. mutable_unknown_fields()->AddVarint(
  1323. 2, static_cast< ::google::protobuf::uint64>(value));
  1324. }
  1325. } else {
  1326. goto handle_unusual;
  1327. }
  1328. break;
  1329. }
  1330. // optional string error_description = 3 [default = ""];
  1331. case 3: {
  1332. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1333. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1334. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1335. input, this->mutable_error_description()));
  1336. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1337. this->error_description().data(), static_cast<int>(this->error_description().length()),
  1338. ::google::protobuf::internal::WireFormat::PARSE,
  1339. "message.Error_manager.error_description");
  1340. } else {
  1341. goto handle_unusual;
  1342. }
  1343. break;
  1344. }
  1345. default: {
  1346. handle_unusual:
  1347. if (tag == 0) {
  1348. goto success;
  1349. }
  1350. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1351. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1352. break;
  1353. }
  1354. }
  1355. }
  1356. success:
  1357. // @@protoc_insertion_point(parse_success:message.Error_manager)
  1358. return true;
  1359. failure:
  1360. // @@protoc_insertion_point(parse_failure:message.Error_manager)
  1361. return false;
  1362. #undef DO_
  1363. }
  1364. void Error_manager::SerializeWithCachedSizes(
  1365. ::google::protobuf::io::CodedOutputStream* output) const {
  1366. // @@protoc_insertion_point(serialize_start:message.Error_manager)
  1367. ::google::protobuf::uint32 cached_has_bits = 0;
  1368. (void) cached_has_bits;
  1369. cached_has_bits = _has_bits_[0];
  1370. // required int32 error_code = 1 [default = 0];
  1371. if (cached_has_bits & 0x00000002u) {
  1372. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->error_code(), output);
  1373. }
  1374. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1375. if (cached_has_bits & 0x00000004u) {
  1376. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1377. 2, this->error_level(), output);
  1378. }
  1379. // optional string error_description = 3 [default = ""];
  1380. if (cached_has_bits & 0x00000001u) {
  1381. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1382. this->error_description().data(), static_cast<int>(this->error_description().length()),
  1383. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1384. "message.Error_manager.error_description");
  1385. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1386. 3, this->error_description(), output);
  1387. }
  1388. if (_internal_metadata_.have_unknown_fields()) {
  1389. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1390. _internal_metadata_.unknown_fields(), output);
  1391. }
  1392. // @@protoc_insertion_point(serialize_end:message.Error_manager)
  1393. }
  1394. ::google::protobuf::uint8* Error_manager::InternalSerializeWithCachedSizesToArray(
  1395. bool deterministic, ::google::protobuf::uint8* target) const {
  1396. (void)deterministic; // Unused
  1397. // @@protoc_insertion_point(serialize_to_array_start:message.Error_manager)
  1398. ::google::protobuf::uint32 cached_has_bits = 0;
  1399. (void) cached_has_bits;
  1400. cached_has_bits = _has_bits_[0];
  1401. // required int32 error_code = 1 [default = 0];
  1402. if (cached_has_bits & 0x00000002u) {
  1403. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->error_code(), target);
  1404. }
  1405. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1406. if (cached_has_bits & 0x00000004u) {
  1407. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1408. 2, this->error_level(), target);
  1409. }
  1410. // optional string error_description = 3 [default = ""];
  1411. if (cached_has_bits & 0x00000001u) {
  1412. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1413. this->error_description().data(), static_cast<int>(this->error_description().length()),
  1414. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1415. "message.Error_manager.error_description");
  1416. target =
  1417. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1418. 3, this->error_description(), target);
  1419. }
  1420. if (_internal_metadata_.have_unknown_fields()) {
  1421. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1422. _internal_metadata_.unknown_fields(), target);
  1423. }
  1424. // @@protoc_insertion_point(serialize_to_array_end:message.Error_manager)
  1425. return target;
  1426. }
  1427. size_t Error_manager::ByteSizeLong() const {
  1428. // @@protoc_insertion_point(message_byte_size_start:message.Error_manager)
  1429. size_t total_size = 0;
  1430. if (_internal_metadata_.have_unknown_fields()) {
  1431. total_size +=
  1432. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1433. _internal_metadata_.unknown_fields());
  1434. }
  1435. // required int32 error_code = 1 [default = 0];
  1436. if (has_error_code()) {
  1437. total_size += 1 +
  1438. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1439. this->error_code());
  1440. }
  1441. // optional string error_description = 3 [default = ""];
  1442. if (has_error_description()) {
  1443. total_size += 1 +
  1444. ::google::protobuf::internal::WireFormatLite::StringSize(
  1445. this->error_description());
  1446. }
  1447. // optional .message.Error_level error_level = 2 [default = NORMAL];
  1448. if (has_error_level()) {
  1449. total_size += 1 +
  1450. ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_level());
  1451. }
  1452. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1453. SetCachedSize(cached_size);
  1454. return total_size;
  1455. }
  1456. void Error_manager::MergeFrom(const ::google::protobuf::Message& from) {
  1457. // @@protoc_insertion_point(generalized_merge_from_start:message.Error_manager)
  1458. GOOGLE_DCHECK_NE(&from, this);
  1459. const Error_manager* source =
  1460. ::google::protobuf::internal::DynamicCastToGenerated<const Error_manager>(
  1461. &from);
  1462. if (source == NULL) {
  1463. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Error_manager)
  1464. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1465. } else {
  1466. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Error_manager)
  1467. MergeFrom(*source);
  1468. }
  1469. }
  1470. void Error_manager::MergeFrom(const Error_manager& from) {
  1471. // @@protoc_insertion_point(class_specific_merge_from_start:message.Error_manager)
  1472. GOOGLE_DCHECK_NE(&from, this);
  1473. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1474. ::google::protobuf::uint32 cached_has_bits = 0;
  1475. (void) cached_has_bits;
  1476. cached_has_bits = from._has_bits_[0];
  1477. if (cached_has_bits & 7u) {
  1478. if (cached_has_bits & 0x00000001u) {
  1479. set_has_error_description();
  1480. error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_description_);
  1481. }
  1482. if (cached_has_bits & 0x00000002u) {
  1483. error_code_ = from.error_code_;
  1484. }
  1485. if (cached_has_bits & 0x00000004u) {
  1486. error_level_ = from.error_level_;
  1487. }
  1488. _has_bits_[0] |= cached_has_bits;
  1489. }
  1490. }
  1491. void Error_manager::CopyFrom(const ::google::protobuf::Message& from) {
  1492. // @@protoc_insertion_point(generalized_copy_from_start:message.Error_manager)
  1493. if (&from == this) return;
  1494. Clear();
  1495. MergeFrom(from);
  1496. }
  1497. void Error_manager::CopyFrom(const Error_manager& from) {
  1498. // @@protoc_insertion_point(class_specific_copy_from_start:message.Error_manager)
  1499. if (&from == this) return;
  1500. Clear();
  1501. MergeFrom(from);
  1502. }
  1503. bool Error_manager::IsInitialized() const {
  1504. if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
  1505. return true;
  1506. }
  1507. void Error_manager::Swap(Error_manager* other) {
  1508. if (other == this) return;
  1509. InternalSwap(other);
  1510. }
  1511. void Error_manager::InternalSwap(Error_manager* other) {
  1512. using std::swap;
  1513. error_description_.Swap(&other->error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1514. GetArenaNoVirtual());
  1515. swap(error_code_, other->error_code_);
  1516. swap(error_level_, other->error_level_);
  1517. swap(_has_bits_[0], other->_has_bits_[0]);
  1518. _internal_metadata_.Swap(&other->_internal_metadata_);
  1519. }
  1520. ::google::protobuf::Metadata Error_manager::GetMetadata() const {
  1521. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1522. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  1523. }
  1524. // ===================================================================
  1525. void Locate_information::InitAsDefaultInstance() {
  1526. }
  1527. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1528. const int Locate_information::kLocateXFieldNumber;
  1529. const int Locate_information::kLocateYFieldNumber;
  1530. const int Locate_information::kLocateAngleFieldNumber;
  1531. const int Locate_information::kLocateLengthFieldNumber;
  1532. const int Locate_information::kLocateWidthFieldNumber;
  1533. const int Locate_information::kLocateHeightFieldNumber;
  1534. const int Locate_information::kLocateWheelBaseFieldNumber;
  1535. const int Locate_information::kLocateWheelWidthFieldNumber;
  1536. const int Locate_information::kLocateCorrectFieldNumber;
  1537. const int Locate_information::kLocateFrontThetaFieldNumber;
  1538. const int Locate_information::kUniformedCarXFieldNumber;
  1539. const int Locate_information::kUniformedCarYFieldNumber;
  1540. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1541. Locate_information::Locate_information()
  1542. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1543. ::google::protobuf::internal::InitSCC(
  1544. &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
  1545. SharedCtor();
  1546. // @@protoc_insertion_point(constructor:message.Locate_information)
  1547. }
  1548. Locate_information::Locate_information(const Locate_information& from)
  1549. : ::google::protobuf::Message(),
  1550. _internal_metadata_(NULL),
  1551. _has_bits_(from._has_bits_) {
  1552. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1553. ::memcpy(&locate_x_, &from.locate_x_,
  1554. static_cast<size_t>(reinterpret_cast<char*>(&uniformed_car_y_) -
  1555. reinterpret_cast<char*>(&locate_x_)) + sizeof(uniformed_car_y_));
  1556. // @@protoc_insertion_point(copy_constructor:message.Locate_information)
  1557. }
  1558. void Locate_information::SharedCtor() {
  1559. ::memset(&locate_x_, 0, static_cast<size_t>(
  1560. reinterpret_cast<char*>(&uniformed_car_y_) -
  1561. reinterpret_cast<char*>(&locate_x_)) + sizeof(uniformed_car_y_));
  1562. }
  1563. Locate_information::~Locate_information() {
  1564. // @@protoc_insertion_point(destructor:message.Locate_information)
  1565. SharedDtor();
  1566. }
  1567. void Locate_information::SharedDtor() {
  1568. }
  1569. void Locate_information::SetCachedSize(int size) const {
  1570. _cached_size_.Set(size);
  1571. }
  1572. const ::google::protobuf::Descriptor* Locate_information::descriptor() {
  1573. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1574. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1575. }
  1576. const Locate_information& Locate_information::default_instance() {
  1577. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
  1578. return *internal_default_instance();
  1579. }
  1580. void Locate_information::Clear() {
  1581. // @@protoc_insertion_point(message_clear_start:message.Locate_information)
  1582. ::google::protobuf::uint32 cached_has_bits = 0;
  1583. // Prevent compiler warnings about cached_has_bits being unused
  1584. (void) cached_has_bits;
  1585. cached_has_bits = _has_bits_[0];
  1586. if (cached_has_bits & 255u) {
  1587. ::memset(&locate_x_, 0, static_cast<size_t>(
  1588. reinterpret_cast<char*>(&locate_wheel_width_) -
  1589. reinterpret_cast<char*>(&locate_x_)) + sizeof(locate_wheel_width_));
  1590. }
  1591. if (cached_has_bits & 3840u) {
  1592. ::memset(&locate_correct_, 0, static_cast<size_t>(
  1593. reinterpret_cast<char*>(&uniformed_car_y_) -
  1594. reinterpret_cast<char*>(&locate_correct_)) + sizeof(uniformed_car_y_));
  1595. }
  1596. _has_bits_.Clear();
  1597. _internal_metadata_.Clear();
  1598. }
  1599. bool Locate_information::MergePartialFromCodedStream(
  1600. ::google::protobuf::io::CodedInputStream* input) {
  1601. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1602. ::google::protobuf::uint32 tag;
  1603. // @@protoc_insertion_point(parse_start:message.Locate_information)
  1604. for (;;) {
  1605. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1606. tag = p.first;
  1607. if (!p.second) goto handle_unusual;
  1608. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1609. // optional float locate_x = 1 [default = 0];
  1610. case 1: {
  1611. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1612. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  1613. set_has_locate_x();
  1614. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1615. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1616. input, &locate_x_)));
  1617. } else {
  1618. goto handle_unusual;
  1619. }
  1620. break;
  1621. }
  1622. // optional float locate_y = 2 [default = 0];
  1623. case 2: {
  1624. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1625. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  1626. set_has_locate_y();
  1627. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1628. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1629. input, &locate_y_)));
  1630. } else {
  1631. goto handle_unusual;
  1632. }
  1633. break;
  1634. }
  1635. // optional float locate_angle = 3 [default = 0];
  1636. case 3: {
  1637. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1638. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1639. set_has_locate_angle();
  1640. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1641. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1642. input, &locate_angle_)));
  1643. } else {
  1644. goto handle_unusual;
  1645. }
  1646. break;
  1647. }
  1648. // optional float locate_length = 4 [default = 0];
  1649. case 4: {
  1650. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1651. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1652. set_has_locate_length();
  1653. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1654. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1655. input, &locate_length_)));
  1656. } else {
  1657. goto handle_unusual;
  1658. }
  1659. break;
  1660. }
  1661. // optional float locate_width = 5 [default = 0];
  1662. case 5: {
  1663. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1664. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1665. set_has_locate_width();
  1666. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1667. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1668. input, &locate_width_)));
  1669. } else {
  1670. goto handle_unusual;
  1671. }
  1672. break;
  1673. }
  1674. // optional float locate_height = 6 [default = 0];
  1675. case 6: {
  1676. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1677. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1678. set_has_locate_height();
  1679. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1680. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1681. input, &locate_height_)));
  1682. } else {
  1683. goto handle_unusual;
  1684. }
  1685. break;
  1686. }
  1687. // optional float locate_wheel_base = 7 [default = 0];
  1688. case 7: {
  1689. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1690. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  1691. set_has_locate_wheel_base();
  1692. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1693. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1694. input, &locate_wheel_base_)));
  1695. } else {
  1696. goto handle_unusual;
  1697. }
  1698. break;
  1699. }
  1700. // optional float locate_wheel_width = 8 [default = 0];
  1701. case 8: {
  1702. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1703. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  1704. set_has_locate_wheel_width();
  1705. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1706. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1707. input, &locate_wheel_width_)));
  1708. } else {
  1709. goto handle_unusual;
  1710. }
  1711. break;
  1712. }
  1713. // optional bool locate_correct = 9 [default = false];
  1714. case 9: {
  1715. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1716. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1717. set_has_locate_correct();
  1718. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1719. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1720. input, &locate_correct_)));
  1721. } else {
  1722. goto handle_unusual;
  1723. }
  1724. break;
  1725. }
  1726. // optional float locate_front_theta = 10 [default = 0];
  1727. case 10: {
  1728. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1729. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  1730. set_has_locate_front_theta();
  1731. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1732. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1733. input, &locate_front_theta_)));
  1734. } else {
  1735. goto handle_unusual;
  1736. }
  1737. break;
  1738. }
  1739. // optional float uniformed_car_x = 11;
  1740. case 11: {
  1741. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1742. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  1743. set_has_uniformed_car_x();
  1744. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1745. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1746. input, &uniformed_car_x_)));
  1747. } else {
  1748. goto handle_unusual;
  1749. }
  1750. break;
  1751. }
  1752. // optional float uniformed_car_y = 12;
  1753. case 12: {
  1754. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1755. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  1756. set_has_uniformed_car_y();
  1757. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1758. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1759. input, &uniformed_car_y_)));
  1760. } else {
  1761. goto handle_unusual;
  1762. }
  1763. break;
  1764. }
  1765. default: {
  1766. handle_unusual:
  1767. if (tag == 0) {
  1768. goto success;
  1769. }
  1770. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1771. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1772. break;
  1773. }
  1774. }
  1775. }
  1776. success:
  1777. // @@protoc_insertion_point(parse_success:message.Locate_information)
  1778. return true;
  1779. failure:
  1780. // @@protoc_insertion_point(parse_failure:message.Locate_information)
  1781. return false;
  1782. #undef DO_
  1783. }
  1784. void Locate_information::SerializeWithCachedSizes(
  1785. ::google::protobuf::io::CodedOutputStream* output) const {
  1786. // @@protoc_insertion_point(serialize_start:message.Locate_information)
  1787. ::google::protobuf::uint32 cached_has_bits = 0;
  1788. (void) cached_has_bits;
  1789. cached_has_bits = _has_bits_[0];
  1790. // optional float locate_x = 1 [default = 0];
  1791. if (cached_has_bits & 0x00000001u) {
  1792. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->locate_x(), output);
  1793. }
  1794. // optional float locate_y = 2 [default = 0];
  1795. if (cached_has_bits & 0x00000002u) {
  1796. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->locate_y(), output);
  1797. }
  1798. // optional float locate_angle = 3 [default = 0];
  1799. if (cached_has_bits & 0x00000004u) {
  1800. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->locate_angle(), output);
  1801. }
  1802. // optional float locate_length = 4 [default = 0];
  1803. if (cached_has_bits & 0x00000008u) {
  1804. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->locate_length(), output);
  1805. }
  1806. // optional float locate_width = 5 [default = 0];
  1807. if (cached_has_bits & 0x00000010u) {
  1808. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->locate_width(), output);
  1809. }
  1810. // optional float locate_height = 6 [default = 0];
  1811. if (cached_has_bits & 0x00000020u) {
  1812. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->locate_height(), output);
  1813. }
  1814. // optional float locate_wheel_base = 7 [default = 0];
  1815. if (cached_has_bits & 0x00000040u) {
  1816. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->locate_wheel_base(), output);
  1817. }
  1818. // optional float locate_wheel_width = 8 [default = 0];
  1819. if (cached_has_bits & 0x00000080u) {
  1820. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->locate_wheel_width(), output);
  1821. }
  1822. // optional bool locate_correct = 9 [default = false];
  1823. if (cached_has_bits & 0x00000100u) {
  1824. ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->locate_correct(), output);
  1825. }
  1826. // optional float locate_front_theta = 10 [default = 0];
  1827. if (cached_has_bits & 0x00000200u) {
  1828. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->locate_front_theta(), output);
  1829. }
  1830. // optional float uniformed_car_x = 11;
  1831. if (cached_has_bits & 0x00000400u) {
  1832. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->uniformed_car_x(), output);
  1833. }
  1834. // optional float uniformed_car_y = 12;
  1835. if (cached_has_bits & 0x00000800u) {
  1836. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->uniformed_car_y(), output);
  1837. }
  1838. if (_internal_metadata_.have_unknown_fields()) {
  1839. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1840. _internal_metadata_.unknown_fields(), output);
  1841. }
  1842. // @@protoc_insertion_point(serialize_end:message.Locate_information)
  1843. }
  1844. ::google::protobuf::uint8* Locate_information::InternalSerializeWithCachedSizesToArray(
  1845. bool deterministic, ::google::protobuf::uint8* target) const {
  1846. (void)deterministic; // Unused
  1847. // @@protoc_insertion_point(serialize_to_array_start:message.Locate_information)
  1848. ::google::protobuf::uint32 cached_has_bits = 0;
  1849. (void) cached_has_bits;
  1850. cached_has_bits = _has_bits_[0];
  1851. // optional float locate_x = 1 [default = 0];
  1852. if (cached_has_bits & 0x00000001u) {
  1853. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->locate_x(), target);
  1854. }
  1855. // optional float locate_y = 2 [default = 0];
  1856. if (cached_has_bits & 0x00000002u) {
  1857. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->locate_y(), target);
  1858. }
  1859. // optional float locate_angle = 3 [default = 0];
  1860. if (cached_has_bits & 0x00000004u) {
  1861. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->locate_angle(), target);
  1862. }
  1863. // optional float locate_length = 4 [default = 0];
  1864. if (cached_has_bits & 0x00000008u) {
  1865. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->locate_length(), target);
  1866. }
  1867. // optional float locate_width = 5 [default = 0];
  1868. if (cached_has_bits & 0x00000010u) {
  1869. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->locate_width(), target);
  1870. }
  1871. // optional float locate_height = 6 [default = 0];
  1872. if (cached_has_bits & 0x00000020u) {
  1873. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->locate_height(), target);
  1874. }
  1875. // optional float locate_wheel_base = 7 [default = 0];
  1876. if (cached_has_bits & 0x00000040u) {
  1877. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->locate_wheel_base(), target);
  1878. }
  1879. // optional float locate_wheel_width = 8 [default = 0];
  1880. if (cached_has_bits & 0x00000080u) {
  1881. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->locate_wheel_width(), target);
  1882. }
  1883. // optional bool locate_correct = 9 [default = false];
  1884. if (cached_has_bits & 0x00000100u) {
  1885. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->locate_correct(), target);
  1886. }
  1887. // optional float locate_front_theta = 10 [default = 0];
  1888. if (cached_has_bits & 0x00000200u) {
  1889. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->locate_front_theta(), target);
  1890. }
  1891. // optional float uniformed_car_x = 11;
  1892. if (cached_has_bits & 0x00000400u) {
  1893. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->uniformed_car_x(), target);
  1894. }
  1895. // optional float uniformed_car_y = 12;
  1896. if (cached_has_bits & 0x00000800u) {
  1897. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->uniformed_car_y(), target);
  1898. }
  1899. if (_internal_metadata_.have_unknown_fields()) {
  1900. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1901. _internal_metadata_.unknown_fields(), target);
  1902. }
  1903. // @@protoc_insertion_point(serialize_to_array_end:message.Locate_information)
  1904. return target;
  1905. }
  1906. size_t Locate_information::ByteSizeLong() const {
  1907. // @@protoc_insertion_point(message_byte_size_start:message.Locate_information)
  1908. size_t total_size = 0;
  1909. if (_internal_metadata_.have_unknown_fields()) {
  1910. total_size +=
  1911. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1912. _internal_metadata_.unknown_fields());
  1913. }
  1914. if (_has_bits_[0 / 32] & 255u) {
  1915. // optional float locate_x = 1 [default = 0];
  1916. if (has_locate_x()) {
  1917. total_size += 1 + 4;
  1918. }
  1919. // optional float locate_y = 2 [default = 0];
  1920. if (has_locate_y()) {
  1921. total_size += 1 + 4;
  1922. }
  1923. // optional float locate_angle = 3 [default = 0];
  1924. if (has_locate_angle()) {
  1925. total_size += 1 + 4;
  1926. }
  1927. // optional float locate_length = 4 [default = 0];
  1928. if (has_locate_length()) {
  1929. total_size += 1 + 4;
  1930. }
  1931. // optional float locate_width = 5 [default = 0];
  1932. if (has_locate_width()) {
  1933. total_size += 1 + 4;
  1934. }
  1935. // optional float locate_height = 6 [default = 0];
  1936. if (has_locate_height()) {
  1937. total_size += 1 + 4;
  1938. }
  1939. // optional float locate_wheel_base = 7 [default = 0];
  1940. if (has_locate_wheel_base()) {
  1941. total_size += 1 + 4;
  1942. }
  1943. // optional float locate_wheel_width = 8 [default = 0];
  1944. if (has_locate_wheel_width()) {
  1945. total_size += 1 + 4;
  1946. }
  1947. }
  1948. if (_has_bits_[8 / 32] & 3840u) {
  1949. // optional bool locate_correct = 9 [default = false];
  1950. if (has_locate_correct()) {
  1951. total_size += 1 + 1;
  1952. }
  1953. // optional float locate_front_theta = 10 [default = 0];
  1954. if (has_locate_front_theta()) {
  1955. total_size += 1 + 4;
  1956. }
  1957. // optional float uniformed_car_x = 11;
  1958. if (has_uniformed_car_x()) {
  1959. total_size += 1 + 4;
  1960. }
  1961. // optional float uniformed_car_y = 12;
  1962. if (has_uniformed_car_y()) {
  1963. total_size += 1 + 4;
  1964. }
  1965. }
  1966. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1967. SetCachedSize(cached_size);
  1968. return total_size;
  1969. }
  1970. void Locate_information::MergeFrom(const ::google::protobuf::Message& from) {
  1971. // @@protoc_insertion_point(generalized_merge_from_start:message.Locate_information)
  1972. GOOGLE_DCHECK_NE(&from, this);
  1973. const Locate_information* source =
  1974. ::google::protobuf::internal::DynamicCastToGenerated<const Locate_information>(
  1975. &from);
  1976. if (source == NULL) {
  1977. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Locate_information)
  1978. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1979. } else {
  1980. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Locate_information)
  1981. MergeFrom(*source);
  1982. }
  1983. }
  1984. void Locate_information::MergeFrom(const Locate_information& from) {
  1985. // @@protoc_insertion_point(class_specific_merge_from_start:message.Locate_information)
  1986. GOOGLE_DCHECK_NE(&from, this);
  1987. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1988. ::google::protobuf::uint32 cached_has_bits = 0;
  1989. (void) cached_has_bits;
  1990. cached_has_bits = from._has_bits_[0];
  1991. if (cached_has_bits & 255u) {
  1992. if (cached_has_bits & 0x00000001u) {
  1993. locate_x_ = from.locate_x_;
  1994. }
  1995. if (cached_has_bits & 0x00000002u) {
  1996. locate_y_ = from.locate_y_;
  1997. }
  1998. if (cached_has_bits & 0x00000004u) {
  1999. locate_angle_ = from.locate_angle_;
  2000. }
  2001. if (cached_has_bits & 0x00000008u) {
  2002. locate_length_ = from.locate_length_;
  2003. }
  2004. if (cached_has_bits & 0x00000010u) {
  2005. locate_width_ = from.locate_width_;
  2006. }
  2007. if (cached_has_bits & 0x00000020u) {
  2008. locate_height_ = from.locate_height_;
  2009. }
  2010. if (cached_has_bits & 0x00000040u) {
  2011. locate_wheel_base_ = from.locate_wheel_base_;
  2012. }
  2013. if (cached_has_bits & 0x00000080u) {
  2014. locate_wheel_width_ = from.locate_wheel_width_;
  2015. }
  2016. _has_bits_[0] |= cached_has_bits;
  2017. }
  2018. if (cached_has_bits & 3840u) {
  2019. if (cached_has_bits & 0x00000100u) {
  2020. locate_correct_ = from.locate_correct_;
  2021. }
  2022. if (cached_has_bits & 0x00000200u) {
  2023. locate_front_theta_ = from.locate_front_theta_;
  2024. }
  2025. if (cached_has_bits & 0x00000400u) {
  2026. uniformed_car_x_ = from.uniformed_car_x_;
  2027. }
  2028. if (cached_has_bits & 0x00000800u) {
  2029. uniformed_car_y_ = from.uniformed_car_y_;
  2030. }
  2031. _has_bits_[0] |= cached_has_bits;
  2032. }
  2033. }
  2034. void Locate_information::CopyFrom(const ::google::protobuf::Message& from) {
  2035. // @@protoc_insertion_point(generalized_copy_from_start:message.Locate_information)
  2036. if (&from == this) return;
  2037. Clear();
  2038. MergeFrom(from);
  2039. }
  2040. void Locate_information::CopyFrom(const Locate_information& from) {
  2041. // @@protoc_insertion_point(class_specific_copy_from_start:message.Locate_information)
  2042. if (&from == this) return;
  2043. Clear();
  2044. MergeFrom(from);
  2045. }
  2046. bool Locate_information::IsInitialized() const {
  2047. return true;
  2048. }
  2049. void Locate_information::Swap(Locate_information* other) {
  2050. if (other == this) return;
  2051. InternalSwap(other);
  2052. }
  2053. void Locate_information::InternalSwap(Locate_information* other) {
  2054. using std::swap;
  2055. swap(locate_x_, other->locate_x_);
  2056. swap(locate_y_, other->locate_y_);
  2057. swap(locate_angle_, other->locate_angle_);
  2058. swap(locate_length_, other->locate_length_);
  2059. swap(locate_width_, other->locate_width_);
  2060. swap(locate_height_, other->locate_height_);
  2061. swap(locate_wheel_base_, other->locate_wheel_base_);
  2062. swap(locate_wheel_width_, other->locate_wheel_width_);
  2063. swap(locate_correct_, other->locate_correct_);
  2064. swap(locate_front_theta_, other->locate_front_theta_);
  2065. swap(uniformed_car_x_, other->uniformed_car_x_);
  2066. swap(uniformed_car_y_, other->uniformed_car_y_);
  2067. swap(_has_bits_[0], other->_has_bits_[0]);
  2068. _internal_metadata_.Swap(&other->_internal_metadata_);
  2069. }
  2070. ::google::protobuf::Metadata Locate_information::GetMetadata() const {
  2071. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2072. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  2073. }
  2074. // ===================================================================
  2075. void Car_info::InitAsDefaultInstance() {
  2076. }
  2077. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2078. const int Car_info::kCarLengthFieldNumber;
  2079. const int Car_info::kCarWidthFieldNumber;
  2080. const int Car_info::kCarHeightFieldNumber;
  2081. const int Car_info::kLicenseFieldNumber;
  2082. const int Car_info::kCarWheelBaseFieldNumber;
  2083. const int Car_info::kCarWheelWidthFieldNumber;
  2084. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2085. Car_info::Car_info()
  2086. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2087. ::google::protobuf::internal::InitSCC(
  2088. &protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
  2089. SharedCtor();
  2090. // @@protoc_insertion_point(constructor:message.Car_info)
  2091. }
  2092. Car_info::Car_info(const Car_info& from)
  2093. : ::google::protobuf::Message(),
  2094. _internal_metadata_(NULL),
  2095. _has_bits_(from._has_bits_) {
  2096. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2097. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2098. if (from.has_license()) {
  2099. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  2100. }
  2101. ::memcpy(&car_length_, &from.car_length_,
  2102. static_cast<size_t>(reinterpret_cast<char*>(&car_wheel_width_) -
  2103. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2104. // @@protoc_insertion_point(copy_constructor:message.Car_info)
  2105. }
  2106. void Car_info::SharedCtor() {
  2107. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2108. ::memset(&car_length_, 0, static_cast<size_t>(
  2109. reinterpret_cast<char*>(&car_wheel_width_) -
  2110. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2111. }
  2112. Car_info::~Car_info() {
  2113. // @@protoc_insertion_point(destructor:message.Car_info)
  2114. SharedDtor();
  2115. }
  2116. void Car_info::SharedDtor() {
  2117. license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2118. }
  2119. void Car_info::SetCachedSize(int size) const {
  2120. _cached_size_.Set(size);
  2121. }
  2122. const ::google::protobuf::Descriptor* Car_info::descriptor() {
  2123. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2124. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2125. }
  2126. const Car_info& Car_info::default_instance() {
  2127. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
  2128. return *internal_default_instance();
  2129. }
  2130. void Car_info::Clear() {
  2131. // @@protoc_insertion_point(message_clear_start:message.Car_info)
  2132. ::google::protobuf::uint32 cached_has_bits = 0;
  2133. // Prevent compiler warnings about cached_has_bits being unused
  2134. (void) cached_has_bits;
  2135. cached_has_bits = _has_bits_[0];
  2136. if (cached_has_bits & 0x00000001u) {
  2137. license_.ClearNonDefaultToEmptyNoArena();
  2138. }
  2139. if (cached_has_bits & 62u) {
  2140. ::memset(&car_length_, 0, static_cast<size_t>(
  2141. reinterpret_cast<char*>(&car_wheel_width_) -
  2142. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2143. }
  2144. _has_bits_.Clear();
  2145. _internal_metadata_.Clear();
  2146. }
  2147. bool Car_info::MergePartialFromCodedStream(
  2148. ::google::protobuf::io::CodedInputStream* input) {
  2149. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2150. ::google::protobuf::uint32 tag;
  2151. // @@protoc_insertion_point(parse_start:message.Car_info)
  2152. for (;;) {
  2153. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2154. tag = p.first;
  2155. if (!p.second) goto handle_unusual;
  2156. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2157. // optional float car_length = 1 [default = 0];
  2158. case 1: {
  2159. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2160. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2161. set_has_car_length();
  2162. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2163. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2164. input, &car_length_)));
  2165. } else {
  2166. goto handle_unusual;
  2167. }
  2168. break;
  2169. }
  2170. // optional float car_width = 2 [default = 0];
  2171. case 2: {
  2172. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2173. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2174. set_has_car_width();
  2175. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2176. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2177. input, &car_width_)));
  2178. } else {
  2179. goto handle_unusual;
  2180. }
  2181. break;
  2182. }
  2183. // optional float car_height = 3 [default = 0];
  2184. case 3: {
  2185. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2186. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2187. set_has_car_height();
  2188. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2189. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2190. input, &car_height_)));
  2191. } else {
  2192. goto handle_unusual;
  2193. }
  2194. break;
  2195. }
  2196. // optional string license = 4 [default = ""];
  2197. case 4: {
  2198. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2199. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2200. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2201. input, this->mutable_license()));
  2202. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2203. this->license().data(), static_cast<int>(this->license().length()),
  2204. ::google::protobuf::internal::WireFormat::PARSE,
  2205. "message.Car_info.license");
  2206. } else {
  2207. goto handle_unusual;
  2208. }
  2209. break;
  2210. }
  2211. // optional float car_wheel_base = 5 [default = 0];
  2212. case 5: {
  2213. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2214. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  2215. set_has_car_wheel_base();
  2216. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2217. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2218. input, &car_wheel_base_)));
  2219. } else {
  2220. goto handle_unusual;
  2221. }
  2222. break;
  2223. }
  2224. // optional float car_wheel_width = 6 [default = 0];
  2225. case 6: {
  2226. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2227. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  2228. set_has_car_wheel_width();
  2229. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2230. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2231. input, &car_wheel_width_)));
  2232. } else {
  2233. goto handle_unusual;
  2234. }
  2235. break;
  2236. }
  2237. default: {
  2238. handle_unusual:
  2239. if (tag == 0) {
  2240. goto success;
  2241. }
  2242. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2243. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2244. break;
  2245. }
  2246. }
  2247. }
  2248. success:
  2249. // @@protoc_insertion_point(parse_success:message.Car_info)
  2250. return true;
  2251. failure:
  2252. // @@protoc_insertion_point(parse_failure:message.Car_info)
  2253. return false;
  2254. #undef DO_
  2255. }
  2256. void Car_info::SerializeWithCachedSizes(
  2257. ::google::protobuf::io::CodedOutputStream* output) const {
  2258. // @@protoc_insertion_point(serialize_start:message.Car_info)
  2259. ::google::protobuf::uint32 cached_has_bits = 0;
  2260. (void) cached_has_bits;
  2261. cached_has_bits = _has_bits_[0];
  2262. // optional float car_length = 1 [default = 0];
  2263. if (cached_has_bits & 0x00000002u) {
  2264. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->car_length(), output);
  2265. }
  2266. // optional float car_width = 2 [default = 0];
  2267. if (cached_has_bits & 0x00000004u) {
  2268. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->car_width(), output);
  2269. }
  2270. // optional float car_height = 3 [default = 0];
  2271. if (cached_has_bits & 0x00000008u) {
  2272. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->car_height(), output);
  2273. }
  2274. // optional string license = 4 [default = ""];
  2275. if (cached_has_bits & 0x00000001u) {
  2276. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2277. this->license().data(), static_cast<int>(this->license().length()),
  2278. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2279. "message.Car_info.license");
  2280. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2281. 4, this->license(), output);
  2282. }
  2283. // optional float car_wheel_base = 5 [default = 0];
  2284. if (cached_has_bits & 0x00000010u) {
  2285. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->car_wheel_base(), output);
  2286. }
  2287. // optional float car_wheel_width = 6 [default = 0];
  2288. if (cached_has_bits & 0x00000020u) {
  2289. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->car_wheel_width(), output);
  2290. }
  2291. if (_internal_metadata_.have_unknown_fields()) {
  2292. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2293. _internal_metadata_.unknown_fields(), output);
  2294. }
  2295. // @@protoc_insertion_point(serialize_end:message.Car_info)
  2296. }
  2297. ::google::protobuf::uint8* Car_info::InternalSerializeWithCachedSizesToArray(
  2298. bool deterministic, ::google::protobuf::uint8* target) const {
  2299. (void)deterministic; // Unused
  2300. // @@protoc_insertion_point(serialize_to_array_start:message.Car_info)
  2301. ::google::protobuf::uint32 cached_has_bits = 0;
  2302. (void) cached_has_bits;
  2303. cached_has_bits = _has_bits_[0];
  2304. // optional float car_length = 1 [default = 0];
  2305. if (cached_has_bits & 0x00000002u) {
  2306. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->car_length(), target);
  2307. }
  2308. // optional float car_width = 2 [default = 0];
  2309. if (cached_has_bits & 0x00000004u) {
  2310. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->car_width(), target);
  2311. }
  2312. // optional float car_height = 3 [default = 0];
  2313. if (cached_has_bits & 0x00000008u) {
  2314. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->car_height(), target);
  2315. }
  2316. // optional string license = 4 [default = ""];
  2317. if (cached_has_bits & 0x00000001u) {
  2318. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2319. this->license().data(), static_cast<int>(this->license().length()),
  2320. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2321. "message.Car_info.license");
  2322. target =
  2323. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2324. 4, this->license(), target);
  2325. }
  2326. // optional float car_wheel_base = 5 [default = 0];
  2327. if (cached_has_bits & 0x00000010u) {
  2328. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->car_wheel_base(), target);
  2329. }
  2330. // optional float car_wheel_width = 6 [default = 0];
  2331. if (cached_has_bits & 0x00000020u) {
  2332. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->car_wheel_width(), target);
  2333. }
  2334. if (_internal_metadata_.have_unknown_fields()) {
  2335. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2336. _internal_metadata_.unknown_fields(), target);
  2337. }
  2338. // @@protoc_insertion_point(serialize_to_array_end:message.Car_info)
  2339. return target;
  2340. }
  2341. size_t Car_info::ByteSizeLong() const {
  2342. // @@protoc_insertion_point(message_byte_size_start:message.Car_info)
  2343. size_t total_size = 0;
  2344. if (_internal_metadata_.have_unknown_fields()) {
  2345. total_size +=
  2346. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2347. _internal_metadata_.unknown_fields());
  2348. }
  2349. if (_has_bits_[0 / 32] & 63u) {
  2350. // optional string license = 4 [default = ""];
  2351. if (has_license()) {
  2352. total_size += 1 +
  2353. ::google::protobuf::internal::WireFormatLite::StringSize(
  2354. this->license());
  2355. }
  2356. // optional float car_length = 1 [default = 0];
  2357. if (has_car_length()) {
  2358. total_size += 1 + 4;
  2359. }
  2360. // optional float car_width = 2 [default = 0];
  2361. if (has_car_width()) {
  2362. total_size += 1 + 4;
  2363. }
  2364. // optional float car_height = 3 [default = 0];
  2365. if (has_car_height()) {
  2366. total_size += 1 + 4;
  2367. }
  2368. // optional float car_wheel_base = 5 [default = 0];
  2369. if (has_car_wheel_base()) {
  2370. total_size += 1 + 4;
  2371. }
  2372. // optional float car_wheel_width = 6 [default = 0];
  2373. if (has_car_wheel_width()) {
  2374. total_size += 1 + 4;
  2375. }
  2376. }
  2377. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2378. SetCachedSize(cached_size);
  2379. return total_size;
  2380. }
  2381. void Car_info::MergeFrom(const ::google::protobuf::Message& from) {
  2382. // @@protoc_insertion_point(generalized_merge_from_start:message.Car_info)
  2383. GOOGLE_DCHECK_NE(&from, this);
  2384. const Car_info* source =
  2385. ::google::protobuf::internal::DynamicCastToGenerated<const Car_info>(
  2386. &from);
  2387. if (source == NULL) {
  2388. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Car_info)
  2389. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2390. } else {
  2391. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Car_info)
  2392. MergeFrom(*source);
  2393. }
  2394. }
  2395. void Car_info::MergeFrom(const Car_info& from) {
  2396. // @@protoc_insertion_point(class_specific_merge_from_start:message.Car_info)
  2397. GOOGLE_DCHECK_NE(&from, this);
  2398. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2399. ::google::protobuf::uint32 cached_has_bits = 0;
  2400. (void) cached_has_bits;
  2401. cached_has_bits = from._has_bits_[0];
  2402. if (cached_has_bits & 63u) {
  2403. if (cached_has_bits & 0x00000001u) {
  2404. set_has_license();
  2405. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  2406. }
  2407. if (cached_has_bits & 0x00000002u) {
  2408. car_length_ = from.car_length_;
  2409. }
  2410. if (cached_has_bits & 0x00000004u) {
  2411. car_width_ = from.car_width_;
  2412. }
  2413. if (cached_has_bits & 0x00000008u) {
  2414. car_height_ = from.car_height_;
  2415. }
  2416. if (cached_has_bits & 0x00000010u) {
  2417. car_wheel_base_ = from.car_wheel_base_;
  2418. }
  2419. if (cached_has_bits & 0x00000020u) {
  2420. car_wheel_width_ = from.car_wheel_width_;
  2421. }
  2422. _has_bits_[0] |= cached_has_bits;
  2423. }
  2424. }
  2425. void Car_info::CopyFrom(const ::google::protobuf::Message& from) {
  2426. // @@protoc_insertion_point(generalized_copy_from_start:message.Car_info)
  2427. if (&from == this) return;
  2428. Clear();
  2429. MergeFrom(from);
  2430. }
  2431. void Car_info::CopyFrom(const Car_info& from) {
  2432. // @@protoc_insertion_point(class_specific_copy_from_start:message.Car_info)
  2433. if (&from == this) return;
  2434. Clear();
  2435. MergeFrom(from);
  2436. }
  2437. bool Car_info::IsInitialized() const {
  2438. return true;
  2439. }
  2440. void Car_info::Swap(Car_info* other) {
  2441. if (other == this) return;
  2442. InternalSwap(other);
  2443. }
  2444. void Car_info::InternalSwap(Car_info* other) {
  2445. using std::swap;
  2446. license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2447. GetArenaNoVirtual());
  2448. swap(car_length_, other->car_length_);
  2449. swap(car_width_, other->car_width_);
  2450. swap(car_height_, other->car_height_);
  2451. swap(car_wheel_base_, other->car_wheel_base_);
  2452. swap(car_wheel_width_, other->car_wheel_width_);
  2453. swap(_has_bits_[0], other->_has_bits_[0]);
  2454. _internal_metadata_.Swap(&other->_internal_metadata_);
  2455. }
  2456. ::google::protobuf::Metadata Car_info::GetMetadata() const {
  2457. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2458. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  2459. }
  2460. // ===================================================================
  2461. void Parkspace_info::InitAsDefaultInstance() {
  2462. ::message::_Parkspace_info_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  2463. ::message::Car_info::internal_default_instance());
  2464. }
  2465. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2466. const int Parkspace_info::kParkingspaceIndexIdFieldNumber;
  2467. const int Parkspace_info::kParkingspaceTypeFieldNumber;
  2468. const int Parkspace_info::kParkingspaceUnitIdFieldNumber;
  2469. const int Parkspace_info::kParkingspaceLabelIdFieldNumber;
  2470. const int Parkspace_info::kParkingspaceRoomIdFieldNumber;
  2471. const int Parkspace_info::kParkingspaceDirectionFieldNumber;
  2472. const int Parkspace_info::kParkingspaceFloorIdFieldNumber;
  2473. const int Parkspace_info::kParkingspaceWidthFieldNumber;
  2474. const int Parkspace_info::kParkingspaceHeightFieldNumber;
  2475. const int Parkspace_info::kParkingspaceStatusFieldNumber;
  2476. const int Parkspace_info::kCarInfoFieldNumber;
  2477. const int Parkspace_info::kEntryTimeFieldNumber;
  2478. const int Parkspace_info::kLeaveTimeFieldNumber;
  2479. const int Parkspace_info::kParkspacePathFieldNumber;
  2480. const int Parkspace_info::kPathEstimateTimeFieldNumber;
  2481. const int Parkspace_info::kParkspaceStatusTargetFieldNumber;
  2482. const int Parkspace_info::kCarTypeFieldNumber;
  2483. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2484. Parkspace_info::Parkspace_info()
  2485. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2486. ::google::protobuf::internal::InitSCC(
  2487. &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
  2488. SharedCtor();
  2489. // @@protoc_insertion_point(constructor:message.Parkspace_info)
  2490. }
  2491. Parkspace_info::Parkspace_info(const Parkspace_info& from)
  2492. : ::google::protobuf::Message(),
  2493. _internal_metadata_(NULL),
  2494. _has_bits_(from._has_bits_) {
  2495. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2496. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2497. if (from.has_entry_time()) {
  2498. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  2499. }
  2500. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2501. if (from.has_leave_time()) {
  2502. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  2503. }
  2504. if (from.has_car_info()) {
  2505. car_info_ = new ::message::Car_info(*from.car_info_);
  2506. } else {
  2507. car_info_ = NULL;
  2508. }
  2509. ::memcpy(&parkingspace_index_id_, &from.parkingspace_index_id_,
  2510. static_cast<size_t>(reinterpret_cast<char*>(&car_type_) -
  2511. reinterpret_cast<char*>(&parkingspace_index_id_)) + sizeof(car_type_));
  2512. // @@protoc_insertion_point(copy_constructor:message.Parkspace_info)
  2513. }
  2514. void Parkspace_info::SharedCtor() {
  2515. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2516. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2517. ::memset(&car_info_, 0, static_cast<size_t>(
  2518. reinterpret_cast<char*>(&car_type_) -
  2519. reinterpret_cast<char*>(&car_info_)) + sizeof(car_type_));
  2520. }
  2521. Parkspace_info::~Parkspace_info() {
  2522. // @@protoc_insertion_point(destructor:message.Parkspace_info)
  2523. SharedDtor();
  2524. }
  2525. void Parkspace_info::SharedDtor() {
  2526. entry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2527. leave_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2528. if (this != internal_default_instance()) delete car_info_;
  2529. }
  2530. void Parkspace_info::SetCachedSize(int size) const {
  2531. _cached_size_.Set(size);
  2532. }
  2533. const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
  2534. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2535. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2536. }
  2537. const Parkspace_info& Parkspace_info::default_instance() {
  2538. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
  2539. return *internal_default_instance();
  2540. }
  2541. void Parkspace_info::Clear() {
  2542. // @@protoc_insertion_point(message_clear_start:message.Parkspace_info)
  2543. ::google::protobuf::uint32 cached_has_bits = 0;
  2544. // Prevent compiler warnings about cached_has_bits being unused
  2545. (void) cached_has_bits;
  2546. cached_has_bits = _has_bits_[0];
  2547. if (cached_has_bits & 7u) {
  2548. if (cached_has_bits & 0x00000001u) {
  2549. entry_time_.ClearNonDefaultToEmptyNoArena();
  2550. }
  2551. if (cached_has_bits & 0x00000002u) {
  2552. leave_time_.ClearNonDefaultToEmptyNoArena();
  2553. }
  2554. if (cached_has_bits & 0x00000004u) {
  2555. GOOGLE_DCHECK(car_info_ != NULL);
  2556. car_info_->Clear();
  2557. }
  2558. }
  2559. if (cached_has_bits & 248u) {
  2560. ::memset(&parkingspace_index_id_, 0, static_cast<size_t>(
  2561. reinterpret_cast<char*>(&parkingspace_room_id_) -
  2562. reinterpret_cast<char*>(&parkingspace_index_id_)) + sizeof(parkingspace_room_id_));
  2563. }
  2564. if (cached_has_bits & 65280u) {
  2565. ::memset(&parkingspace_direction_, 0, static_cast<size_t>(
  2566. reinterpret_cast<char*>(&parkspace_status_target_) -
  2567. reinterpret_cast<char*>(&parkingspace_direction_)) + sizeof(parkspace_status_target_));
  2568. }
  2569. car_type_ = 0;
  2570. _has_bits_.Clear();
  2571. _internal_metadata_.Clear();
  2572. }
  2573. bool Parkspace_info::MergePartialFromCodedStream(
  2574. ::google::protobuf::io::CodedInputStream* input) {
  2575. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2576. ::google::protobuf::uint32 tag;
  2577. // @@protoc_insertion_point(parse_start:message.Parkspace_info)
  2578. for (;;) {
  2579. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  2580. tag = p.first;
  2581. if (!p.second) goto handle_unusual;
  2582. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2583. // optional int32 parkingspace_index_id = 1;
  2584. case 1: {
  2585. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2586. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2587. set_has_parkingspace_index_id();
  2588. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2589. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2590. input, &parkingspace_index_id_)));
  2591. } else {
  2592. goto handle_unusual;
  2593. }
  2594. break;
  2595. }
  2596. // optional .message.Parkspace_type parkingspace_type = 2;
  2597. case 2: {
  2598. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2599. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2600. int value;
  2601. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2602. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2603. input, &value)));
  2604. if (::message::Parkspace_type_IsValid(value)) {
  2605. set_parkingspace_type(static_cast< ::message::Parkspace_type >(value));
  2606. } else {
  2607. mutable_unknown_fields()->AddVarint(
  2608. 2, static_cast< ::google::protobuf::uint64>(value));
  2609. }
  2610. } else {
  2611. goto handle_unusual;
  2612. }
  2613. break;
  2614. }
  2615. // optional int32 parkingspace_unit_id = 3;
  2616. case 3: {
  2617. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2618. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2619. set_has_parkingspace_unit_id();
  2620. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2621. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2622. input, &parkingspace_unit_id_)));
  2623. } else {
  2624. goto handle_unusual;
  2625. }
  2626. break;
  2627. }
  2628. // optional int32 parkingspace_label_id = 4;
  2629. case 4: {
  2630. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2631. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2632. set_has_parkingspace_label_id();
  2633. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2634. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2635. input, &parkingspace_label_id_)));
  2636. } else {
  2637. goto handle_unusual;
  2638. }
  2639. break;
  2640. }
  2641. // optional int32 parkingspace_room_id = 5;
  2642. case 5: {
  2643. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2644. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2645. set_has_parkingspace_room_id();
  2646. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2647. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2648. input, &parkingspace_room_id_)));
  2649. } else {
  2650. goto handle_unusual;
  2651. }
  2652. break;
  2653. }
  2654. // optional .message.Direction parkingspace_direction = 6;
  2655. case 6: {
  2656. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2657. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2658. int value;
  2659. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2660. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2661. input, &value)));
  2662. if (::message::Direction_IsValid(value)) {
  2663. set_parkingspace_direction(static_cast< ::message::Direction >(value));
  2664. } else {
  2665. mutable_unknown_fields()->AddVarint(
  2666. 6, static_cast< ::google::protobuf::uint64>(value));
  2667. }
  2668. } else {
  2669. goto handle_unusual;
  2670. }
  2671. break;
  2672. }
  2673. // optional int32 parkingspace_floor_id = 7;
  2674. case 7: {
  2675. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2676. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  2677. set_has_parkingspace_floor_id();
  2678. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2679. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2680. input, &parkingspace_floor_id_)));
  2681. } else {
  2682. goto handle_unusual;
  2683. }
  2684. break;
  2685. }
  2686. // optional float parkingspace_width = 8;
  2687. case 8: {
  2688. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2689. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  2690. set_has_parkingspace_width();
  2691. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2692. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2693. input, &parkingspace_width_)));
  2694. } else {
  2695. goto handle_unusual;
  2696. }
  2697. break;
  2698. }
  2699. // optional float parkingspace_height = 9;
  2700. case 9: {
  2701. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2702. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  2703. set_has_parkingspace_height();
  2704. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2705. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2706. input, &parkingspace_height_)));
  2707. } else {
  2708. goto handle_unusual;
  2709. }
  2710. break;
  2711. }
  2712. // optional .message.Parkspace_status parkingspace_status = 10;
  2713. case 10: {
  2714. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2715. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  2716. int value;
  2717. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2718. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2719. input, &value)));
  2720. if (::message::Parkspace_status_IsValid(value)) {
  2721. set_parkingspace_status(static_cast< ::message::Parkspace_status >(value));
  2722. } else {
  2723. mutable_unknown_fields()->AddVarint(
  2724. 10, static_cast< ::google::protobuf::uint64>(value));
  2725. }
  2726. } else {
  2727. goto handle_unusual;
  2728. }
  2729. break;
  2730. }
  2731. // optional .message.Car_info car_info = 11;
  2732. case 11: {
  2733. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2734. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  2735. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2736. input, mutable_car_info()));
  2737. } else {
  2738. goto handle_unusual;
  2739. }
  2740. break;
  2741. }
  2742. // optional string entry_time = 12;
  2743. case 12: {
  2744. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2745. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  2746. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2747. input, this->mutable_entry_time()));
  2748. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2749. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  2750. ::google::protobuf::internal::WireFormat::PARSE,
  2751. "message.Parkspace_info.entry_time");
  2752. } else {
  2753. goto handle_unusual;
  2754. }
  2755. break;
  2756. }
  2757. // optional string leave_time = 13;
  2758. case 13: {
  2759. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2760. static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
  2761. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2762. input, this->mutable_leave_time()));
  2763. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2764. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  2765. ::google::protobuf::internal::WireFormat::PARSE,
  2766. "message.Parkspace_info.leave_time");
  2767. } else {
  2768. goto handle_unusual;
  2769. }
  2770. break;
  2771. }
  2772. // optional .message.Parkspace_path parkspace_path = 14;
  2773. case 14: {
  2774. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2775. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  2776. int value;
  2777. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2778. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2779. input, &value)));
  2780. if (::message::Parkspace_path_IsValid(value)) {
  2781. set_parkspace_path(static_cast< ::message::Parkspace_path >(value));
  2782. } else {
  2783. mutable_unknown_fields()->AddVarint(
  2784. 14, static_cast< ::google::protobuf::uint64>(value));
  2785. }
  2786. } else {
  2787. goto handle_unusual;
  2788. }
  2789. break;
  2790. }
  2791. // optional float path_estimate_time = 15;
  2792. case 15: {
  2793. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2794. static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
  2795. set_has_path_estimate_time();
  2796. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2797. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2798. input, &path_estimate_time_)));
  2799. } else {
  2800. goto handle_unusual;
  2801. }
  2802. break;
  2803. }
  2804. // optional .message.Parkspace_status parkspace_status_target = 16;
  2805. case 16: {
  2806. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2807. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  2808. int value;
  2809. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2810. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2811. input, &value)));
  2812. if (::message::Parkspace_status_IsValid(value)) {
  2813. set_parkspace_status_target(static_cast< ::message::Parkspace_status >(value));
  2814. } else {
  2815. mutable_unknown_fields()->AddVarint(
  2816. 16, static_cast< ::google::protobuf::uint64>(value));
  2817. }
  2818. } else {
  2819. goto handle_unusual;
  2820. }
  2821. break;
  2822. }
  2823. // optional .message.Car_type car_type = 17;
  2824. case 17: {
  2825. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2826. static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
  2827. int value;
  2828. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2829. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2830. input, &value)));
  2831. if (::message::Car_type_IsValid(value)) {
  2832. set_car_type(static_cast< ::message::Car_type >(value));
  2833. } else {
  2834. mutable_unknown_fields()->AddVarint(
  2835. 17, static_cast< ::google::protobuf::uint64>(value));
  2836. }
  2837. } else {
  2838. goto handle_unusual;
  2839. }
  2840. break;
  2841. }
  2842. default: {
  2843. handle_unusual:
  2844. if (tag == 0) {
  2845. goto success;
  2846. }
  2847. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2848. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2849. break;
  2850. }
  2851. }
  2852. }
  2853. success:
  2854. // @@protoc_insertion_point(parse_success:message.Parkspace_info)
  2855. return true;
  2856. failure:
  2857. // @@protoc_insertion_point(parse_failure:message.Parkspace_info)
  2858. return false;
  2859. #undef DO_
  2860. }
  2861. void Parkspace_info::SerializeWithCachedSizes(
  2862. ::google::protobuf::io::CodedOutputStream* output) const {
  2863. // @@protoc_insertion_point(serialize_start:message.Parkspace_info)
  2864. ::google::protobuf::uint32 cached_has_bits = 0;
  2865. (void) cached_has_bits;
  2866. cached_has_bits = _has_bits_[0];
  2867. // optional int32 parkingspace_index_id = 1;
  2868. if (cached_has_bits & 0x00000008u) {
  2869. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parkingspace_index_id(), output);
  2870. }
  2871. // optional .message.Parkspace_type parkingspace_type = 2;
  2872. if (cached_has_bits & 0x00000010u) {
  2873. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2874. 2, this->parkingspace_type(), output);
  2875. }
  2876. // optional int32 parkingspace_unit_id = 3;
  2877. if (cached_has_bits & 0x00000020u) {
  2878. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->parkingspace_unit_id(), output);
  2879. }
  2880. // optional int32 parkingspace_label_id = 4;
  2881. if (cached_has_bits & 0x00000040u) {
  2882. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->parkingspace_label_id(), output);
  2883. }
  2884. // optional int32 parkingspace_room_id = 5;
  2885. if (cached_has_bits & 0x00000080u) {
  2886. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parkingspace_room_id(), output);
  2887. }
  2888. // optional .message.Direction parkingspace_direction = 6;
  2889. if (cached_has_bits & 0x00000100u) {
  2890. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2891. 6, this->parkingspace_direction(), output);
  2892. }
  2893. // optional int32 parkingspace_floor_id = 7;
  2894. if (cached_has_bits & 0x00000200u) {
  2895. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->parkingspace_floor_id(), output);
  2896. }
  2897. // optional float parkingspace_width = 8;
  2898. if (cached_has_bits & 0x00000400u) {
  2899. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->parkingspace_width(), output);
  2900. }
  2901. // optional float parkingspace_height = 9;
  2902. if (cached_has_bits & 0x00000800u) {
  2903. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->parkingspace_height(), output);
  2904. }
  2905. // optional .message.Parkspace_status parkingspace_status = 10;
  2906. if (cached_has_bits & 0x00001000u) {
  2907. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2908. 10, this->parkingspace_status(), output);
  2909. }
  2910. // optional .message.Car_info car_info = 11;
  2911. if (cached_has_bits & 0x00000004u) {
  2912. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2913. 11, this->_internal_car_info(), output);
  2914. }
  2915. // optional string entry_time = 12;
  2916. if (cached_has_bits & 0x00000001u) {
  2917. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2918. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  2919. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2920. "message.Parkspace_info.entry_time");
  2921. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2922. 12, this->entry_time(), output);
  2923. }
  2924. // optional string leave_time = 13;
  2925. if (cached_has_bits & 0x00000002u) {
  2926. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2927. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  2928. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2929. "message.Parkspace_info.leave_time");
  2930. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2931. 13, this->leave_time(), output);
  2932. }
  2933. // optional .message.Parkspace_path parkspace_path = 14;
  2934. if (cached_has_bits & 0x00002000u) {
  2935. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2936. 14, this->parkspace_path(), output);
  2937. }
  2938. // optional float path_estimate_time = 15;
  2939. if (cached_has_bits & 0x00004000u) {
  2940. ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->path_estimate_time(), output);
  2941. }
  2942. // optional .message.Parkspace_status parkspace_status_target = 16;
  2943. if (cached_has_bits & 0x00008000u) {
  2944. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2945. 16, this->parkspace_status_target(), output);
  2946. }
  2947. // optional .message.Car_type car_type = 17;
  2948. if (cached_has_bits & 0x00010000u) {
  2949. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2950. 17, this->car_type(), output);
  2951. }
  2952. if (_internal_metadata_.have_unknown_fields()) {
  2953. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2954. _internal_metadata_.unknown_fields(), output);
  2955. }
  2956. // @@protoc_insertion_point(serialize_end:message.Parkspace_info)
  2957. }
  2958. ::google::protobuf::uint8* Parkspace_info::InternalSerializeWithCachedSizesToArray(
  2959. bool deterministic, ::google::protobuf::uint8* target) const {
  2960. (void)deterministic; // Unused
  2961. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_info)
  2962. ::google::protobuf::uint32 cached_has_bits = 0;
  2963. (void) cached_has_bits;
  2964. cached_has_bits = _has_bits_[0];
  2965. // optional int32 parkingspace_index_id = 1;
  2966. if (cached_has_bits & 0x00000008u) {
  2967. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parkingspace_index_id(), target);
  2968. }
  2969. // optional .message.Parkspace_type parkingspace_type = 2;
  2970. if (cached_has_bits & 0x00000010u) {
  2971. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2972. 2, this->parkingspace_type(), target);
  2973. }
  2974. // optional int32 parkingspace_unit_id = 3;
  2975. if (cached_has_bits & 0x00000020u) {
  2976. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->parkingspace_unit_id(), target);
  2977. }
  2978. // optional int32 parkingspace_label_id = 4;
  2979. if (cached_has_bits & 0x00000040u) {
  2980. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->parkingspace_label_id(), target);
  2981. }
  2982. // optional int32 parkingspace_room_id = 5;
  2983. if (cached_has_bits & 0x00000080u) {
  2984. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parkingspace_room_id(), target);
  2985. }
  2986. // optional .message.Direction parkingspace_direction = 6;
  2987. if (cached_has_bits & 0x00000100u) {
  2988. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2989. 6, this->parkingspace_direction(), target);
  2990. }
  2991. // optional int32 parkingspace_floor_id = 7;
  2992. if (cached_has_bits & 0x00000200u) {
  2993. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->parkingspace_floor_id(), target);
  2994. }
  2995. // optional float parkingspace_width = 8;
  2996. if (cached_has_bits & 0x00000400u) {
  2997. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->parkingspace_width(), target);
  2998. }
  2999. // optional float parkingspace_height = 9;
  3000. if (cached_has_bits & 0x00000800u) {
  3001. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->parkingspace_height(), target);
  3002. }
  3003. // optional .message.Parkspace_status parkingspace_status = 10;
  3004. if (cached_has_bits & 0x00001000u) {
  3005. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3006. 10, this->parkingspace_status(), target);
  3007. }
  3008. // optional .message.Car_info car_info = 11;
  3009. if (cached_has_bits & 0x00000004u) {
  3010. target = ::google::protobuf::internal::WireFormatLite::
  3011. InternalWriteMessageToArray(
  3012. 11, this->_internal_car_info(), deterministic, target);
  3013. }
  3014. // optional string entry_time = 12;
  3015. if (cached_has_bits & 0x00000001u) {
  3016. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3017. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  3018. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3019. "message.Parkspace_info.entry_time");
  3020. target =
  3021. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3022. 12, this->entry_time(), target);
  3023. }
  3024. // optional string leave_time = 13;
  3025. if (cached_has_bits & 0x00000002u) {
  3026. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3027. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  3028. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3029. "message.Parkspace_info.leave_time");
  3030. target =
  3031. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3032. 13, this->leave_time(), target);
  3033. }
  3034. // optional .message.Parkspace_path parkspace_path = 14;
  3035. if (cached_has_bits & 0x00002000u) {
  3036. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3037. 14, this->parkspace_path(), target);
  3038. }
  3039. // optional float path_estimate_time = 15;
  3040. if (cached_has_bits & 0x00004000u) {
  3041. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->path_estimate_time(), target);
  3042. }
  3043. // optional .message.Parkspace_status parkspace_status_target = 16;
  3044. if (cached_has_bits & 0x00008000u) {
  3045. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3046. 16, this->parkspace_status_target(), target);
  3047. }
  3048. // optional .message.Car_type car_type = 17;
  3049. if (cached_has_bits & 0x00010000u) {
  3050. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3051. 17, this->car_type(), target);
  3052. }
  3053. if (_internal_metadata_.have_unknown_fields()) {
  3054. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3055. _internal_metadata_.unknown_fields(), target);
  3056. }
  3057. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_info)
  3058. return target;
  3059. }
  3060. size_t Parkspace_info::ByteSizeLong() const {
  3061. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_info)
  3062. size_t total_size = 0;
  3063. if (_internal_metadata_.have_unknown_fields()) {
  3064. total_size +=
  3065. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3066. _internal_metadata_.unknown_fields());
  3067. }
  3068. if (_has_bits_[0 / 32] & 255u) {
  3069. // optional string entry_time = 12;
  3070. if (has_entry_time()) {
  3071. total_size += 1 +
  3072. ::google::protobuf::internal::WireFormatLite::StringSize(
  3073. this->entry_time());
  3074. }
  3075. // optional string leave_time = 13;
  3076. if (has_leave_time()) {
  3077. total_size += 1 +
  3078. ::google::protobuf::internal::WireFormatLite::StringSize(
  3079. this->leave_time());
  3080. }
  3081. // optional .message.Car_info car_info = 11;
  3082. if (has_car_info()) {
  3083. total_size += 1 +
  3084. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3085. *car_info_);
  3086. }
  3087. // optional int32 parkingspace_index_id = 1;
  3088. if (has_parkingspace_index_id()) {
  3089. total_size += 1 +
  3090. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3091. this->parkingspace_index_id());
  3092. }
  3093. // optional .message.Parkspace_type parkingspace_type = 2;
  3094. if (has_parkingspace_type()) {
  3095. total_size += 1 +
  3096. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkingspace_type());
  3097. }
  3098. // optional int32 parkingspace_unit_id = 3;
  3099. if (has_parkingspace_unit_id()) {
  3100. total_size += 1 +
  3101. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3102. this->parkingspace_unit_id());
  3103. }
  3104. // optional int32 parkingspace_label_id = 4;
  3105. if (has_parkingspace_label_id()) {
  3106. total_size += 1 +
  3107. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3108. this->parkingspace_label_id());
  3109. }
  3110. // optional int32 parkingspace_room_id = 5;
  3111. if (has_parkingspace_room_id()) {
  3112. total_size += 1 +
  3113. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3114. this->parkingspace_room_id());
  3115. }
  3116. }
  3117. if (_has_bits_[8 / 32] & 65280u) {
  3118. // optional .message.Direction parkingspace_direction = 6;
  3119. if (has_parkingspace_direction()) {
  3120. total_size += 1 +
  3121. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkingspace_direction());
  3122. }
  3123. // optional int32 parkingspace_floor_id = 7;
  3124. if (has_parkingspace_floor_id()) {
  3125. total_size += 1 +
  3126. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3127. this->parkingspace_floor_id());
  3128. }
  3129. // optional float parkingspace_width = 8;
  3130. if (has_parkingspace_width()) {
  3131. total_size += 1 + 4;
  3132. }
  3133. // optional float parkingspace_height = 9;
  3134. if (has_parkingspace_height()) {
  3135. total_size += 1 + 4;
  3136. }
  3137. // optional .message.Parkspace_status parkingspace_status = 10;
  3138. if (has_parkingspace_status()) {
  3139. total_size += 1 +
  3140. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkingspace_status());
  3141. }
  3142. // optional .message.Parkspace_path parkspace_path = 14;
  3143. if (has_parkspace_path()) {
  3144. total_size += 1 +
  3145. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_path());
  3146. }
  3147. // optional float path_estimate_time = 15;
  3148. if (has_path_estimate_time()) {
  3149. total_size += 1 + 4;
  3150. }
  3151. // optional .message.Parkspace_status parkspace_status_target = 16;
  3152. if (has_parkspace_status_target()) {
  3153. total_size += 2 +
  3154. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status_target());
  3155. }
  3156. }
  3157. // optional .message.Car_type car_type = 17;
  3158. if (has_car_type()) {
  3159. total_size += 2 +
  3160. ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type());
  3161. }
  3162. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3163. SetCachedSize(cached_size);
  3164. return total_size;
  3165. }
  3166. void Parkspace_info::MergeFrom(const ::google::protobuf::Message& from) {
  3167. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_info)
  3168. GOOGLE_DCHECK_NE(&from, this);
  3169. const Parkspace_info* source =
  3170. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_info>(
  3171. &from);
  3172. if (source == NULL) {
  3173. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_info)
  3174. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3175. } else {
  3176. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_info)
  3177. MergeFrom(*source);
  3178. }
  3179. }
  3180. void Parkspace_info::MergeFrom(const Parkspace_info& from) {
  3181. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_info)
  3182. GOOGLE_DCHECK_NE(&from, this);
  3183. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3184. ::google::protobuf::uint32 cached_has_bits = 0;
  3185. (void) cached_has_bits;
  3186. cached_has_bits = from._has_bits_[0];
  3187. if (cached_has_bits & 255u) {
  3188. if (cached_has_bits & 0x00000001u) {
  3189. set_has_entry_time();
  3190. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  3191. }
  3192. if (cached_has_bits & 0x00000002u) {
  3193. set_has_leave_time();
  3194. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  3195. }
  3196. if (cached_has_bits & 0x00000004u) {
  3197. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  3198. }
  3199. if (cached_has_bits & 0x00000008u) {
  3200. parkingspace_index_id_ = from.parkingspace_index_id_;
  3201. }
  3202. if (cached_has_bits & 0x00000010u) {
  3203. parkingspace_type_ = from.parkingspace_type_;
  3204. }
  3205. if (cached_has_bits & 0x00000020u) {
  3206. parkingspace_unit_id_ = from.parkingspace_unit_id_;
  3207. }
  3208. if (cached_has_bits & 0x00000040u) {
  3209. parkingspace_label_id_ = from.parkingspace_label_id_;
  3210. }
  3211. if (cached_has_bits & 0x00000080u) {
  3212. parkingspace_room_id_ = from.parkingspace_room_id_;
  3213. }
  3214. _has_bits_[0] |= cached_has_bits;
  3215. }
  3216. if (cached_has_bits & 65280u) {
  3217. if (cached_has_bits & 0x00000100u) {
  3218. parkingspace_direction_ = from.parkingspace_direction_;
  3219. }
  3220. if (cached_has_bits & 0x00000200u) {
  3221. parkingspace_floor_id_ = from.parkingspace_floor_id_;
  3222. }
  3223. if (cached_has_bits & 0x00000400u) {
  3224. parkingspace_width_ = from.parkingspace_width_;
  3225. }
  3226. if (cached_has_bits & 0x00000800u) {
  3227. parkingspace_height_ = from.parkingspace_height_;
  3228. }
  3229. if (cached_has_bits & 0x00001000u) {
  3230. parkingspace_status_ = from.parkingspace_status_;
  3231. }
  3232. if (cached_has_bits & 0x00002000u) {
  3233. parkspace_path_ = from.parkspace_path_;
  3234. }
  3235. if (cached_has_bits & 0x00004000u) {
  3236. path_estimate_time_ = from.path_estimate_time_;
  3237. }
  3238. if (cached_has_bits & 0x00008000u) {
  3239. parkspace_status_target_ = from.parkspace_status_target_;
  3240. }
  3241. _has_bits_[0] |= cached_has_bits;
  3242. }
  3243. if (cached_has_bits & 0x00010000u) {
  3244. set_car_type(from.car_type());
  3245. }
  3246. }
  3247. void Parkspace_info::CopyFrom(const ::google::protobuf::Message& from) {
  3248. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_info)
  3249. if (&from == this) return;
  3250. Clear();
  3251. MergeFrom(from);
  3252. }
  3253. void Parkspace_info::CopyFrom(const Parkspace_info& from) {
  3254. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_info)
  3255. if (&from == this) return;
  3256. Clear();
  3257. MergeFrom(from);
  3258. }
  3259. bool Parkspace_info::IsInitialized() const {
  3260. return true;
  3261. }
  3262. void Parkspace_info::Swap(Parkspace_info* other) {
  3263. if (other == this) return;
  3264. InternalSwap(other);
  3265. }
  3266. void Parkspace_info::InternalSwap(Parkspace_info* other) {
  3267. using std::swap;
  3268. entry_time_.Swap(&other->entry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3269. GetArenaNoVirtual());
  3270. leave_time_.Swap(&other->leave_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3271. GetArenaNoVirtual());
  3272. swap(car_info_, other->car_info_);
  3273. swap(parkingspace_index_id_, other->parkingspace_index_id_);
  3274. swap(parkingspace_type_, other->parkingspace_type_);
  3275. swap(parkingspace_unit_id_, other->parkingspace_unit_id_);
  3276. swap(parkingspace_label_id_, other->parkingspace_label_id_);
  3277. swap(parkingspace_room_id_, other->parkingspace_room_id_);
  3278. swap(parkingspace_direction_, other->parkingspace_direction_);
  3279. swap(parkingspace_floor_id_, other->parkingspace_floor_id_);
  3280. swap(parkingspace_width_, other->parkingspace_width_);
  3281. swap(parkingspace_height_, other->parkingspace_height_);
  3282. swap(parkingspace_status_, other->parkingspace_status_);
  3283. swap(parkspace_path_, other->parkspace_path_);
  3284. swap(path_estimate_time_, other->path_estimate_time_);
  3285. swap(parkspace_status_target_, other->parkspace_status_target_);
  3286. swap(car_type_, other->car_type_);
  3287. swap(_has_bits_[0], other->_has_bits_[0]);
  3288. _internal_metadata_.Swap(&other->_internal_metadata_);
  3289. }
  3290. ::google::protobuf::Metadata Parkspace_info::GetMetadata() const {
  3291. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  3292. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  3293. }
  3294. // @@protoc_insertion_point(namespace_scope)
  3295. } // namespace message
  3296. namespace google {
  3297. namespace protobuf {
  3298. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Base_info* Arena::CreateMaybeMessage< ::message::Base_info >(Arena* arena) {
  3299. return Arena::CreateInternal< ::message::Base_info >(arena);
  3300. }
  3301. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Base_msg* Arena::CreateMaybeMessage< ::message::Base_msg >(Arena* arena) {
  3302. return Arena::CreateInternal< ::message::Base_msg >(arena);
  3303. }
  3304. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Error_manager* Arena::CreateMaybeMessage< ::message::Error_manager >(Arena* arena) {
  3305. return Arena::CreateInternal< ::message::Error_manager >(arena);
  3306. }
  3307. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Locate_information* Arena::CreateMaybeMessage< ::message::Locate_information >(Arena* arena) {
  3308. return Arena::CreateInternal< ::message::Locate_information >(arena);
  3309. }
  3310. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Car_info* Arena::CreateMaybeMessage< ::message::Car_info >(Arena* arena) {
  3311. return Arena::CreateInternal< ::message::Car_info >(arena);
  3312. }
  3313. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Parkspace_info* Arena::CreateMaybeMessage< ::message::Parkspace_info >(Arena* arena) {
  3314. return Arena::CreateInternal< ::message::Parkspace_info >(arena);
  3315. }
  3316. } // namespace protobuf
  3317. } // namespace google
  3318. // @@protoc_insertion_point(global_scope)