message_base.pb.cc 140 KB

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