notify_message.pb.cc 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: notify_message.proto
  3. #include "notify_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_message_5fbase_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Base_info_message_5fbase_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_message_5fbase_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Car_info_message_5fbase_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_message_5fbase_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Error_manager_message_5fbase_2eproto;
  17. extern PROTOBUF_INTERNAL_EXPORT_message_5fbase_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Id_struct_message_5fbase_2eproto;
  18. namespace message {
  19. class Notify_request_msgDefaultTypeInternal {
  20. public:
  21. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Notify_request_msg> _instance;
  22. } _Notify_request_msg_default_instance_;
  23. class Notify_response_msgDefaultTypeInternal {
  24. public:
  25. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Notify_response_msg> _instance;
  26. } _Notify_response_msg_default_instance_;
  27. class Notify_status_msgDefaultTypeInternal {
  28. public:
  29. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Notify_status_msg> _instance;
  30. } _Notify_status_msg_default_instance_;
  31. } // namespace message
  32. static void InitDefaultsscc_info_Notify_request_msg_notify_5fmessage_2eproto() {
  33. GOOGLE_PROTOBUF_VERIFY_VERSION;
  34. {
  35. void* ptr = &::message::_Notify_request_msg_default_instance_;
  36. new (ptr) ::message::Notify_request_msg();
  37. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  38. }
  39. ::message::Notify_request_msg::InitAsDefaultInstance();
  40. }
  41. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Notify_request_msg_notify_5fmessage_2eproto =
  42. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Notify_request_msg_notify_5fmessage_2eproto}, {
  43. &scc_info_Base_info_message_5fbase_2eproto.base,
  44. &scc_info_Id_struct_message_5fbase_2eproto.base,
  45. &scc_info_Car_info_message_5fbase_2eproto.base,}};
  46. static void InitDefaultsscc_info_Notify_response_msg_notify_5fmessage_2eproto() {
  47. GOOGLE_PROTOBUF_VERIFY_VERSION;
  48. {
  49. void* ptr = &::message::_Notify_response_msg_default_instance_;
  50. new (ptr) ::message::Notify_response_msg();
  51. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  52. }
  53. ::message::Notify_response_msg::InitAsDefaultInstance();
  54. }
  55. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Notify_response_msg_notify_5fmessage_2eproto =
  56. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Notify_response_msg_notify_5fmessage_2eproto}, {
  57. &scc_info_Base_info_message_5fbase_2eproto.base,
  58. &scc_info_Id_struct_message_5fbase_2eproto.base,
  59. &scc_info_Error_manager_message_5fbase_2eproto.base,}};
  60. static void InitDefaultsscc_info_Notify_status_msg_notify_5fmessage_2eproto() {
  61. GOOGLE_PROTOBUF_VERIFY_VERSION;
  62. {
  63. void* ptr = &::message::_Notify_status_msg_default_instance_;
  64. new (ptr) ::message::Notify_status_msg();
  65. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  66. }
  67. ::message::Notify_status_msg::InitAsDefaultInstance();
  68. }
  69. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Notify_status_msg_notify_5fmessage_2eproto =
  70. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Notify_status_msg_notify_5fmessage_2eproto}, {
  71. &scc_info_Base_info_message_5fbase_2eproto.base,
  72. &scc_info_Id_struct_message_5fbase_2eproto.base,
  73. &scc_info_Error_manager_message_5fbase_2eproto.base,}};
  74. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_notify_5fmessage_2eproto[3];
  75. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_notify_5fmessage_2eproto = nullptr;
  76. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_notify_5fmessage_2eproto = nullptr;
  77. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_notify_5fmessage_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  78. PROTOBUF_FIELD_OFFSET(::message::Notify_request_msg, _has_bits_),
  79. PROTOBUF_FIELD_OFFSET(::message::Notify_request_msg, _internal_metadata_),
  80. ~0u, // no _extensions_
  81. ~0u, // no _oneof_case_
  82. ~0u, // no _weak_field_map_
  83. PROTOBUF_FIELD_OFFSET(::message::Notify_request_msg, base_info_),
  84. PROTOBUF_FIELD_OFFSET(::message::Notify_request_msg, command_key_),
  85. PROTOBUF_FIELD_OFFSET(::message::Notify_request_msg, id_struct_),
  86. PROTOBUF_FIELD_OFFSET(::message::Notify_request_msg, car_info_),
  87. 1,
  88. 0,
  89. 2,
  90. 3,
  91. PROTOBUF_FIELD_OFFSET(::message::Notify_response_msg, _has_bits_),
  92. PROTOBUF_FIELD_OFFSET(::message::Notify_response_msg, _internal_metadata_),
  93. ~0u, // no _extensions_
  94. ~0u, // no _oneof_case_
  95. ~0u, // no _weak_field_map_
  96. PROTOBUF_FIELD_OFFSET(::message::Notify_response_msg, base_info_),
  97. PROTOBUF_FIELD_OFFSET(::message::Notify_response_msg, command_key_),
  98. PROTOBUF_FIELD_OFFSET(::message::Notify_response_msg, id_struct_),
  99. PROTOBUF_FIELD_OFFSET(::message::Notify_response_msg, code_),
  100. 1,
  101. 0,
  102. 2,
  103. 3,
  104. PROTOBUF_FIELD_OFFSET(::message::Notify_status_msg, _has_bits_),
  105. PROTOBUF_FIELD_OFFSET(::message::Notify_status_msg, _internal_metadata_),
  106. ~0u, // no _extensions_
  107. ~0u, // no _oneof_case_
  108. ~0u, // no _weak_field_map_
  109. PROTOBUF_FIELD_OFFSET(::message::Notify_status_msg, base_info_),
  110. PROTOBUF_FIELD_OFFSET(::message::Notify_status_msg, channel_),
  111. PROTOBUF_FIELD_OFFSET(::message::Notify_status_msg, error_manager_),
  112. 0,
  113. 1,
  114. 2,
  115. };
  116. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  117. { 0, 9, sizeof(::message::Notify_request_msg)},
  118. { 13, 22, sizeof(::message::Notify_response_msg)},
  119. { 26, 34, sizeof(::message::Notify_status_msg)},
  120. };
  121. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  122. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::message::_Notify_request_msg_default_instance_),
  123. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::message::_Notify_response_msg_default_instance_),
  124. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::message::_Notify_status_msg_default_instance_),
  125. };
  126. const char descriptor_table_protodef_notify_5fmessage_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  127. "\n\024notify_message.proto\022\007message\032\022message"
  128. "_base.proto\"\234\001\n\022Notify_request_msg\022%\n\tba"
  129. "se_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013com"
  130. "mand_key\030\002 \002(\t\022%\n\tid_struct\030\003 \002(\0132\022.mess"
  131. "age.Id_struct\022#\n\010car_info\030\004 \002(\0132\021.messag"
  132. "e.Car_info\"\236\001\n\023Notify_response_msg\022%\n\tba"
  133. "se_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013com"
  134. "mand_key\030\002 \002(\t\022%\n\tid_struct\030\003 \002(\0132\022.mess"
  135. "age.Id_struct\022$\n\004code\030\004 \002(\0132\026.message.Er"
  136. "ror_manager\"\216\001\n\021Notify_status_msg\022%\n\tbas"
  137. "e_info\030\001 \002(\0132\022.message.Base_info\022#\n\007chan"
  138. "nel\030\002 \002(\0132\022.message.Id_struct\022-\n\rerror_m"
  139. "anager\030\003 \002(\0132\026.message.Error_manager"
  140. ;
  141. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_notify_5fmessage_2eproto_deps[1] = {
  142. &::descriptor_table_message_5fbase_2eproto,
  143. };
  144. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_notify_5fmessage_2eproto_sccs[3] = {
  145. &scc_info_Notify_request_msg_notify_5fmessage_2eproto.base,
  146. &scc_info_Notify_response_msg_notify_5fmessage_2eproto.base,
  147. &scc_info_Notify_status_msg_notify_5fmessage_2eproto.base,
  148. };
  149. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_notify_5fmessage_2eproto_once;
  150. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_notify_5fmessage_2eproto = {
  151. false, false, descriptor_table_protodef_notify_5fmessage_2eproto, "notify_message.proto", 516,
  152. &descriptor_table_notify_5fmessage_2eproto_once, descriptor_table_notify_5fmessage_2eproto_sccs, descriptor_table_notify_5fmessage_2eproto_deps, 3, 1,
  153. schemas, file_default_instances, TableStruct_notify_5fmessage_2eproto::offsets,
  154. file_level_metadata_notify_5fmessage_2eproto, 3, file_level_enum_descriptors_notify_5fmessage_2eproto, file_level_service_descriptors_notify_5fmessage_2eproto,
  155. };
  156. // Force running AddDescriptors() at dynamic initialization time.
  157. static bool dynamic_init_dummy_notify_5fmessage_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_notify_5fmessage_2eproto)), true);
  158. namespace message {
  159. // ===================================================================
  160. void Notify_request_msg::InitAsDefaultInstance() {
  161. ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  162. ::message::Base_info::internal_default_instance());
  163. ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  164. ::message::Id_struct::internal_default_instance());
  165. ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  166. ::message::Car_info::internal_default_instance());
  167. }
  168. class Notify_request_msg::_Internal {
  169. public:
  170. using HasBits = decltype(std::declval<Notify_request_msg>()._has_bits_);
  171. static const ::message::Base_info& base_info(const Notify_request_msg* msg);
  172. static void set_has_base_info(HasBits* has_bits) {
  173. (*has_bits)[0] |= 2u;
  174. }
  175. static void set_has_command_key(HasBits* has_bits) {
  176. (*has_bits)[0] |= 1u;
  177. }
  178. static const ::message::Id_struct& id_struct(const Notify_request_msg* msg);
  179. static void set_has_id_struct(HasBits* has_bits) {
  180. (*has_bits)[0] |= 4u;
  181. }
  182. static const ::message::Car_info& car_info(const Notify_request_msg* msg);
  183. static void set_has_car_info(HasBits* has_bits) {
  184. (*has_bits)[0] |= 8u;
  185. }
  186. static bool MissingRequiredFields(const HasBits& has_bits) {
  187. return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
  188. }
  189. };
  190. const ::message::Base_info&
  191. Notify_request_msg::_Internal::base_info(const Notify_request_msg* msg) {
  192. return *msg->base_info_;
  193. }
  194. const ::message::Id_struct&
  195. Notify_request_msg::_Internal::id_struct(const Notify_request_msg* msg) {
  196. return *msg->id_struct_;
  197. }
  198. const ::message::Car_info&
  199. Notify_request_msg::_Internal::car_info(const Notify_request_msg* msg) {
  200. return *msg->car_info_;
  201. }
  202. void Notify_request_msg::clear_base_info() {
  203. if (base_info_ != nullptr) base_info_->Clear();
  204. _has_bits_[0] &= ~0x00000002u;
  205. }
  206. void Notify_request_msg::clear_id_struct() {
  207. if (id_struct_ != nullptr) id_struct_->Clear();
  208. _has_bits_[0] &= ~0x00000004u;
  209. }
  210. void Notify_request_msg::clear_car_info() {
  211. if (car_info_ != nullptr) car_info_->Clear();
  212. _has_bits_[0] &= ~0x00000008u;
  213. }
  214. Notify_request_msg::Notify_request_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  215. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  216. SharedCtor();
  217. RegisterArenaDtor(arena);
  218. // @@protoc_insertion_point(arena_constructor:message.Notify_request_msg)
  219. }
  220. Notify_request_msg::Notify_request_msg(const Notify_request_msg& from)
  221. : ::PROTOBUF_NAMESPACE_ID::Message(),
  222. _has_bits_(from._has_bits_) {
  223. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  224. command_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  225. if (from._internal_has_command_key()) {
  226. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_command_key(),
  227. GetArena());
  228. }
  229. if (from._internal_has_base_info()) {
  230. base_info_ = new ::message::Base_info(*from.base_info_);
  231. } else {
  232. base_info_ = nullptr;
  233. }
  234. if (from._internal_has_id_struct()) {
  235. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  236. } else {
  237. id_struct_ = nullptr;
  238. }
  239. if (from._internal_has_car_info()) {
  240. car_info_ = new ::message::Car_info(*from.car_info_);
  241. } else {
  242. car_info_ = nullptr;
  243. }
  244. // @@protoc_insertion_point(copy_constructor:message.Notify_request_msg)
  245. }
  246. void Notify_request_msg::SharedCtor() {
  247. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Notify_request_msg_notify_5fmessage_2eproto.base);
  248. command_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  249. ::memset(&base_info_, 0, static_cast<size_t>(
  250. reinterpret_cast<char*>(&car_info_) -
  251. reinterpret_cast<char*>(&base_info_)) + sizeof(car_info_));
  252. }
  253. Notify_request_msg::~Notify_request_msg() {
  254. // @@protoc_insertion_point(destructor:message.Notify_request_msg)
  255. SharedDtor();
  256. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  257. }
  258. void Notify_request_msg::SharedDtor() {
  259. GOOGLE_DCHECK(GetArena() == nullptr);
  260. command_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  261. if (this != internal_default_instance()) delete base_info_;
  262. if (this != internal_default_instance()) delete id_struct_;
  263. if (this != internal_default_instance()) delete car_info_;
  264. }
  265. void Notify_request_msg::ArenaDtor(void* object) {
  266. Notify_request_msg* _this = reinterpret_cast< Notify_request_msg* >(object);
  267. (void)_this;
  268. }
  269. void Notify_request_msg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  270. }
  271. void Notify_request_msg::SetCachedSize(int size) const {
  272. _cached_size_.Set(size);
  273. }
  274. const Notify_request_msg& Notify_request_msg::default_instance() {
  275. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Notify_request_msg_notify_5fmessage_2eproto.base);
  276. return *internal_default_instance();
  277. }
  278. void Notify_request_msg::Clear() {
  279. // @@protoc_insertion_point(message_clear_start:message.Notify_request_msg)
  280. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  281. // Prevent compiler warnings about cached_has_bits being unused
  282. (void) cached_has_bits;
  283. cached_has_bits = _has_bits_[0];
  284. if (cached_has_bits & 0x0000000fu) {
  285. if (cached_has_bits & 0x00000001u) {
  286. command_key_.ClearNonDefaultToEmpty();
  287. }
  288. if (cached_has_bits & 0x00000002u) {
  289. GOOGLE_DCHECK(base_info_ != nullptr);
  290. base_info_->Clear();
  291. }
  292. if (cached_has_bits & 0x00000004u) {
  293. GOOGLE_DCHECK(id_struct_ != nullptr);
  294. id_struct_->Clear();
  295. }
  296. if (cached_has_bits & 0x00000008u) {
  297. GOOGLE_DCHECK(car_info_ != nullptr);
  298. car_info_->Clear();
  299. }
  300. }
  301. _has_bits_.Clear();
  302. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  303. }
  304. const char* Notify_request_msg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  305. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  306. _Internal::HasBits has_bits{};
  307. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  308. while (!ctx->Done(&ptr)) {
  309. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  310. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  311. CHK_(ptr);
  312. switch (tag >> 3) {
  313. // required .message.Base_info base_info = 1;
  314. case 1:
  315. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  316. ptr = ctx->ParseMessage(_internal_mutable_base_info(), ptr);
  317. CHK_(ptr);
  318. } else goto handle_unusual;
  319. continue;
  320. // required string command_key = 2;
  321. case 2:
  322. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  323. auto str = _internal_mutable_command_key();
  324. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  325. #ifndef NDEBUG
  326. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "message.Notify_request_msg.command_key");
  327. #endif // !NDEBUG
  328. CHK_(ptr);
  329. } else goto handle_unusual;
  330. continue;
  331. // required .message.Id_struct id_struct = 3;
  332. case 3:
  333. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  334. ptr = ctx->ParseMessage(_internal_mutable_id_struct(), ptr);
  335. CHK_(ptr);
  336. } else goto handle_unusual;
  337. continue;
  338. // required .message.Car_info car_info = 4;
  339. case 4:
  340. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  341. ptr = ctx->ParseMessage(_internal_mutable_car_info(), ptr);
  342. CHK_(ptr);
  343. } else goto handle_unusual;
  344. continue;
  345. default: {
  346. handle_unusual:
  347. if ((tag & 7) == 4 || tag == 0) {
  348. ctx->SetLastTag(tag);
  349. goto success;
  350. }
  351. ptr = UnknownFieldParse(tag,
  352. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  353. ptr, ctx);
  354. CHK_(ptr != nullptr);
  355. continue;
  356. }
  357. } // switch
  358. } // while
  359. success:
  360. _has_bits_.Or(has_bits);
  361. return ptr;
  362. failure:
  363. ptr = nullptr;
  364. goto success;
  365. #undef CHK_
  366. }
  367. ::PROTOBUF_NAMESPACE_ID::uint8* Notify_request_msg::_InternalSerialize(
  368. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  369. // @@protoc_insertion_point(serialize_to_array_start:message.Notify_request_msg)
  370. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  371. (void) cached_has_bits;
  372. cached_has_bits = _has_bits_[0];
  373. // required .message.Base_info base_info = 1;
  374. if (cached_has_bits & 0x00000002u) {
  375. target = stream->EnsureSpace(target);
  376. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  377. InternalWriteMessage(
  378. 1, _Internal::base_info(this), target, stream);
  379. }
  380. // required string command_key = 2;
  381. if (cached_has_bits & 0x00000001u) {
  382. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  383. this->_internal_command_key().data(), static_cast<int>(this->_internal_command_key().length()),
  384. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  385. "message.Notify_request_msg.command_key");
  386. target = stream->WriteStringMaybeAliased(
  387. 2, this->_internal_command_key(), target);
  388. }
  389. // required .message.Id_struct id_struct = 3;
  390. if (cached_has_bits & 0x00000004u) {
  391. target = stream->EnsureSpace(target);
  392. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  393. InternalWriteMessage(
  394. 3, _Internal::id_struct(this), target, stream);
  395. }
  396. // required .message.Car_info car_info = 4;
  397. if (cached_has_bits & 0x00000008u) {
  398. target = stream->EnsureSpace(target);
  399. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  400. InternalWriteMessage(
  401. 4, _Internal::car_info(this), target, stream);
  402. }
  403. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  404. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  405. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  406. }
  407. // @@protoc_insertion_point(serialize_to_array_end:message.Notify_request_msg)
  408. return target;
  409. }
  410. size_t Notify_request_msg::RequiredFieldsByteSizeFallback() const {
  411. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_request_msg)
  412. size_t total_size = 0;
  413. if (_internal_has_command_key()) {
  414. // required string command_key = 2;
  415. total_size += 1 +
  416. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  417. this->_internal_command_key());
  418. }
  419. if (_internal_has_base_info()) {
  420. // required .message.Base_info base_info = 1;
  421. total_size += 1 +
  422. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  423. *base_info_);
  424. }
  425. if (_internal_has_id_struct()) {
  426. // required .message.Id_struct id_struct = 3;
  427. total_size += 1 +
  428. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  429. *id_struct_);
  430. }
  431. if (_internal_has_car_info()) {
  432. // required .message.Car_info car_info = 4;
  433. total_size += 1 +
  434. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  435. *car_info_);
  436. }
  437. return total_size;
  438. }
  439. size_t Notify_request_msg::ByteSizeLong() const {
  440. // @@protoc_insertion_point(message_byte_size_start:message.Notify_request_msg)
  441. size_t total_size = 0;
  442. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  443. // required string command_key = 2;
  444. total_size += 1 +
  445. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  446. this->_internal_command_key());
  447. // required .message.Base_info base_info = 1;
  448. total_size += 1 +
  449. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  450. *base_info_);
  451. // required .message.Id_struct id_struct = 3;
  452. total_size += 1 +
  453. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  454. *id_struct_);
  455. // required .message.Car_info car_info = 4;
  456. total_size += 1 +
  457. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  458. *car_info_);
  459. } else {
  460. total_size += RequiredFieldsByteSizeFallback();
  461. }
  462. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  463. // Prevent compiler warnings about cached_has_bits being unused
  464. (void) cached_has_bits;
  465. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  466. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  467. _internal_metadata_, total_size, &_cached_size_);
  468. }
  469. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  470. SetCachedSize(cached_size);
  471. return total_size;
  472. }
  473. void Notify_request_msg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  474. // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_request_msg)
  475. GOOGLE_DCHECK_NE(&from, this);
  476. const Notify_request_msg* source =
  477. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Notify_request_msg>(
  478. &from);
  479. if (source == nullptr) {
  480. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_request_msg)
  481. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  482. } else {
  483. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_request_msg)
  484. MergeFrom(*source);
  485. }
  486. }
  487. void Notify_request_msg::MergeFrom(const Notify_request_msg& from) {
  488. // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_request_msg)
  489. GOOGLE_DCHECK_NE(&from, this);
  490. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  491. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  492. (void) cached_has_bits;
  493. cached_has_bits = from._has_bits_[0];
  494. if (cached_has_bits & 0x0000000fu) {
  495. if (cached_has_bits & 0x00000001u) {
  496. _internal_set_command_key(from._internal_command_key());
  497. }
  498. if (cached_has_bits & 0x00000002u) {
  499. _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
  500. }
  501. if (cached_has_bits & 0x00000004u) {
  502. _internal_mutable_id_struct()->::message::Id_struct::MergeFrom(from._internal_id_struct());
  503. }
  504. if (cached_has_bits & 0x00000008u) {
  505. _internal_mutable_car_info()->::message::Car_info::MergeFrom(from._internal_car_info());
  506. }
  507. }
  508. }
  509. void Notify_request_msg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  510. // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_request_msg)
  511. if (&from == this) return;
  512. Clear();
  513. MergeFrom(from);
  514. }
  515. void Notify_request_msg::CopyFrom(const Notify_request_msg& from) {
  516. // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_request_msg)
  517. if (&from == this) return;
  518. Clear();
  519. MergeFrom(from);
  520. }
  521. bool Notify_request_msg::IsInitialized() const {
  522. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  523. if (_internal_has_base_info()) {
  524. if (!base_info_->IsInitialized()) return false;
  525. }
  526. return true;
  527. }
  528. void Notify_request_msg::InternalSwap(Notify_request_msg* other) {
  529. using std::swap;
  530. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  531. swap(_has_bits_[0], other->_has_bits_[0]);
  532. command_key_.Swap(&other->command_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  533. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  534. PROTOBUF_FIELD_OFFSET(Notify_request_msg, car_info_)
  535. + sizeof(Notify_request_msg::car_info_)
  536. - PROTOBUF_FIELD_OFFSET(Notify_request_msg, base_info_)>(
  537. reinterpret_cast<char*>(&base_info_),
  538. reinterpret_cast<char*>(&other->base_info_));
  539. }
  540. ::PROTOBUF_NAMESPACE_ID::Metadata Notify_request_msg::GetMetadata() const {
  541. return GetMetadataStatic();
  542. }
  543. // ===================================================================
  544. void Notify_response_msg::InitAsDefaultInstance() {
  545. ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  546. ::message::Base_info::internal_default_instance());
  547. ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  548. ::message::Id_struct::internal_default_instance());
  549. ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>(
  550. ::message::Error_manager::internal_default_instance());
  551. }
  552. class Notify_response_msg::_Internal {
  553. public:
  554. using HasBits = decltype(std::declval<Notify_response_msg>()._has_bits_);
  555. static const ::message::Base_info& base_info(const Notify_response_msg* msg);
  556. static void set_has_base_info(HasBits* has_bits) {
  557. (*has_bits)[0] |= 2u;
  558. }
  559. static void set_has_command_key(HasBits* has_bits) {
  560. (*has_bits)[0] |= 1u;
  561. }
  562. static const ::message::Id_struct& id_struct(const Notify_response_msg* msg);
  563. static void set_has_id_struct(HasBits* has_bits) {
  564. (*has_bits)[0] |= 4u;
  565. }
  566. static const ::message::Error_manager& code(const Notify_response_msg* msg);
  567. static void set_has_code(HasBits* has_bits) {
  568. (*has_bits)[0] |= 8u;
  569. }
  570. static bool MissingRequiredFields(const HasBits& has_bits) {
  571. return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
  572. }
  573. };
  574. const ::message::Base_info&
  575. Notify_response_msg::_Internal::base_info(const Notify_response_msg* msg) {
  576. return *msg->base_info_;
  577. }
  578. const ::message::Id_struct&
  579. Notify_response_msg::_Internal::id_struct(const Notify_response_msg* msg) {
  580. return *msg->id_struct_;
  581. }
  582. const ::message::Error_manager&
  583. Notify_response_msg::_Internal::code(const Notify_response_msg* msg) {
  584. return *msg->code_;
  585. }
  586. void Notify_response_msg::clear_base_info() {
  587. if (base_info_ != nullptr) base_info_->Clear();
  588. _has_bits_[0] &= ~0x00000002u;
  589. }
  590. void Notify_response_msg::clear_id_struct() {
  591. if (id_struct_ != nullptr) id_struct_->Clear();
  592. _has_bits_[0] &= ~0x00000004u;
  593. }
  594. void Notify_response_msg::clear_code() {
  595. if (code_ != nullptr) code_->Clear();
  596. _has_bits_[0] &= ~0x00000008u;
  597. }
  598. Notify_response_msg::Notify_response_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  599. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  600. SharedCtor();
  601. RegisterArenaDtor(arena);
  602. // @@protoc_insertion_point(arena_constructor:message.Notify_response_msg)
  603. }
  604. Notify_response_msg::Notify_response_msg(const Notify_response_msg& from)
  605. : ::PROTOBUF_NAMESPACE_ID::Message(),
  606. _has_bits_(from._has_bits_) {
  607. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  608. command_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  609. if (from._internal_has_command_key()) {
  610. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_command_key(),
  611. GetArena());
  612. }
  613. if (from._internal_has_base_info()) {
  614. base_info_ = new ::message::Base_info(*from.base_info_);
  615. } else {
  616. base_info_ = nullptr;
  617. }
  618. if (from._internal_has_id_struct()) {
  619. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  620. } else {
  621. id_struct_ = nullptr;
  622. }
  623. if (from._internal_has_code()) {
  624. code_ = new ::message::Error_manager(*from.code_);
  625. } else {
  626. code_ = nullptr;
  627. }
  628. // @@protoc_insertion_point(copy_constructor:message.Notify_response_msg)
  629. }
  630. void Notify_response_msg::SharedCtor() {
  631. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Notify_response_msg_notify_5fmessage_2eproto.base);
  632. command_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  633. ::memset(&base_info_, 0, static_cast<size_t>(
  634. reinterpret_cast<char*>(&code_) -
  635. reinterpret_cast<char*>(&base_info_)) + sizeof(code_));
  636. }
  637. Notify_response_msg::~Notify_response_msg() {
  638. // @@protoc_insertion_point(destructor:message.Notify_response_msg)
  639. SharedDtor();
  640. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  641. }
  642. void Notify_response_msg::SharedDtor() {
  643. GOOGLE_DCHECK(GetArena() == nullptr);
  644. command_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  645. if (this != internal_default_instance()) delete base_info_;
  646. if (this != internal_default_instance()) delete id_struct_;
  647. if (this != internal_default_instance()) delete code_;
  648. }
  649. void Notify_response_msg::ArenaDtor(void* object) {
  650. Notify_response_msg* _this = reinterpret_cast< Notify_response_msg* >(object);
  651. (void)_this;
  652. }
  653. void Notify_response_msg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  654. }
  655. void Notify_response_msg::SetCachedSize(int size) const {
  656. _cached_size_.Set(size);
  657. }
  658. const Notify_response_msg& Notify_response_msg::default_instance() {
  659. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Notify_response_msg_notify_5fmessage_2eproto.base);
  660. return *internal_default_instance();
  661. }
  662. void Notify_response_msg::Clear() {
  663. // @@protoc_insertion_point(message_clear_start:message.Notify_response_msg)
  664. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  665. // Prevent compiler warnings about cached_has_bits being unused
  666. (void) cached_has_bits;
  667. cached_has_bits = _has_bits_[0];
  668. if (cached_has_bits & 0x0000000fu) {
  669. if (cached_has_bits & 0x00000001u) {
  670. command_key_.ClearNonDefaultToEmpty();
  671. }
  672. if (cached_has_bits & 0x00000002u) {
  673. GOOGLE_DCHECK(base_info_ != nullptr);
  674. base_info_->Clear();
  675. }
  676. if (cached_has_bits & 0x00000004u) {
  677. GOOGLE_DCHECK(id_struct_ != nullptr);
  678. id_struct_->Clear();
  679. }
  680. if (cached_has_bits & 0x00000008u) {
  681. GOOGLE_DCHECK(code_ != nullptr);
  682. code_->Clear();
  683. }
  684. }
  685. _has_bits_.Clear();
  686. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  687. }
  688. const char* Notify_response_msg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  689. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  690. _Internal::HasBits has_bits{};
  691. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  692. while (!ctx->Done(&ptr)) {
  693. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  694. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  695. CHK_(ptr);
  696. switch (tag >> 3) {
  697. // required .message.Base_info base_info = 1;
  698. case 1:
  699. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  700. ptr = ctx->ParseMessage(_internal_mutable_base_info(), ptr);
  701. CHK_(ptr);
  702. } else goto handle_unusual;
  703. continue;
  704. // required string command_key = 2;
  705. case 2:
  706. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  707. auto str = _internal_mutable_command_key();
  708. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  709. #ifndef NDEBUG
  710. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "message.Notify_response_msg.command_key");
  711. #endif // !NDEBUG
  712. CHK_(ptr);
  713. } else goto handle_unusual;
  714. continue;
  715. // required .message.Id_struct id_struct = 3;
  716. case 3:
  717. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  718. ptr = ctx->ParseMessage(_internal_mutable_id_struct(), ptr);
  719. CHK_(ptr);
  720. } else goto handle_unusual;
  721. continue;
  722. // required .message.Error_manager code = 4;
  723. case 4:
  724. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  725. ptr = ctx->ParseMessage(_internal_mutable_code(), ptr);
  726. CHK_(ptr);
  727. } else goto handle_unusual;
  728. continue;
  729. default: {
  730. handle_unusual:
  731. if ((tag & 7) == 4 || tag == 0) {
  732. ctx->SetLastTag(tag);
  733. goto success;
  734. }
  735. ptr = UnknownFieldParse(tag,
  736. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  737. ptr, ctx);
  738. CHK_(ptr != nullptr);
  739. continue;
  740. }
  741. } // switch
  742. } // while
  743. success:
  744. _has_bits_.Or(has_bits);
  745. return ptr;
  746. failure:
  747. ptr = nullptr;
  748. goto success;
  749. #undef CHK_
  750. }
  751. ::PROTOBUF_NAMESPACE_ID::uint8* Notify_response_msg::_InternalSerialize(
  752. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  753. // @@protoc_insertion_point(serialize_to_array_start:message.Notify_response_msg)
  754. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  755. (void) cached_has_bits;
  756. cached_has_bits = _has_bits_[0];
  757. // required .message.Base_info base_info = 1;
  758. if (cached_has_bits & 0x00000002u) {
  759. target = stream->EnsureSpace(target);
  760. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  761. InternalWriteMessage(
  762. 1, _Internal::base_info(this), target, stream);
  763. }
  764. // required string command_key = 2;
  765. if (cached_has_bits & 0x00000001u) {
  766. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  767. this->_internal_command_key().data(), static_cast<int>(this->_internal_command_key().length()),
  768. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  769. "message.Notify_response_msg.command_key");
  770. target = stream->WriteStringMaybeAliased(
  771. 2, this->_internal_command_key(), target);
  772. }
  773. // required .message.Id_struct id_struct = 3;
  774. if (cached_has_bits & 0x00000004u) {
  775. target = stream->EnsureSpace(target);
  776. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  777. InternalWriteMessage(
  778. 3, _Internal::id_struct(this), target, stream);
  779. }
  780. // required .message.Error_manager code = 4;
  781. if (cached_has_bits & 0x00000008u) {
  782. target = stream->EnsureSpace(target);
  783. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  784. InternalWriteMessage(
  785. 4, _Internal::code(this), target, stream);
  786. }
  787. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  788. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  789. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  790. }
  791. // @@protoc_insertion_point(serialize_to_array_end:message.Notify_response_msg)
  792. return target;
  793. }
  794. size_t Notify_response_msg::RequiredFieldsByteSizeFallback() const {
  795. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_response_msg)
  796. size_t total_size = 0;
  797. if (_internal_has_command_key()) {
  798. // required string command_key = 2;
  799. total_size += 1 +
  800. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  801. this->_internal_command_key());
  802. }
  803. if (_internal_has_base_info()) {
  804. // required .message.Base_info base_info = 1;
  805. total_size += 1 +
  806. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  807. *base_info_);
  808. }
  809. if (_internal_has_id_struct()) {
  810. // required .message.Id_struct id_struct = 3;
  811. total_size += 1 +
  812. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  813. *id_struct_);
  814. }
  815. if (_internal_has_code()) {
  816. // required .message.Error_manager code = 4;
  817. total_size += 1 +
  818. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  819. *code_);
  820. }
  821. return total_size;
  822. }
  823. size_t Notify_response_msg::ByteSizeLong() const {
  824. // @@protoc_insertion_point(message_byte_size_start:message.Notify_response_msg)
  825. size_t total_size = 0;
  826. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  827. // required string command_key = 2;
  828. total_size += 1 +
  829. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  830. this->_internal_command_key());
  831. // required .message.Base_info base_info = 1;
  832. total_size += 1 +
  833. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  834. *base_info_);
  835. // required .message.Id_struct id_struct = 3;
  836. total_size += 1 +
  837. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  838. *id_struct_);
  839. // required .message.Error_manager code = 4;
  840. total_size += 1 +
  841. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  842. *code_);
  843. } else {
  844. total_size += RequiredFieldsByteSizeFallback();
  845. }
  846. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  847. // Prevent compiler warnings about cached_has_bits being unused
  848. (void) cached_has_bits;
  849. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  850. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  851. _internal_metadata_, total_size, &_cached_size_);
  852. }
  853. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  854. SetCachedSize(cached_size);
  855. return total_size;
  856. }
  857. void Notify_response_msg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  858. // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_response_msg)
  859. GOOGLE_DCHECK_NE(&from, this);
  860. const Notify_response_msg* source =
  861. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Notify_response_msg>(
  862. &from);
  863. if (source == nullptr) {
  864. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_response_msg)
  865. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  866. } else {
  867. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_response_msg)
  868. MergeFrom(*source);
  869. }
  870. }
  871. void Notify_response_msg::MergeFrom(const Notify_response_msg& from) {
  872. // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_response_msg)
  873. GOOGLE_DCHECK_NE(&from, this);
  874. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  875. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  876. (void) cached_has_bits;
  877. cached_has_bits = from._has_bits_[0];
  878. if (cached_has_bits & 0x0000000fu) {
  879. if (cached_has_bits & 0x00000001u) {
  880. _internal_set_command_key(from._internal_command_key());
  881. }
  882. if (cached_has_bits & 0x00000002u) {
  883. _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
  884. }
  885. if (cached_has_bits & 0x00000004u) {
  886. _internal_mutable_id_struct()->::message::Id_struct::MergeFrom(from._internal_id_struct());
  887. }
  888. if (cached_has_bits & 0x00000008u) {
  889. _internal_mutable_code()->::message::Error_manager::MergeFrom(from._internal_code());
  890. }
  891. }
  892. }
  893. void Notify_response_msg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  894. // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_response_msg)
  895. if (&from == this) return;
  896. Clear();
  897. MergeFrom(from);
  898. }
  899. void Notify_response_msg::CopyFrom(const Notify_response_msg& from) {
  900. // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_response_msg)
  901. if (&from == this) return;
  902. Clear();
  903. MergeFrom(from);
  904. }
  905. bool Notify_response_msg::IsInitialized() const {
  906. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  907. if (_internal_has_base_info()) {
  908. if (!base_info_->IsInitialized()) return false;
  909. }
  910. if (_internal_has_code()) {
  911. if (!code_->IsInitialized()) return false;
  912. }
  913. return true;
  914. }
  915. void Notify_response_msg::InternalSwap(Notify_response_msg* other) {
  916. using std::swap;
  917. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  918. swap(_has_bits_[0], other->_has_bits_[0]);
  919. command_key_.Swap(&other->command_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  920. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  921. PROTOBUF_FIELD_OFFSET(Notify_response_msg, code_)
  922. + sizeof(Notify_response_msg::code_)
  923. - PROTOBUF_FIELD_OFFSET(Notify_response_msg, base_info_)>(
  924. reinterpret_cast<char*>(&base_info_),
  925. reinterpret_cast<char*>(&other->base_info_));
  926. }
  927. ::PROTOBUF_NAMESPACE_ID::Metadata Notify_response_msg::GetMetadata() const {
  928. return GetMetadataStatic();
  929. }
  930. // ===================================================================
  931. void Notify_status_msg::InitAsDefaultInstance() {
  932. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  933. ::message::Base_info::internal_default_instance());
  934. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->channel_ = const_cast< ::message::Id_struct*>(
  935. ::message::Id_struct::internal_default_instance());
  936. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  937. ::message::Error_manager::internal_default_instance());
  938. }
  939. class Notify_status_msg::_Internal {
  940. public:
  941. using HasBits = decltype(std::declval<Notify_status_msg>()._has_bits_);
  942. static const ::message::Base_info& base_info(const Notify_status_msg* msg);
  943. static void set_has_base_info(HasBits* has_bits) {
  944. (*has_bits)[0] |= 1u;
  945. }
  946. static const ::message::Id_struct& channel(const Notify_status_msg* msg);
  947. static void set_has_channel(HasBits* has_bits) {
  948. (*has_bits)[0] |= 2u;
  949. }
  950. static const ::message::Error_manager& error_manager(const Notify_status_msg* msg);
  951. static void set_has_error_manager(HasBits* has_bits) {
  952. (*has_bits)[0] |= 4u;
  953. }
  954. static bool MissingRequiredFields(const HasBits& has_bits) {
  955. return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
  956. }
  957. };
  958. const ::message::Base_info&
  959. Notify_status_msg::_Internal::base_info(const Notify_status_msg* msg) {
  960. return *msg->base_info_;
  961. }
  962. const ::message::Id_struct&
  963. Notify_status_msg::_Internal::channel(const Notify_status_msg* msg) {
  964. return *msg->channel_;
  965. }
  966. const ::message::Error_manager&
  967. Notify_status_msg::_Internal::error_manager(const Notify_status_msg* msg) {
  968. return *msg->error_manager_;
  969. }
  970. void Notify_status_msg::clear_base_info() {
  971. if (base_info_ != nullptr) base_info_->Clear();
  972. _has_bits_[0] &= ~0x00000001u;
  973. }
  974. void Notify_status_msg::clear_channel() {
  975. if (channel_ != nullptr) channel_->Clear();
  976. _has_bits_[0] &= ~0x00000002u;
  977. }
  978. void Notify_status_msg::clear_error_manager() {
  979. if (error_manager_ != nullptr) error_manager_->Clear();
  980. _has_bits_[0] &= ~0x00000004u;
  981. }
  982. Notify_status_msg::Notify_status_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  983. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  984. SharedCtor();
  985. RegisterArenaDtor(arena);
  986. // @@protoc_insertion_point(arena_constructor:message.Notify_status_msg)
  987. }
  988. Notify_status_msg::Notify_status_msg(const Notify_status_msg& from)
  989. : ::PROTOBUF_NAMESPACE_ID::Message(),
  990. _has_bits_(from._has_bits_) {
  991. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  992. if (from._internal_has_base_info()) {
  993. base_info_ = new ::message::Base_info(*from.base_info_);
  994. } else {
  995. base_info_ = nullptr;
  996. }
  997. if (from._internal_has_channel()) {
  998. channel_ = new ::message::Id_struct(*from.channel_);
  999. } else {
  1000. channel_ = nullptr;
  1001. }
  1002. if (from._internal_has_error_manager()) {
  1003. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1004. } else {
  1005. error_manager_ = nullptr;
  1006. }
  1007. // @@protoc_insertion_point(copy_constructor:message.Notify_status_msg)
  1008. }
  1009. void Notify_status_msg::SharedCtor() {
  1010. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Notify_status_msg_notify_5fmessage_2eproto.base);
  1011. ::memset(&base_info_, 0, static_cast<size_t>(
  1012. reinterpret_cast<char*>(&error_manager_) -
  1013. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  1014. }
  1015. Notify_status_msg::~Notify_status_msg() {
  1016. // @@protoc_insertion_point(destructor:message.Notify_status_msg)
  1017. SharedDtor();
  1018. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1019. }
  1020. void Notify_status_msg::SharedDtor() {
  1021. GOOGLE_DCHECK(GetArena() == nullptr);
  1022. if (this != internal_default_instance()) delete base_info_;
  1023. if (this != internal_default_instance()) delete channel_;
  1024. if (this != internal_default_instance()) delete error_manager_;
  1025. }
  1026. void Notify_status_msg::ArenaDtor(void* object) {
  1027. Notify_status_msg* _this = reinterpret_cast< Notify_status_msg* >(object);
  1028. (void)_this;
  1029. }
  1030. void Notify_status_msg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1031. }
  1032. void Notify_status_msg::SetCachedSize(int size) const {
  1033. _cached_size_.Set(size);
  1034. }
  1035. const Notify_status_msg& Notify_status_msg::default_instance() {
  1036. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Notify_status_msg_notify_5fmessage_2eproto.base);
  1037. return *internal_default_instance();
  1038. }
  1039. void Notify_status_msg::Clear() {
  1040. // @@protoc_insertion_point(message_clear_start:message.Notify_status_msg)
  1041. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1042. // Prevent compiler warnings about cached_has_bits being unused
  1043. (void) cached_has_bits;
  1044. cached_has_bits = _has_bits_[0];
  1045. if (cached_has_bits & 0x00000007u) {
  1046. if (cached_has_bits & 0x00000001u) {
  1047. GOOGLE_DCHECK(base_info_ != nullptr);
  1048. base_info_->Clear();
  1049. }
  1050. if (cached_has_bits & 0x00000002u) {
  1051. GOOGLE_DCHECK(channel_ != nullptr);
  1052. channel_->Clear();
  1053. }
  1054. if (cached_has_bits & 0x00000004u) {
  1055. GOOGLE_DCHECK(error_manager_ != nullptr);
  1056. error_manager_->Clear();
  1057. }
  1058. }
  1059. _has_bits_.Clear();
  1060. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1061. }
  1062. const char* Notify_status_msg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1063. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1064. _Internal::HasBits has_bits{};
  1065. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1066. while (!ctx->Done(&ptr)) {
  1067. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1068. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1069. CHK_(ptr);
  1070. switch (tag >> 3) {
  1071. // required .message.Base_info base_info = 1;
  1072. case 1:
  1073. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1074. ptr = ctx->ParseMessage(_internal_mutable_base_info(), ptr);
  1075. CHK_(ptr);
  1076. } else goto handle_unusual;
  1077. continue;
  1078. // required .message.Id_struct channel = 2;
  1079. case 2:
  1080. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  1081. ptr = ctx->ParseMessage(_internal_mutable_channel(), ptr);
  1082. CHK_(ptr);
  1083. } else goto handle_unusual;
  1084. continue;
  1085. // required .message.Error_manager error_manager = 3;
  1086. case 3:
  1087. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  1088. ptr = ctx->ParseMessage(_internal_mutable_error_manager(), ptr);
  1089. CHK_(ptr);
  1090. } else goto handle_unusual;
  1091. continue;
  1092. default: {
  1093. handle_unusual:
  1094. if ((tag & 7) == 4 || tag == 0) {
  1095. ctx->SetLastTag(tag);
  1096. goto success;
  1097. }
  1098. ptr = UnknownFieldParse(tag,
  1099. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1100. ptr, ctx);
  1101. CHK_(ptr != nullptr);
  1102. continue;
  1103. }
  1104. } // switch
  1105. } // while
  1106. success:
  1107. _has_bits_.Or(has_bits);
  1108. return ptr;
  1109. failure:
  1110. ptr = nullptr;
  1111. goto success;
  1112. #undef CHK_
  1113. }
  1114. ::PROTOBUF_NAMESPACE_ID::uint8* Notify_status_msg::_InternalSerialize(
  1115. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1116. // @@protoc_insertion_point(serialize_to_array_start:message.Notify_status_msg)
  1117. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1118. (void) cached_has_bits;
  1119. cached_has_bits = _has_bits_[0];
  1120. // required .message.Base_info base_info = 1;
  1121. if (cached_has_bits & 0x00000001u) {
  1122. target = stream->EnsureSpace(target);
  1123. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1124. InternalWriteMessage(
  1125. 1, _Internal::base_info(this), target, stream);
  1126. }
  1127. // required .message.Id_struct channel = 2;
  1128. if (cached_has_bits & 0x00000002u) {
  1129. target = stream->EnsureSpace(target);
  1130. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1131. InternalWriteMessage(
  1132. 2, _Internal::channel(this), target, stream);
  1133. }
  1134. // required .message.Error_manager error_manager = 3;
  1135. if (cached_has_bits & 0x00000004u) {
  1136. target = stream->EnsureSpace(target);
  1137. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1138. InternalWriteMessage(
  1139. 3, _Internal::error_manager(this), target, stream);
  1140. }
  1141. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1142. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1143. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1144. }
  1145. // @@protoc_insertion_point(serialize_to_array_end:message.Notify_status_msg)
  1146. return target;
  1147. }
  1148. size_t Notify_status_msg::RequiredFieldsByteSizeFallback() const {
  1149. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_status_msg)
  1150. size_t total_size = 0;
  1151. if (_internal_has_base_info()) {
  1152. // required .message.Base_info base_info = 1;
  1153. total_size += 1 +
  1154. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1155. *base_info_);
  1156. }
  1157. if (_internal_has_channel()) {
  1158. // required .message.Id_struct channel = 2;
  1159. total_size += 1 +
  1160. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1161. *channel_);
  1162. }
  1163. if (_internal_has_error_manager()) {
  1164. // required .message.Error_manager error_manager = 3;
  1165. total_size += 1 +
  1166. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1167. *error_manager_);
  1168. }
  1169. return total_size;
  1170. }
  1171. size_t Notify_status_msg::ByteSizeLong() const {
  1172. // @@protoc_insertion_point(message_byte_size_start:message.Notify_status_msg)
  1173. size_t total_size = 0;
  1174. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1175. // required .message.Base_info base_info = 1;
  1176. total_size += 1 +
  1177. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1178. *base_info_);
  1179. // required .message.Id_struct channel = 2;
  1180. total_size += 1 +
  1181. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1182. *channel_);
  1183. // required .message.Error_manager error_manager = 3;
  1184. total_size += 1 +
  1185. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1186. *error_manager_);
  1187. } else {
  1188. total_size += RequiredFieldsByteSizeFallback();
  1189. }
  1190. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1191. // Prevent compiler warnings about cached_has_bits being unused
  1192. (void) cached_has_bits;
  1193. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1194. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1195. _internal_metadata_, total_size, &_cached_size_);
  1196. }
  1197. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1198. SetCachedSize(cached_size);
  1199. return total_size;
  1200. }
  1201. void Notify_status_msg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1202. // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_status_msg)
  1203. GOOGLE_DCHECK_NE(&from, this);
  1204. const Notify_status_msg* source =
  1205. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Notify_status_msg>(
  1206. &from);
  1207. if (source == nullptr) {
  1208. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_status_msg)
  1209. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1210. } else {
  1211. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_status_msg)
  1212. MergeFrom(*source);
  1213. }
  1214. }
  1215. void Notify_status_msg::MergeFrom(const Notify_status_msg& from) {
  1216. // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_status_msg)
  1217. GOOGLE_DCHECK_NE(&from, this);
  1218. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1219. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1220. (void) cached_has_bits;
  1221. cached_has_bits = from._has_bits_[0];
  1222. if (cached_has_bits & 0x00000007u) {
  1223. if (cached_has_bits & 0x00000001u) {
  1224. _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
  1225. }
  1226. if (cached_has_bits & 0x00000002u) {
  1227. _internal_mutable_channel()->::message::Id_struct::MergeFrom(from._internal_channel());
  1228. }
  1229. if (cached_has_bits & 0x00000004u) {
  1230. _internal_mutable_error_manager()->::message::Error_manager::MergeFrom(from._internal_error_manager());
  1231. }
  1232. }
  1233. }
  1234. void Notify_status_msg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1235. // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_status_msg)
  1236. if (&from == this) return;
  1237. Clear();
  1238. MergeFrom(from);
  1239. }
  1240. void Notify_status_msg::CopyFrom(const Notify_status_msg& from) {
  1241. // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_status_msg)
  1242. if (&from == this) return;
  1243. Clear();
  1244. MergeFrom(from);
  1245. }
  1246. bool Notify_status_msg::IsInitialized() const {
  1247. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  1248. if (_internal_has_base_info()) {
  1249. if (!base_info_->IsInitialized()) return false;
  1250. }
  1251. if (_internal_has_error_manager()) {
  1252. if (!error_manager_->IsInitialized()) return false;
  1253. }
  1254. return true;
  1255. }
  1256. void Notify_status_msg::InternalSwap(Notify_status_msg* other) {
  1257. using std::swap;
  1258. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1259. swap(_has_bits_[0], other->_has_bits_[0]);
  1260. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1261. PROTOBUF_FIELD_OFFSET(Notify_status_msg, error_manager_)
  1262. + sizeof(Notify_status_msg::error_manager_)
  1263. - PROTOBUF_FIELD_OFFSET(Notify_status_msg, base_info_)>(
  1264. reinterpret_cast<char*>(&base_info_),
  1265. reinterpret_cast<char*>(&other->base_info_));
  1266. }
  1267. ::PROTOBUF_NAMESPACE_ID::Metadata Notify_status_msg::GetMetadata() const {
  1268. return GetMetadataStatic();
  1269. }
  1270. // @@protoc_insertion_point(namespace_scope)
  1271. } // namespace message
  1272. PROTOBUF_NAMESPACE_OPEN
  1273. template<> PROTOBUF_NOINLINE ::message::Notify_request_msg* Arena::CreateMaybeMessage< ::message::Notify_request_msg >(Arena* arena) {
  1274. return Arena::CreateMessageInternal< ::message::Notify_request_msg >(arena);
  1275. }
  1276. template<> PROTOBUF_NOINLINE ::message::Notify_response_msg* Arena::CreateMaybeMessage< ::message::Notify_response_msg >(Arena* arena) {
  1277. return Arena::CreateMessageInternal< ::message::Notify_response_msg >(arena);
  1278. }
  1279. template<> PROTOBUF_NOINLINE ::message::Notify_status_msg* Arena::CreateMaybeMessage< ::message::Notify_status_msg >(Arena* arena) {
  1280. return Arena::CreateMessageInternal< ::message::Notify_status_msg >(arena);
  1281. }
  1282. PROTOBUF_NAMESPACE_CLOSE
  1283. // @@protoc_insertion_point(global_scope)
  1284. #include <google/protobuf/port_undef.inc>