message_base.pb.cc 149 KB

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