message_base.pb.cc 130 KB

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