message_base.pb.cc 129 KB

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