log_process.pb.cc 98 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: log_process.proto
  3. #include "log_process.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_central_5fcontrol_5fmessage_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_central_5fcontrol_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Process_manual_operation_msg;
  20. } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
  21. namespace protobuf_dispatch_5fmessage_2eproto {
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Dispatch_request_msg;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Dispatch_response_msg;
  24. } // namespace protobuf_dispatch_5fmessage_2eproto
  25. namespace protobuf_log_5fprocess_2eproto {
  26. extern PROTOBUF_INTERNAL_EXPORT_protobuf_log_5fprocess_2eproto ::google::protobuf::internal::SCCInfo<12> scc_info_Node_log;
  27. extern PROTOBUF_INTERNAL_EXPORT_protobuf_log_5fprocess_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Manual_operation_log;
  28. extern PROTOBUF_INTERNAL_EXPORT_protobuf_log_5fprocess_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Log_data;
  29. } // namespace protobuf_log_5fprocess_2eproto
  30. namespace protobuf_measure_5fmessage_2eproto {
  31. extern PROTOBUF_INTERNAL_EXPORT_protobuf_measure_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Measure_request_msg;
  32. extern PROTOBUF_INTERNAL_EXPORT_protobuf_measure_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Measure_response_msg;
  33. } // namespace protobuf_measure_5fmessage_2eproto
  34. namespace protobuf_parkspace_5fallocation_5fmessage_2eproto {
  35. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_allocation_request_msg;
  36. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_confirm_alloc_request_msg;
  37. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_release_request_msg;
  38. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_search_request_msg;
  39. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_allocation_response_msg;
  40. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_confirm_alloc_response_msg;
  41. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_release_response_msg;
  42. extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_search_response_msg;
  43. } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto
  44. namespace message {
  45. class Node_logDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Node_log>
  48. _instance;
  49. const ::message::Parkspace_allocation_request_msg* alloc_request_;
  50. const ::message::Parkspace_search_request_msg* search_request_;
  51. const ::message::Parkspace_release_request_msg* release_request_;
  52. const ::message::Parkspace_confirm_alloc_request_msg* confirm_request_;
  53. const ::message::Measure_request_msg* measure_request_;
  54. const ::message::Dispatch_request_msg* dispatch_request_;
  55. const ::message::Parkspace_allocation_response_msg* alloc_response_;
  56. const ::message::Parkspace_search_response_msg* search_response_;
  57. const ::message::Parkspace_release_response_msg* release_response_;
  58. const ::message::Parkspace_confirm_alloc_response_msg* confirm_response_;
  59. const ::message::Measure_response_msg* measure_response_;
  60. const ::message::Dispatch_response_msg* dispatch_response_;
  61. } _Node_log_default_instance_;
  62. class Manual_operation_logDefaultTypeInternal {
  63. public:
  64. ::google::protobuf::internal::ExplicitlyConstructed<Manual_operation_log>
  65. _instance;
  66. } _Manual_operation_log_default_instance_;
  67. class Log_dataDefaultTypeInternal {
  68. public:
  69. ::google::protobuf::internal::ExplicitlyConstructed<Log_data>
  70. _instance;
  71. ::google::protobuf::internal::ArenaStringPtr str_log_;
  72. const ::message::Node_log* node_log_;
  73. const ::message::Manual_operation_log* manual_operator_log_;
  74. } _Log_data_default_instance_;
  75. class Process_logDefaultTypeInternal {
  76. public:
  77. ::google::protobuf::internal::ExplicitlyConstructed<Process_log>
  78. _instance;
  79. } _Process_log_default_instance_;
  80. } // namespace message
  81. namespace protobuf_log_5fprocess_2eproto {
  82. static void InitDefaultsNode_log() {
  83. GOOGLE_PROTOBUF_VERIFY_VERSION;
  84. {
  85. void* ptr = &::message::_Node_log_default_instance_;
  86. new (ptr) ::message::Node_log();
  87. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  88. }
  89. ::message::Node_log::InitAsDefaultInstance();
  90. }
  91. ::google::protobuf::internal::SCCInfo<12> scc_info_Node_log =
  92. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 12, InitDefaultsNode_log}, {
  93. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_allocation_request_msg.base,
  94. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_search_request_msg.base,
  95. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_release_request_msg.base,
  96. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_confirm_alloc_request_msg.base,
  97. &protobuf_measure_5fmessage_2eproto::scc_info_Measure_request_msg.base,
  98. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_request_msg.base,
  99. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_allocation_response_msg.base,
  100. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_search_response_msg.base,
  101. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_release_response_msg.base,
  102. &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_confirm_alloc_response_msg.base,
  103. &protobuf_measure_5fmessage_2eproto::scc_info_Measure_response_msg.base,
  104. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_response_msg.base,}};
  105. static void InitDefaultsManual_operation_log() {
  106. GOOGLE_PROTOBUF_VERIFY_VERSION;
  107. {
  108. void* ptr = &::message::_Manual_operation_log_default_instance_;
  109. new (ptr) ::message::Manual_operation_log();
  110. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  111. }
  112. ::message::Manual_operation_log::InitAsDefaultInstance();
  113. }
  114. ::google::protobuf::internal::SCCInfo<1> scc_info_Manual_operation_log =
  115. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManual_operation_log}, {
  116. &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Process_manual_operation_msg.base,}};
  117. static void InitDefaultsLog_data() {
  118. GOOGLE_PROTOBUF_VERIFY_VERSION;
  119. {
  120. void* ptr = &::message::_Log_data_default_instance_;
  121. new (ptr) ::message::Log_data();
  122. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  123. }
  124. ::message::Log_data::InitAsDefaultInstance();
  125. }
  126. ::google::protobuf::internal::SCCInfo<2> scc_info_Log_data =
  127. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLog_data}, {
  128. &protobuf_log_5fprocess_2eproto::scc_info_Node_log.base,
  129. &protobuf_log_5fprocess_2eproto::scc_info_Manual_operation_log.base,}};
  130. static void InitDefaultsProcess_log() {
  131. GOOGLE_PROTOBUF_VERIFY_VERSION;
  132. {
  133. void* ptr = &::message::_Process_log_default_instance_;
  134. new (ptr) ::message::Process_log();
  135. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  136. }
  137. ::message::Process_log::InitAsDefaultInstance();
  138. }
  139. ::google::protobuf::internal::SCCInfo<1> scc_info_Process_log =
  140. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProcess_log}, {
  141. &protobuf_log_5fprocess_2eproto::scc_info_Log_data.base,}};
  142. void InitDefaults() {
  143. ::google::protobuf::internal::InitSCC(&scc_info_Node_log.base);
  144. ::google::protobuf::internal::InitSCC(&scc_info_Manual_operation_log.base);
  145. ::google::protobuf::internal::InitSCC(&scc_info_Log_data.base);
  146. ::google::protobuf::internal::InitSCC(&scc_info_Process_log.base);
  147. }
  148. ::google::protobuf::Metadata file_level_metadata[4];
  149. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  150. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, _has_bits_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, _internal_metadata_),
  153. ~0u, // no _extensions_
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, _oneof_case_[0]),
  155. ~0u, // no _weak_field_map_
  156. offsetof(::message::Node_logDefaultTypeInternal, alloc_request_),
  157. offsetof(::message::Node_logDefaultTypeInternal, search_request_),
  158. offsetof(::message::Node_logDefaultTypeInternal, release_request_),
  159. offsetof(::message::Node_logDefaultTypeInternal, confirm_request_),
  160. offsetof(::message::Node_logDefaultTypeInternal, measure_request_),
  161. offsetof(::message::Node_logDefaultTypeInternal, dispatch_request_),
  162. offsetof(::message::Node_logDefaultTypeInternal, alloc_response_),
  163. offsetof(::message::Node_logDefaultTypeInternal, search_response_),
  164. offsetof(::message::Node_logDefaultTypeInternal, release_response_),
  165. offsetof(::message::Node_logDefaultTypeInternal, confirm_response_),
  166. offsetof(::message::Node_logDefaultTypeInternal, measure_response_),
  167. offsetof(::message::Node_logDefaultTypeInternal, dispatch_response_),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, description_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, request_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, response_),
  171. ~0u,
  172. ~0u,
  173. ~0u,
  174. ~0u,
  175. ~0u,
  176. ~0u,
  177. ~0u,
  178. ~0u,
  179. ~0u,
  180. ~0u,
  181. ~0u,
  182. ~0u,
  183. 0,
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, _has_bits_),
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, _internal_metadata_),
  186. ~0u, // no _extensions_
  187. ~0u, // no _oneof_case_
  188. ~0u, // no _weak_field_map_
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, manual_operation_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, description_),
  191. 1,
  192. 0,
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, _has_bits_),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, _internal_metadata_),
  195. ~0u, // no _extensions_
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, _oneof_case_[0]),
  197. ~0u, // no _weak_field_map_
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, log_severity_),
  199. offsetof(::message::Log_dataDefaultTypeInternal, str_log_),
  200. offsetof(::message::Log_dataDefaultTypeInternal, node_log_),
  201. offsetof(::message::Log_dataDefaultTypeInternal, manual_operator_log_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, data_),
  203. 0,
  204. ~0u,
  205. ~0u,
  206. ~0u,
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, _has_bits_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, _internal_metadata_),
  209. ~0u, // no _extensions_
  210. ~0u, // no _oneof_case_
  211. ~0u, // no _weak_field_map_
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, process_type_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, log_data_),
  214. 0,
  215. ~0u,
  216. };
  217. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  218. { 0, 20, sizeof(::message::Node_log)},
  219. { 33, 40, sizeof(::message::Manual_operation_log)},
  220. { 42, 52, sizeof(::message::Log_data)},
  221. { 56, 63, sizeof(::message::Process_log)},
  222. };
  223. static ::google::protobuf::Message const * const file_default_instances[] = {
  224. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Node_log_default_instance_),
  225. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Manual_operation_log_default_instance_),
  226. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Log_data_default_instance_),
  227. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Process_log_default_instance_),
  228. };
  229. void protobuf_AssignDescriptors() {
  230. AddDescriptors();
  231. AssignDescriptors(
  232. "log_process.proto", schemas, file_default_instances, TableStruct::offsets,
  233. file_level_metadata, file_level_enum_descriptors, NULL);
  234. }
  235. void protobuf_AssignDescriptorsOnce() {
  236. static ::google::protobuf::internal::once_flag once;
  237. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  238. }
  239. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  240. void protobuf_RegisterTypes(const ::std::string&) {
  241. protobuf_AssignDescriptorsOnce();
  242. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  243. }
  244. void AddDescriptorsImpl() {
  245. InitDefaults();
  246. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  247. "\n\021log_process.proto\022\007message\032\022message_ba"
  248. "se.proto\032\"parkspace_allocation_message.p"
  249. "roto\032\025measure_message.proto\032\026dispatch_me"
  250. "ssage.proto\032\035central_control_message.pro"
  251. "to\"\314\006\n\010Node_log\022B\n\ralloc_request\030\001 \001(\0132)"
  252. ".message.Parkspace_allocation_request_ms"
  253. "gH\000\022\?\n\016search_request\030\003 \001(\0132%.message.Pa"
  254. "rkspace_search_request_msgH\000\022A\n\017release_"
  255. "request\030\005 \001(\0132&.message.Parkspace_releas"
  256. "e_request_msgH\000\022G\n\017confirm_request\030\007 \001(\013"
  257. "2,.message.Parkspace_confirm_alloc_reque"
  258. "st_msgH\000\0227\n\017measure_request\030\t \001(\0132\034.mess"
  259. "age.Measure_request_msgH\000\0229\n\020dispatch_re"
  260. "quest\030\013 \001(\0132\035.message.Dispatch_request_m"
  261. "sgH\000\022D\n\016alloc_response\030\002 \001(\0132*.message.P"
  262. "arkspace_allocation_response_msgH\001\022A\n\017se"
  263. "arch_response\030\004 \001(\0132&.message.Parkspace_"
  264. "search_response_msgH\001\022C\n\020release_respons"
  265. "e\030\006 \001(\0132\'.message.Parkspace_release_resp"
  266. "onse_msgH\001\022I\n\020confirm_response\030\010 \001(\0132-.m"
  267. "essage.Parkspace_confirm_alloc_response_"
  268. "msgH\001\0229\n\020measure_response\030\n \001(\0132\035.messag"
  269. "e.Measure_response_msgH\001\022;\n\021dispatch_res"
  270. "ponse\030\014 \001(\0132\036.message.Dispatch_response_"
  271. "msgH\001\022\023\n\013description\030\r \001(\tB\t\n\007requestB\n\n"
  272. "\010response\"l\n\024Manual_operation_log\022\?\n\020man"
  273. "ual_operation\030\001 \002(\0132%.message.Process_ma"
  274. "nual_operation_msg\022\023\n\013description\030\002 \001(\t\""
  275. "\352\001\n\010Log_data\0220\n\014log_severity\030\001 \002(\0162\032.mes"
  276. "sage.Log_data.Severity\022\021\n\007str_log\030\002 \001(\tH"
  277. "\000\022%\n\010node_log\030\003 \001(\0132\021.message.Node_logH\000"
  278. "\022<\n\023manual_operator_log\030\004 \001(\0132\035.message."
  279. "Manual_operation_logH\000\",\n\010Severity\022\010\n\004IN"
  280. "FO\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\006\n\004data\"_\n\013"
  281. "Process_log\022+\n\014process_type\030\001 \002(\0162\025.mess"
  282. "age.Process_type\022#\n\010log_data\030\002 \003(\0132\021.mes"
  283. "sage.Log_data"
  284. };
  285. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  286. descriptor, 1453);
  287. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  288. "log_process.proto", &protobuf_RegisterTypes);
  289. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  290. ::protobuf_parkspace_5fallocation_5fmessage_2eproto::AddDescriptors();
  291. ::protobuf_measure_5fmessage_2eproto::AddDescriptors();
  292. ::protobuf_dispatch_5fmessage_2eproto::AddDescriptors();
  293. ::protobuf_central_5fcontrol_5fmessage_2eproto::AddDescriptors();
  294. }
  295. void AddDescriptors() {
  296. static ::google::protobuf::internal::once_flag once;
  297. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  298. }
  299. // Force AddDescriptors() to be called at dynamic initialization time.
  300. struct StaticDescriptorInitializer {
  301. StaticDescriptorInitializer() {
  302. AddDescriptors();
  303. }
  304. } static_descriptor_initializer;
  305. } // namespace protobuf_log_5fprocess_2eproto
  306. namespace message {
  307. const ::google::protobuf::EnumDescriptor* Log_data_Severity_descriptor() {
  308. protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  309. return protobuf_log_5fprocess_2eproto::file_level_enum_descriptors[0];
  310. }
  311. bool Log_data_Severity_IsValid(int value) {
  312. switch (value) {
  313. case 0:
  314. case 1:
  315. case 2:
  316. return true;
  317. default:
  318. return false;
  319. }
  320. }
  321. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  322. const Log_data_Severity Log_data::INFO;
  323. const Log_data_Severity Log_data::WARNING;
  324. const Log_data_Severity Log_data::ERROR;
  325. const Log_data_Severity Log_data::Severity_MIN;
  326. const Log_data_Severity Log_data::Severity_MAX;
  327. const int Log_data::Severity_ARRAYSIZE;
  328. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  329. // ===================================================================
  330. void Node_log::InitAsDefaultInstance() {
  331. ::message::_Node_log_default_instance_.alloc_request_ = const_cast< ::message::Parkspace_allocation_request_msg*>(
  332. ::message::Parkspace_allocation_request_msg::internal_default_instance());
  333. ::message::_Node_log_default_instance_.search_request_ = const_cast< ::message::Parkspace_search_request_msg*>(
  334. ::message::Parkspace_search_request_msg::internal_default_instance());
  335. ::message::_Node_log_default_instance_.release_request_ = const_cast< ::message::Parkspace_release_request_msg*>(
  336. ::message::Parkspace_release_request_msg::internal_default_instance());
  337. ::message::_Node_log_default_instance_.confirm_request_ = const_cast< ::message::Parkspace_confirm_alloc_request_msg*>(
  338. ::message::Parkspace_confirm_alloc_request_msg::internal_default_instance());
  339. ::message::_Node_log_default_instance_.measure_request_ = const_cast< ::message::Measure_request_msg*>(
  340. ::message::Measure_request_msg::internal_default_instance());
  341. ::message::_Node_log_default_instance_.dispatch_request_ = const_cast< ::message::Dispatch_request_msg*>(
  342. ::message::Dispatch_request_msg::internal_default_instance());
  343. ::message::_Node_log_default_instance_.alloc_response_ = const_cast< ::message::Parkspace_allocation_response_msg*>(
  344. ::message::Parkspace_allocation_response_msg::internal_default_instance());
  345. ::message::_Node_log_default_instance_.search_response_ = const_cast< ::message::Parkspace_search_response_msg*>(
  346. ::message::Parkspace_search_response_msg::internal_default_instance());
  347. ::message::_Node_log_default_instance_.release_response_ = const_cast< ::message::Parkspace_release_response_msg*>(
  348. ::message::Parkspace_release_response_msg::internal_default_instance());
  349. ::message::_Node_log_default_instance_.confirm_response_ = const_cast< ::message::Parkspace_confirm_alloc_response_msg*>(
  350. ::message::Parkspace_confirm_alloc_response_msg::internal_default_instance());
  351. ::message::_Node_log_default_instance_.measure_response_ = const_cast< ::message::Measure_response_msg*>(
  352. ::message::Measure_response_msg::internal_default_instance());
  353. ::message::_Node_log_default_instance_.dispatch_response_ = const_cast< ::message::Dispatch_response_msg*>(
  354. ::message::Dispatch_response_msg::internal_default_instance());
  355. }
  356. void Node_log::set_allocated_alloc_request(::message::Parkspace_allocation_request_msg* alloc_request) {
  357. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  358. clear_request();
  359. if (alloc_request) {
  360. ::google::protobuf::Arena* submessage_arena = NULL;
  361. if (message_arena != submessage_arena) {
  362. alloc_request = ::google::protobuf::internal::GetOwnedMessage(
  363. message_arena, alloc_request, submessage_arena);
  364. }
  365. set_has_alloc_request();
  366. request_.alloc_request_ = alloc_request;
  367. }
  368. // @@protoc_insertion_point(field_set_allocated:message.Node_log.alloc_request)
  369. }
  370. void Node_log::clear_alloc_request() {
  371. if (has_alloc_request()) {
  372. delete request_.alloc_request_;
  373. clear_has_request();
  374. }
  375. }
  376. void Node_log::set_allocated_search_request(::message::Parkspace_search_request_msg* search_request) {
  377. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  378. clear_request();
  379. if (search_request) {
  380. ::google::protobuf::Arena* submessage_arena = NULL;
  381. if (message_arena != submessage_arena) {
  382. search_request = ::google::protobuf::internal::GetOwnedMessage(
  383. message_arena, search_request, submessage_arena);
  384. }
  385. set_has_search_request();
  386. request_.search_request_ = search_request;
  387. }
  388. // @@protoc_insertion_point(field_set_allocated:message.Node_log.search_request)
  389. }
  390. void Node_log::clear_search_request() {
  391. if (has_search_request()) {
  392. delete request_.search_request_;
  393. clear_has_request();
  394. }
  395. }
  396. void Node_log::set_allocated_release_request(::message::Parkspace_release_request_msg* release_request) {
  397. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  398. clear_request();
  399. if (release_request) {
  400. ::google::protobuf::Arena* submessage_arena = NULL;
  401. if (message_arena != submessage_arena) {
  402. release_request = ::google::protobuf::internal::GetOwnedMessage(
  403. message_arena, release_request, submessage_arena);
  404. }
  405. set_has_release_request();
  406. request_.release_request_ = release_request;
  407. }
  408. // @@protoc_insertion_point(field_set_allocated:message.Node_log.release_request)
  409. }
  410. void Node_log::clear_release_request() {
  411. if (has_release_request()) {
  412. delete request_.release_request_;
  413. clear_has_request();
  414. }
  415. }
  416. void Node_log::set_allocated_confirm_request(::message::Parkspace_confirm_alloc_request_msg* confirm_request) {
  417. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  418. clear_request();
  419. if (confirm_request) {
  420. ::google::protobuf::Arena* submessage_arena = NULL;
  421. if (message_arena != submessage_arena) {
  422. confirm_request = ::google::protobuf::internal::GetOwnedMessage(
  423. message_arena, confirm_request, submessage_arena);
  424. }
  425. set_has_confirm_request();
  426. request_.confirm_request_ = confirm_request;
  427. }
  428. // @@protoc_insertion_point(field_set_allocated:message.Node_log.confirm_request)
  429. }
  430. void Node_log::clear_confirm_request() {
  431. if (has_confirm_request()) {
  432. delete request_.confirm_request_;
  433. clear_has_request();
  434. }
  435. }
  436. void Node_log::set_allocated_measure_request(::message::Measure_request_msg* measure_request) {
  437. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  438. clear_request();
  439. if (measure_request) {
  440. ::google::protobuf::Arena* submessage_arena = NULL;
  441. if (message_arena != submessage_arena) {
  442. measure_request = ::google::protobuf::internal::GetOwnedMessage(
  443. message_arena, measure_request, submessage_arena);
  444. }
  445. set_has_measure_request();
  446. request_.measure_request_ = measure_request;
  447. }
  448. // @@protoc_insertion_point(field_set_allocated:message.Node_log.measure_request)
  449. }
  450. void Node_log::clear_measure_request() {
  451. if (has_measure_request()) {
  452. delete request_.measure_request_;
  453. clear_has_request();
  454. }
  455. }
  456. void Node_log::set_allocated_dispatch_request(::message::Dispatch_request_msg* dispatch_request) {
  457. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  458. clear_request();
  459. if (dispatch_request) {
  460. ::google::protobuf::Arena* submessage_arena = NULL;
  461. if (message_arena != submessage_arena) {
  462. dispatch_request = ::google::protobuf::internal::GetOwnedMessage(
  463. message_arena, dispatch_request, submessage_arena);
  464. }
  465. set_has_dispatch_request();
  466. request_.dispatch_request_ = dispatch_request;
  467. }
  468. // @@protoc_insertion_point(field_set_allocated:message.Node_log.dispatch_request)
  469. }
  470. void Node_log::clear_dispatch_request() {
  471. if (has_dispatch_request()) {
  472. delete request_.dispatch_request_;
  473. clear_has_request();
  474. }
  475. }
  476. void Node_log::set_allocated_alloc_response(::message::Parkspace_allocation_response_msg* alloc_response) {
  477. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  478. clear_response();
  479. if (alloc_response) {
  480. ::google::protobuf::Arena* submessage_arena = NULL;
  481. if (message_arena != submessage_arena) {
  482. alloc_response = ::google::protobuf::internal::GetOwnedMessage(
  483. message_arena, alloc_response, submessage_arena);
  484. }
  485. set_has_alloc_response();
  486. response_.alloc_response_ = alloc_response;
  487. }
  488. // @@protoc_insertion_point(field_set_allocated:message.Node_log.alloc_response)
  489. }
  490. void Node_log::clear_alloc_response() {
  491. if (has_alloc_response()) {
  492. delete response_.alloc_response_;
  493. clear_has_response();
  494. }
  495. }
  496. void Node_log::set_allocated_search_response(::message::Parkspace_search_response_msg* search_response) {
  497. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  498. clear_response();
  499. if (search_response) {
  500. ::google::protobuf::Arena* submessage_arena = NULL;
  501. if (message_arena != submessage_arena) {
  502. search_response = ::google::protobuf::internal::GetOwnedMessage(
  503. message_arena, search_response, submessage_arena);
  504. }
  505. set_has_search_response();
  506. response_.search_response_ = search_response;
  507. }
  508. // @@protoc_insertion_point(field_set_allocated:message.Node_log.search_response)
  509. }
  510. void Node_log::clear_search_response() {
  511. if (has_search_response()) {
  512. delete response_.search_response_;
  513. clear_has_response();
  514. }
  515. }
  516. void Node_log::set_allocated_release_response(::message::Parkspace_release_response_msg* release_response) {
  517. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  518. clear_response();
  519. if (release_response) {
  520. ::google::protobuf::Arena* submessage_arena = NULL;
  521. if (message_arena != submessage_arena) {
  522. release_response = ::google::protobuf::internal::GetOwnedMessage(
  523. message_arena, release_response, submessage_arena);
  524. }
  525. set_has_release_response();
  526. response_.release_response_ = release_response;
  527. }
  528. // @@protoc_insertion_point(field_set_allocated:message.Node_log.release_response)
  529. }
  530. void Node_log::clear_release_response() {
  531. if (has_release_response()) {
  532. delete response_.release_response_;
  533. clear_has_response();
  534. }
  535. }
  536. void Node_log::set_allocated_confirm_response(::message::Parkspace_confirm_alloc_response_msg* confirm_response) {
  537. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  538. clear_response();
  539. if (confirm_response) {
  540. ::google::protobuf::Arena* submessage_arena = NULL;
  541. if (message_arena != submessage_arena) {
  542. confirm_response = ::google::protobuf::internal::GetOwnedMessage(
  543. message_arena, confirm_response, submessage_arena);
  544. }
  545. set_has_confirm_response();
  546. response_.confirm_response_ = confirm_response;
  547. }
  548. // @@protoc_insertion_point(field_set_allocated:message.Node_log.confirm_response)
  549. }
  550. void Node_log::clear_confirm_response() {
  551. if (has_confirm_response()) {
  552. delete response_.confirm_response_;
  553. clear_has_response();
  554. }
  555. }
  556. void Node_log::set_allocated_measure_response(::message::Measure_response_msg* measure_response) {
  557. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  558. clear_response();
  559. if (measure_response) {
  560. ::google::protobuf::Arena* submessage_arena = NULL;
  561. if (message_arena != submessage_arena) {
  562. measure_response = ::google::protobuf::internal::GetOwnedMessage(
  563. message_arena, measure_response, submessage_arena);
  564. }
  565. set_has_measure_response();
  566. response_.measure_response_ = measure_response;
  567. }
  568. // @@protoc_insertion_point(field_set_allocated:message.Node_log.measure_response)
  569. }
  570. void Node_log::clear_measure_response() {
  571. if (has_measure_response()) {
  572. delete response_.measure_response_;
  573. clear_has_response();
  574. }
  575. }
  576. void Node_log::set_allocated_dispatch_response(::message::Dispatch_response_msg* dispatch_response) {
  577. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  578. clear_response();
  579. if (dispatch_response) {
  580. ::google::protobuf::Arena* submessage_arena = NULL;
  581. if (message_arena != submessage_arena) {
  582. dispatch_response = ::google::protobuf::internal::GetOwnedMessage(
  583. message_arena, dispatch_response, submessage_arena);
  584. }
  585. set_has_dispatch_response();
  586. response_.dispatch_response_ = dispatch_response;
  587. }
  588. // @@protoc_insertion_point(field_set_allocated:message.Node_log.dispatch_response)
  589. }
  590. void Node_log::clear_dispatch_response() {
  591. if (has_dispatch_response()) {
  592. delete response_.dispatch_response_;
  593. clear_has_response();
  594. }
  595. }
  596. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  597. const int Node_log::kAllocRequestFieldNumber;
  598. const int Node_log::kSearchRequestFieldNumber;
  599. const int Node_log::kReleaseRequestFieldNumber;
  600. const int Node_log::kConfirmRequestFieldNumber;
  601. const int Node_log::kMeasureRequestFieldNumber;
  602. const int Node_log::kDispatchRequestFieldNumber;
  603. const int Node_log::kAllocResponseFieldNumber;
  604. const int Node_log::kSearchResponseFieldNumber;
  605. const int Node_log::kReleaseResponseFieldNumber;
  606. const int Node_log::kConfirmResponseFieldNumber;
  607. const int Node_log::kMeasureResponseFieldNumber;
  608. const int Node_log::kDispatchResponseFieldNumber;
  609. const int Node_log::kDescriptionFieldNumber;
  610. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  611. Node_log::Node_log()
  612. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  613. ::google::protobuf::internal::InitSCC(
  614. &protobuf_log_5fprocess_2eproto::scc_info_Node_log.base);
  615. SharedCtor();
  616. // @@protoc_insertion_point(constructor:message.Node_log)
  617. }
  618. Node_log::Node_log(const Node_log& from)
  619. : ::google::protobuf::Message(),
  620. _internal_metadata_(NULL),
  621. _has_bits_(from._has_bits_) {
  622. _internal_metadata_.MergeFrom(from._internal_metadata_);
  623. description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  624. if (from.has_description()) {
  625. description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
  626. }
  627. clear_has_request();
  628. switch (from.request_case()) {
  629. case kAllocRequest: {
  630. mutable_alloc_request()->::message::Parkspace_allocation_request_msg::MergeFrom(from.alloc_request());
  631. break;
  632. }
  633. case kSearchRequest: {
  634. mutable_search_request()->::message::Parkspace_search_request_msg::MergeFrom(from.search_request());
  635. break;
  636. }
  637. case kReleaseRequest: {
  638. mutable_release_request()->::message::Parkspace_release_request_msg::MergeFrom(from.release_request());
  639. break;
  640. }
  641. case kConfirmRequest: {
  642. mutable_confirm_request()->::message::Parkspace_confirm_alloc_request_msg::MergeFrom(from.confirm_request());
  643. break;
  644. }
  645. case kMeasureRequest: {
  646. mutable_measure_request()->::message::Measure_request_msg::MergeFrom(from.measure_request());
  647. break;
  648. }
  649. case kDispatchRequest: {
  650. mutable_dispatch_request()->::message::Dispatch_request_msg::MergeFrom(from.dispatch_request());
  651. break;
  652. }
  653. case REQUEST_NOT_SET: {
  654. break;
  655. }
  656. }
  657. clear_has_response();
  658. switch (from.response_case()) {
  659. case kAllocResponse: {
  660. mutable_alloc_response()->::message::Parkspace_allocation_response_msg::MergeFrom(from.alloc_response());
  661. break;
  662. }
  663. case kSearchResponse: {
  664. mutable_search_response()->::message::Parkspace_search_response_msg::MergeFrom(from.search_response());
  665. break;
  666. }
  667. case kReleaseResponse: {
  668. mutable_release_response()->::message::Parkspace_release_response_msg::MergeFrom(from.release_response());
  669. break;
  670. }
  671. case kConfirmResponse: {
  672. mutable_confirm_response()->::message::Parkspace_confirm_alloc_response_msg::MergeFrom(from.confirm_response());
  673. break;
  674. }
  675. case kMeasureResponse: {
  676. mutable_measure_response()->::message::Measure_response_msg::MergeFrom(from.measure_response());
  677. break;
  678. }
  679. case kDispatchResponse: {
  680. mutable_dispatch_response()->::message::Dispatch_response_msg::MergeFrom(from.dispatch_response());
  681. break;
  682. }
  683. case RESPONSE_NOT_SET: {
  684. break;
  685. }
  686. }
  687. // @@protoc_insertion_point(copy_constructor:message.Node_log)
  688. }
  689. void Node_log::SharedCtor() {
  690. description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  691. clear_has_request();
  692. clear_has_response();
  693. }
  694. Node_log::~Node_log() {
  695. // @@protoc_insertion_point(destructor:message.Node_log)
  696. SharedDtor();
  697. }
  698. void Node_log::SharedDtor() {
  699. description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  700. if (has_request()) {
  701. clear_request();
  702. }
  703. if (has_response()) {
  704. clear_response();
  705. }
  706. }
  707. void Node_log::SetCachedSize(int size) const {
  708. _cached_size_.Set(size);
  709. }
  710. const ::google::protobuf::Descriptor* Node_log::descriptor() {
  711. ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  712. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  713. }
  714. const Node_log& Node_log::default_instance() {
  715. ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Node_log.base);
  716. return *internal_default_instance();
  717. }
  718. void Node_log::clear_request() {
  719. // @@protoc_insertion_point(one_of_clear_start:message.Node_log)
  720. switch (request_case()) {
  721. case kAllocRequest: {
  722. delete request_.alloc_request_;
  723. break;
  724. }
  725. case kSearchRequest: {
  726. delete request_.search_request_;
  727. break;
  728. }
  729. case kReleaseRequest: {
  730. delete request_.release_request_;
  731. break;
  732. }
  733. case kConfirmRequest: {
  734. delete request_.confirm_request_;
  735. break;
  736. }
  737. case kMeasureRequest: {
  738. delete request_.measure_request_;
  739. break;
  740. }
  741. case kDispatchRequest: {
  742. delete request_.dispatch_request_;
  743. break;
  744. }
  745. case REQUEST_NOT_SET: {
  746. break;
  747. }
  748. }
  749. _oneof_case_[0] = REQUEST_NOT_SET;
  750. }
  751. void Node_log::clear_response() {
  752. // @@protoc_insertion_point(one_of_clear_start:message.Node_log)
  753. switch (response_case()) {
  754. case kAllocResponse: {
  755. delete response_.alloc_response_;
  756. break;
  757. }
  758. case kSearchResponse: {
  759. delete response_.search_response_;
  760. break;
  761. }
  762. case kReleaseResponse: {
  763. delete response_.release_response_;
  764. break;
  765. }
  766. case kConfirmResponse: {
  767. delete response_.confirm_response_;
  768. break;
  769. }
  770. case kMeasureResponse: {
  771. delete response_.measure_response_;
  772. break;
  773. }
  774. case kDispatchResponse: {
  775. delete response_.dispatch_response_;
  776. break;
  777. }
  778. case RESPONSE_NOT_SET: {
  779. break;
  780. }
  781. }
  782. _oneof_case_[1] = RESPONSE_NOT_SET;
  783. }
  784. void Node_log::Clear() {
  785. // @@protoc_insertion_point(message_clear_start:message.Node_log)
  786. ::google::protobuf::uint32 cached_has_bits = 0;
  787. // Prevent compiler warnings about cached_has_bits being unused
  788. (void) cached_has_bits;
  789. cached_has_bits = _has_bits_[0];
  790. if (cached_has_bits & 0x00000001u) {
  791. description_.ClearNonDefaultToEmptyNoArena();
  792. }
  793. clear_request();
  794. clear_response();
  795. _has_bits_.Clear();
  796. _internal_metadata_.Clear();
  797. }
  798. bool Node_log::MergePartialFromCodedStream(
  799. ::google::protobuf::io::CodedInputStream* input) {
  800. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  801. ::google::protobuf::uint32 tag;
  802. // @@protoc_insertion_point(parse_start:message.Node_log)
  803. for (;;) {
  804. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  805. tag = p.first;
  806. if (!p.second) goto handle_unusual;
  807. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  808. // optional .message.Parkspace_allocation_request_msg alloc_request = 1;
  809. case 1: {
  810. if (static_cast< ::google::protobuf::uint8>(tag) ==
  811. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  812. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  813. input, mutable_alloc_request()));
  814. } else {
  815. goto handle_unusual;
  816. }
  817. break;
  818. }
  819. // optional .message.Parkspace_allocation_response_msg alloc_response = 2;
  820. case 2: {
  821. if (static_cast< ::google::protobuf::uint8>(tag) ==
  822. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  823. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  824. input, mutable_alloc_response()));
  825. } else {
  826. goto handle_unusual;
  827. }
  828. break;
  829. }
  830. // optional .message.Parkspace_search_request_msg search_request = 3;
  831. case 3: {
  832. if (static_cast< ::google::protobuf::uint8>(tag) ==
  833. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  834. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  835. input, mutable_search_request()));
  836. } else {
  837. goto handle_unusual;
  838. }
  839. break;
  840. }
  841. // optional .message.Parkspace_search_response_msg search_response = 4;
  842. case 4: {
  843. if (static_cast< ::google::protobuf::uint8>(tag) ==
  844. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  845. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  846. input, mutable_search_response()));
  847. } else {
  848. goto handle_unusual;
  849. }
  850. break;
  851. }
  852. // optional .message.Parkspace_release_request_msg release_request = 5;
  853. case 5: {
  854. if (static_cast< ::google::protobuf::uint8>(tag) ==
  855. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  856. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  857. input, mutable_release_request()));
  858. } else {
  859. goto handle_unusual;
  860. }
  861. break;
  862. }
  863. // optional .message.Parkspace_release_response_msg release_response = 6;
  864. case 6: {
  865. if (static_cast< ::google::protobuf::uint8>(tag) ==
  866. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  867. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  868. input, mutable_release_response()));
  869. } else {
  870. goto handle_unusual;
  871. }
  872. break;
  873. }
  874. // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7;
  875. case 7: {
  876. if (static_cast< ::google::protobuf::uint8>(tag) ==
  877. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  878. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  879. input, mutable_confirm_request()));
  880. } else {
  881. goto handle_unusual;
  882. }
  883. break;
  884. }
  885. // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8;
  886. case 8: {
  887. if (static_cast< ::google::protobuf::uint8>(tag) ==
  888. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  889. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  890. input, mutable_confirm_response()));
  891. } else {
  892. goto handle_unusual;
  893. }
  894. break;
  895. }
  896. // optional .message.Measure_request_msg measure_request = 9;
  897. case 9: {
  898. if (static_cast< ::google::protobuf::uint8>(tag) ==
  899. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  900. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  901. input, mutable_measure_request()));
  902. } else {
  903. goto handle_unusual;
  904. }
  905. break;
  906. }
  907. // optional .message.Measure_response_msg measure_response = 10;
  908. case 10: {
  909. if (static_cast< ::google::protobuf::uint8>(tag) ==
  910. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  911. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  912. input, mutable_measure_response()));
  913. } else {
  914. goto handle_unusual;
  915. }
  916. break;
  917. }
  918. // optional .message.Dispatch_request_msg dispatch_request = 11;
  919. case 11: {
  920. if (static_cast< ::google::protobuf::uint8>(tag) ==
  921. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  922. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  923. input, mutable_dispatch_request()));
  924. } else {
  925. goto handle_unusual;
  926. }
  927. break;
  928. }
  929. // optional .message.Dispatch_response_msg dispatch_response = 12;
  930. case 12: {
  931. if (static_cast< ::google::protobuf::uint8>(tag) ==
  932. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  933. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  934. input, mutable_dispatch_response()));
  935. } else {
  936. goto handle_unusual;
  937. }
  938. break;
  939. }
  940. // optional string description = 13;
  941. case 13: {
  942. if (static_cast< ::google::protobuf::uint8>(tag) ==
  943. static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
  944. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  945. input, this->mutable_description()));
  946. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  947. this->description().data(), static_cast<int>(this->description().length()),
  948. ::google::protobuf::internal::WireFormat::PARSE,
  949. "message.Node_log.description");
  950. } else {
  951. goto handle_unusual;
  952. }
  953. break;
  954. }
  955. default: {
  956. handle_unusual:
  957. if (tag == 0) {
  958. goto success;
  959. }
  960. DO_(::google::protobuf::internal::WireFormat::SkipField(
  961. input, tag, _internal_metadata_.mutable_unknown_fields()));
  962. break;
  963. }
  964. }
  965. }
  966. success:
  967. // @@protoc_insertion_point(parse_success:message.Node_log)
  968. return true;
  969. failure:
  970. // @@protoc_insertion_point(parse_failure:message.Node_log)
  971. return false;
  972. #undef DO_
  973. }
  974. void Node_log::SerializeWithCachedSizes(
  975. ::google::protobuf::io::CodedOutputStream* output) const {
  976. // @@protoc_insertion_point(serialize_start:message.Node_log)
  977. ::google::protobuf::uint32 cached_has_bits = 0;
  978. (void) cached_has_bits;
  979. // optional .message.Parkspace_allocation_request_msg alloc_request = 1;
  980. if (has_alloc_request()) {
  981. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  982. 1, this->_internal_alloc_request(), output);
  983. }
  984. // optional .message.Parkspace_allocation_response_msg alloc_response = 2;
  985. if (has_alloc_response()) {
  986. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  987. 2, this->_internal_alloc_response(), output);
  988. }
  989. // optional .message.Parkspace_search_request_msg search_request = 3;
  990. if (has_search_request()) {
  991. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  992. 3, this->_internal_search_request(), output);
  993. }
  994. // optional .message.Parkspace_search_response_msg search_response = 4;
  995. if (has_search_response()) {
  996. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  997. 4, this->_internal_search_response(), output);
  998. }
  999. // optional .message.Parkspace_release_request_msg release_request = 5;
  1000. if (has_release_request()) {
  1001. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1002. 5, this->_internal_release_request(), output);
  1003. }
  1004. // optional .message.Parkspace_release_response_msg release_response = 6;
  1005. if (has_release_response()) {
  1006. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1007. 6, this->_internal_release_response(), output);
  1008. }
  1009. // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7;
  1010. if (has_confirm_request()) {
  1011. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1012. 7, this->_internal_confirm_request(), output);
  1013. }
  1014. // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8;
  1015. if (has_confirm_response()) {
  1016. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1017. 8, this->_internal_confirm_response(), output);
  1018. }
  1019. // optional .message.Measure_request_msg measure_request = 9;
  1020. if (has_measure_request()) {
  1021. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1022. 9, this->_internal_measure_request(), output);
  1023. }
  1024. // optional .message.Measure_response_msg measure_response = 10;
  1025. if (has_measure_response()) {
  1026. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1027. 10, this->_internal_measure_response(), output);
  1028. }
  1029. // optional .message.Dispatch_request_msg dispatch_request = 11;
  1030. if (has_dispatch_request()) {
  1031. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1032. 11, this->_internal_dispatch_request(), output);
  1033. }
  1034. // optional .message.Dispatch_response_msg dispatch_response = 12;
  1035. if (has_dispatch_response()) {
  1036. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1037. 12, this->_internal_dispatch_response(), output);
  1038. }
  1039. cached_has_bits = _has_bits_[0];
  1040. // optional string description = 13;
  1041. if (cached_has_bits & 0x00000001u) {
  1042. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1043. this->description().data(), static_cast<int>(this->description().length()),
  1044. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1045. "message.Node_log.description");
  1046. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1047. 13, this->description(), output);
  1048. }
  1049. if (_internal_metadata_.have_unknown_fields()) {
  1050. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1051. _internal_metadata_.unknown_fields(), output);
  1052. }
  1053. // @@protoc_insertion_point(serialize_end:message.Node_log)
  1054. }
  1055. ::google::protobuf::uint8* Node_log::InternalSerializeWithCachedSizesToArray(
  1056. bool deterministic, ::google::protobuf::uint8* target) const {
  1057. (void)deterministic; // Unused
  1058. // @@protoc_insertion_point(serialize_to_array_start:message.Node_log)
  1059. ::google::protobuf::uint32 cached_has_bits = 0;
  1060. (void) cached_has_bits;
  1061. // optional .message.Parkspace_allocation_request_msg alloc_request = 1;
  1062. if (has_alloc_request()) {
  1063. target = ::google::protobuf::internal::WireFormatLite::
  1064. InternalWriteMessageToArray(
  1065. 1, this->_internal_alloc_request(), deterministic, target);
  1066. }
  1067. // optional .message.Parkspace_allocation_response_msg alloc_response = 2;
  1068. if (has_alloc_response()) {
  1069. target = ::google::protobuf::internal::WireFormatLite::
  1070. InternalWriteMessageToArray(
  1071. 2, this->_internal_alloc_response(), deterministic, target);
  1072. }
  1073. // optional .message.Parkspace_search_request_msg search_request = 3;
  1074. if (has_search_request()) {
  1075. target = ::google::protobuf::internal::WireFormatLite::
  1076. InternalWriteMessageToArray(
  1077. 3, this->_internal_search_request(), deterministic, target);
  1078. }
  1079. // optional .message.Parkspace_search_response_msg search_response = 4;
  1080. if (has_search_response()) {
  1081. target = ::google::protobuf::internal::WireFormatLite::
  1082. InternalWriteMessageToArray(
  1083. 4, this->_internal_search_response(), deterministic, target);
  1084. }
  1085. // optional .message.Parkspace_release_request_msg release_request = 5;
  1086. if (has_release_request()) {
  1087. target = ::google::protobuf::internal::WireFormatLite::
  1088. InternalWriteMessageToArray(
  1089. 5, this->_internal_release_request(), deterministic, target);
  1090. }
  1091. // optional .message.Parkspace_release_response_msg release_response = 6;
  1092. if (has_release_response()) {
  1093. target = ::google::protobuf::internal::WireFormatLite::
  1094. InternalWriteMessageToArray(
  1095. 6, this->_internal_release_response(), deterministic, target);
  1096. }
  1097. // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7;
  1098. if (has_confirm_request()) {
  1099. target = ::google::protobuf::internal::WireFormatLite::
  1100. InternalWriteMessageToArray(
  1101. 7, this->_internal_confirm_request(), deterministic, target);
  1102. }
  1103. // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8;
  1104. if (has_confirm_response()) {
  1105. target = ::google::protobuf::internal::WireFormatLite::
  1106. InternalWriteMessageToArray(
  1107. 8, this->_internal_confirm_response(), deterministic, target);
  1108. }
  1109. // optional .message.Measure_request_msg measure_request = 9;
  1110. if (has_measure_request()) {
  1111. target = ::google::protobuf::internal::WireFormatLite::
  1112. InternalWriteMessageToArray(
  1113. 9, this->_internal_measure_request(), deterministic, target);
  1114. }
  1115. // optional .message.Measure_response_msg measure_response = 10;
  1116. if (has_measure_response()) {
  1117. target = ::google::protobuf::internal::WireFormatLite::
  1118. InternalWriteMessageToArray(
  1119. 10, this->_internal_measure_response(), deterministic, target);
  1120. }
  1121. // optional .message.Dispatch_request_msg dispatch_request = 11;
  1122. if (has_dispatch_request()) {
  1123. target = ::google::protobuf::internal::WireFormatLite::
  1124. InternalWriteMessageToArray(
  1125. 11, this->_internal_dispatch_request(), deterministic, target);
  1126. }
  1127. // optional .message.Dispatch_response_msg dispatch_response = 12;
  1128. if (has_dispatch_response()) {
  1129. target = ::google::protobuf::internal::WireFormatLite::
  1130. InternalWriteMessageToArray(
  1131. 12, this->_internal_dispatch_response(), deterministic, target);
  1132. }
  1133. cached_has_bits = _has_bits_[0];
  1134. // optional string description = 13;
  1135. if (cached_has_bits & 0x00000001u) {
  1136. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1137. this->description().data(), static_cast<int>(this->description().length()),
  1138. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1139. "message.Node_log.description");
  1140. target =
  1141. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1142. 13, this->description(), target);
  1143. }
  1144. if (_internal_metadata_.have_unknown_fields()) {
  1145. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1146. _internal_metadata_.unknown_fields(), target);
  1147. }
  1148. // @@protoc_insertion_point(serialize_to_array_end:message.Node_log)
  1149. return target;
  1150. }
  1151. size_t Node_log::ByteSizeLong() const {
  1152. // @@protoc_insertion_point(message_byte_size_start:message.Node_log)
  1153. size_t total_size = 0;
  1154. if (_internal_metadata_.have_unknown_fields()) {
  1155. total_size +=
  1156. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1157. _internal_metadata_.unknown_fields());
  1158. }
  1159. // optional string description = 13;
  1160. if (has_description()) {
  1161. total_size += 1 +
  1162. ::google::protobuf::internal::WireFormatLite::StringSize(
  1163. this->description());
  1164. }
  1165. switch (request_case()) {
  1166. // optional .message.Parkspace_allocation_request_msg alloc_request = 1;
  1167. case kAllocRequest: {
  1168. total_size += 1 +
  1169. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1170. *request_.alloc_request_);
  1171. break;
  1172. }
  1173. // optional .message.Parkspace_search_request_msg search_request = 3;
  1174. case kSearchRequest: {
  1175. total_size += 1 +
  1176. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1177. *request_.search_request_);
  1178. break;
  1179. }
  1180. // optional .message.Parkspace_release_request_msg release_request = 5;
  1181. case kReleaseRequest: {
  1182. total_size += 1 +
  1183. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1184. *request_.release_request_);
  1185. break;
  1186. }
  1187. // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7;
  1188. case kConfirmRequest: {
  1189. total_size += 1 +
  1190. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1191. *request_.confirm_request_);
  1192. break;
  1193. }
  1194. // optional .message.Measure_request_msg measure_request = 9;
  1195. case kMeasureRequest: {
  1196. total_size += 1 +
  1197. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1198. *request_.measure_request_);
  1199. break;
  1200. }
  1201. // optional .message.Dispatch_request_msg dispatch_request = 11;
  1202. case kDispatchRequest: {
  1203. total_size += 1 +
  1204. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1205. *request_.dispatch_request_);
  1206. break;
  1207. }
  1208. case REQUEST_NOT_SET: {
  1209. break;
  1210. }
  1211. }
  1212. switch (response_case()) {
  1213. // optional .message.Parkspace_allocation_response_msg alloc_response = 2;
  1214. case kAllocResponse: {
  1215. total_size += 1 +
  1216. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1217. *response_.alloc_response_);
  1218. break;
  1219. }
  1220. // optional .message.Parkspace_search_response_msg search_response = 4;
  1221. case kSearchResponse: {
  1222. total_size += 1 +
  1223. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1224. *response_.search_response_);
  1225. break;
  1226. }
  1227. // optional .message.Parkspace_release_response_msg release_response = 6;
  1228. case kReleaseResponse: {
  1229. total_size += 1 +
  1230. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1231. *response_.release_response_);
  1232. break;
  1233. }
  1234. // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8;
  1235. case kConfirmResponse: {
  1236. total_size += 1 +
  1237. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1238. *response_.confirm_response_);
  1239. break;
  1240. }
  1241. // optional .message.Measure_response_msg measure_response = 10;
  1242. case kMeasureResponse: {
  1243. total_size += 1 +
  1244. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1245. *response_.measure_response_);
  1246. break;
  1247. }
  1248. // optional .message.Dispatch_response_msg dispatch_response = 12;
  1249. case kDispatchResponse: {
  1250. total_size += 1 +
  1251. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1252. *response_.dispatch_response_);
  1253. break;
  1254. }
  1255. case RESPONSE_NOT_SET: {
  1256. break;
  1257. }
  1258. }
  1259. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1260. SetCachedSize(cached_size);
  1261. return total_size;
  1262. }
  1263. void Node_log::MergeFrom(const ::google::protobuf::Message& from) {
  1264. // @@protoc_insertion_point(generalized_merge_from_start:message.Node_log)
  1265. GOOGLE_DCHECK_NE(&from, this);
  1266. const Node_log* source =
  1267. ::google::protobuf::internal::DynamicCastToGenerated<const Node_log>(
  1268. &from);
  1269. if (source == NULL) {
  1270. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Node_log)
  1271. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1272. } else {
  1273. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Node_log)
  1274. MergeFrom(*source);
  1275. }
  1276. }
  1277. void Node_log::MergeFrom(const Node_log& from) {
  1278. // @@protoc_insertion_point(class_specific_merge_from_start:message.Node_log)
  1279. GOOGLE_DCHECK_NE(&from, this);
  1280. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1281. ::google::protobuf::uint32 cached_has_bits = 0;
  1282. (void) cached_has_bits;
  1283. if (from.has_description()) {
  1284. set_has_description();
  1285. description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
  1286. }
  1287. switch (from.request_case()) {
  1288. case kAllocRequest: {
  1289. mutable_alloc_request()->::message::Parkspace_allocation_request_msg::MergeFrom(from.alloc_request());
  1290. break;
  1291. }
  1292. case kSearchRequest: {
  1293. mutable_search_request()->::message::Parkspace_search_request_msg::MergeFrom(from.search_request());
  1294. break;
  1295. }
  1296. case kReleaseRequest: {
  1297. mutable_release_request()->::message::Parkspace_release_request_msg::MergeFrom(from.release_request());
  1298. break;
  1299. }
  1300. case kConfirmRequest: {
  1301. mutable_confirm_request()->::message::Parkspace_confirm_alloc_request_msg::MergeFrom(from.confirm_request());
  1302. break;
  1303. }
  1304. case kMeasureRequest: {
  1305. mutable_measure_request()->::message::Measure_request_msg::MergeFrom(from.measure_request());
  1306. break;
  1307. }
  1308. case kDispatchRequest: {
  1309. mutable_dispatch_request()->::message::Dispatch_request_msg::MergeFrom(from.dispatch_request());
  1310. break;
  1311. }
  1312. case REQUEST_NOT_SET: {
  1313. break;
  1314. }
  1315. }
  1316. switch (from.response_case()) {
  1317. case kAllocResponse: {
  1318. mutable_alloc_response()->::message::Parkspace_allocation_response_msg::MergeFrom(from.alloc_response());
  1319. break;
  1320. }
  1321. case kSearchResponse: {
  1322. mutable_search_response()->::message::Parkspace_search_response_msg::MergeFrom(from.search_response());
  1323. break;
  1324. }
  1325. case kReleaseResponse: {
  1326. mutable_release_response()->::message::Parkspace_release_response_msg::MergeFrom(from.release_response());
  1327. break;
  1328. }
  1329. case kConfirmResponse: {
  1330. mutable_confirm_response()->::message::Parkspace_confirm_alloc_response_msg::MergeFrom(from.confirm_response());
  1331. break;
  1332. }
  1333. case kMeasureResponse: {
  1334. mutable_measure_response()->::message::Measure_response_msg::MergeFrom(from.measure_response());
  1335. break;
  1336. }
  1337. case kDispatchResponse: {
  1338. mutable_dispatch_response()->::message::Dispatch_response_msg::MergeFrom(from.dispatch_response());
  1339. break;
  1340. }
  1341. case RESPONSE_NOT_SET: {
  1342. break;
  1343. }
  1344. }
  1345. }
  1346. void Node_log::CopyFrom(const ::google::protobuf::Message& from) {
  1347. // @@protoc_insertion_point(generalized_copy_from_start:message.Node_log)
  1348. if (&from == this) return;
  1349. Clear();
  1350. MergeFrom(from);
  1351. }
  1352. void Node_log::CopyFrom(const Node_log& from) {
  1353. // @@protoc_insertion_point(class_specific_copy_from_start:message.Node_log)
  1354. if (&from == this) return;
  1355. Clear();
  1356. MergeFrom(from);
  1357. }
  1358. bool Node_log::IsInitialized() const {
  1359. switch (request_case()) {
  1360. case kAllocRequest: {
  1361. if (has_alloc_request()) {
  1362. if (!this->alloc_request().IsInitialized()) return false;
  1363. }
  1364. break;
  1365. }
  1366. case kSearchRequest: {
  1367. if (has_search_request()) {
  1368. if (!this->search_request().IsInitialized()) return false;
  1369. }
  1370. break;
  1371. }
  1372. case kReleaseRequest: {
  1373. if (has_release_request()) {
  1374. if (!this->release_request().IsInitialized()) return false;
  1375. }
  1376. break;
  1377. }
  1378. case kConfirmRequest: {
  1379. if (has_confirm_request()) {
  1380. if (!this->confirm_request().IsInitialized()) return false;
  1381. }
  1382. break;
  1383. }
  1384. case kMeasureRequest: {
  1385. if (has_measure_request()) {
  1386. if (!this->measure_request().IsInitialized()) return false;
  1387. }
  1388. break;
  1389. }
  1390. case kDispatchRequest: {
  1391. if (has_dispatch_request()) {
  1392. if (!this->dispatch_request().IsInitialized()) return false;
  1393. }
  1394. break;
  1395. }
  1396. case REQUEST_NOT_SET: {
  1397. break;
  1398. }
  1399. }
  1400. switch (response_case()) {
  1401. case kAllocResponse: {
  1402. if (has_alloc_response()) {
  1403. if (!this->alloc_response().IsInitialized()) return false;
  1404. }
  1405. break;
  1406. }
  1407. case kSearchResponse: {
  1408. if (has_search_response()) {
  1409. if (!this->search_response().IsInitialized()) return false;
  1410. }
  1411. break;
  1412. }
  1413. case kReleaseResponse: {
  1414. if (has_release_response()) {
  1415. if (!this->release_response().IsInitialized()) return false;
  1416. }
  1417. break;
  1418. }
  1419. case kConfirmResponse: {
  1420. if (has_confirm_response()) {
  1421. if (!this->confirm_response().IsInitialized()) return false;
  1422. }
  1423. break;
  1424. }
  1425. case kMeasureResponse: {
  1426. if (has_measure_response()) {
  1427. if (!this->measure_response().IsInitialized()) return false;
  1428. }
  1429. break;
  1430. }
  1431. case kDispatchResponse: {
  1432. if (has_dispatch_response()) {
  1433. if (!this->dispatch_response().IsInitialized()) return false;
  1434. }
  1435. break;
  1436. }
  1437. case RESPONSE_NOT_SET: {
  1438. break;
  1439. }
  1440. }
  1441. return true;
  1442. }
  1443. void Node_log::Swap(Node_log* other) {
  1444. if (other == this) return;
  1445. InternalSwap(other);
  1446. }
  1447. void Node_log::InternalSwap(Node_log* other) {
  1448. using std::swap;
  1449. description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1450. GetArenaNoVirtual());
  1451. swap(request_, other->request_);
  1452. swap(_oneof_case_[0], other->_oneof_case_[0]);
  1453. swap(response_, other->response_);
  1454. swap(_oneof_case_[1], other->_oneof_case_[1]);
  1455. swap(_has_bits_[0], other->_has_bits_[0]);
  1456. _internal_metadata_.Swap(&other->_internal_metadata_);
  1457. }
  1458. ::google::protobuf::Metadata Node_log::GetMetadata() const {
  1459. protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  1460. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages];
  1461. }
  1462. // ===================================================================
  1463. void Manual_operation_log::InitAsDefaultInstance() {
  1464. ::message::_Manual_operation_log_default_instance_._instance.get_mutable()->manual_operation_ = const_cast< ::message::Process_manual_operation_msg*>(
  1465. ::message::Process_manual_operation_msg::internal_default_instance());
  1466. }
  1467. void Manual_operation_log::clear_manual_operation() {
  1468. if (manual_operation_ != NULL) manual_operation_->Clear();
  1469. clear_has_manual_operation();
  1470. }
  1471. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1472. const int Manual_operation_log::kManualOperationFieldNumber;
  1473. const int Manual_operation_log::kDescriptionFieldNumber;
  1474. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1475. Manual_operation_log::Manual_operation_log()
  1476. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1477. ::google::protobuf::internal::InitSCC(
  1478. &protobuf_log_5fprocess_2eproto::scc_info_Manual_operation_log.base);
  1479. SharedCtor();
  1480. // @@protoc_insertion_point(constructor:message.Manual_operation_log)
  1481. }
  1482. Manual_operation_log::Manual_operation_log(const Manual_operation_log& from)
  1483. : ::google::protobuf::Message(),
  1484. _internal_metadata_(NULL),
  1485. _has_bits_(from._has_bits_) {
  1486. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1487. description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1488. if (from.has_description()) {
  1489. description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
  1490. }
  1491. if (from.has_manual_operation()) {
  1492. manual_operation_ = new ::message::Process_manual_operation_msg(*from.manual_operation_);
  1493. } else {
  1494. manual_operation_ = NULL;
  1495. }
  1496. // @@protoc_insertion_point(copy_constructor:message.Manual_operation_log)
  1497. }
  1498. void Manual_operation_log::SharedCtor() {
  1499. description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1500. manual_operation_ = NULL;
  1501. }
  1502. Manual_operation_log::~Manual_operation_log() {
  1503. // @@protoc_insertion_point(destructor:message.Manual_operation_log)
  1504. SharedDtor();
  1505. }
  1506. void Manual_operation_log::SharedDtor() {
  1507. description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1508. if (this != internal_default_instance()) delete manual_operation_;
  1509. }
  1510. void Manual_operation_log::SetCachedSize(int size) const {
  1511. _cached_size_.Set(size);
  1512. }
  1513. const ::google::protobuf::Descriptor* Manual_operation_log::descriptor() {
  1514. ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  1515. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1516. }
  1517. const Manual_operation_log& Manual_operation_log::default_instance() {
  1518. ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Manual_operation_log.base);
  1519. return *internal_default_instance();
  1520. }
  1521. void Manual_operation_log::Clear() {
  1522. // @@protoc_insertion_point(message_clear_start:message.Manual_operation_log)
  1523. ::google::protobuf::uint32 cached_has_bits = 0;
  1524. // Prevent compiler warnings about cached_has_bits being unused
  1525. (void) cached_has_bits;
  1526. cached_has_bits = _has_bits_[0];
  1527. if (cached_has_bits & 3u) {
  1528. if (cached_has_bits & 0x00000001u) {
  1529. description_.ClearNonDefaultToEmptyNoArena();
  1530. }
  1531. if (cached_has_bits & 0x00000002u) {
  1532. GOOGLE_DCHECK(manual_operation_ != NULL);
  1533. manual_operation_->Clear();
  1534. }
  1535. }
  1536. _has_bits_.Clear();
  1537. _internal_metadata_.Clear();
  1538. }
  1539. bool Manual_operation_log::MergePartialFromCodedStream(
  1540. ::google::protobuf::io::CodedInputStream* input) {
  1541. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1542. ::google::protobuf::uint32 tag;
  1543. // @@protoc_insertion_point(parse_start:message.Manual_operation_log)
  1544. for (;;) {
  1545. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1546. tag = p.first;
  1547. if (!p.second) goto handle_unusual;
  1548. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1549. // required .message.Process_manual_operation_msg manual_operation = 1;
  1550. case 1: {
  1551. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1552. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1553. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1554. input, mutable_manual_operation()));
  1555. } else {
  1556. goto handle_unusual;
  1557. }
  1558. break;
  1559. }
  1560. // optional string description = 2;
  1561. case 2: {
  1562. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1563. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1564. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1565. input, this->mutable_description()));
  1566. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1567. this->description().data(), static_cast<int>(this->description().length()),
  1568. ::google::protobuf::internal::WireFormat::PARSE,
  1569. "message.Manual_operation_log.description");
  1570. } else {
  1571. goto handle_unusual;
  1572. }
  1573. break;
  1574. }
  1575. default: {
  1576. handle_unusual:
  1577. if (tag == 0) {
  1578. goto success;
  1579. }
  1580. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1581. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1582. break;
  1583. }
  1584. }
  1585. }
  1586. success:
  1587. // @@protoc_insertion_point(parse_success:message.Manual_operation_log)
  1588. return true;
  1589. failure:
  1590. // @@protoc_insertion_point(parse_failure:message.Manual_operation_log)
  1591. return false;
  1592. #undef DO_
  1593. }
  1594. void Manual_operation_log::SerializeWithCachedSizes(
  1595. ::google::protobuf::io::CodedOutputStream* output) const {
  1596. // @@protoc_insertion_point(serialize_start:message.Manual_operation_log)
  1597. ::google::protobuf::uint32 cached_has_bits = 0;
  1598. (void) cached_has_bits;
  1599. cached_has_bits = _has_bits_[0];
  1600. // required .message.Process_manual_operation_msg manual_operation = 1;
  1601. if (cached_has_bits & 0x00000002u) {
  1602. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1603. 1, this->_internal_manual_operation(), output);
  1604. }
  1605. // optional string description = 2;
  1606. if (cached_has_bits & 0x00000001u) {
  1607. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1608. this->description().data(), static_cast<int>(this->description().length()),
  1609. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1610. "message.Manual_operation_log.description");
  1611. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1612. 2, this->description(), output);
  1613. }
  1614. if (_internal_metadata_.have_unknown_fields()) {
  1615. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1616. _internal_metadata_.unknown_fields(), output);
  1617. }
  1618. // @@protoc_insertion_point(serialize_end:message.Manual_operation_log)
  1619. }
  1620. ::google::protobuf::uint8* Manual_operation_log::InternalSerializeWithCachedSizesToArray(
  1621. bool deterministic, ::google::protobuf::uint8* target) const {
  1622. (void)deterministic; // Unused
  1623. // @@protoc_insertion_point(serialize_to_array_start:message.Manual_operation_log)
  1624. ::google::protobuf::uint32 cached_has_bits = 0;
  1625. (void) cached_has_bits;
  1626. cached_has_bits = _has_bits_[0];
  1627. // required .message.Process_manual_operation_msg manual_operation = 1;
  1628. if (cached_has_bits & 0x00000002u) {
  1629. target = ::google::protobuf::internal::WireFormatLite::
  1630. InternalWriteMessageToArray(
  1631. 1, this->_internal_manual_operation(), deterministic, target);
  1632. }
  1633. // optional string description = 2;
  1634. if (cached_has_bits & 0x00000001u) {
  1635. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1636. this->description().data(), static_cast<int>(this->description().length()),
  1637. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1638. "message.Manual_operation_log.description");
  1639. target =
  1640. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1641. 2, this->description(), target);
  1642. }
  1643. if (_internal_metadata_.have_unknown_fields()) {
  1644. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1645. _internal_metadata_.unknown_fields(), target);
  1646. }
  1647. // @@protoc_insertion_point(serialize_to_array_end:message.Manual_operation_log)
  1648. return target;
  1649. }
  1650. size_t Manual_operation_log::ByteSizeLong() const {
  1651. // @@protoc_insertion_point(message_byte_size_start:message.Manual_operation_log)
  1652. size_t total_size = 0;
  1653. if (_internal_metadata_.have_unknown_fields()) {
  1654. total_size +=
  1655. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1656. _internal_metadata_.unknown_fields());
  1657. }
  1658. // required .message.Process_manual_operation_msg manual_operation = 1;
  1659. if (has_manual_operation()) {
  1660. total_size += 1 +
  1661. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1662. *manual_operation_);
  1663. }
  1664. // optional string description = 2;
  1665. if (has_description()) {
  1666. total_size += 1 +
  1667. ::google::protobuf::internal::WireFormatLite::StringSize(
  1668. this->description());
  1669. }
  1670. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1671. SetCachedSize(cached_size);
  1672. return total_size;
  1673. }
  1674. void Manual_operation_log::MergeFrom(const ::google::protobuf::Message& from) {
  1675. // @@protoc_insertion_point(generalized_merge_from_start:message.Manual_operation_log)
  1676. GOOGLE_DCHECK_NE(&from, this);
  1677. const Manual_operation_log* source =
  1678. ::google::protobuf::internal::DynamicCastToGenerated<const Manual_operation_log>(
  1679. &from);
  1680. if (source == NULL) {
  1681. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Manual_operation_log)
  1682. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1683. } else {
  1684. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Manual_operation_log)
  1685. MergeFrom(*source);
  1686. }
  1687. }
  1688. void Manual_operation_log::MergeFrom(const Manual_operation_log& from) {
  1689. // @@protoc_insertion_point(class_specific_merge_from_start:message.Manual_operation_log)
  1690. GOOGLE_DCHECK_NE(&from, this);
  1691. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1692. ::google::protobuf::uint32 cached_has_bits = 0;
  1693. (void) cached_has_bits;
  1694. cached_has_bits = from._has_bits_[0];
  1695. if (cached_has_bits & 3u) {
  1696. if (cached_has_bits & 0x00000001u) {
  1697. set_has_description();
  1698. description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
  1699. }
  1700. if (cached_has_bits & 0x00000002u) {
  1701. mutable_manual_operation()->::message::Process_manual_operation_msg::MergeFrom(from.manual_operation());
  1702. }
  1703. }
  1704. }
  1705. void Manual_operation_log::CopyFrom(const ::google::protobuf::Message& from) {
  1706. // @@protoc_insertion_point(generalized_copy_from_start:message.Manual_operation_log)
  1707. if (&from == this) return;
  1708. Clear();
  1709. MergeFrom(from);
  1710. }
  1711. void Manual_operation_log::CopyFrom(const Manual_operation_log& from) {
  1712. // @@protoc_insertion_point(class_specific_copy_from_start:message.Manual_operation_log)
  1713. if (&from == this) return;
  1714. Clear();
  1715. MergeFrom(from);
  1716. }
  1717. bool Manual_operation_log::IsInitialized() const {
  1718. if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
  1719. if (has_manual_operation()) {
  1720. if (!this->manual_operation_->IsInitialized()) return false;
  1721. }
  1722. return true;
  1723. }
  1724. void Manual_operation_log::Swap(Manual_operation_log* other) {
  1725. if (other == this) return;
  1726. InternalSwap(other);
  1727. }
  1728. void Manual_operation_log::InternalSwap(Manual_operation_log* other) {
  1729. using std::swap;
  1730. description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1731. GetArenaNoVirtual());
  1732. swap(manual_operation_, other->manual_operation_);
  1733. swap(_has_bits_[0], other->_has_bits_[0]);
  1734. _internal_metadata_.Swap(&other->_internal_metadata_);
  1735. }
  1736. ::google::protobuf::Metadata Manual_operation_log::GetMetadata() const {
  1737. protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  1738. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages];
  1739. }
  1740. // ===================================================================
  1741. void Log_data::InitAsDefaultInstance() {
  1742. ::message::_Log_data_default_instance_.str_log_.UnsafeSetDefault(
  1743. &::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1744. ::message::_Log_data_default_instance_.node_log_ = const_cast< ::message::Node_log*>(
  1745. ::message::Node_log::internal_default_instance());
  1746. ::message::_Log_data_default_instance_.manual_operator_log_ = const_cast< ::message::Manual_operation_log*>(
  1747. ::message::Manual_operation_log::internal_default_instance());
  1748. }
  1749. void Log_data::set_allocated_node_log(::message::Node_log* node_log) {
  1750. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1751. clear_data();
  1752. if (node_log) {
  1753. ::google::protobuf::Arena* submessage_arena = NULL;
  1754. if (message_arena != submessage_arena) {
  1755. node_log = ::google::protobuf::internal::GetOwnedMessage(
  1756. message_arena, node_log, submessage_arena);
  1757. }
  1758. set_has_node_log();
  1759. data_.node_log_ = node_log;
  1760. }
  1761. // @@protoc_insertion_point(field_set_allocated:message.Log_data.node_log)
  1762. }
  1763. void Log_data::set_allocated_manual_operator_log(::message::Manual_operation_log* manual_operator_log) {
  1764. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1765. clear_data();
  1766. if (manual_operator_log) {
  1767. ::google::protobuf::Arena* submessage_arena = NULL;
  1768. if (message_arena != submessage_arena) {
  1769. manual_operator_log = ::google::protobuf::internal::GetOwnedMessage(
  1770. message_arena, manual_operator_log, submessage_arena);
  1771. }
  1772. set_has_manual_operator_log();
  1773. data_.manual_operator_log_ = manual_operator_log;
  1774. }
  1775. // @@protoc_insertion_point(field_set_allocated:message.Log_data.manual_operator_log)
  1776. }
  1777. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1778. const int Log_data::kLogSeverityFieldNumber;
  1779. const int Log_data::kStrLogFieldNumber;
  1780. const int Log_data::kNodeLogFieldNumber;
  1781. const int Log_data::kManualOperatorLogFieldNumber;
  1782. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1783. Log_data::Log_data()
  1784. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1785. ::google::protobuf::internal::InitSCC(
  1786. &protobuf_log_5fprocess_2eproto::scc_info_Log_data.base);
  1787. SharedCtor();
  1788. // @@protoc_insertion_point(constructor:message.Log_data)
  1789. }
  1790. Log_data::Log_data(const Log_data& from)
  1791. : ::google::protobuf::Message(),
  1792. _internal_metadata_(NULL),
  1793. _has_bits_(from._has_bits_) {
  1794. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1795. log_severity_ = from.log_severity_;
  1796. clear_has_data();
  1797. switch (from.data_case()) {
  1798. case kStrLog: {
  1799. set_str_log(from.str_log());
  1800. break;
  1801. }
  1802. case kNodeLog: {
  1803. mutable_node_log()->::message::Node_log::MergeFrom(from.node_log());
  1804. break;
  1805. }
  1806. case kManualOperatorLog: {
  1807. mutable_manual_operator_log()->::message::Manual_operation_log::MergeFrom(from.manual_operator_log());
  1808. break;
  1809. }
  1810. case DATA_NOT_SET: {
  1811. break;
  1812. }
  1813. }
  1814. // @@protoc_insertion_point(copy_constructor:message.Log_data)
  1815. }
  1816. void Log_data::SharedCtor() {
  1817. log_severity_ = 0;
  1818. clear_has_data();
  1819. }
  1820. Log_data::~Log_data() {
  1821. // @@protoc_insertion_point(destructor:message.Log_data)
  1822. SharedDtor();
  1823. }
  1824. void Log_data::SharedDtor() {
  1825. if (has_data()) {
  1826. clear_data();
  1827. }
  1828. }
  1829. void Log_data::SetCachedSize(int size) const {
  1830. _cached_size_.Set(size);
  1831. }
  1832. const ::google::protobuf::Descriptor* Log_data::descriptor() {
  1833. ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  1834. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1835. }
  1836. const Log_data& Log_data::default_instance() {
  1837. ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Log_data.base);
  1838. return *internal_default_instance();
  1839. }
  1840. void Log_data::clear_data() {
  1841. // @@protoc_insertion_point(one_of_clear_start:message.Log_data)
  1842. switch (data_case()) {
  1843. case kStrLog: {
  1844. data_.str_log_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1845. break;
  1846. }
  1847. case kNodeLog: {
  1848. delete data_.node_log_;
  1849. break;
  1850. }
  1851. case kManualOperatorLog: {
  1852. delete data_.manual_operator_log_;
  1853. break;
  1854. }
  1855. case DATA_NOT_SET: {
  1856. break;
  1857. }
  1858. }
  1859. _oneof_case_[0] = DATA_NOT_SET;
  1860. }
  1861. void Log_data::Clear() {
  1862. // @@protoc_insertion_point(message_clear_start:message.Log_data)
  1863. ::google::protobuf::uint32 cached_has_bits = 0;
  1864. // Prevent compiler warnings about cached_has_bits being unused
  1865. (void) cached_has_bits;
  1866. log_severity_ = 0;
  1867. clear_data();
  1868. _has_bits_.Clear();
  1869. _internal_metadata_.Clear();
  1870. }
  1871. bool Log_data::MergePartialFromCodedStream(
  1872. ::google::protobuf::io::CodedInputStream* input) {
  1873. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1874. ::google::protobuf::uint32 tag;
  1875. // @@protoc_insertion_point(parse_start:message.Log_data)
  1876. for (;;) {
  1877. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1878. tag = p.first;
  1879. if (!p.second) goto handle_unusual;
  1880. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1881. // required .message.Log_data.Severity log_severity = 1;
  1882. case 1: {
  1883. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1884. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1885. int value;
  1886. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1887. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1888. input, &value)));
  1889. if (::message::Log_data_Severity_IsValid(value)) {
  1890. set_log_severity(static_cast< ::message::Log_data_Severity >(value));
  1891. } else {
  1892. mutable_unknown_fields()->AddVarint(
  1893. 1, static_cast< ::google::protobuf::uint64>(value));
  1894. }
  1895. } else {
  1896. goto handle_unusual;
  1897. }
  1898. break;
  1899. }
  1900. // optional string str_log = 2;
  1901. case 2: {
  1902. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1903. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1904. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1905. input, this->mutable_str_log()));
  1906. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1907. this->str_log().data(), static_cast<int>(this->str_log().length()),
  1908. ::google::protobuf::internal::WireFormat::PARSE,
  1909. "message.Log_data.str_log");
  1910. } else {
  1911. goto handle_unusual;
  1912. }
  1913. break;
  1914. }
  1915. // optional .message.Node_log node_log = 3;
  1916. case 3: {
  1917. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1918. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1919. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1920. input, mutable_node_log()));
  1921. } else {
  1922. goto handle_unusual;
  1923. }
  1924. break;
  1925. }
  1926. // optional .message.Manual_operation_log manual_operator_log = 4;
  1927. case 4: {
  1928. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1929. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1930. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1931. input, mutable_manual_operator_log()));
  1932. } else {
  1933. goto handle_unusual;
  1934. }
  1935. break;
  1936. }
  1937. default: {
  1938. handle_unusual:
  1939. if (tag == 0) {
  1940. goto success;
  1941. }
  1942. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1943. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1944. break;
  1945. }
  1946. }
  1947. }
  1948. success:
  1949. // @@protoc_insertion_point(parse_success:message.Log_data)
  1950. return true;
  1951. failure:
  1952. // @@protoc_insertion_point(parse_failure:message.Log_data)
  1953. return false;
  1954. #undef DO_
  1955. }
  1956. void Log_data::SerializeWithCachedSizes(
  1957. ::google::protobuf::io::CodedOutputStream* output) const {
  1958. // @@protoc_insertion_point(serialize_start:message.Log_data)
  1959. ::google::protobuf::uint32 cached_has_bits = 0;
  1960. (void) cached_has_bits;
  1961. cached_has_bits = _has_bits_[0];
  1962. // required .message.Log_data.Severity log_severity = 1;
  1963. if (cached_has_bits & 0x00000001u) {
  1964. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1965. 1, this->log_severity(), output);
  1966. }
  1967. switch (data_case()) {
  1968. case kStrLog:
  1969. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1970. this->str_log().data(), static_cast<int>(this->str_log().length()),
  1971. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1972. "message.Log_data.str_log");
  1973. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1974. 2, this->str_log(), output);
  1975. break;
  1976. case kNodeLog:
  1977. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1978. 3, this->_internal_node_log(), output);
  1979. break;
  1980. case kManualOperatorLog:
  1981. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1982. 4, this->_internal_manual_operator_log(), output);
  1983. break;
  1984. default: ;
  1985. }
  1986. if (_internal_metadata_.have_unknown_fields()) {
  1987. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1988. _internal_metadata_.unknown_fields(), output);
  1989. }
  1990. // @@protoc_insertion_point(serialize_end:message.Log_data)
  1991. }
  1992. ::google::protobuf::uint8* Log_data::InternalSerializeWithCachedSizesToArray(
  1993. bool deterministic, ::google::protobuf::uint8* target) const {
  1994. (void)deterministic; // Unused
  1995. // @@protoc_insertion_point(serialize_to_array_start:message.Log_data)
  1996. ::google::protobuf::uint32 cached_has_bits = 0;
  1997. (void) cached_has_bits;
  1998. cached_has_bits = _has_bits_[0];
  1999. // required .message.Log_data.Severity log_severity = 1;
  2000. if (cached_has_bits & 0x00000001u) {
  2001. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2002. 1, this->log_severity(), target);
  2003. }
  2004. switch (data_case()) {
  2005. case kStrLog:
  2006. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2007. this->str_log().data(), static_cast<int>(this->str_log().length()),
  2008. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2009. "message.Log_data.str_log");
  2010. target =
  2011. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2012. 2, this->str_log(), target);
  2013. break;
  2014. case kNodeLog:
  2015. target = ::google::protobuf::internal::WireFormatLite::
  2016. InternalWriteMessageToArray(
  2017. 3, this->_internal_node_log(), deterministic, target);
  2018. break;
  2019. case kManualOperatorLog:
  2020. target = ::google::protobuf::internal::WireFormatLite::
  2021. InternalWriteMessageToArray(
  2022. 4, this->_internal_manual_operator_log(), deterministic, target);
  2023. break;
  2024. default: ;
  2025. }
  2026. if (_internal_metadata_.have_unknown_fields()) {
  2027. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2028. _internal_metadata_.unknown_fields(), target);
  2029. }
  2030. // @@protoc_insertion_point(serialize_to_array_end:message.Log_data)
  2031. return target;
  2032. }
  2033. size_t Log_data::ByteSizeLong() const {
  2034. // @@protoc_insertion_point(message_byte_size_start:message.Log_data)
  2035. size_t total_size = 0;
  2036. if (_internal_metadata_.have_unknown_fields()) {
  2037. total_size +=
  2038. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2039. _internal_metadata_.unknown_fields());
  2040. }
  2041. // required .message.Log_data.Severity log_severity = 1;
  2042. if (has_log_severity()) {
  2043. total_size += 1 +
  2044. ::google::protobuf::internal::WireFormatLite::EnumSize(this->log_severity());
  2045. }
  2046. switch (data_case()) {
  2047. // optional string str_log = 2;
  2048. case kStrLog: {
  2049. total_size += 1 +
  2050. ::google::protobuf::internal::WireFormatLite::StringSize(
  2051. this->str_log());
  2052. break;
  2053. }
  2054. // optional .message.Node_log node_log = 3;
  2055. case kNodeLog: {
  2056. total_size += 1 +
  2057. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2058. *data_.node_log_);
  2059. break;
  2060. }
  2061. // optional .message.Manual_operation_log manual_operator_log = 4;
  2062. case kManualOperatorLog: {
  2063. total_size += 1 +
  2064. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2065. *data_.manual_operator_log_);
  2066. break;
  2067. }
  2068. case DATA_NOT_SET: {
  2069. break;
  2070. }
  2071. }
  2072. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2073. SetCachedSize(cached_size);
  2074. return total_size;
  2075. }
  2076. void Log_data::MergeFrom(const ::google::protobuf::Message& from) {
  2077. // @@protoc_insertion_point(generalized_merge_from_start:message.Log_data)
  2078. GOOGLE_DCHECK_NE(&from, this);
  2079. const Log_data* source =
  2080. ::google::protobuf::internal::DynamicCastToGenerated<const Log_data>(
  2081. &from);
  2082. if (source == NULL) {
  2083. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Log_data)
  2084. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2085. } else {
  2086. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Log_data)
  2087. MergeFrom(*source);
  2088. }
  2089. }
  2090. void Log_data::MergeFrom(const Log_data& from) {
  2091. // @@protoc_insertion_point(class_specific_merge_from_start:message.Log_data)
  2092. GOOGLE_DCHECK_NE(&from, this);
  2093. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2094. ::google::protobuf::uint32 cached_has_bits = 0;
  2095. (void) cached_has_bits;
  2096. if (from.has_log_severity()) {
  2097. set_log_severity(from.log_severity());
  2098. }
  2099. switch (from.data_case()) {
  2100. case kStrLog: {
  2101. set_str_log(from.str_log());
  2102. break;
  2103. }
  2104. case kNodeLog: {
  2105. mutable_node_log()->::message::Node_log::MergeFrom(from.node_log());
  2106. break;
  2107. }
  2108. case kManualOperatorLog: {
  2109. mutable_manual_operator_log()->::message::Manual_operation_log::MergeFrom(from.manual_operator_log());
  2110. break;
  2111. }
  2112. case DATA_NOT_SET: {
  2113. break;
  2114. }
  2115. }
  2116. }
  2117. void Log_data::CopyFrom(const ::google::protobuf::Message& from) {
  2118. // @@protoc_insertion_point(generalized_copy_from_start:message.Log_data)
  2119. if (&from == this) return;
  2120. Clear();
  2121. MergeFrom(from);
  2122. }
  2123. void Log_data::CopyFrom(const Log_data& from) {
  2124. // @@protoc_insertion_point(class_specific_copy_from_start:message.Log_data)
  2125. if (&from == this) return;
  2126. Clear();
  2127. MergeFrom(from);
  2128. }
  2129. bool Log_data::IsInitialized() const {
  2130. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  2131. switch (data_case()) {
  2132. case kStrLog: {
  2133. break;
  2134. }
  2135. case kNodeLog: {
  2136. if (has_node_log()) {
  2137. if (!this->node_log().IsInitialized()) return false;
  2138. }
  2139. break;
  2140. }
  2141. case kManualOperatorLog: {
  2142. if (has_manual_operator_log()) {
  2143. if (!this->manual_operator_log().IsInitialized()) return false;
  2144. }
  2145. break;
  2146. }
  2147. case DATA_NOT_SET: {
  2148. break;
  2149. }
  2150. }
  2151. return true;
  2152. }
  2153. void Log_data::Swap(Log_data* other) {
  2154. if (other == this) return;
  2155. InternalSwap(other);
  2156. }
  2157. void Log_data::InternalSwap(Log_data* other) {
  2158. using std::swap;
  2159. swap(log_severity_, other->log_severity_);
  2160. swap(data_, other->data_);
  2161. swap(_oneof_case_[0], other->_oneof_case_[0]);
  2162. swap(_has_bits_[0], other->_has_bits_[0]);
  2163. _internal_metadata_.Swap(&other->_internal_metadata_);
  2164. }
  2165. ::google::protobuf::Metadata Log_data::GetMetadata() const {
  2166. protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  2167. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages];
  2168. }
  2169. // ===================================================================
  2170. void Process_log::InitAsDefaultInstance() {
  2171. }
  2172. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2173. const int Process_log::kProcessTypeFieldNumber;
  2174. const int Process_log::kLogDataFieldNumber;
  2175. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2176. Process_log::Process_log()
  2177. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2178. ::google::protobuf::internal::InitSCC(
  2179. &protobuf_log_5fprocess_2eproto::scc_info_Process_log.base);
  2180. SharedCtor();
  2181. // @@protoc_insertion_point(constructor:message.Process_log)
  2182. }
  2183. Process_log::Process_log(const Process_log& from)
  2184. : ::google::protobuf::Message(),
  2185. _internal_metadata_(NULL),
  2186. _has_bits_(from._has_bits_),
  2187. log_data_(from.log_data_) {
  2188. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2189. process_type_ = from.process_type_;
  2190. // @@protoc_insertion_point(copy_constructor:message.Process_log)
  2191. }
  2192. void Process_log::SharedCtor() {
  2193. process_type_ = 1;
  2194. }
  2195. Process_log::~Process_log() {
  2196. // @@protoc_insertion_point(destructor:message.Process_log)
  2197. SharedDtor();
  2198. }
  2199. void Process_log::SharedDtor() {
  2200. }
  2201. void Process_log::SetCachedSize(int size) const {
  2202. _cached_size_.Set(size);
  2203. }
  2204. const ::google::protobuf::Descriptor* Process_log::descriptor() {
  2205. ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  2206. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2207. }
  2208. const Process_log& Process_log::default_instance() {
  2209. ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Process_log.base);
  2210. return *internal_default_instance();
  2211. }
  2212. void Process_log::Clear() {
  2213. // @@protoc_insertion_point(message_clear_start:message.Process_log)
  2214. ::google::protobuf::uint32 cached_has_bits = 0;
  2215. // Prevent compiler warnings about cached_has_bits being unused
  2216. (void) cached_has_bits;
  2217. log_data_.Clear();
  2218. process_type_ = 1;
  2219. _has_bits_.Clear();
  2220. _internal_metadata_.Clear();
  2221. }
  2222. bool Process_log::MergePartialFromCodedStream(
  2223. ::google::protobuf::io::CodedInputStream* input) {
  2224. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2225. ::google::protobuf::uint32 tag;
  2226. // @@protoc_insertion_point(parse_start:message.Process_log)
  2227. for (;;) {
  2228. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2229. tag = p.first;
  2230. if (!p.second) goto handle_unusual;
  2231. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2232. // required .message.Process_type process_type = 1;
  2233. case 1: {
  2234. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2235. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2236. int value;
  2237. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2238. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2239. input, &value)));
  2240. if (::message::Process_type_IsValid(value)) {
  2241. set_process_type(static_cast< ::message::Process_type >(value));
  2242. } else {
  2243. mutable_unknown_fields()->AddVarint(
  2244. 1, static_cast< ::google::protobuf::uint64>(value));
  2245. }
  2246. } else {
  2247. goto handle_unusual;
  2248. }
  2249. break;
  2250. }
  2251. // repeated .message.Log_data log_data = 2;
  2252. case 2: {
  2253. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2254. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2255. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2256. input, add_log_data()));
  2257. } else {
  2258. goto handle_unusual;
  2259. }
  2260. break;
  2261. }
  2262. default: {
  2263. handle_unusual:
  2264. if (tag == 0) {
  2265. goto success;
  2266. }
  2267. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2268. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2269. break;
  2270. }
  2271. }
  2272. }
  2273. success:
  2274. // @@protoc_insertion_point(parse_success:message.Process_log)
  2275. return true;
  2276. failure:
  2277. // @@protoc_insertion_point(parse_failure:message.Process_log)
  2278. return false;
  2279. #undef DO_
  2280. }
  2281. void Process_log::SerializeWithCachedSizes(
  2282. ::google::protobuf::io::CodedOutputStream* output) const {
  2283. // @@protoc_insertion_point(serialize_start:message.Process_log)
  2284. ::google::protobuf::uint32 cached_has_bits = 0;
  2285. (void) cached_has_bits;
  2286. cached_has_bits = _has_bits_[0];
  2287. // required .message.Process_type process_type = 1;
  2288. if (cached_has_bits & 0x00000001u) {
  2289. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2290. 1, this->process_type(), output);
  2291. }
  2292. // repeated .message.Log_data log_data = 2;
  2293. for (unsigned int i = 0,
  2294. n = static_cast<unsigned int>(this->log_data_size()); i < n; i++) {
  2295. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2296. 2,
  2297. this->log_data(static_cast<int>(i)),
  2298. output);
  2299. }
  2300. if (_internal_metadata_.have_unknown_fields()) {
  2301. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2302. _internal_metadata_.unknown_fields(), output);
  2303. }
  2304. // @@protoc_insertion_point(serialize_end:message.Process_log)
  2305. }
  2306. ::google::protobuf::uint8* Process_log::InternalSerializeWithCachedSizesToArray(
  2307. bool deterministic, ::google::protobuf::uint8* target) const {
  2308. (void)deterministic; // Unused
  2309. // @@protoc_insertion_point(serialize_to_array_start:message.Process_log)
  2310. ::google::protobuf::uint32 cached_has_bits = 0;
  2311. (void) cached_has_bits;
  2312. cached_has_bits = _has_bits_[0];
  2313. // required .message.Process_type process_type = 1;
  2314. if (cached_has_bits & 0x00000001u) {
  2315. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2316. 1, this->process_type(), target);
  2317. }
  2318. // repeated .message.Log_data log_data = 2;
  2319. for (unsigned int i = 0,
  2320. n = static_cast<unsigned int>(this->log_data_size()); i < n; i++) {
  2321. target = ::google::protobuf::internal::WireFormatLite::
  2322. InternalWriteMessageToArray(
  2323. 2, this->log_data(static_cast<int>(i)), deterministic, target);
  2324. }
  2325. if (_internal_metadata_.have_unknown_fields()) {
  2326. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2327. _internal_metadata_.unknown_fields(), target);
  2328. }
  2329. // @@protoc_insertion_point(serialize_to_array_end:message.Process_log)
  2330. return target;
  2331. }
  2332. size_t Process_log::ByteSizeLong() const {
  2333. // @@protoc_insertion_point(message_byte_size_start:message.Process_log)
  2334. size_t total_size = 0;
  2335. if (_internal_metadata_.have_unknown_fields()) {
  2336. total_size +=
  2337. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2338. _internal_metadata_.unknown_fields());
  2339. }
  2340. // required .message.Process_type process_type = 1;
  2341. if (has_process_type()) {
  2342. total_size += 1 +
  2343. ::google::protobuf::internal::WireFormatLite::EnumSize(this->process_type());
  2344. }
  2345. // repeated .message.Log_data log_data = 2;
  2346. {
  2347. unsigned int count = static_cast<unsigned int>(this->log_data_size());
  2348. total_size += 1UL * count;
  2349. for (unsigned int i = 0; i < count; i++) {
  2350. total_size +=
  2351. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2352. this->log_data(static_cast<int>(i)));
  2353. }
  2354. }
  2355. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2356. SetCachedSize(cached_size);
  2357. return total_size;
  2358. }
  2359. void Process_log::MergeFrom(const ::google::protobuf::Message& from) {
  2360. // @@protoc_insertion_point(generalized_merge_from_start:message.Process_log)
  2361. GOOGLE_DCHECK_NE(&from, this);
  2362. const Process_log* source =
  2363. ::google::protobuf::internal::DynamicCastToGenerated<const Process_log>(
  2364. &from);
  2365. if (source == NULL) {
  2366. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Process_log)
  2367. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2368. } else {
  2369. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Process_log)
  2370. MergeFrom(*source);
  2371. }
  2372. }
  2373. void Process_log::MergeFrom(const Process_log& from) {
  2374. // @@protoc_insertion_point(class_specific_merge_from_start:message.Process_log)
  2375. GOOGLE_DCHECK_NE(&from, this);
  2376. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2377. ::google::protobuf::uint32 cached_has_bits = 0;
  2378. (void) cached_has_bits;
  2379. log_data_.MergeFrom(from.log_data_);
  2380. if (from.has_process_type()) {
  2381. set_process_type(from.process_type());
  2382. }
  2383. }
  2384. void Process_log::CopyFrom(const ::google::protobuf::Message& from) {
  2385. // @@protoc_insertion_point(generalized_copy_from_start:message.Process_log)
  2386. if (&from == this) return;
  2387. Clear();
  2388. MergeFrom(from);
  2389. }
  2390. void Process_log::CopyFrom(const Process_log& from) {
  2391. // @@protoc_insertion_point(class_specific_copy_from_start:message.Process_log)
  2392. if (&from == this) return;
  2393. Clear();
  2394. MergeFrom(from);
  2395. }
  2396. bool Process_log::IsInitialized() const {
  2397. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  2398. if (!::google::protobuf::internal::AllAreInitialized(this->log_data())) return false;
  2399. return true;
  2400. }
  2401. void Process_log::Swap(Process_log* other) {
  2402. if (other == this) return;
  2403. InternalSwap(other);
  2404. }
  2405. void Process_log::InternalSwap(Process_log* other) {
  2406. using std::swap;
  2407. CastToBase(&log_data_)->InternalSwap(CastToBase(&other->log_data_));
  2408. swap(process_type_, other->process_type_);
  2409. swap(_has_bits_[0], other->_has_bits_[0]);
  2410. _internal_metadata_.Swap(&other->_internal_metadata_);
  2411. }
  2412. ::google::protobuf::Metadata Process_log::GetMetadata() const {
  2413. protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce();
  2414. return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages];
  2415. }
  2416. // @@protoc_insertion_point(namespace_scope)
  2417. } // namespace message
  2418. namespace google {
  2419. namespace protobuf {
  2420. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Node_log* Arena::CreateMaybeMessage< ::message::Node_log >(Arena* arena) {
  2421. return Arena::CreateInternal< ::message::Node_log >(arena);
  2422. }
  2423. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Manual_operation_log* Arena::CreateMaybeMessage< ::message::Manual_operation_log >(Arena* arena) {
  2424. return Arena::CreateInternal< ::message::Manual_operation_log >(arena);
  2425. }
  2426. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Log_data* Arena::CreateMaybeMessage< ::message::Log_data >(Arena* arena) {
  2427. return Arena::CreateInternal< ::message::Log_data >(arena);
  2428. }
  2429. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Process_log* Arena::CreateMaybeMessage< ::message::Process_log >(Arena* arena) {
  2430. return Arena::CreateInternal< ::message::Process_log >(arena);
  2431. }
  2432. } // namespace protobuf
  2433. } // namespace google
  2434. // @@protoc_insertion_point(global_scope)