message_base.pb.cc 132 KB

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