message_base.pb.cc 127 KB

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