message_base.pb.cc 113 KB

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