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 Id_structDefaultTypeInternal {
  39. public:
  40. ::google::protobuf::internal::ExplicitlyConstructed<Id_struct>
  41. _instance;
  42. } _Id_struct_default_instance_;
  43. class Locate_informationDefaultTypeInternal {
  44. public:
  45. ::google::protobuf::internal::ExplicitlyConstructed<Locate_information>
  46. _instance;
  47. } _Locate_information_default_instance_;
  48. class Car_infoDefaultTypeInternal {
  49. public:
  50. ::google::protobuf::internal::ExplicitlyConstructed<Car_info>
  51. _instance;
  52. } _Car_info_default_instance_;
  53. class Parkspace_infoDefaultTypeInternal {
  54. public:
  55. ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_info>
  56. _instance;
  57. } _Parkspace_info_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 InitDefaultsId_struct() {
  95. GOOGLE_PROTOBUF_VERIFY_VERSION;
  96. {
  97. void* ptr = &::message::_Id_struct_default_instance_;
  98. new (ptr) ::message::Id_struct();
  99. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  100. }
  101. ::message::Id_struct::InitAsDefaultInstance();
  102. }
  103. ::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct =
  104. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsId_struct}, {}};
  105. static void InitDefaultsLocate_information() {
  106. GOOGLE_PROTOBUF_VERIFY_VERSION;
  107. {
  108. void* ptr = &::message::_Locate_information_default_instance_;
  109. new (ptr) ::message::Locate_information();
  110. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  111. }
  112. ::message::Locate_information::InitAsDefaultInstance();
  113. }
  114. ::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information =
  115. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLocate_information}, {}};
  116. static void InitDefaultsCar_info() {
  117. GOOGLE_PROTOBUF_VERIFY_VERSION;
  118. {
  119. void* ptr = &::message::_Car_info_default_instance_;
  120. new (ptr) ::message::Car_info();
  121. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  122. }
  123. ::message::Car_info::InitAsDefaultInstance();
  124. }
  125. ::google::protobuf::internal::SCCInfo<0> scc_info_Car_info =
  126. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCar_info}, {}};
  127. static void InitDefaultsParkspace_info() {
  128. GOOGLE_PROTOBUF_VERIFY_VERSION;
  129. {
  130. void* ptr = &::message::_Parkspace_info_default_instance_;
  131. new (ptr) ::message::Parkspace_info();
  132. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  133. }
  134. ::message::Parkspace_info::InitAsDefaultInstance();
  135. }
  136. ::google::protobuf::internal::SCCInfo<1> scc_info_Parkspace_info =
  137. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParkspace_info}, {
  138. &protobuf_message_5fbase_2eproto::scc_info_Car_info.base,}};
  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_Id_struct.base);
  144. ::google::protobuf::internal::InitSCC(&scc_info_Locate_information.base);
  145. ::google::protobuf::internal::InitSCC(&scc_info_Car_info.base);
  146. ::google::protobuf::internal::InitSCC(&scc_info_Parkspace_info.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::Id_struct, _has_bits_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Id_struct, _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::Id_struct, terminal_id_),
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Id_struct, unit_id_),
  189. 0,
  190. 1,
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, _has_bits_),
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, _internal_metadata_),
  193. ~0u, // no _extensions_
  194. ~0u, // no _oneof_case_
  195. ~0u, // no _weak_field_map_
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_x_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_y_),
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_angle_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_length_),
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_width_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_height_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_wheel_base_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_wheel_width_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_correct_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, locate_front_theta_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, uniformed_car_x_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_information, uniformed_car_y_),
  208. 0,
  209. 1,
  210. 2,
  211. 3,
  212. 4,
  213. 5,
  214. 6,
  215. 7,
  216. 8,
  217. 9,
  218. 10,
  219. 11,
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _has_bits_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _internal_metadata_),
  222. ~0u, // no _extensions_
  223. ~0u, // no _oneof_case_
  224. ~0u, // no _weak_field_map_
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_length_),
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_width_),
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_height_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, license_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_numberplate_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_wheel_base_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_wheel_width_),
  232. 2,
  233. 3,
  234. 4,
  235. 0,
  236. 1,
  237. 5,
  238. 6,
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _has_bits_),
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _internal_metadata_),
  241. ~0u, // no _extensions_
  242. ~0u, // no _oneof_case_
  243. ~0u, // no _weak_field_map_
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_index_id_),
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_type_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_unit_id_),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_label_id_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_room_id_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_direction_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_floor_id_),
  251. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_width_),
  252. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_height_),
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkingspace_status_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, car_info_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, entry_time_),
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, leave_time_),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_path_),
  258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, path_estimate_time_),
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_target_),
  260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, car_type_),
  261. 3,
  262. 4,
  263. 5,
  264. 6,
  265. 7,
  266. 8,
  267. 9,
  268. 10,
  269. 11,
  270. 12,
  271. 2,
  272. 0,
  273. 1,
  274. 13,
  275. 14,
  276. 15,
  277. 16,
  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, 38, sizeof(::message::Id_struct)},
  284. { 40, 57, sizeof(::message::Locate_information)},
  285. { 69, 81, sizeof(::message::Car_info)},
  286. { 88, 110, sizeof(::message::Parkspace_info)},
  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::_Id_struct_default_instance_),
  293. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Locate_information_default_instance_),
  294. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Car_info_default_instance_),
  295. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_info_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\"1\n\tId_struct\022\023"
  325. "\n\013terminal_id\030\001 \001(\005\022\017\n\007unit_id\030\002 \001(\005\"\321\002\n"
  326. "\022Locate_information\022\023\n\010locate_x\030\001 \001(\002:\0010"
  327. "\022\023\n\010locate_y\030\002 \001(\002:\0010\022\027\n\014locate_angle\030\003 "
  328. "\001(\002:\0010\022\030\n\rlocate_length\030\004 \001(\002:\0010\022\027\n\014loca"
  329. "te_width\030\005 \001(\002:\0010\022\030\n\rlocate_height\030\006 \001(\002"
  330. ":\0010\022\034\n\021locate_wheel_base\030\007 \001(\002:\0010\022\035\n\022loc"
  331. "ate_wheel_width\030\010 \001(\002:\0010\022\035\n\016locate_corre"
  332. "ct\030\t \001(\010:\005false\022\035\n\022locate_front_theta\030\n "
  333. "\001(\002:\0010\022\027\n\017uniformed_car_x\030\013 \001(\002\022\027\n\017unifo"
  334. "rmed_car_y\030\014 \001(\002\"\263\001\n\010Car_info\022\025\n\ncar_len"
  335. "gth\030\001 \001(\002:\0010\022\024\n\tcar_width\030\002 \001(\002:\0010\022\025\n\nca"
  336. "r_height\030\003 \001(\002:\0010\022\021\n\007license\030\004 \001(\t:\000\022\031\n\017"
  337. "car_numberPlate\030\005 \001(\t:\000\022\031\n\016car_wheel_bas"
  338. "e\030\006 \001(\002:\0010\022\032\n\017car_wheel_width\030\007 \001(\002:\0010\"\375"
  339. "\004\n\016Parkspace_info\022\035\n\025parkingspace_index_"
  340. "id\030\001 \001(\005\0222\n\021parkingspace_type\030\002 \001(\0162\027.me"
  341. "ssage.Parkspace_type\022\034\n\024parkingspace_uni"
  342. "t_id\030\003 \001(\005\022\035\n\025parkingspace_label_id\030\004 \001("
  343. "\005\022\034\n\024parkingspace_room_id\030\005 \001(\005\0222\n\026parki"
  344. "ngspace_direction\030\006 \001(\0162\022.message.Direct"
  345. "ion\022\035\n\025parkingspace_floor_id\030\007 \001(\005\022\032\n\022pa"
  346. "rkingspace_width\030\010 \001(\002\022\033\n\023parkingspace_h"
  347. "eight\030\t \001(\002\0226\n\023parkingspace_status\030\n \001(\016"
  348. "2\031.message.Parkspace_status\022#\n\010car_info\030"
  349. "\013 \001(\0132\021.message.Car_info\022\022\n\nentry_time\030\014"
  350. " \001(\t\022\022\n\nleave_time\030\r \001(\t\022/\n\016parkspace_pa"
  351. "th\030\016 \001(\0162\027.message.Parkspace_path\022\032\n\022pat"
  352. "h_estimate_time\030\017 \001(\002\022:\n\027parkspace_statu"
  353. "s_target\030\020 \001(\0162\031.message.Parkspace_statu"
  354. "s\022#\n\010car_type\030\021 \001(\0162\021.message.Car_type*\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 Id_struct::InitAsDefaultInstance() {
  1572. }
  1573. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1574. const int Id_struct::kTerminalIdFieldNumber;
  1575. const int Id_struct::kUnitIdFieldNumber;
  1576. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1577. Id_struct::Id_struct()
  1578. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1579. ::google::protobuf::internal::InitSCC(
  1580. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base);
  1581. SharedCtor();
  1582. // @@protoc_insertion_point(constructor:message.Id_struct)
  1583. }
  1584. Id_struct::Id_struct(const Id_struct& from)
  1585. : ::google::protobuf::Message(),
  1586. _internal_metadata_(NULL),
  1587. _has_bits_(from._has_bits_) {
  1588. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1589. ::memcpy(&terminal_id_, &from.terminal_id_,
  1590. static_cast<size_t>(reinterpret_cast<char*>(&unit_id_) -
  1591. reinterpret_cast<char*>(&terminal_id_)) + sizeof(unit_id_));
  1592. // @@protoc_insertion_point(copy_constructor:message.Id_struct)
  1593. }
  1594. void Id_struct::SharedCtor() {
  1595. ::memset(&terminal_id_, 0, static_cast<size_t>(
  1596. reinterpret_cast<char*>(&unit_id_) -
  1597. reinterpret_cast<char*>(&terminal_id_)) + sizeof(unit_id_));
  1598. }
  1599. Id_struct::~Id_struct() {
  1600. // @@protoc_insertion_point(destructor:message.Id_struct)
  1601. SharedDtor();
  1602. }
  1603. void Id_struct::SharedDtor() {
  1604. }
  1605. void Id_struct::SetCachedSize(int size) const {
  1606. _cached_size_.Set(size);
  1607. }
  1608. const ::google::protobuf::Descriptor* Id_struct::descriptor() {
  1609. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1610. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1611. }
  1612. const Id_struct& Id_struct::default_instance() {
  1613. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Id_struct.base);
  1614. return *internal_default_instance();
  1615. }
  1616. void Id_struct::Clear() {
  1617. // @@protoc_insertion_point(message_clear_start:message.Id_struct)
  1618. ::google::protobuf::uint32 cached_has_bits = 0;
  1619. // Prevent compiler warnings about cached_has_bits being unused
  1620. (void) cached_has_bits;
  1621. cached_has_bits = _has_bits_[0];
  1622. if (cached_has_bits & 3u) {
  1623. ::memset(&terminal_id_, 0, static_cast<size_t>(
  1624. reinterpret_cast<char*>(&unit_id_) -
  1625. reinterpret_cast<char*>(&terminal_id_)) + sizeof(unit_id_));
  1626. }
  1627. _has_bits_.Clear();
  1628. _internal_metadata_.Clear();
  1629. }
  1630. bool Id_struct::MergePartialFromCodedStream(
  1631. ::google::protobuf::io::CodedInputStream* input) {
  1632. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1633. ::google::protobuf::uint32 tag;
  1634. // @@protoc_insertion_point(parse_start:message.Id_struct)
  1635. for (;;) {
  1636. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1637. tag = p.first;
  1638. if (!p.second) goto handle_unusual;
  1639. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1640. // optional int32 terminal_id = 1;
  1641. case 1: {
  1642. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1643. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1644. set_has_terminal_id();
  1645. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1646. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1647. input, &terminal_id_)));
  1648. } else {
  1649. goto handle_unusual;
  1650. }
  1651. break;
  1652. }
  1653. // optional int32 unit_id = 2;
  1654. case 2: {
  1655. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1656. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1657. set_has_unit_id();
  1658. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1659. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1660. input, &unit_id_)));
  1661. } else {
  1662. goto handle_unusual;
  1663. }
  1664. break;
  1665. }
  1666. default: {
  1667. handle_unusual:
  1668. if (tag == 0) {
  1669. goto success;
  1670. }
  1671. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1672. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1673. break;
  1674. }
  1675. }
  1676. }
  1677. success:
  1678. // @@protoc_insertion_point(parse_success:message.Id_struct)
  1679. return true;
  1680. failure:
  1681. // @@protoc_insertion_point(parse_failure:message.Id_struct)
  1682. return false;
  1683. #undef DO_
  1684. }
  1685. void Id_struct::SerializeWithCachedSizes(
  1686. ::google::protobuf::io::CodedOutputStream* output) const {
  1687. // @@protoc_insertion_point(serialize_start:message.Id_struct)
  1688. ::google::protobuf::uint32 cached_has_bits = 0;
  1689. (void) cached_has_bits;
  1690. cached_has_bits = _has_bits_[0];
  1691. // optional int32 terminal_id = 1;
  1692. if (cached_has_bits & 0x00000001u) {
  1693. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->terminal_id(), output);
  1694. }
  1695. // optional int32 unit_id = 2;
  1696. if (cached_has_bits & 0x00000002u) {
  1697. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->unit_id(), output);
  1698. }
  1699. if (_internal_metadata_.have_unknown_fields()) {
  1700. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1701. _internal_metadata_.unknown_fields(), output);
  1702. }
  1703. // @@protoc_insertion_point(serialize_end:message.Id_struct)
  1704. }
  1705. ::google::protobuf::uint8* Id_struct::InternalSerializeWithCachedSizesToArray(
  1706. bool deterministic, ::google::protobuf::uint8* target) const {
  1707. (void)deterministic; // Unused
  1708. // @@protoc_insertion_point(serialize_to_array_start:message.Id_struct)
  1709. ::google::protobuf::uint32 cached_has_bits = 0;
  1710. (void) cached_has_bits;
  1711. cached_has_bits = _has_bits_[0];
  1712. // optional int32 terminal_id = 1;
  1713. if (cached_has_bits & 0x00000001u) {
  1714. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->terminal_id(), target);
  1715. }
  1716. // optional int32 unit_id = 2;
  1717. if (cached_has_bits & 0x00000002u) {
  1718. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->unit_id(), target);
  1719. }
  1720. if (_internal_metadata_.have_unknown_fields()) {
  1721. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1722. _internal_metadata_.unknown_fields(), target);
  1723. }
  1724. // @@protoc_insertion_point(serialize_to_array_end:message.Id_struct)
  1725. return target;
  1726. }
  1727. size_t Id_struct::ByteSizeLong() const {
  1728. // @@protoc_insertion_point(message_byte_size_start:message.Id_struct)
  1729. size_t total_size = 0;
  1730. if (_internal_metadata_.have_unknown_fields()) {
  1731. total_size +=
  1732. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1733. _internal_metadata_.unknown_fields());
  1734. }
  1735. if (_has_bits_[0 / 32] & 3u) {
  1736. // optional int32 terminal_id = 1;
  1737. if (has_terminal_id()) {
  1738. total_size += 1 +
  1739. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1740. this->terminal_id());
  1741. }
  1742. // optional int32 unit_id = 2;
  1743. if (has_unit_id()) {
  1744. total_size += 1 +
  1745. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1746. this->unit_id());
  1747. }
  1748. }
  1749. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1750. SetCachedSize(cached_size);
  1751. return total_size;
  1752. }
  1753. void Id_struct::MergeFrom(const ::google::protobuf::Message& from) {
  1754. // @@protoc_insertion_point(generalized_merge_from_start:message.Id_struct)
  1755. GOOGLE_DCHECK_NE(&from, this);
  1756. const Id_struct* source =
  1757. ::google::protobuf::internal::DynamicCastToGenerated<const Id_struct>(
  1758. &from);
  1759. if (source == NULL) {
  1760. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Id_struct)
  1761. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1762. } else {
  1763. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Id_struct)
  1764. MergeFrom(*source);
  1765. }
  1766. }
  1767. void Id_struct::MergeFrom(const Id_struct& from) {
  1768. // @@protoc_insertion_point(class_specific_merge_from_start:message.Id_struct)
  1769. GOOGLE_DCHECK_NE(&from, this);
  1770. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1771. ::google::protobuf::uint32 cached_has_bits = 0;
  1772. (void) cached_has_bits;
  1773. cached_has_bits = from._has_bits_[0];
  1774. if (cached_has_bits & 3u) {
  1775. if (cached_has_bits & 0x00000001u) {
  1776. terminal_id_ = from.terminal_id_;
  1777. }
  1778. if (cached_has_bits & 0x00000002u) {
  1779. unit_id_ = from.unit_id_;
  1780. }
  1781. _has_bits_[0] |= cached_has_bits;
  1782. }
  1783. }
  1784. void Id_struct::CopyFrom(const ::google::protobuf::Message& from) {
  1785. // @@protoc_insertion_point(generalized_copy_from_start:message.Id_struct)
  1786. if (&from == this) return;
  1787. Clear();
  1788. MergeFrom(from);
  1789. }
  1790. void Id_struct::CopyFrom(const Id_struct& from) {
  1791. // @@protoc_insertion_point(class_specific_copy_from_start:message.Id_struct)
  1792. if (&from == this) return;
  1793. Clear();
  1794. MergeFrom(from);
  1795. }
  1796. bool Id_struct::IsInitialized() const {
  1797. return true;
  1798. }
  1799. void Id_struct::Swap(Id_struct* other) {
  1800. if (other == this) return;
  1801. InternalSwap(other);
  1802. }
  1803. void Id_struct::InternalSwap(Id_struct* other) {
  1804. using std::swap;
  1805. swap(terminal_id_, other->terminal_id_);
  1806. swap(unit_id_, other->unit_id_);
  1807. swap(_has_bits_[0], other->_has_bits_[0]);
  1808. _internal_metadata_.Swap(&other->_internal_metadata_);
  1809. }
  1810. ::google::protobuf::Metadata Id_struct::GetMetadata() const {
  1811. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1812. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  1813. }
  1814. // ===================================================================
  1815. void Locate_information::InitAsDefaultInstance() {
  1816. }
  1817. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1818. const int Locate_information::kLocateXFieldNumber;
  1819. const int Locate_information::kLocateYFieldNumber;
  1820. const int Locate_information::kLocateAngleFieldNumber;
  1821. const int Locate_information::kLocateLengthFieldNumber;
  1822. const int Locate_information::kLocateWidthFieldNumber;
  1823. const int Locate_information::kLocateHeightFieldNumber;
  1824. const int Locate_information::kLocateWheelBaseFieldNumber;
  1825. const int Locate_information::kLocateWheelWidthFieldNumber;
  1826. const int Locate_information::kLocateCorrectFieldNumber;
  1827. const int Locate_information::kLocateFrontThetaFieldNumber;
  1828. const int Locate_information::kUniformedCarXFieldNumber;
  1829. const int Locate_information::kUniformedCarYFieldNumber;
  1830. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1831. Locate_information::Locate_information()
  1832. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1833. ::google::protobuf::internal::InitSCC(
  1834. &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
  1835. SharedCtor();
  1836. // @@protoc_insertion_point(constructor:message.Locate_information)
  1837. }
  1838. Locate_information::Locate_information(const Locate_information& from)
  1839. : ::google::protobuf::Message(),
  1840. _internal_metadata_(NULL),
  1841. _has_bits_(from._has_bits_) {
  1842. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1843. ::memcpy(&locate_x_, &from.locate_x_,
  1844. static_cast<size_t>(reinterpret_cast<char*>(&uniformed_car_y_) -
  1845. reinterpret_cast<char*>(&locate_x_)) + sizeof(uniformed_car_y_));
  1846. // @@protoc_insertion_point(copy_constructor:message.Locate_information)
  1847. }
  1848. void Locate_information::SharedCtor() {
  1849. ::memset(&locate_x_, 0, static_cast<size_t>(
  1850. reinterpret_cast<char*>(&uniformed_car_y_) -
  1851. reinterpret_cast<char*>(&locate_x_)) + sizeof(uniformed_car_y_));
  1852. }
  1853. Locate_information::~Locate_information() {
  1854. // @@protoc_insertion_point(destructor:message.Locate_information)
  1855. SharedDtor();
  1856. }
  1857. void Locate_information::SharedDtor() {
  1858. }
  1859. void Locate_information::SetCachedSize(int size) const {
  1860. _cached_size_.Set(size);
  1861. }
  1862. const ::google::protobuf::Descriptor* Locate_information::descriptor() {
  1863. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  1864. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1865. }
  1866. const Locate_information& Locate_information::default_instance() {
  1867. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
  1868. return *internal_default_instance();
  1869. }
  1870. void Locate_information::Clear() {
  1871. // @@protoc_insertion_point(message_clear_start:message.Locate_information)
  1872. ::google::protobuf::uint32 cached_has_bits = 0;
  1873. // Prevent compiler warnings about cached_has_bits being unused
  1874. (void) cached_has_bits;
  1875. cached_has_bits = _has_bits_[0];
  1876. if (cached_has_bits & 255u) {
  1877. ::memset(&locate_x_, 0, static_cast<size_t>(
  1878. reinterpret_cast<char*>(&locate_wheel_width_) -
  1879. reinterpret_cast<char*>(&locate_x_)) + sizeof(locate_wheel_width_));
  1880. }
  1881. if (cached_has_bits & 3840u) {
  1882. ::memset(&locate_correct_, 0, static_cast<size_t>(
  1883. reinterpret_cast<char*>(&uniformed_car_y_) -
  1884. reinterpret_cast<char*>(&locate_correct_)) + sizeof(uniformed_car_y_));
  1885. }
  1886. _has_bits_.Clear();
  1887. _internal_metadata_.Clear();
  1888. }
  1889. bool Locate_information::MergePartialFromCodedStream(
  1890. ::google::protobuf::io::CodedInputStream* input) {
  1891. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1892. ::google::protobuf::uint32 tag;
  1893. // @@protoc_insertion_point(parse_start:message.Locate_information)
  1894. for (;;) {
  1895. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1896. tag = p.first;
  1897. if (!p.second) goto handle_unusual;
  1898. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1899. // optional float locate_x = 1 [default = 0];
  1900. case 1: {
  1901. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1902. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  1903. set_has_locate_x();
  1904. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1905. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1906. input, &locate_x_)));
  1907. } else {
  1908. goto handle_unusual;
  1909. }
  1910. break;
  1911. }
  1912. // optional float locate_y = 2 [default = 0];
  1913. case 2: {
  1914. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1915. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  1916. set_has_locate_y();
  1917. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1918. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1919. input, &locate_y_)));
  1920. } else {
  1921. goto handle_unusual;
  1922. }
  1923. break;
  1924. }
  1925. // optional float locate_angle = 3 [default = 0];
  1926. case 3: {
  1927. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1928. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1929. set_has_locate_angle();
  1930. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1931. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1932. input, &locate_angle_)));
  1933. } else {
  1934. goto handle_unusual;
  1935. }
  1936. break;
  1937. }
  1938. // optional float locate_length = 4 [default = 0];
  1939. case 4: {
  1940. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1941. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1942. set_has_locate_length();
  1943. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1944. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1945. input, &locate_length_)));
  1946. } else {
  1947. goto handle_unusual;
  1948. }
  1949. break;
  1950. }
  1951. // optional float locate_width = 5 [default = 0];
  1952. case 5: {
  1953. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1954. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1955. set_has_locate_width();
  1956. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1957. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1958. input, &locate_width_)));
  1959. } else {
  1960. goto handle_unusual;
  1961. }
  1962. break;
  1963. }
  1964. // optional float locate_height = 6 [default = 0];
  1965. case 6: {
  1966. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1967. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1968. set_has_locate_height();
  1969. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1970. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1971. input, &locate_height_)));
  1972. } else {
  1973. goto handle_unusual;
  1974. }
  1975. break;
  1976. }
  1977. // optional float locate_wheel_base = 7 [default = 0];
  1978. case 7: {
  1979. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1980. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  1981. set_has_locate_wheel_base();
  1982. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1983. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1984. input, &locate_wheel_base_)));
  1985. } else {
  1986. goto handle_unusual;
  1987. }
  1988. break;
  1989. }
  1990. // optional float locate_wheel_width = 8 [default = 0];
  1991. case 8: {
  1992. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1993. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  1994. set_has_locate_wheel_width();
  1995. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1996. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1997. input, &locate_wheel_width_)));
  1998. } else {
  1999. goto handle_unusual;
  2000. }
  2001. break;
  2002. }
  2003. // optional bool locate_correct = 9 [default = false];
  2004. case 9: {
  2005. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2006. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  2007. set_has_locate_correct();
  2008. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2009. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  2010. input, &locate_correct_)));
  2011. } else {
  2012. goto handle_unusual;
  2013. }
  2014. break;
  2015. }
  2016. // optional float locate_front_theta = 10 [default = 0];
  2017. case 10: {
  2018. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2019. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  2020. set_has_locate_front_theta();
  2021. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2022. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2023. input, &locate_front_theta_)));
  2024. } else {
  2025. goto handle_unusual;
  2026. }
  2027. break;
  2028. }
  2029. // optional float uniformed_car_x = 11;
  2030. case 11: {
  2031. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2032. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  2033. set_has_uniformed_car_x();
  2034. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2035. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2036. input, &uniformed_car_x_)));
  2037. } else {
  2038. goto handle_unusual;
  2039. }
  2040. break;
  2041. }
  2042. // optional float uniformed_car_y = 12;
  2043. case 12: {
  2044. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2045. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  2046. set_has_uniformed_car_y();
  2047. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2048. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2049. input, &uniformed_car_y_)));
  2050. } else {
  2051. goto handle_unusual;
  2052. }
  2053. break;
  2054. }
  2055. default: {
  2056. handle_unusual:
  2057. if (tag == 0) {
  2058. goto success;
  2059. }
  2060. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2061. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2062. break;
  2063. }
  2064. }
  2065. }
  2066. success:
  2067. // @@protoc_insertion_point(parse_success:message.Locate_information)
  2068. return true;
  2069. failure:
  2070. // @@protoc_insertion_point(parse_failure:message.Locate_information)
  2071. return false;
  2072. #undef DO_
  2073. }
  2074. void Locate_information::SerializeWithCachedSizes(
  2075. ::google::protobuf::io::CodedOutputStream* output) const {
  2076. // @@protoc_insertion_point(serialize_start:message.Locate_information)
  2077. ::google::protobuf::uint32 cached_has_bits = 0;
  2078. (void) cached_has_bits;
  2079. cached_has_bits = _has_bits_[0];
  2080. // optional float locate_x = 1 [default = 0];
  2081. if (cached_has_bits & 0x00000001u) {
  2082. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->locate_x(), output);
  2083. }
  2084. // optional float locate_y = 2 [default = 0];
  2085. if (cached_has_bits & 0x00000002u) {
  2086. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->locate_y(), output);
  2087. }
  2088. // optional float locate_angle = 3 [default = 0];
  2089. if (cached_has_bits & 0x00000004u) {
  2090. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->locate_angle(), output);
  2091. }
  2092. // optional float locate_length = 4 [default = 0];
  2093. if (cached_has_bits & 0x00000008u) {
  2094. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->locate_length(), output);
  2095. }
  2096. // optional float locate_width = 5 [default = 0];
  2097. if (cached_has_bits & 0x00000010u) {
  2098. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->locate_width(), output);
  2099. }
  2100. // optional float locate_height = 6 [default = 0];
  2101. if (cached_has_bits & 0x00000020u) {
  2102. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->locate_height(), output);
  2103. }
  2104. // optional float locate_wheel_base = 7 [default = 0];
  2105. if (cached_has_bits & 0x00000040u) {
  2106. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->locate_wheel_base(), output);
  2107. }
  2108. // optional float locate_wheel_width = 8 [default = 0];
  2109. if (cached_has_bits & 0x00000080u) {
  2110. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->locate_wheel_width(), output);
  2111. }
  2112. // optional bool locate_correct = 9 [default = false];
  2113. if (cached_has_bits & 0x00000100u) {
  2114. ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->locate_correct(), output);
  2115. }
  2116. // optional float locate_front_theta = 10 [default = 0];
  2117. if (cached_has_bits & 0x00000200u) {
  2118. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->locate_front_theta(), output);
  2119. }
  2120. // optional float uniformed_car_x = 11;
  2121. if (cached_has_bits & 0x00000400u) {
  2122. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->uniformed_car_x(), output);
  2123. }
  2124. // optional float uniformed_car_y = 12;
  2125. if (cached_has_bits & 0x00000800u) {
  2126. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->uniformed_car_y(), output);
  2127. }
  2128. if (_internal_metadata_.have_unknown_fields()) {
  2129. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2130. _internal_metadata_.unknown_fields(), output);
  2131. }
  2132. // @@protoc_insertion_point(serialize_end:message.Locate_information)
  2133. }
  2134. ::google::protobuf::uint8* Locate_information::InternalSerializeWithCachedSizesToArray(
  2135. bool deterministic, ::google::protobuf::uint8* target) const {
  2136. (void)deterministic; // Unused
  2137. // @@protoc_insertion_point(serialize_to_array_start:message.Locate_information)
  2138. ::google::protobuf::uint32 cached_has_bits = 0;
  2139. (void) cached_has_bits;
  2140. cached_has_bits = _has_bits_[0];
  2141. // optional float locate_x = 1 [default = 0];
  2142. if (cached_has_bits & 0x00000001u) {
  2143. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->locate_x(), target);
  2144. }
  2145. // optional float locate_y = 2 [default = 0];
  2146. if (cached_has_bits & 0x00000002u) {
  2147. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->locate_y(), target);
  2148. }
  2149. // optional float locate_angle = 3 [default = 0];
  2150. if (cached_has_bits & 0x00000004u) {
  2151. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->locate_angle(), target);
  2152. }
  2153. // optional float locate_length = 4 [default = 0];
  2154. if (cached_has_bits & 0x00000008u) {
  2155. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->locate_length(), target);
  2156. }
  2157. // optional float locate_width = 5 [default = 0];
  2158. if (cached_has_bits & 0x00000010u) {
  2159. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->locate_width(), target);
  2160. }
  2161. // optional float locate_height = 6 [default = 0];
  2162. if (cached_has_bits & 0x00000020u) {
  2163. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->locate_height(), target);
  2164. }
  2165. // optional float locate_wheel_base = 7 [default = 0];
  2166. if (cached_has_bits & 0x00000040u) {
  2167. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->locate_wheel_base(), target);
  2168. }
  2169. // optional float locate_wheel_width = 8 [default = 0];
  2170. if (cached_has_bits & 0x00000080u) {
  2171. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->locate_wheel_width(), target);
  2172. }
  2173. // optional bool locate_correct = 9 [default = false];
  2174. if (cached_has_bits & 0x00000100u) {
  2175. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->locate_correct(), target);
  2176. }
  2177. // optional float locate_front_theta = 10 [default = 0];
  2178. if (cached_has_bits & 0x00000200u) {
  2179. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->locate_front_theta(), target);
  2180. }
  2181. // optional float uniformed_car_x = 11;
  2182. if (cached_has_bits & 0x00000400u) {
  2183. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->uniformed_car_x(), target);
  2184. }
  2185. // optional float uniformed_car_y = 12;
  2186. if (cached_has_bits & 0x00000800u) {
  2187. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->uniformed_car_y(), target);
  2188. }
  2189. if (_internal_metadata_.have_unknown_fields()) {
  2190. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2191. _internal_metadata_.unknown_fields(), target);
  2192. }
  2193. // @@protoc_insertion_point(serialize_to_array_end:message.Locate_information)
  2194. return target;
  2195. }
  2196. size_t Locate_information::ByteSizeLong() const {
  2197. // @@protoc_insertion_point(message_byte_size_start:message.Locate_information)
  2198. size_t total_size = 0;
  2199. if (_internal_metadata_.have_unknown_fields()) {
  2200. total_size +=
  2201. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2202. _internal_metadata_.unknown_fields());
  2203. }
  2204. if (_has_bits_[0 / 32] & 255u) {
  2205. // optional float locate_x = 1 [default = 0];
  2206. if (has_locate_x()) {
  2207. total_size += 1 + 4;
  2208. }
  2209. // optional float locate_y = 2 [default = 0];
  2210. if (has_locate_y()) {
  2211. total_size += 1 + 4;
  2212. }
  2213. // optional float locate_angle = 3 [default = 0];
  2214. if (has_locate_angle()) {
  2215. total_size += 1 + 4;
  2216. }
  2217. // optional float locate_length = 4 [default = 0];
  2218. if (has_locate_length()) {
  2219. total_size += 1 + 4;
  2220. }
  2221. // optional float locate_width = 5 [default = 0];
  2222. if (has_locate_width()) {
  2223. total_size += 1 + 4;
  2224. }
  2225. // optional float locate_height = 6 [default = 0];
  2226. if (has_locate_height()) {
  2227. total_size += 1 + 4;
  2228. }
  2229. // optional float locate_wheel_base = 7 [default = 0];
  2230. if (has_locate_wheel_base()) {
  2231. total_size += 1 + 4;
  2232. }
  2233. // optional float locate_wheel_width = 8 [default = 0];
  2234. if (has_locate_wheel_width()) {
  2235. total_size += 1 + 4;
  2236. }
  2237. }
  2238. if (_has_bits_[8 / 32] & 3840u) {
  2239. // optional bool locate_correct = 9 [default = false];
  2240. if (has_locate_correct()) {
  2241. total_size += 1 + 1;
  2242. }
  2243. // optional float locate_front_theta = 10 [default = 0];
  2244. if (has_locate_front_theta()) {
  2245. total_size += 1 + 4;
  2246. }
  2247. // optional float uniformed_car_x = 11;
  2248. if (has_uniformed_car_x()) {
  2249. total_size += 1 + 4;
  2250. }
  2251. // optional float uniformed_car_y = 12;
  2252. if (has_uniformed_car_y()) {
  2253. total_size += 1 + 4;
  2254. }
  2255. }
  2256. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2257. SetCachedSize(cached_size);
  2258. return total_size;
  2259. }
  2260. void Locate_information::MergeFrom(const ::google::protobuf::Message& from) {
  2261. // @@protoc_insertion_point(generalized_merge_from_start:message.Locate_information)
  2262. GOOGLE_DCHECK_NE(&from, this);
  2263. const Locate_information* source =
  2264. ::google::protobuf::internal::DynamicCastToGenerated<const Locate_information>(
  2265. &from);
  2266. if (source == NULL) {
  2267. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Locate_information)
  2268. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2269. } else {
  2270. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Locate_information)
  2271. MergeFrom(*source);
  2272. }
  2273. }
  2274. void Locate_information::MergeFrom(const Locate_information& from) {
  2275. // @@protoc_insertion_point(class_specific_merge_from_start:message.Locate_information)
  2276. GOOGLE_DCHECK_NE(&from, this);
  2277. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2278. ::google::protobuf::uint32 cached_has_bits = 0;
  2279. (void) cached_has_bits;
  2280. cached_has_bits = from._has_bits_[0];
  2281. if (cached_has_bits & 255u) {
  2282. if (cached_has_bits & 0x00000001u) {
  2283. locate_x_ = from.locate_x_;
  2284. }
  2285. if (cached_has_bits & 0x00000002u) {
  2286. locate_y_ = from.locate_y_;
  2287. }
  2288. if (cached_has_bits & 0x00000004u) {
  2289. locate_angle_ = from.locate_angle_;
  2290. }
  2291. if (cached_has_bits & 0x00000008u) {
  2292. locate_length_ = from.locate_length_;
  2293. }
  2294. if (cached_has_bits & 0x00000010u) {
  2295. locate_width_ = from.locate_width_;
  2296. }
  2297. if (cached_has_bits & 0x00000020u) {
  2298. locate_height_ = from.locate_height_;
  2299. }
  2300. if (cached_has_bits & 0x00000040u) {
  2301. locate_wheel_base_ = from.locate_wheel_base_;
  2302. }
  2303. if (cached_has_bits & 0x00000080u) {
  2304. locate_wheel_width_ = from.locate_wheel_width_;
  2305. }
  2306. _has_bits_[0] |= cached_has_bits;
  2307. }
  2308. if (cached_has_bits & 3840u) {
  2309. if (cached_has_bits & 0x00000100u) {
  2310. locate_correct_ = from.locate_correct_;
  2311. }
  2312. if (cached_has_bits & 0x00000200u) {
  2313. locate_front_theta_ = from.locate_front_theta_;
  2314. }
  2315. if (cached_has_bits & 0x00000400u) {
  2316. uniformed_car_x_ = from.uniformed_car_x_;
  2317. }
  2318. if (cached_has_bits & 0x00000800u) {
  2319. uniformed_car_y_ = from.uniformed_car_y_;
  2320. }
  2321. _has_bits_[0] |= cached_has_bits;
  2322. }
  2323. }
  2324. void Locate_information::CopyFrom(const ::google::protobuf::Message& from) {
  2325. // @@protoc_insertion_point(generalized_copy_from_start:message.Locate_information)
  2326. if (&from == this) return;
  2327. Clear();
  2328. MergeFrom(from);
  2329. }
  2330. void Locate_information::CopyFrom(const Locate_information& from) {
  2331. // @@protoc_insertion_point(class_specific_copy_from_start:message.Locate_information)
  2332. if (&from == this) return;
  2333. Clear();
  2334. MergeFrom(from);
  2335. }
  2336. bool Locate_information::IsInitialized() const {
  2337. return true;
  2338. }
  2339. void Locate_information::Swap(Locate_information* other) {
  2340. if (other == this) return;
  2341. InternalSwap(other);
  2342. }
  2343. void Locate_information::InternalSwap(Locate_information* other) {
  2344. using std::swap;
  2345. swap(locate_x_, other->locate_x_);
  2346. swap(locate_y_, other->locate_y_);
  2347. swap(locate_angle_, other->locate_angle_);
  2348. swap(locate_length_, other->locate_length_);
  2349. swap(locate_width_, other->locate_width_);
  2350. swap(locate_height_, other->locate_height_);
  2351. swap(locate_wheel_base_, other->locate_wheel_base_);
  2352. swap(locate_wheel_width_, other->locate_wheel_width_);
  2353. swap(locate_correct_, other->locate_correct_);
  2354. swap(locate_front_theta_, other->locate_front_theta_);
  2355. swap(uniformed_car_x_, other->uniformed_car_x_);
  2356. swap(uniformed_car_y_, other->uniformed_car_y_);
  2357. swap(_has_bits_[0], other->_has_bits_[0]);
  2358. _internal_metadata_.Swap(&other->_internal_metadata_);
  2359. }
  2360. ::google::protobuf::Metadata Locate_information::GetMetadata() const {
  2361. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2362. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  2363. }
  2364. // ===================================================================
  2365. void Car_info::InitAsDefaultInstance() {
  2366. }
  2367. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2368. const int Car_info::kCarLengthFieldNumber;
  2369. const int Car_info::kCarWidthFieldNumber;
  2370. const int Car_info::kCarHeightFieldNumber;
  2371. const int Car_info::kLicenseFieldNumber;
  2372. const int Car_info::kCarNumberPlateFieldNumber;
  2373. const int Car_info::kCarWheelBaseFieldNumber;
  2374. const int Car_info::kCarWheelWidthFieldNumber;
  2375. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2376. Car_info::Car_info()
  2377. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2378. ::google::protobuf::internal::InitSCC(
  2379. &protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
  2380. SharedCtor();
  2381. // @@protoc_insertion_point(constructor:message.Car_info)
  2382. }
  2383. Car_info::Car_info(const Car_info& from)
  2384. : ::google::protobuf::Message(),
  2385. _internal_metadata_(NULL),
  2386. _has_bits_(from._has_bits_) {
  2387. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2388. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2389. if (from.has_license()) {
  2390. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  2391. }
  2392. car_numberplate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2393. if (from.has_car_numberplate()) {
  2394. car_numberplate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_numberplate_);
  2395. }
  2396. ::memcpy(&car_length_, &from.car_length_,
  2397. static_cast<size_t>(reinterpret_cast<char*>(&car_wheel_width_) -
  2398. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2399. // @@protoc_insertion_point(copy_constructor:message.Car_info)
  2400. }
  2401. void Car_info::SharedCtor() {
  2402. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2403. car_numberplate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2404. ::memset(&car_length_, 0, static_cast<size_t>(
  2405. reinterpret_cast<char*>(&car_wheel_width_) -
  2406. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2407. }
  2408. Car_info::~Car_info() {
  2409. // @@protoc_insertion_point(destructor:message.Car_info)
  2410. SharedDtor();
  2411. }
  2412. void Car_info::SharedDtor() {
  2413. license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2414. car_numberplate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2415. }
  2416. void Car_info::SetCachedSize(int size) const {
  2417. _cached_size_.Set(size);
  2418. }
  2419. const ::google::protobuf::Descriptor* Car_info::descriptor() {
  2420. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2421. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2422. }
  2423. const Car_info& Car_info::default_instance() {
  2424. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
  2425. return *internal_default_instance();
  2426. }
  2427. void Car_info::Clear() {
  2428. // @@protoc_insertion_point(message_clear_start:message.Car_info)
  2429. ::google::protobuf::uint32 cached_has_bits = 0;
  2430. // Prevent compiler warnings about cached_has_bits being unused
  2431. (void) cached_has_bits;
  2432. cached_has_bits = _has_bits_[0];
  2433. if (cached_has_bits & 3u) {
  2434. if (cached_has_bits & 0x00000001u) {
  2435. license_.ClearNonDefaultToEmptyNoArena();
  2436. }
  2437. if (cached_has_bits & 0x00000002u) {
  2438. car_numberplate_.ClearNonDefaultToEmptyNoArena();
  2439. }
  2440. }
  2441. if (cached_has_bits & 124u) {
  2442. ::memset(&car_length_, 0, static_cast<size_t>(
  2443. reinterpret_cast<char*>(&car_wheel_width_) -
  2444. reinterpret_cast<char*>(&car_length_)) + sizeof(car_wheel_width_));
  2445. }
  2446. _has_bits_.Clear();
  2447. _internal_metadata_.Clear();
  2448. }
  2449. bool Car_info::MergePartialFromCodedStream(
  2450. ::google::protobuf::io::CodedInputStream* input) {
  2451. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2452. ::google::protobuf::uint32 tag;
  2453. // @@protoc_insertion_point(parse_start:message.Car_info)
  2454. for (;;) {
  2455. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2456. tag = p.first;
  2457. if (!p.second) goto handle_unusual;
  2458. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2459. // optional float car_length = 1 [default = 0];
  2460. case 1: {
  2461. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2462. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2463. set_has_car_length();
  2464. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2465. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2466. input, &car_length_)));
  2467. } else {
  2468. goto handle_unusual;
  2469. }
  2470. break;
  2471. }
  2472. // optional float car_width = 2 [default = 0];
  2473. case 2: {
  2474. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2475. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2476. set_has_car_width();
  2477. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2478. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2479. input, &car_width_)));
  2480. } else {
  2481. goto handle_unusual;
  2482. }
  2483. break;
  2484. }
  2485. // optional float car_height = 3 [default = 0];
  2486. case 3: {
  2487. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2488. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2489. set_has_car_height();
  2490. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2491. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2492. input, &car_height_)));
  2493. } else {
  2494. goto handle_unusual;
  2495. }
  2496. break;
  2497. }
  2498. // optional string license = 4 [default = ""];
  2499. case 4: {
  2500. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2501. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2502. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2503. input, this->mutable_license()));
  2504. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2505. this->license().data(), static_cast<int>(this->license().length()),
  2506. ::google::protobuf::internal::WireFormat::PARSE,
  2507. "message.Car_info.license");
  2508. } else {
  2509. goto handle_unusual;
  2510. }
  2511. break;
  2512. }
  2513. // optional string car_numberPlate = 5 [default = ""];
  2514. case 5: {
  2515. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2516. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  2517. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2518. input, this->mutable_car_numberplate()));
  2519. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2520. this->car_numberplate().data(), static_cast<int>(this->car_numberplate().length()),
  2521. ::google::protobuf::internal::WireFormat::PARSE,
  2522. "message.Car_info.car_numberPlate");
  2523. } else {
  2524. goto handle_unusual;
  2525. }
  2526. break;
  2527. }
  2528. // optional float car_wheel_base = 6 [default = 0];
  2529. case 6: {
  2530. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2531. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  2532. set_has_car_wheel_base();
  2533. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2534. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2535. input, &car_wheel_base_)));
  2536. } else {
  2537. goto handle_unusual;
  2538. }
  2539. break;
  2540. }
  2541. // optional float car_wheel_width = 7 [default = 0];
  2542. case 7: {
  2543. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2544. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  2545. set_has_car_wheel_width();
  2546. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2547. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2548. input, &car_wheel_width_)));
  2549. } else {
  2550. goto handle_unusual;
  2551. }
  2552. break;
  2553. }
  2554. default: {
  2555. handle_unusual:
  2556. if (tag == 0) {
  2557. goto success;
  2558. }
  2559. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2560. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2561. break;
  2562. }
  2563. }
  2564. }
  2565. success:
  2566. // @@protoc_insertion_point(parse_success:message.Car_info)
  2567. return true;
  2568. failure:
  2569. // @@protoc_insertion_point(parse_failure:message.Car_info)
  2570. return false;
  2571. #undef DO_
  2572. }
  2573. void Car_info::SerializeWithCachedSizes(
  2574. ::google::protobuf::io::CodedOutputStream* output) const {
  2575. // @@protoc_insertion_point(serialize_start:message.Car_info)
  2576. ::google::protobuf::uint32 cached_has_bits = 0;
  2577. (void) cached_has_bits;
  2578. cached_has_bits = _has_bits_[0];
  2579. // optional float car_length = 1 [default = 0];
  2580. if (cached_has_bits & 0x00000004u) {
  2581. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->car_length(), output);
  2582. }
  2583. // optional float car_width = 2 [default = 0];
  2584. if (cached_has_bits & 0x00000008u) {
  2585. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->car_width(), output);
  2586. }
  2587. // optional float car_height = 3 [default = 0];
  2588. if (cached_has_bits & 0x00000010u) {
  2589. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->car_height(), output);
  2590. }
  2591. // optional string license = 4 [default = ""];
  2592. if (cached_has_bits & 0x00000001u) {
  2593. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2594. this->license().data(), static_cast<int>(this->license().length()),
  2595. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2596. "message.Car_info.license");
  2597. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2598. 4, this->license(), output);
  2599. }
  2600. // optional string car_numberPlate = 5 [default = ""];
  2601. if (cached_has_bits & 0x00000002u) {
  2602. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2603. this->car_numberplate().data(), static_cast<int>(this->car_numberplate().length()),
  2604. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2605. "message.Car_info.car_numberPlate");
  2606. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2607. 5, this->car_numberplate(), output);
  2608. }
  2609. // optional float car_wheel_base = 6 [default = 0];
  2610. if (cached_has_bits & 0x00000020u) {
  2611. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->car_wheel_base(), output);
  2612. }
  2613. // optional float car_wheel_width = 7 [default = 0];
  2614. if (cached_has_bits & 0x00000040u) {
  2615. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->car_wheel_width(), output);
  2616. }
  2617. if (_internal_metadata_.have_unknown_fields()) {
  2618. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2619. _internal_metadata_.unknown_fields(), output);
  2620. }
  2621. // @@protoc_insertion_point(serialize_end:message.Car_info)
  2622. }
  2623. ::google::protobuf::uint8* Car_info::InternalSerializeWithCachedSizesToArray(
  2624. bool deterministic, ::google::protobuf::uint8* target) const {
  2625. (void)deterministic; // Unused
  2626. // @@protoc_insertion_point(serialize_to_array_start:message.Car_info)
  2627. ::google::protobuf::uint32 cached_has_bits = 0;
  2628. (void) cached_has_bits;
  2629. cached_has_bits = _has_bits_[0];
  2630. // optional float car_length = 1 [default = 0];
  2631. if (cached_has_bits & 0x00000004u) {
  2632. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->car_length(), target);
  2633. }
  2634. // optional float car_width = 2 [default = 0];
  2635. if (cached_has_bits & 0x00000008u) {
  2636. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->car_width(), target);
  2637. }
  2638. // optional float car_height = 3 [default = 0];
  2639. if (cached_has_bits & 0x00000010u) {
  2640. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->car_height(), target);
  2641. }
  2642. // optional string license = 4 [default = ""];
  2643. if (cached_has_bits & 0x00000001u) {
  2644. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2645. this->license().data(), static_cast<int>(this->license().length()),
  2646. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2647. "message.Car_info.license");
  2648. target =
  2649. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2650. 4, this->license(), target);
  2651. }
  2652. // optional string car_numberPlate = 5 [default = ""];
  2653. if (cached_has_bits & 0x00000002u) {
  2654. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2655. this->car_numberplate().data(), static_cast<int>(this->car_numberplate().length()),
  2656. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2657. "message.Car_info.car_numberPlate");
  2658. target =
  2659. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2660. 5, this->car_numberplate(), target);
  2661. }
  2662. // optional float car_wheel_base = 6 [default = 0];
  2663. if (cached_has_bits & 0x00000020u) {
  2664. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->car_wheel_base(), target);
  2665. }
  2666. // optional float car_wheel_width = 7 [default = 0];
  2667. if (cached_has_bits & 0x00000040u) {
  2668. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->car_wheel_width(), target);
  2669. }
  2670. if (_internal_metadata_.have_unknown_fields()) {
  2671. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2672. _internal_metadata_.unknown_fields(), target);
  2673. }
  2674. // @@protoc_insertion_point(serialize_to_array_end:message.Car_info)
  2675. return target;
  2676. }
  2677. size_t Car_info::ByteSizeLong() const {
  2678. // @@protoc_insertion_point(message_byte_size_start:message.Car_info)
  2679. size_t total_size = 0;
  2680. if (_internal_metadata_.have_unknown_fields()) {
  2681. total_size +=
  2682. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2683. _internal_metadata_.unknown_fields());
  2684. }
  2685. if (_has_bits_[0 / 32] & 127u) {
  2686. // optional string license = 4 [default = ""];
  2687. if (has_license()) {
  2688. total_size += 1 +
  2689. ::google::protobuf::internal::WireFormatLite::StringSize(
  2690. this->license());
  2691. }
  2692. // optional string car_numberPlate = 5 [default = ""];
  2693. if (has_car_numberplate()) {
  2694. total_size += 1 +
  2695. ::google::protobuf::internal::WireFormatLite::StringSize(
  2696. this->car_numberplate());
  2697. }
  2698. // optional float car_length = 1 [default = 0];
  2699. if (has_car_length()) {
  2700. total_size += 1 + 4;
  2701. }
  2702. // optional float car_width = 2 [default = 0];
  2703. if (has_car_width()) {
  2704. total_size += 1 + 4;
  2705. }
  2706. // optional float car_height = 3 [default = 0];
  2707. if (has_car_height()) {
  2708. total_size += 1 + 4;
  2709. }
  2710. // optional float car_wheel_base = 6 [default = 0];
  2711. if (has_car_wheel_base()) {
  2712. total_size += 1 + 4;
  2713. }
  2714. // optional float car_wheel_width = 7 [default = 0];
  2715. if (has_car_wheel_width()) {
  2716. total_size += 1 + 4;
  2717. }
  2718. }
  2719. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2720. SetCachedSize(cached_size);
  2721. return total_size;
  2722. }
  2723. void Car_info::MergeFrom(const ::google::protobuf::Message& from) {
  2724. // @@protoc_insertion_point(generalized_merge_from_start:message.Car_info)
  2725. GOOGLE_DCHECK_NE(&from, this);
  2726. const Car_info* source =
  2727. ::google::protobuf::internal::DynamicCastToGenerated<const Car_info>(
  2728. &from);
  2729. if (source == NULL) {
  2730. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Car_info)
  2731. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2732. } else {
  2733. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Car_info)
  2734. MergeFrom(*source);
  2735. }
  2736. }
  2737. void Car_info::MergeFrom(const Car_info& from) {
  2738. // @@protoc_insertion_point(class_specific_merge_from_start:message.Car_info)
  2739. GOOGLE_DCHECK_NE(&from, this);
  2740. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2741. ::google::protobuf::uint32 cached_has_bits = 0;
  2742. (void) cached_has_bits;
  2743. cached_has_bits = from._has_bits_[0];
  2744. if (cached_has_bits & 127u) {
  2745. if (cached_has_bits & 0x00000001u) {
  2746. set_has_license();
  2747. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  2748. }
  2749. if (cached_has_bits & 0x00000002u) {
  2750. set_has_car_numberplate();
  2751. car_numberplate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_numberplate_);
  2752. }
  2753. if (cached_has_bits & 0x00000004u) {
  2754. car_length_ = from.car_length_;
  2755. }
  2756. if (cached_has_bits & 0x00000008u) {
  2757. car_width_ = from.car_width_;
  2758. }
  2759. if (cached_has_bits & 0x00000010u) {
  2760. car_height_ = from.car_height_;
  2761. }
  2762. if (cached_has_bits & 0x00000020u) {
  2763. car_wheel_base_ = from.car_wheel_base_;
  2764. }
  2765. if (cached_has_bits & 0x00000040u) {
  2766. car_wheel_width_ = from.car_wheel_width_;
  2767. }
  2768. _has_bits_[0] |= cached_has_bits;
  2769. }
  2770. }
  2771. void Car_info::CopyFrom(const ::google::protobuf::Message& from) {
  2772. // @@protoc_insertion_point(generalized_copy_from_start:message.Car_info)
  2773. if (&from == this) return;
  2774. Clear();
  2775. MergeFrom(from);
  2776. }
  2777. void Car_info::CopyFrom(const Car_info& from) {
  2778. // @@protoc_insertion_point(class_specific_copy_from_start:message.Car_info)
  2779. if (&from == this) return;
  2780. Clear();
  2781. MergeFrom(from);
  2782. }
  2783. bool Car_info::IsInitialized() const {
  2784. return true;
  2785. }
  2786. void Car_info::Swap(Car_info* other) {
  2787. if (other == this) return;
  2788. InternalSwap(other);
  2789. }
  2790. void Car_info::InternalSwap(Car_info* other) {
  2791. using std::swap;
  2792. license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2793. GetArenaNoVirtual());
  2794. car_numberplate_.Swap(&other->car_numberplate_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2795. GetArenaNoVirtual());
  2796. swap(car_length_, other->car_length_);
  2797. swap(car_width_, other->car_width_);
  2798. swap(car_height_, other->car_height_);
  2799. swap(car_wheel_base_, other->car_wheel_base_);
  2800. swap(car_wheel_width_, other->car_wheel_width_);
  2801. swap(_has_bits_[0], other->_has_bits_[0]);
  2802. _internal_metadata_.Swap(&other->_internal_metadata_);
  2803. }
  2804. ::google::protobuf::Metadata Car_info::GetMetadata() const {
  2805. protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2806. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
  2807. }
  2808. // ===================================================================
  2809. void Parkspace_info::InitAsDefaultInstance() {
  2810. ::message::_Parkspace_info_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  2811. ::message::Car_info::internal_default_instance());
  2812. }
  2813. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2814. const int Parkspace_info::kParkingspaceIndexIdFieldNumber;
  2815. const int Parkspace_info::kParkingspaceTypeFieldNumber;
  2816. const int Parkspace_info::kParkingspaceUnitIdFieldNumber;
  2817. const int Parkspace_info::kParkingspaceLabelIdFieldNumber;
  2818. const int Parkspace_info::kParkingspaceRoomIdFieldNumber;
  2819. const int Parkspace_info::kParkingspaceDirectionFieldNumber;
  2820. const int Parkspace_info::kParkingspaceFloorIdFieldNumber;
  2821. const int Parkspace_info::kParkingspaceWidthFieldNumber;
  2822. const int Parkspace_info::kParkingspaceHeightFieldNumber;
  2823. const int Parkspace_info::kParkingspaceStatusFieldNumber;
  2824. const int Parkspace_info::kCarInfoFieldNumber;
  2825. const int Parkspace_info::kEntryTimeFieldNumber;
  2826. const int Parkspace_info::kLeaveTimeFieldNumber;
  2827. const int Parkspace_info::kParkspacePathFieldNumber;
  2828. const int Parkspace_info::kPathEstimateTimeFieldNumber;
  2829. const int Parkspace_info::kParkspaceStatusTargetFieldNumber;
  2830. const int Parkspace_info::kCarTypeFieldNumber;
  2831. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2832. Parkspace_info::Parkspace_info()
  2833. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2834. ::google::protobuf::internal::InitSCC(
  2835. &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
  2836. SharedCtor();
  2837. // @@protoc_insertion_point(constructor:message.Parkspace_info)
  2838. }
  2839. Parkspace_info::Parkspace_info(const Parkspace_info& from)
  2840. : ::google::protobuf::Message(),
  2841. _internal_metadata_(NULL),
  2842. _has_bits_(from._has_bits_) {
  2843. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2844. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2845. if (from.has_entry_time()) {
  2846. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  2847. }
  2848. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2849. if (from.has_leave_time()) {
  2850. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  2851. }
  2852. if (from.has_car_info()) {
  2853. car_info_ = new ::message::Car_info(*from.car_info_);
  2854. } else {
  2855. car_info_ = NULL;
  2856. }
  2857. ::memcpy(&parkingspace_index_id_, &from.parkingspace_index_id_,
  2858. static_cast<size_t>(reinterpret_cast<char*>(&car_type_) -
  2859. reinterpret_cast<char*>(&parkingspace_index_id_)) + sizeof(car_type_));
  2860. // @@protoc_insertion_point(copy_constructor:message.Parkspace_info)
  2861. }
  2862. void Parkspace_info::SharedCtor() {
  2863. entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2864. leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2865. ::memset(&car_info_, 0, static_cast<size_t>(
  2866. reinterpret_cast<char*>(&car_type_) -
  2867. reinterpret_cast<char*>(&car_info_)) + sizeof(car_type_));
  2868. }
  2869. Parkspace_info::~Parkspace_info() {
  2870. // @@protoc_insertion_point(destructor:message.Parkspace_info)
  2871. SharedDtor();
  2872. }
  2873. void Parkspace_info::SharedDtor() {
  2874. entry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2875. leave_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2876. if (this != internal_default_instance()) delete car_info_;
  2877. }
  2878. void Parkspace_info::SetCachedSize(int size) const {
  2879. _cached_size_.Set(size);
  2880. }
  2881. const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
  2882. ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
  2883. return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2884. }
  2885. const Parkspace_info& Parkspace_info::default_instance() {
  2886. ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
  2887. return *internal_default_instance();
  2888. }
  2889. void Parkspace_info::Clear() {
  2890. // @@protoc_insertion_point(message_clear_start:message.Parkspace_info)
  2891. ::google::protobuf::uint32 cached_has_bits = 0;
  2892. // Prevent compiler warnings about cached_has_bits being unused
  2893. (void) cached_has_bits;
  2894. cached_has_bits = _has_bits_[0];
  2895. if (cached_has_bits & 7u) {
  2896. if (cached_has_bits & 0x00000001u) {
  2897. entry_time_.ClearNonDefaultToEmptyNoArena();
  2898. }
  2899. if (cached_has_bits & 0x00000002u) {
  2900. leave_time_.ClearNonDefaultToEmptyNoArena();
  2901. }
  2902. if (cached_has_bits & 0x00000004u) {
  2903. GOOGLE_DCHECK(car_info_ != NULL);
  2904. car_info_->Clear();
  2905. }
  2906. }
  2907. if (cached_has_bits & 248u) {
  2908. ::memset(&parkingspace_index_id_, 0, static_cast<size_t>(
  2909. reinterpret_cast<char*>(&parkingspace_room_id_) -
  2910. reinterpret_cast<char*>(&parkingspace_index_id_)) + sizeof(parkingspace_room_id_));
  2911. }
  2912. if (cached_has_bits & 65280u) {
  2913. ::memset(&parkingspace_direction_, 0, static_cast<size_t>(
  2914. reinterpret_cast<char*>(&parkspace_status_target_) -
  2915. reinterpret_cast<char*>(&parkingspace_direction_)) + sizeof(parkspace_status_target_));
  2916. }
  2917. car_type_ = 0;
  2918. _has_bits_.Clear();
  2919. _internal_metadata_.Clear();
  2920. }
  2921. bool Parkspace_info::MergePartialFromCodedStream(
  2922. ::google::protobuf::io::CodedInputStream* input) {
  2923. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2924. ::google::protobuf::uint32 tag;
  2925. // @@protoc_insertion_point(parse_start:message.Parkspace_info)
  2926. for (;;) {
  2927. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  2928. tag = p.first;
  2929. if (!p.second) goto handle_unusual;
  2930. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2931. // optional int32 parkingspace_index_id = 1;
  2932. case 1: {
  2933. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2934. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2935. set_has_parkingspace_index_id();
  2936. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2937. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2938. input, &parkingspace_index_id_)));
  2939. } else {
  2940. goto handle_unusual;
  2941. }
  2942. break;
  2943. }
  2944. // optional .message.Parkspace_type parkingspace_type = 2;
  2945. case 2: {
  2946. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2947. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2948. int value;
  2949. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2950. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2951. input, &value)));
  2952. if (::message::Parkspace_type_IsValid(value)) {
  2953. set_parkingspace_type(static_cast< ::message::Parkspace_type >(value));
  2954. } else {
  2955. mutable_unknown_fields()->AddVarint(
  2956. 2, static_cast< ::google::protobuf::uint64>(value));
  2957. }
  2958. } else {
  2959. goto handle_unusual;
  2960. }
  2961. break;
  2962. }
  2963. // optional int32 parkingspace_unit_id = 3;
  2964. case 3: {
  2965. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2966. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2967. set_has_parkingspace_unit_id();
  2968. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2969. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2970. input, &parkingspace_unit_id_)));
  2971. } else {
  2972. goto handle_unusual;
  2973. }
  2974. break;
  2975. }
  2976. // optional int32 parkingspace_label_id = 4;
  2977. case 4: {
  2978. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2979. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2980. set_has_parkingspace_label_id();
  2981. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2982. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2983. input, &parkingspace_label_id_)));
  2984. } else {
  2985. goto handle_unusual;
  2986. }
  2987. break;
  2988. }
  2989. // optional int32 parkingspace_room_id = 5;
  2990. case 5: {
  2991. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2992. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2993. set_has_parkingspace_room_id();
  2994. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2995. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2996. input, &parkingspace_room_id_)));
  2997. } else {
  2998. goto handle_unusual;
  2999. }
  3000. break;
  3001. }
  3002. // optional .message.Direction parkingspace_direction = 6;
  3003. case 6: {
  3004. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3005. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  3006. int value;
  3007. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3008. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3009. input, &value)));
  3010. if (::message::Direction_IsValid(value)) {
  3011. set_parkingspace_direction(static_cast< ::message::Direction >(value));
  3012. } else {
  3013. mutable_unknown_fields()->AddVarint(
  3014. 6, static_cast< ::google::protobuf::uint64>(value));
  3015. }
  3016. } else {
  3017. goto handle_unusual;
  3018. }
  3019. break;
  3020. }
  3021. // optional int32 parkingspace_floor_id = 7;
  3022. case 7: {
  3023. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3024. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  3025. set_has_parkingspace_floor_id();
  3026. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3027. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3028. input, &parkingspace_floor_id_)));
  3029. } else {
  3030. goto handle_unusual;
  3031. }
  3032. break;
  3033. }
  3034. // optional float parkingspace_width = 8;
  3035. case 8: {
  3036. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3037. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  3038. set_has_parkingspace_width();
  3039. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3040. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3041. input, &parkingspace_width_)));
  3042. } else {
  3043. goto handle_unusual;
  3044. }
  3045. break;
  3046. }
  3047. // optional float parkingspace_height = 9;
  3048. case 9: {
  3049. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3050. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  3051. set_has_parkingspace_height();
  3052. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3053. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3054. input, &parkingspace_height_)));
  3055. } else {
  3056. goto handle_unusual;
  3057. }
  3058. break;
  3059. }
  3060. // optional .message.Parkspace_status parkingspace_status = 10;
  3061. case 10: {
  3062. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3063. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  3064. int value;
  3065. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3066. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3067. input, &value)));
  3068. if (::message::Parkspace_status_IsValid(value)) {
  3069. set_parkingspace_status(static_cast< ::message::Parkspace_status >(value));
  3070. } else {
  3071. mutable_unknown_fields()->AddVarint(
  3072. 10, static_cast< ::google::protobuf::uint64>(value));
  3073. }
  3074. } else {
  3075. goto handle_unusual;
  3076. }
  3077. break;
  3078. }
  3079. // optional .message.Car_info car_info = 11;
  3080. case 11: {
  3081. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3082. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  3083. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3084. input, mutable_car_info()));
  3085. } else {
  3086. goto handle_unusual;
  3087. }
  3088. break;
  3089. }
  3090. // optional string entry_time = 12;
  3091. case 12: {
  3092. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3093. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  3094. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3095. input, this->mutable_entry_time()));
  3096. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3097. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  3098. ::google::protobuf::internal::WireFormat::PARSE,
  3099. "message.Parkspace_info.entry_time");
  3100. } else {
  3101. goto handle_unusual;
  3102. }
  3103. break;
  3104. }
  3105. // optional string leave_time = 13;
  3106. case 13: {
  3107. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3108. static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
  3109. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3110. input, this->mutable_leave_time()));
  3111. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3112. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  3113. ::google::protobuf::internal::WireFormat::PARSE,
  3114. "message.Parkspace_info.leave_time");
  3115. } else {
  3116. goto handle_unusual;
  3117. }
  3118. break;
  3119. }
  3120. // optional .message.Parkspace_path parkspace_path = 14;
  3121. case 14: {
  3122. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3123. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  3124. int value;
  3125. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3126. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3127. input, &value)));
  3128. if (::message::Parkspace_path_IsValid(value)) {
  3129. set_parkspace_path(static_cast< ::message::Parkspace_path >(value));
  3130. } else {
  3131. mutable_unknown_fields()->AddVarint(
  3132. 14, static_cast< ::google::protobuf::uint64>(value));
  3133. }
  3134. } else {
  3135. goto handle_unusual;
  3136. }
  3137. break;
  3138. }
  3139. // optional float path_estimate_time = 15;
  3140. case 15: {
  3141. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3142. static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
  3143. set_has_path_estimate_time();
  3144. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3145. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3146. input, &path_estimate_time_)));
  3147. } else {
  3148. goto handle_unusual;
  3149. }
  3150. break;
  3151. }
  3152. // optional .message.Parkspace_status parkspace_status_target = 16;
  3153. case 16: {
  3154. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3155. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  3156. int value;
  3157. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3158. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3159. input, &value)));
  3160. if (::message::Parkspace_status_IsValid(value)) {
  3161. set_parkspace_status_target(static_cast< ::message::Parkspace_status >(value));
  3162. } else {
  3163. mutable_unknown_fields()->AddVarint(
  3164. 16, static_cast< ::google::protobuf::uint64>(value));
  3165. }
  3166. } else {
  3167. goto handle_unusual;
  3168. }
  3169. break;
  3170. }
  3171. // optional .message.Car_type car_type = 17;
  3172. case 17: {
  3173. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3174. static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
  3175. int value;
  3176. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3177. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3178. input, &value)));
  3179. if (::message::Car_type_IsValid(value)) {
  3180. set_car_type(static_cast< ::message::Car_type >(value));
  3181. } else {
  3182. mutable_unknown_fields()->AddVarint(
  3183. 17, static_cast< ::google::protobuf::uint64>(value));
  3184. }
  3185. } else {
  3186. goto handle_unusual;
  3187. }
  3188. break;
  3189. }
  3190. default: {
  3191. handle_unusual:
  3192. if (tag == 0) {
  3193. goto success;
  3194. }
  3195. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3196. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3197. break;
  3198. }
  3199. }
  3200. }
  3201. success:
  3202. // @@protoc_insertion_point(parse_success:message.Parkspace_info)
  3203. return true;
  3204. failure:
  3205. // @@protoc_insertion_point(parse_failure:message.Parkspace_info)
  3206. return false;
  3207. #undef DO_
  3208. }
  3209. void Parkspace_info::SerializeWithCachedSizes(
  3210. ::google::protobuf::io::CodedOutputStream* output) const {
  3211. // @@protoc_insertion_point(serialize_start:message.Parkspace_info)
  3212. ::google::protobuf::uint32 cached_has_bits = 0;
  3213. (void) cached_has_bits;
  3214. cached_has_bits = _has_bits_[0];
  3215. // optional int32 parkingspace_index_id = 1;
  3216. if (cached_has_bits & 0x00000008u) {
  3217. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parkingspace_index_id(), output);
  3218. }
  3219. // optional .message.Parkspace_type parkingspace_type = 2;
  3220. if (cached_has_bits & 0x00000010u) {
  3221. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3222. 2, this->parkingspace_type(), output);
  3223. }
  3224. // optional int32 parkingspace_unit_id = 3;
  3225. if (cached_has_bits & 0x00000020u) {
  3226. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->parkingspace_unit_id(), output);
  3227. }
  3228. // optional int32 parkingspace_label_id = 4;
  3229. if (cached_has_bits & 0x00000040u) {
  3230. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->parkingspace_label_id(), output);
  3231. }
  3232. // optional int32 parkingspace_room_id = 5;
  3233. if (cached_has_bits & 0x00000080u) {
  3234. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parkingspace_room_id(), output);
  3235. }
  3236. // optional .message.Direction parkingspace_direction = 6;
  3237. if (cached_has_bits & 0x00000100u) {
  3238. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3239. 6, this->parkingspace_direction(), output);
  3240. }
  3241. // optional int32 parkingspace_floor_id = 7;
  3242. if (cached_has_bits & 0x00000200u) {
  3243. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->parkingspace_floor_id(), output);
  3244. }
  3245. // optional float parkingspace_width = 8;
  3246. if (cached_has_bits & 0x00000400u) {
  3247. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->parkingspace_width(), output);
  3248. }
  3249. // optional float parkingspace_height = 9;
  3250. if (cached_has_bits & 0x00000800u) {
  3251. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->parkingspace_height(), output);
  3252. }
  3253. // optional .message.Parkspace_status parkingspace_status = 10;
  3254. if (cached_has_bits & 0x00001000u) {
  3255. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3256. 10, this->parkingspace_status(), output);
  3257. }
  3258. // optional .message.Car_info car_info = 11;
  3259. if (cached_has_bits & 0x00000004u) {
  3260. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3261. 11, this->_internal_car_info(), output);
  3262. }
  3263. // optional string entry_time = 12;
  3264. if (cached_has_bits & 0x00000001u) {
  3265. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3266. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  3267. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3268. "message.Parkspace_info.entry_time");
  3269. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3270. 12, this->entry_time(), output);
  3271. }
  3272. // optional string leave_time = 13;
  3273. if (cached_has_bits & 0x00000002u) {
  3274. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3275. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  3276. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3277. "message.Parkspace_info.leave_time");
  3278. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3279. 13, this->leave_time(), output);
  3280. }
  3281. // optional .message.Parkspace_path parkspace_path = 14;
  3282. if (cached_has_bits & 0x00002000u) {
  3283. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3284. 14, this->parkspace_path(), output);
  3285. }
  3286. // optional float path_estimate_time = 15;
  3287. if (cached_has_bits & 0x00004000u) {
  3288. ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->path_estimate_time(), output);
  3289. }
  3290. // optional .message.Parkspace_status parkspace_status_target = 16;
  3291. if (cached_has_bits & 0x00008000u) {
  3292. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3293. 16, this->parkspace_status_target(), output);
  3294. }
  3295. // optional .message.Car_type car_type = 17;
  3296. if (cached_has_bits & 0x00010000u) {
  3297. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3298. 17, this->car_type(), output);
  3299. }
  3300. if (_internal_metadata_.have_unknown_fields()) {
  3301. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3302. _internal_metadata_.unknown_fields(), output);
  3303. }
  3304. // @@protoc_insertion_point(serialize_end:message.Parkspace_info)
  3305. }
  3306. ::google::protobuf::uint8* Parkspace_info::InternalSerializeWithCachedSizesToArray(
  3307. bool deterministic, ::google::protobuf::uint8* target) const {
  3308. (void)deterministic; // Unused
  3309. // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_info)
  3310. ::google::protobuf::uint32 cached_has_bits = 0;
  3311. (void) cached_has_bits;
  3312. cached_has_bits = _has_bits_[0];
  3313. // optional int32 parkingspace_index_id = 1;
  3314. if (cached_has_bits & 0x00000008u) {
  3315. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parkingspace_index_id(), target);
  3316. }
  3317. // optional .message.Parkspace_type parkingspace_type = 2;
  3318. if (cached_has_bits & 0x00000010u) {
  3319. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3320. 2, this->parkingspace_type(), target);
  3321. }
  3322. // optional int32 parkingspace_unit_id = 3;
  3323. if (cached_has_bits & 0x00000020u) {
  3324. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->parkingspace_unit_id(), target);
  3325. }
  3326. // optional int32 parkingspace_label_id = 4;
  3327. if (cached_has_bits & 0x00000040u) {
  3328. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->parkingspace_label_id(), target);
  3329. }
  3330. // optional int32 parkingspace_room_id = 5;
  3331. if (cached_has_bits & 0x00000080u) {
  3332. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parkingspace_room_id(), target);
  3333. }
  3334. // optional .message.Direction parkingspace_direction = 6;
  3335. if (cached_has_bits & 0x00000100u) {
  3336. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3337. 6, this->parkingspace_direction(), target);
  3338. }
  3339. // optional int32 parkingspace_floor_id = 7;
  3340. if (cached_has_bits & 0x00000200u) {
  3341. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->parkingspace_floor_id(), target);
  3342. }
  3343. // optional float parkingspace_width = 8;
  3344. if (cached_has_bits & 0x00000400u) {
  3345. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->parkingspace_width(), target);
  3346. }
  3347. // optional float parkingspace_height = 9;
  3348. if (cached_has_bits & 0x00000800u) {
  3349. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->parkingspace_height(), target);
  3350. }
  3351. // optional .message.Parkspace_status parkingspace_status = 10;
  3352. if (cached_has_bits & 0x00001000u) {
  3353. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3354. 10, this->parkingspace_status(), target);
  3355. }
  3356. // optional .message.Car_info car_info = 11;
  3357. if (cached_has_bits & 0x00000004u) {
  3358. target = ::google::protobuf::internal::WireFormatLite::
  3359. InternalWriteMessageToArray(
  3360. 11, this->_internal_car_info(), deterministic, target);
  3361. }
  3362. // optional string entry_time = 12;
  3363. if (cached_has_bits & 0x00000001u) {
  3364. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3365. this->entry_time().data(), static_cast<int>(this->entry_time().length()),
  3366. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3367. "message.Parkspace_info.entry_time");
  3368. target =
  3369. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3370. 12, this->entry_time(), target);
  3371. }
  3372. // optional string leave_time = 13;
  3373. if (cached_has_bits & 0x00000002u) {
  3374. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3375. this->leave_time().data(), static_cast<int>(this->leave_time().length()),
  3376. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3377. "message.Parkspace_info.leave_time");
  3378. target =
  3379. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3380. 13, this->leave_time(), target);
  3381. }
  3382. // optional .message.Parkspace_path parkspace_path = 14;
  3383. if (cached_has_bits & 0x00002000u) {
  3384. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3385. 14, this->parkspace_path(), target);
  3386. }
  3387. // optional float path_estimate_time = 15;
  3388. if (cached_has_bits & 0x00004000u) {
  3389. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->path_estimate_time(), target);
  3390. }
  3391. // optional .message.Parkspace_status parkspace_status_target = 16;
  3392. if (cached_has_bits & 0x00008000u) {
  3393. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3394. 16, this->parkspace_status_target(), target);
  3395. }
  3396. // optional .message.Car_type car_type = 17;
  3397. if (cached_has_bits & 0x00010000u) {
  3398. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3399. 17, this->car_type(), target);
  3400. }
  3401. if (_internal_metadata_.have_unknown_fields()) {
  3402. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3403. _internal_metadata_.unknown_fields(), target);
  3404. }
  3405. // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_info)
  3406. return target;
  3407. }
  3408. size_t Parkspace_info::ByteSizeLong() const {
  3409. // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_info)
  3410. size_t total_size = 0;
  3411. if (_internal_metadata_.have_unknown_fields()) {
  3412. total_size +=
  3413. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3414. _internal_metadata_.unknown_fields());
  3415. }
  3416. if (_has_bits_[0 / 32] & 255u) {
  3417. // optional string entry_time = 12;
  3418. if (has_entry_time()) {
  3419. total_size += 1 +
  3420. ::google::protobuf::internal::WireFormatLite::StringSize(
  3421. this->entry_time());
  3422. }
  3423. // optional string leave_time = 13;
  3424. if (has_leave_time()) {
  3425. total_size += 1 +
  3426. ::google::protobuf::internal::WireFormatLite::StringSize(
  3427. this->leave_time());
  3428. }
  3429. // optional .message.Car_info car_info = 11;
  3430. if (has_car_info()) {
  3431. total_size += 1 +
  3432. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3433. *car_info_);
  3434. }
  3435. // optional int32 parkingspace_index_id = 1;
  3436. if (has_parkingspace_index_id()) {
  3437. total_size += 1 +
  3438. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3439. this->parkingspace_index_id());
  3440. }
  3441. // optional .message.Parkspace_type parkingspace_type = 2;
  3442. if (has_parkingspace_type()) {
  3443. total_size += 1 +
  3444. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkingspace_type());
  3445. }
  3446. // optional int32 parkingspace_unit_id = 3;
  3447. if (has_parkingspace_unit_id()) {
  3448. total_size += 1 +
  3449. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3450. this->parkingspace_unit_id());
  3451. }
  3452. // optional int32 parkingspace_label_id = 4;
  3453. if (has_parkingspace_label_id()) {
  3454. total_size += 1 +
  3455. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3456. this->parkingspace_label_id());
  3457. }
  3458. // optional int32 parkingspace_room_id = 5;
  3459. if (has_parkingspace_room_id()) {
  3460. total_size += 1 +
  3461. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3462. this->parkingspace_room_id());
  3463. }
  3464. }
  3465. if (_has_bits_[8 / 32] & 65280u) {
  3466. // optional .message.Direction parkingspace_direction = 6;
  3467. if (has_parkingspace_direction()) {
  3468. total_size += 1 +
  3469. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkingspace_direction());
  3470. }
  3471. // optional int32 parkingspace_floor_id = 7;
  3472. if (has_parkingspace_floor_id()) {
  3473. total_size += 1 +
  3474. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3475. this->parkingspace_floor_id());
  3476. }
  3477. // optional float parkingspace_width = 8;
  3478. if (has_parkingspace_width()) {
  3479. total_size += 1 + 4;
  3480. }
  3481. // optional float parkingspace_height = 9;
  3482. if (has_parkingspace_height()) {
  3483. total_size += 1 + 4;
  3484. }
  3485. // optional .message.Parkspace_status parkingspace_status = 10;
  3486. if (has_parkingspace_status()) {
  3487. total_size += 1 +
  3488. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkingspace_status());
  3489. }
  3490. // optional .message.Parkspace_path parkspace_path = 14;
  3491. if (has_parkspace_path()) {
  3492. total_size += 1 +
  3493. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_path());
  3494. }
  3495. // optional float path_estimate_time = 15;
  3496. if (has_path_estimate_time()) {
  3497. total_size += 1 + 4;
  3498. }
  3499. // optional .message.Parkspace_status parkspace_status_target = 16;
  3500. if (has_parkspace_status_target()) {
  3501. total_size += 2 +
  3502. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status_target());
  3503. }
  3504. }
  3505. // optional .message.Car_type car_type = 17;
  3506. if (has_car_type()) {
  3507. total_size += 2 +
  3508. ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type());
  3509. }
  3510. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3511. SetCachedSize(cached_size);
  3512. return total_size;
  3513. }
  3514. void Parkspace_info::MergeFrom(const ::google::protobuf::Message& from) {
  3515. // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_info)
  3516. GOOGLE_DCHECK_NE(&from, this);
  3517. const Parkspace_info* source =
  3518. ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_info>(
  3519. &from);
  3520. if (source == NULL) {
  3521. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_info)
  3522. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3523. } else {
  3524. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_info)
  3525. MergeFrom(*source);
  3526. }
  3527. }
  3528. void Parkspace_info::MergeFrom(const Parkspace_info& from) {
  3529. // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_info)
  3530. GOOGLE_DCHECK_NE(&from, this);
  3531. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3532. ::google::protobuf::uint32 cached_has_bits = 0;
  3533. (void) cached_has_bits;
  3534. cached_has_bits = from._has_bits_[0];
  3535. if (cached_has_bits & 255u) {
  3536. if (cached_has_bits & 0x00000001u) {
  3537. set_has_entry_time();
  3538. entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_);
  3539. }
  3540. if (cached_has_bits & 0x00000002u) {
  3541. set_has_leave_time();
  3542. leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_);
  3543. }
  3544. if (cached_has_bits & 0x00000004u) {
  3545. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  3546. }
  3547. if (cached_has_bits & 0x00000008u) {
  3548. parkingspace_index_id_ = from.parkingspace_index_id_;
  3549. }
  3550. if (cached_has_bits & 0x00000010u) {
  3551. parkingspace_type_ = from.parkingspace_type_;
  3552. }
  3553. if (cached_has_bits & 0x00000020u) {
  3554. parkingspace_unit_id_ = from.parkingspace_unit_id_;
  3555. }
  3556. if (cached_has_bits & 0x00000040u) {
  3557. parkingspace_label_id_ = from.parkingspace_label_id_;
  3558. }
  3559. if (cached_has_bits & 0x00000080u) {
  3560. parkingspace_room_id_ = from.parkingspace_room_id_;
  3561. }
  3562. _has_bits_[0] |= cached_has_bits;
  3563. }
  3564. if (cached_has_bits & 65280u) {
  3565. if (cached_has_bits & 0x00000100u) {
  3566. parkingspace_direction_ = from.parkingspace_direction_;
  3567. }
  3568. if (cached_has_bits & 0x00000200u) {
  3569. parkingspace_floor_id_ = from.parkingspace_floor_id_;
  3570. }
  3571. if (cached_has_bits & 0x00000400u) {
  3572. parkingspace_width_ = from.parkingspace_width_;
  3573. }
  3574. if (cached_has_bits & 0x00000800u) {
  3575. parkingspace_height_ = from.parkingspace_height_;
  3576. }
  3577. if (cached_has_bits & 0x00001000u) {
  3578. parkingspace_status_ = from.parkingspace_status_;
  3579. }
  3580. if (cached_has_bits & 0x00002000u) {
  3581. parkspace_path_ = from.parkspace_path_;
  3582. }
  3583. if (cached_has_bits & 0x00004000u) {
  3584. path_estimate_time_ = from.path_estimate_time_;
  3585. }
  3586. if (cached_has_bits & 0x00008000u) {
  3587. parkspace_status_target_ = from.parkspace_status_target_;
  3588. }
  3589. _has_bits_[0] |= cached_has_bits;
  3590. }
  3591. if (cached_has_bits & 0x00010000u) {
  3592. set_car_type(from.car_type());
  3593. }
  3594. }
  3595. void Parkspace_info::CopyFrom(const ::google::protobuf::Message& from) {
  3596. // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_info)
  3597. if (&from == this) return;
  3598. Clear();
  3599. MergeFrom(from);
  3600. }
  3601. void Parkspace_info::CopyFrom(const Parkspace_info& from) {
  3602. // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_info)
  3603. if (&from == this) return;
  3604. Clear();
  3605. MergeFrom(from);
  3606. }
  3607. bool Parkspace_info::IsInitialized() const {
  3608. return true;
  3609. }
  3610. void Parkspace_info::Swap(Parkspace_info* other) {
  3611. if (other == this) return;
  3612. InternalSwap(other);
  3613. }
  3614. void Parkspace_info::InternalSwap(Parkspace_info* other) {
  3615. using std::swap;
  3616. entry_time_.Swap(&other->entry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3617. GetArenaNoVirtual());
  3618. leave_time_.Swap(&other->leave_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3619. GetArenaNoVirtual());
  3620. swap(car_info_, other->car_info_);
  3621. swap(parkingspace_index_id_, other->parkingspace_index_id_);
  3622. swap(parkingspace_type_, other->parkingspace_type_);
  3623. swap(parkingspace_unit_id_, other->parkingspace_unit_id_);
  3624. swap(parkingspace_label_id_, other->parkingspace_label_id_);
  3625. swap(parkingspace_room_id_, other->parkingspace_room_id_);
  3626. swap(parkingspace_direction_, other->parkingspace_direction_);
  3627. swap(parkingspace_floor_id_, other->parkingspace_floor_id_);
  3628. swap(parkingspace_width_, other->parkingspace_width_);
  3629. swap(parkingspace_height_, other->parkingspace_height_);
  3630. swap(parkingspace_status_, other->parkingspace_status_);
  3631. swap(parkspace_path_, other->parkspace_path_);
  3632. swap(path_estimate_time_, other->path_estimate_time_);
  3633. swap(parkspace_status_target_, other->parkspace_status_target_);
  3634. swap(car_type_, other->car_type_);
  3635. swap(_has_bits_[0], other->_has_bits_[0]);
  3636. _internal_metadata_.Swap(&other->_internal_metadata_);
  3637. }
  3638. ::google::protobuf::Metadata Parkspace_info::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::Id_struct* Arena::CreateMaybeMessage< ::message::Id_struct >(Arena* arena) {
  3656. return Arena::CreateInternal< ::message::Id_struct >(arena);
  3657. }
  3658. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Locate_information* Arena::CreateMaybeMessage< ::message::Locate_information >(Arena* arena) {
  3659. return Arena::CreateInternal< ::message::Locate_information >(arena);
  3660. }
  3661. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Car_info* Arena::CreateMaybeMessage< ::message::Car_info >(Arena* arena) {
  3662. return Arena::CreateInternal< ::message::Car_info >(arena);
  3663. }
  3664. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Parkspace_info* Arena::CreateMaybeMessage< ::message::Parkspace_info >(Arena* arena) {
  3665. return Arena::CreateInternal< ::message::Parkspace_info >(arena);
  3666. }
  3667. } // namespace protobuf
  3668. } // namespace google
  3669. // @@protoc_insertion_point(global_scope)