rabbitmq.pb.cc 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: rabbitmq.proto
  3. #include "rabbitmq.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_rabbitmq_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_rabbitmq_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Rabbitmq_channel_queue_consume;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_rabbitmq_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Rabbitmq_parameter;
  21. } // namespace protobuf_rabbitmq_2eproto
  22. namespace Rabbitmq_proto {
  23. class Rabbitmq_channel_queue_consumeDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<Rabbitmq_channel_queue_consume>
  26. _instance;
  27. } _Rabbitmq_channel_queue_consume_default_instance_;
  28. class Rabbitmq_parameterDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<Rabbitmq_parameter>
  31. _instance;
  32. } _Rabbitmq_parameter_default_instance_;
  33. class Rabbitmq_parameter_allDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<Rabbitmq_parameter_all>
  36. _instance;
  37. } _Rabbitmq_parameter_all_default_instance_;
  38. } // namespace Rabbitmq_proto
  39. namespace protobuf_rabbitmq_2eproto {
  40. static void InitDefaultsRabbitmq_channel_queue_consume() {
  41. GOOGLE_PROTOBUF_VERIFY_VERSION;
  42. {
  43. void* ptr = &::Rabbitmq_proto::_Rabbitmq_channel_queue_consume_default_instance_;
  44. new (ptr) ::Rabbitmq_proto::Rabbitmq_channel_queue_consume();
  45. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  46. }
  47. ::Rabbitmq_proto::Rabbitmq_channel_queue_consume::InitAsDefaultInstance();
  48. }
  49. ::google::protobuf::internal::SCCInfo<0> scc_info_Rabbitmq_channel_queue_consume =
  50. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRabbitmq_channel_queue_consume}, {}};
  51. static void InitDefaultsRabbitmq_parameter() {
  52. GOOGLE_PROTOBUF_VERIFY_VERSION;
  53. {
  54. void* ptr = &::Rabbitmq_proto::_Rabbitmq_parameter_default_instance_;
  55. new (ptr) ::Rabbitmq_proto::Rabbitmq_parameter();
  56. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  57. }
  58. ::Rabbitmq_proto::Rabbitmq_parameter::InitAsDefaultInstance();
  59. }
  60. ::google::protobuf::internal::SCCInfo<1> scc_info_Rabbitmq_parameter =
  61. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRabbitmq_parameter}, {
  62. &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_channel_queue_consume.base,}};
  63. static void InitDefaultsRabbitmq_parameter_all() {
  64. GOOGLE_PROTOBUF_VERIFY_VERSION;
  65. {
  66. void* ptr = &::Rabbitmq_proto::_Rabbitmq_parameter_all_default_instance_;
  67. new (ptr) ::Rabbitmq_proto::Rabbitmq_parameter_all();
  68. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  69. }
  70. ::Rabbitmq_proto::Rabbitmq_parameter_all::InitAsDefaultInstance();
  71. }
  72. ::google::protobuf::internal::SCCInfo<1> scc_info_Rabbitmq_parameter_all =
  73. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRabbitmq_parameter_all}, {
  74. &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter.base,}};
  75. void InitDefaults() {
  76. ::google::protobuf::internal::InitSCC(&scc_info_Rabbitmq_channel_queue_consume.base);
  77. ::google::protobuf::internal::InitSCC(&scc_info_Rabbitmq_parameter.base);
  78. ::google::protobuf::internal::InitSCC(&scc_info_Rabbitmq_parameter_all.base);
  79. }
  80. ::google::protobuf::Metadata file_level_metadata[3];
  81. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, _has_bits_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, _internal_metadata_),
  84. ~0u, // no _extensions_
  85. ~0u, // no _oneof_case_
  86. ~0u, // no _weak_field_map_
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, channel_),
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, exchange_name_),
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, routing_key_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, timeout_ms_),
  91. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, binding_key_),
  92. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, queue_name_),
  93. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, queue_passive_),
  94. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, queue_durable_),
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, queue_exclusive_),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, queue_auto_delete_),
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, queue_meassage_ttl_),
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, consume_name_),
  99. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, consume_no_local_),
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, consume_no_ack_),
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_channel_queue_consume, consume_exclusive_),
  102. 5,
  103. 0,
  104. 1,
  105. 6,
  106. 2,
  107. 3,
  108. 7,
  109. 8,
  110. 9,
  111. 10,
  112. 11,
  113. 4,
  114. 12,
  115. 13,
  116. 14,
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, _has_bits_),
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, _internal_metadata_),
  119. ~0u, // no _extensions_
  120. ~0u, // no _oneof_case_
  121. ~0u, // no _weak_field_map_
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, ip_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, port_),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, user_),
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, password_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, rabbitmq_reciever_vector_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, rabbitmq_sender_request_vector_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter, rabbitmq_sender_status_vector_),
  129. 0,
  130. 3,
  131. 1,
  132. 2,
  133. ~0u,
  134. ~0u,
  135. ~0u,
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter_all, _has_bits_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter_all, _internal_metadata_),
  138. ~0u, // no _extensions_
  139. ~0u, // no _oneof_case_
  140. ~0u, // no _weak_field_map_
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Rabbitmq_proto::Rabbitmq_parameter_all, rabbitmq_parameters_),
  142. 0,
  143. };
  144. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  145. { 0, 20, sizeof(::Rabbitmq_proto::Rabbitmq_channel_queue_consume)},
  146. { 35, 47, sizeof(::Rabbitmq_proto::Rabbitmq_parameter)},
  147. { 54, 60, sizeof(::Rabbitmq_proto::Rabbitmq_parameter_all)},
  148. };
  149. static ::google::protobuf::Message const * const file_default_instances[] = {
  150. reinterpret_cast<const ::google::protobuf::Message*>(&::Rabbitmq_proto::_Rabbitmq_channel_queue_consume_default_instance_),
  151. reinterpret_cast<const ::google::protobuf::Message*>(&::Rabbitmq_proto::_Rabbitmq_parameter_default_instance_),
  152. reinterpret_cast<const ::google::protobuf::Message*>(&::Rabbitmq_proto::_Rabbitmq_parameter_all_default_instance_),
  153. };
  154. void protobuf_AssignDescriptors() {
  155. AddDescriptors();
  156. AssignDescriptors(
  157. "rabbitmq.proto", schemas, file_default_instances, TableStruct::offsets,
  158. file_level_metadata, NULL, NULL);
  159. }
  160. void protobuf_AssignDescriptorsOnce() {
  161. static ::google::protobuf::internal::once_flag once;
  162. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  163. }
  164. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  165. void protobuf_RegisterTypes(const ::std::string&) {
  166. protobuf_AssignDescriptorsOnce();
  167. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
  168. }
  169. void AddDescriptorsImpl() {
  170. InitDefaults();
  171. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  172. "\n\016rabbitmq.proto\022\016Rabbitmq_proto\"\215\003\n\036Rab"
  173. "bitmq_channel_queue_consume\022\017\n\007channel\030\001"
  174. " \001(\005\022\025\n\rexchange_name\030\002 \001(\t\022\023\n\013routing_k"
  175. "ey\030\003 \001(\t\022\022\n\ntimeout_ms\030\004 \001(\005\022\023\n\013binding_"
  176. "key\030\005 \001(\t\022\022\n\nqueue_name\030\006 \001(\t\022\030\n\rqueue_p"
  177. "assive\030\007 \001(\005:\0010\022\025\n\rqueue_durable\030\010 \001(\005\022\032"
  178. "\n\017queue_exclusive\030\t \001(\005:\0010\022\034\n\021queue_auto"
  179. "_delete\030\n \001(\005:\0010\022\035\n\022queue_meassage_ttl\030\013"
  180. " \001(\005:\0010\022\024\n\014consume_name\030\014 \001(\t\022\033\n\020consume"
  181. "_no_local\030\r \001(\005:\0010\022\031\n\016consume_no_ack\030\016 \001"
  182. "(\005:\0010\022\031\n\021consume_exclusive\030\017 \001(\005\"\317\002\n\022Rab"
  183. "bitmq_parameter\022\n\n\002ip\030\001 \001(\t\022\014\n\004port\030\002 \001("
  184. "\005\022\014\n\004user\030\003 \001(\t\022\020\n\010password\030\004 \001(\t\022P\n\030rab"
  185. "bitmq_reciever_vector\030\005 \003(\0132..Rabbitmq_p"
  186. "roto.Rabbitmq_channel_queue_consume\022V\n\036r"
  187. "abbitmq_sender_request_vector\030\006 \003(\0132..Ra"
  188. "bbitmq_proto.Rabbitmq_channel_queue_cons"
  189. "ume\022U\n\035rabbitmq_sender_status_vector\030\007 \003"
  190. "(\0132..Rabbitmq_proto.Rabbitmq_channel_que"
  191. "ue_consume\"Y\n\026Rabbitmq_parameter_all\022\?\n\023"
  192. "rabbitmq_parameters\030\001 \001(\0132\".Rabbitmq_pro"
  193. "to.Rabbitmq_parameter"
  194. };
  195. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  196. descriptor, 861);
  197. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  198. "rabbitmq.proto", &protobuf_RegisterTypes);
  199. }
  200. void AddDescriptors() {
  201. static ::google::protobuf::internal::once_flag once;
  202. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  203. }
  204. // Force AddDescriptors() to be called at dynamic initialization time.
  205. struct StaticDescriptorInitializer {
  206. StaticDescriptorInitializer() {
  207. AddDescriptors();
  208. }
  209. } static_descriptor_initializer;
  210. } // namespace protobuf_rabbitmq_2eproto
  211. namespace Rabbitmq_proto {
  212. // ===================================================================
  213. void Rabbitmq_channel_queue_consume::InitAsDefaultInstance() {
  214. }
  215. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  216. const int Rabbitmq_channel_queue_consume::kChannelFieldNumber;
  217. const int Rabbitmq_channel_queue_consume::kExchangeNameFieldNumber;
  218. const int Rabbitmq_channel_queue_consume::kRoutingKeyFieldNumber;
  219. const int Rabbitmq_channel_queue_consume::kTimeoutMsFieldNumber;
  220. const int Rabbitmq_channel_queue_consume::kBindingKeyFieldNumber;
  221. const int Rabbitmq_channel_queue_consume::kQueueNameFieldNumber;
  222. const int Rabbitmq_channel_queue_consume::kQueuePassiveFieldNumber;
  223. const int Rabbitmq_channel_queue_consume::kQueueDurableFieldNumber;
  224. const int Rabbitmq_channel_queue_consume::kQueueExclusiveFieldNumber;
  225. const int Rabbitmq_channel_queue_consume::kQueueAutoDeleteFieldNumber;
  226. const int Rabbitmq_channel_queue_consume::kQueueMeassageTtlFieldNumber;
  227. const int Rabbitmq_channel_queue_consume::kConsumeNameFieldNumber;
  228. const int Rabbitmq_channel_queue_consume::kConsumeNoLocalFieldNumber;
  229. const int Rabbitmq_channel_queue_consume::kConsumeNoAckFieldNumber;
  230. const int Rabbitmq_channel_queue_consume::kConsumeExclusiveFieldNumber;
  231. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  232. Rabbitmq_channel_queue_consume::Rabbitmq_channel_queue_consume()
  233. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  234. ::google::protobuf::internal::InitSCC(
  235. &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_channel_queue_consume.base);
  236. SharedCtor();
  237. // @@protoc_insertion_point(constructor:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  238. }
  239. Rabbitmq_channel_queue_consume::Rabbitmq_channel_queue_consume(const Rabbitmq_channel_queue_consume& from)
  240. : ::google::protobuf::Message(),
  241. _internal_metadata_(NULL),
  242. _has_bits_(from._has_bits_) {
  243. _internal_metadata_.MergeFrom(from._internal_metadata_);
  244. exchange_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  245. if (from.has_exchange_name()) {
  246. exchange_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchange_name_);
  247. }
  248. routing_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  249. if (from.has_routing_key()) {
  250. routing_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.routing_key_);
  251. }
  252. binding_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  253. if (from.has_binding_key()) {
  254. binding_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binding_key_);
  255. }
  256. queue_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  257. if (from.has_queue_name()) {
  258. queue_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.queue_name_);
  259. }
  260. consume_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  261. if (from.has_consume_name()) {
  262. consume_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consume_name_);
  263. }
  264. ::memcpy(&channel_, &from.channel_,
  265. static_cast<size_t>(reinterpret_cast<char*>(&consume_exclusive_) -
  266. reinterpret_cast<char*>(&channel_)) + sizeof(consume_exclusive_));
  267. // @@protoc_insertion_point(copy_constructor:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  268. }
  269. void Rabbitmq_channel_queue_consume::SharedCtor() {
  270. exchange_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  271. routing_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  272. binding_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  273. queue_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  274. consume_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  275. ::memset(&channel_, 0, static_cast<size_t>(
  276. reinterpret_cast<char*>(&consume_exclusive_) -
  277. reinterpret_cast<char*>(&channel_)) + sizeof(consume_exclusive_));
  278. }
  279. Rabbitmq_channel_queue_consume::~Rabbitmq_channel_queue_consume() {
  280. // @@protoc_insertion_point(destructor:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  281. SharedDtor();
  282. }
  283. void Rabbitmq_channel_queue_consume::SharedDtor() {
  284. exchange_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  285. routing_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  286. binding_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  287. queue_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  288. consume_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  289. }
  290. void Rabbitmq_channel_queue_consume::SetCachedSize(int size) const {
  291. _cached_size_.Set(size);
  292. }
  293. const ::google::protobuf::Descriptor* Rabbitmq_channel_queue_consume::descriptor() {
  294. ::protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
  295. return ::protobuf_rabbitmq_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  296. }
  297. const Rabbitmq_channel_queue_consume& Rabbitmq_channel_queue_consume::default_instance() {
  298. ::google::protobuf::internal::InitSCC(&protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_channel_queue_consume.base);
  299. return *internal_default_instance();
  300. }
  301. void Rabbitmq_channel_queue_consume::Clear() {
  302. // @@protoc_insertion_point(message_clear_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  303. ::google::protobuf::uint32 cached_has_bits = 0;
  304. // Prevent compiler warnings about cached_has_bits being unused
  305. (void) cached_has_bits;
  306. cached_has_bits = _has_bits_[0];
  307. if (cached_has_bits & 31u) {
  308. if (cached_has_bits & 0x00000001u) {
  309. exchange_name_.ClearNonDefaultToEmptyNoArena();
  310. }
  311. if (cached_has_bits & 0x00000002u) {
  312. routing_key_.ClearNonDefaultToEmptyNoArena();
  313. }
  314. if (cached_has_bits & 0x00000004u) {
  315. binding_key_.ClearNonDefaultToEmptyNoArena();
  316. }
  317. if (cached_has_bits & 0x00000008u) {
  318. queue_name_.ClearNonDefaultToEmptyNoArena();
  319. }
  320. if (cached_has_bits & 0x00000010u) {
  321. consume_name_.ClearNonDefaultToEmptyNoArena();
  322. }
  323. }
  324. if (cached_has_bits & 224u) {
  325. ::memset(&channel_, 0, static_cast<size_t>(
  326. reinterpret_cast<char*>(&queue_passive_) -
  327. reinterpret_cast<char*>(&channel_)) + sizeof(queue_passive_));
  328. }
  329. if (cached_has_bits & 32512u) {
  330. ::memset(&queue_durable_, 0, static_cast<size_t>(
  331. reinterpret_cast<char*>(&consume_exclusive_) -
  332. reinterpret_cast<char*>(&queue_durable_)) + sizeof(consume_exclusive_));
  333. }
  334. _has_bits_.Clear();
  335. _internal_metadata_.Clear();
  336. }
  337. bool Rabbitmq_channel_queue_consume::MergePartialFromCodedStream(
  338. ::google::protobuf::io::CodedInputStream* input) {
  339. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  340. ::google::protobuf::uint32 tag;
  341. // @@protoc_insertion_point(parse_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  342. for (;;) {
  343. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  344. tag = p.first;
  345. if (!p.second) goto handle_unusual;
  346. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  347. // optional int32 channel = 1;
  348. case 1: {
  349. if (static_cast< ::google::protobuf::uint8>(tag) ==
  350. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  351. set_has_channel();
  352. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  353. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  354. input, &channel_)));
  355. } else {
  356. goto handle_unusual;
  357. }
  358. break;
  359. }
  360. // optional string exchange_name = 2;
  361. case 2: {
  362. if (static_cast< ::google::protobuf::uint8>(tag) ==
  363. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  364. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  365. input, this->mutable_exchange_name()));
  366. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  367. this->exchange_name().data(), static_cast<int>(this->exchange_name().length()),
  368. ::google::protobuf::internal::WireFormat::PARSE,
  369. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.exchange_name");
  370. } else {
  371. goto handle_unusual;
  372. }
  373. break;
  374. }
  375. // optional string routing_key = 3;
  376. case 3: {
  377. if (static_cast< ::google::protobuf::uint8>(tag) ==
  378. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  379. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  380. input, this->mutable_routing_key()));
  381. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  382. this->routing_key().data(), static_cast<int>(this->routing_key().length()),
  383. ::google::protobuf::internal::WireFormat::PARSE,
  384. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.routing_key");
  385. } else {
  386. goto handle_unusual;
  387. }
  388. break;
  389. }
  390. // optional int32 timeout_ms = 4;
  391. case 4: {
  392. if (static_cast< ::google::protobuf::uint8>(tag) ==
  393. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  394. set_has_timeout_ms();
  395. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  396. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  397. input, &timeout_ms_)));
  398. } else {
  399. goto handle_unusual;
  400. }
  401. break;
  402. }
  403. // optional string binding_key = 5;
  404. case 5: {
  405. if (static_cast< ::google::protobuf::uint8>(tag) ==
  406. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  407. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  408. input, this->mutable_binding_key()));
  409. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  410. this->binding_key().data(), static_cast<int>(this->binding_key().length()),
  411. ::google::protobuf::internal::WireFormat::PARSE,
  412. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.binding_key");
  413. } else {
  414. goto handle_unusual;
  415. }
  416. break;
  417. }
  418. // optional string queue_name = 6;
  419. case 6: {
  420. if (static_cast< ::google::protobuf::uint8>(tag) ==
  421. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  422. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  423. input, this->mutable_queue_name()));
  424. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  425. this->queue_name().data(), static_cast<int>(this->queue_name().length()),
  426. ::google::protobuf::internal::WireFormat::PARSE,
  427. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.queue_name");
  428. } else {
  429. goto handle_unusual;
  430. }
  431. break;
  432. }
  433. // optional int32 queue_passive = 7 [default = 0];
  434. case 7: {
  435. if (static_cast< ::google::protobuf::uint8>(tag) ==
  436. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  437. set_has_queue_passive();
  438. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  439. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  440. input, &queue_passive_)));
  441. } else {
  442. goto handle_unusual;
  443. }
  444. break;
  445. }
  446. // optional int32 queue_durable = 8;
  447. case 8: {
  448. if (static_cast< ::google::protobuf::uint8>(tag) ==
  449. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  450. set_has_queue_durable();
  451. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  452. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  453. input, &queue_durable_)));
  454. } else {
  455. goto handle_unusual;
  456. }
  457. break;
  458. }
  459. // optional int32 queue_exclusive = 9 [default = 0];
  460. case 9: {
  461. if (static_cast< ::google::protobuf::uint8>(tag) ==
  462. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  463. set_has_queue_exclusive();
  464. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  465. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  466. input, &queue_exclusive_)));
  467. } else {
  468. goto handle_unusual;
  469. }
  470. break;
  471. }
  472. // optional int32 queue_auto_delete = 10 [default = 0];
  473. case 10: {
  474. if (static_cast< ::google::protobuf::uint8>(tag) ==
  475. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  476. set_has_queue_auto_delete();
  477. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  478. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  479. input, &queue_auto_delete_)));
  480. } else {
  481. goto handle_unusual;
  482. }
  483. break;
  484. }
  485. // optional int32 queue_meassage_ttl = 11 [default = 0];
  486. case 11: {
  487. if (static_cast< ::google::protobuf::uint8>(tag) ==
  488. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  489. set_has_queue_meassage_ttl();
  490. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  491. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  492. input, &queue_meassage_ttl_)));
  493. } else {
  494. goto handle_unusual;
  495. }
  496. break;
  497. }
  498. // optional string consume_name = 12;
  499. case 12: {
  500. if (static_cast< ::google::protobuf::uint8>(tag) ==
  501. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  502. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  503. input, this->mutable_consume_name()));
  504. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  505. this->consume_name().data(), static_cast<int>(this->consume_name().length()),
  506. ::google::protobuf::internal::WireFormat::PARSE,
  507. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.consume_name");
  508. } else {
  509. goto handle_unusual;
  510. }
  511. break;
  512. }
  513. // optional int32 consume_no_local = 13 [default = 0];
  514. case 13: {
  515. if (static_cast< ::google::protobuf::uint8>(tag) ==
  516. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  517. set_has_consume_no_local();
  518. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  519. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  520. input, &consume_no_local_)));
  521. } else {
  522. goto handle_unusual;
  523. }
  524. break;
  525. }
  526. // optional int32 consume_no_ack = 14 [default = 0];
  527. case 14: {
  528. if (static_cast< ::google::protobuf::uint8>(tag) ==
  529. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  530. set_has_consume_no_ack();
  531. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  532. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  533. input, &consume_no_ack_)));
  534. } else {
  535. goto handle_unusual;
  536. }
  537. break;
  538. }
  539. // optional int32 consume_exclusive = 15;
  540. case 15: {
  541. if (static_cast< ::google::protobuf::uint8>(tag) ==
  542. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  543. set_has_consume_exclusive();
  544. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  545. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  546. input, &consume_exclusive_)));
  547. } else {
  548. goto handle_unusual;
  549. }
  550. break;
  551. }
  552. default: {
  553. handle_unusual:
  554. if (tag == 0) {
  555. goto success;
  556. }
  557. DO_(::google::protobuf::internal::WireFormat::SkipField(
  558. input, tag, _internal_metadata_.mutable_unknown_fields()));
  559. break;
  560. }
  561. }
  562. }
  563. success:
  564. // @@protoc_insertion_point(parse_success:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  565. return true;
  566. failure:
  567. // @@protoc_insertion_point(parse_failure:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  568. return false;
  569. #undef DO_
  570. }
  571. void Rabbitmq_channel_queue_consume::SerializeWithCachedSizes(
  572. ::google::protobuf::io::CodedOutputStream* output) const {
  573. // @@protoc_insertion_point(serialize_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  574. ::google::protobuf::uint32 cached_has_bits = 0;
  575. (void) cached_has_bits;
  576. cached_has_bits = _has_bits_[0];
  577. // optional int32 channel = 1;
  578. if (cached_has_bits & 0x00000020u) {
  579. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->channel(), output);
  580. }
  581. // optional string exchange_name = 2;
  582. if (cached_has_bits & 0x00000001u) {
  583. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  584. this->exchange_name().data(), static_cast<int>(this->exchange_name().length()),
  585. ::google::protobuf::internal::WireFormat::SERIALIZE,
  586. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.exchange_name");
  587. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  588. 2, this->exchange_name(), output);
  589. }
  590. // optional string routing_key = 3;
  591. if (cached_has_bits & 0x00000002u) {
  592. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  593. this->routing_key().data(), static_cast<int>(this->routing_key().length()),
  594. ::google::protobuf::internal::WireFormat::SERIALIZE,
  595. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.routing_key");
  596. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  597. 3, this->routing_key(), output);
  598. }
  599. // optional int32 timeout_ms = 4;
  600. if (cached_has_bits & 0x00000040u) {
  601. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->timeout_ms(), output);
  602. }
  603. // optional string binding_key = 5;
  604. if (cached_has_bits & 0x00000004u) {
  605. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  606. this->binding_key().data(), static_cast<int>(this->binding_key().length()),
  607. ::google::protobuf::internal::WireFormat::SERIALIZE,
  608. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.binding_key");
  609. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  610. 5, this->binding_key(), output);
  611. }
  612. // optional string queue_name = 6;
  613. if (cached_has_bits & 0x00000008u) {
  614. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  615. this->queue_name().data(), static_cast<int>(this->queue_name().length()),
  616. ::google::protobuf::internal::WireFormat::SERIALIZE,
  617. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.queue_name");
  618. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  619. 6, this->queue_name(), output);
  620. }
  621. // optional int32 queue_passive = 7 [default = 0];
  622. if (cached_has_bits & 0x00000080u) {
  623. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->queue_passive(), output);
  624. }
  625. // optional int32 queue_durable = 8;
  626. if (cached_has_bits & 0x00000100u) {
  627. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->queue_durable(), output);
  628. }
  629. // optional int32 queue_exclusive = 9 [default = 0];
  630. if (cached_has_bits & 0x00000200u) {
  631. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->queue_exclusive(), output);
  632. }
  633. // optional int32 queue_auto_delete = 10 [default = 0];
  634. if (cached_has_bits & 0x00000400u) {
  635. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->queue_auto_delete(), output);
  636. }
  637. // optional int32 queue_meassage_ttl = 11 [default = 0];
  638. if (cached_has_bits & 0x00000800u) {
  639. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->queue_meassage_ttl(), output);
  640. }
  641. // optional string consume_name = 12;
  642. if (cached_has_bits & 0x00000010u) {
  643. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  644. this->consume_name().data(), static_cast<int>(this->consume_name().length()),
  645. ::google::protobuf::internal::WireFormat::SERIALIZE,
  646. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.consume_name");
  647. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  648. 12, this->consume_name(), output);
  649. }
  650. // optional int32 consume_no_local = 13 [default = 0];
  651. if (cached_has_bits & 0x00001000u) {
  652. ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->consume_no_local(), output);
  653. }
  654. // optional int32 consume_no_ack = 14 [default = 0];
  655. if (cached_has_bits & 0x00002000u) {
  656. ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->consume_no_ack(), output);
  657. }
  658. // optional int32 consume_exclusive = 15;
  659. if (cached_has_bits & 0x00004000u) {
  660. ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->consume_exclusive(), output);
  661. }
  662. if (_internal_metadata_.have_unknown_fields()) {
  663. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  664. _internal_metadata_.unknown_fields(), output);
  665. }
  666. // @@protoc_insertion_point(serialize_end:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  667. }
  668. ::google::protobuf::uint8* Rabbitmq_channel_queue_consume::InternalSerializeWithCachedSizesToArray(
  669. bool deterministic, ::google::protobuf::uint8* target) const {
  670. (void)deterministic; // Unused
  671. // @@protoc_insertion_point(serialize_to_array_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  672. ::google::protobuf::uint32 cached_has_bits = 0;
  673. (void) cached_has_bits;
  674. cached_has_bits = _has_bits_[0];
  675. // optional int32 channel = 1;
  676. if (cached_has_bits & 0x00000020u) {
  677. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->channel(), target);
  678. }
  679. // optional string exchange_name = 2;
  680. if (cached_has_bits & 0x00000001u) {
  681. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  682. this->exchange_name().data(), static_cast<int>(this->exchange_name().length()),
  683. ::google::protobuf::internal::WireFormat::SERIALIZE,
  684. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.exchange_name");
  685. target =
  686. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  687. 2, this->exchange_name(), target);
  688. }
  689. // optional string routing_key = 3;
  690. if (cached_has_bits & 0x00000002u) {
  691. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  692. this->routing_key().data(), static_cast<int>(this->routing_key().length()),
  693. ::google::protobuf::internal::WireFormat::SERIALIZE,
  694. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.routing_key");
  695. target =
  696. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  697. 3, this->routing_key(), target);
  698. }
  699. // optional int32 timeout_ms = 4;
  700. if (cached_has_bits & 0x00000040u) {
  701. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->timeout_ms(), target);
  702. }
  703. // optional string binding_key = 5;
  704. if (cached_has_bits & 0x00000004u) {
  705. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  706. this->binding_key().data(), static_cast<int>(this->binding_key().length()),
  707. ::google::protobuf::internal::WireFormat::SERIALIZE,
  708. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.binding_key");
  709. target =
  710. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  711. 5, this->binding_key(), target);
  712. }
  713. // optional string queue_name = 6;
  714. if (cached_has_bits & 0x00000008u) {
  715. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  716. this->queue_name().data(), static_cast<int>(this->queue_name().length()),
  717. ::google::protobuf::internal::WireFormat::SERIALIZE,
  718. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.queue_name");
  719. target =
  720. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  721. 6, this->queue_name(), target);
  722. }
  723. // optional int32 queue_passive = 7 [default = 0];
  724. if (cached_has_bits & 0x00000080u) {
  725. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->queue_passive(), target);
  726. }
  727. // optional int32 queue_durable = 8;
  728. if (cached_has_bits & 0x00000100u) {
  729. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->queue_durable(), target);
  730. }
  731. // optional int32 queue_exclusive = 9 [default = 0];
  732. if (cached_has_bits & 0x00000200u) {
  733. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->queue_exclusive(), target);
  734. }
  735. // optional int32 queue_auto_delete = 10 [default = 0];
  736. if (cached_has_bits & 0x00000400u) {
  737. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->queue_auto_delete(), target);
  738. }
  739. // optional int32 queue_meassage_ttl = 11 [default = 0];
  740. if (cached_has_bits & 0x00000800u) {
  741. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->queue_meassage_ttl(), target);
  742. }
  743. // optional string consume_name = 12;
  744. if (cached_has_bits & 0x00000010u) {
  745. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  746. this->consume_name().data(), static_cast<int>(this->consume_name().length()),
  747. ::google::protobuf::internal::WireFormat::SERIALIZE,
  748. "Rabbitmq_proto.Rabbitmq_channel_queue_consume.consume_name");
  749. target =
  750. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  751. 12, this->consume_name(), target);
  752. }
  753. // optional int32 consume_no_local = 13 [default = 0];
  754. if (cached_has_bits & 0x00001000u) {
  755. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->consume_no_local(), target);
  756. }
  757. // optional int32 consume_no_ack = 14 [default = 0];
  758. if (cached_has_bits & 0x00002000u) {
  759. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->consume_no_ack(), target);
  760. }
  761. // optional int32 consume_exclusive = 15;
  762. if (cached_has_bits & 0x00004000u) {
  763. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->consume_exclusive(), target);
  764. }
  765. if (_internal_metadata_.have_unknown_fields()) {
  766. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  767. _internal_metadata_.unknown_fields(), target);
  768. }
  769. // @@protoc_insertion_point(serialize_to_array_end:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  770. return target;
  771. }
  772. size_t Rabbitmq_channel_queue_consume::ByteSizeLong() const {
  773. // @@protoc_insertion_point(message_byte_size_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  774. size_t total_size = 0;
  775. if (_internal_metadata_.have_unknown_fields()) {
  776. total_size +=
  777. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  778. _internal_metadata_.unknown_fields());
  779. }
  780. if (_has_bits_[0 / 32] & 255u) {
  781. // optional string exchange_name = 2;
  782. if (has_exchange_name()) {
  783. total_size += 1 +
  784. ::google::protobuf::internal::WireFormatLite::StringSize(
  785. this->exchange_name());
  786. }
  787. // optional string routing_key = 3;
  788. if (has_routing_key()) {
  789. total_size += 1 +
  790. ::google::protobuf::internal::WireFormatLite::StringSize(
  791. this->routing_key());
  792. }
  793. // optional string binding_key = 5;
  794. if (has_binding_key()) {
  795. total_size += 1 +
  796. ::google::protobuf::internal::WireFormatLite::StringSize(
  797. this->binding_key());
  798. }
  799. // optional string queue_name = 6;
  800. if (has_queue_name()) {
  801. total_size += 1 +
  802. ::google::protobuf::internal::WireFormatLite::StringSize(
  803. this->queue_name());
  804. }
  805. // optional string consume_name = 12;
  806. if (has_consume_name()) {
  807. total_size += 1 +
  808. ::google::protobuf::internal::WireFormatLite::StringSize(
  809. this->consume_name());
  810. }
  811. // optional int32 channel = 1;
  812. if (has_channel()) {
  813. total_size += 1 +
  814. ::google::protobuf::internal::WireFormatLite::Int32Size(
  815. this->channel());
  816. }
  817. // optional int32 timeout_ms = 4;
  818. if (has_timeout_ms()) {
  819. total_size += 1 +
  820. ::google::protobuf::internal::WireFormatLite::Int32Size(
  821. this->timeout_ms());
  822. }
  823. // optional int32 queue_passive = 7 [default = 0];
  824. if (has_queue_passive()) {
  825. total_size += 1 +
  826. ::google::protobuf::internal::WireFormatLite::Int32Size(
  827. this->queue_passive());
  828. }
  829. }
  830. if (_has_bits_[8 / 32] & 32512u) {
  831. // optional int32 queue_durable = 8;
  832. if (has_queue_durable()) {
  833. total_size += 1 +
  834. ::google::protobuf::internal::WireFormatLite::Int32Size(
  835. this->queue_durable());
  836. }
  837. // optional int32 queue_exclusive = 9 [default = 0];
  838. if (has_queue_exclusive()) {
  839. total_size += 1 +
  840. ::google::protobuf::internal::WireFormatLite::Int32Size(
  841. this->queue_exclusive());
  842. }
  843. // optional int32 queue_auto_delete = 10 [default = 0];
  844. if (has_queue_auto_delete()) {
  845. total_size += 1 +
  846. ::google::protobuf::internal::WireFormatLite::Int32Size(
  847. this->queue_auto_delete());
  848. }
  849. // optional int32 queue_meassage_ttl = 11 [default = 0];
  850. if (has_queue_meassage_ttl()) {
  851. total_size += 1 +
  852. ::google::protobuf::internal::WireFormatLite::Int32Size(
  853. this->queue_meassage_ttl());
  854. }
  855. // optional int32 consume_no_local = 13 [default = 0];
  856. if (has_consume_no_local()) {
  857. total_size += 1 +
  858. ::google::protobuf::internal::WireFormatLite::Int32Size(
  859. this->consume_no_local());
  860. }
  861. // optional int32 consume_no_ack = 14 [default = 0];
  862. if (has_consume_no_ack()) {
  863. total_size += 1 +
  864. ::google::protobuf::internal::WireFormatLite::Int32Size(
  865. this->consume_no_ack());
  866. }
  867. // optional int32 consume_exclusive = 15;
  868. if (has_consume_exclusive()) {
  869. total_size += 1 +
  870. ::google::protobuf::internal::WireFormatLite::Int32Size(
  871. this->consume_exclusive());
  872. }
  873. }
  874. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  875. SetCachedSize(cached_size);
  876. return total_size;
  877. }
  878. void Rabbitmq_channel_queue_consume::MergeFrom(const ::google::protobuf::Message& from) {
  879. // @@protoc_insertion_point(generalized_merge_from_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  880. GOOGLE_DCHECK_NE(&from, this);
  881. const Rabbitmq_channel_queue_consume* source =
  882. ::google::protobuf::internal::DynamicCastToGenerated<const Rabbitmq_channel_queue_consume>(
  883. &from);
  884. if (source == NULL) {
  885. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  886. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  887. } else {
  888. // @@protoc_insertion_point(generalized_merge_from_cast_success:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  889. MergeFrom(*source);
  890. }
  891. }
  892. void Rabbitmq_channel_queue_consume::MergeFrom(const Rabbitmq_channel_queue_consume& from) {
  893. // @@protoc_insertion_point(class_specific_merge_from_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  894. GOOGLE_DCHECK_NE(&from, this);
  895. _internal_metadata_.MergeFrom(from._internal_metadata_);
  896. ::google::protobuf::uint32 cached_has_bits = 0;
  897. (void) cached_has_bits;
  898. cached_has_bits = from._has_bits_[0];
  899. if (cached_has_bits & 255u) {
  900. if (cached_has_bits & 0x00000001u) {
  901. set_has_exchange_name();
  902. exchange_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchange_name_);
  903. }
  904. if (cached_has_bits & 0x00000002u) {
  905. set_has_routing_key();
  906. routing_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.routing_key_);
  907. }
  908. if (cached_has_bits & 0x00000004u) {
  909. set_has_binding_key();
  910. binding_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binding_key_);
  911. }
  912. if (cached_has_bits & 0x00000008u) {
  913. set_has_queue_name();
  914. queue_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.queue_name_);
  915. }
  916. if (cached_has_bits & 0x00000010u) {
  917. set_has_consume_name();
  918. consume_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consume_name_);
  919. }
  920. if (cached_has_bits & 0x00000020u) {
  921. channel_ = from.channel_;
  922. }
  923. if (cached_has_bits & 0x00000040u) {
  924. timeout_ms_ = from.timeout_ms_;
  925. }
  926. if (cached_has_bits & 0x00000080u) {
  927. queue_passive_ = from.queue_passive_;
  928. }
  929. _has_bits_[0] |= cached_has_bits;
  930. }
  931. if (cached_has_bits & 32512u) {
  932. if (cached_has_bits & 0x00000100u) {
  933. queue_durable_ = from.queue_durable_;
  934. }
  935. if (cached_has_bits & 0x00000200u) {
  936. queue_exclusive_ = from.queue_exclusive_;
  937. }
  938. if (cached_has_bits & 0x00000400u) {
  939. queue_auto_delete_ = from.queue_auto_delete_;
  940. }
  941. if (cached_has_bits & 0x00000800u) {
  942. queue_meassage_ttl_ = from.queue_meassage_ttl_;
  943. }
  944. if (cached_has_bits & 0x00001000u) {
  945. consume_no_local_ = from.consume_no_local_;
  946. }
  947. if (cached_has_bits & 0x00002000u) {
  948. consume_no_ack_ = from.consume_no_ack_;
  949. }
  950. if (cached_has_bits & 0x00004000u) {
  951. consume_exclusive_ = from.consume_exclusive_;
  952. }
  953. _has_bits_[0] |= cached_has_bits;
  954. }
  955. }
  956. void Rabbitmq_channel_queue_consume::CopyFrom(const ::google::protobuf::Message& from) {
  957. // @@protoc_insertion_point(generalized_copy_from_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  958. if (&from == this) return;
  959. Clear();
  960. MergeFrom(from);
  961. }
  962. void Rabbitmq_channel_queue_consume::CopyFrom(const Rabbitmq_channel_queue_consume& from) {
  963. // @@protoc_insertion_point(class_specific_copy_from_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
  964. if (&from == this) return;
  965. Clear();
  966. MergeFrom(from);
  967. }
  968. bool Rabbitmq_channel_queue_consume::IsInitialized() const {
  969. return true;
  970. }
  971. void Rabbitmq_channel_queue_consume::Swap(Rabbitmq_channel_queue_consume* other) {
  972. if (other == this) return;
  973. InternalSwap(other);
  974. }
  975. void Rabbitmq_channel_queue_consume::InternalSwap(Rabbitmq_channel_queue_consume* other) {
  976. using std::swap;
  977. exchange_name_.Swap(&other->exchange_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  978. GetArenaNoVirtual());
  979. routing_key_.Swap(&other->routing_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  980. GetArenaNoVirtual());
  981. binding_key_.Swap(&other->binding_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  982. GetArenaNoVirtual());
  983. queue_name_.Swap(&other->queue_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  984. GetArenaNoVirtual());
  985. consume_name_.Swap(&other->consume_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  986. GetArenaNoVirtual());
  987. swap(channel_, other->channel_);
  988. swap(timeout_ms_, other->timeout_ms_);
  989. swap(queue_passive_, other->queue_passive_);
  990. swap(queue_durable_, other->queue_durable_);
  991. swap(queue_exclusive_, other->queue_exclusive_);
  992. swap(queue_auto_delete_, other->queue_auto_delete_);
  993. swap(queue_meassage_ttl_, other->queue_meassage_ttl_);
  994. swap(consume_no_local_, other->consume_no_local_);
  995. swap(consume_no_ack_, other->consume_no_ack_);
  996. swap(consume_exclusive_, other->consume_exclusive_);
  997. swap(_has_bits_[0], other->_has_bits_[0]);
  998. _internal_metadata_.Swap(&other->_internal_metadata_);
  999. }
  1000. ::google::protobuf::Metadata Rabbitmq_channel_queue_consume::GetMetadata() const {
  1001. protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
  1002. return ::protobuf_rabbitmq_2eproto::file_level_metadata[kIndexInFileMessages];
  1003. }
  1004. // ===================================================================
  1005. void Rabbitmq_parameter::InitAsDefaultInstance() {
  1006. }
  1007. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1008. const int Rabbitmq_parameter::kIpFieldNumber;
  1009. const int Rabbitmq_parameter::kPortFieldNumber;
  1010. const int Rabbitmq_parameter::kUserFieldNumber;
  1011. const int Rabbitmq_parameter::kPasswordFieldNumber;
  1012. const int Rabbitmq_parameter::kRabbitmqRecieverVectorFieldNumber;
  1013. const int Rabbitmq_parameter::kRabbitmqSenderRequestVectorFieldNumber;
  1014. const int Rabbitmq_parameter::kRabbitmqSenderStatusVectorFieldNumber;
  1015. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1016. Rabbitmq_parameter::Rabbitmq_parameter()
  1017. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1018. ::google::protobuf::internal::InitSCC(
  1019. &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter.base);
  1020. SharedCtor();
  1021. // @@protoc_insertion_point(constructor:Rabbitmq_proto.Rabbitmq_parameter)
  1022. }
  1023. Rabbitmq_parameter::Rabbitmq_parameter(const Rabbitmq_parameter& from)
  1024. : ::google::protobuf::Message(),
  1025. _internal_metadata_(NULL),
  1026. _has_bits_(from._has_bits_),
  1027. rabbitmq_reciever_vector_(from.rabbitmq_reciever_vector_),
  1028. rabbitmq_sender_request_vector_(from.rabbitmq_sender_request_vector_),
  1029. rabbitmq_sender_status_vector_(from.rabbitmq_sender_status_vector_) {
  1030. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1031. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1032. if (from.has_ip()) {
  1033. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  1034. }
  1035. user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1036. if (from.has_user()) {
  1037. user_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_);
  1038. }
  1039. password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1040. if (from.has_password()) {
  1041. password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_);
  1042. }
  1043. port_ = from.port_;
  1044. // @@protoc_insertion_point(copy_constructor:Rabbitmq_proto.Rabbitmq_parameter)
  1045. }
  1046. void Rabbitmq_parameter::SharedCtor() {
  1047. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1048. user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1049. password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1050. port_ = 0;
  1051. }
  1052. Rabbitmq_parameter::~Rabbitmq_parameter() {
  1053. // @@protoc_insertion_point(destructor:Rabbitmq_proto.Rabbitmq_parameter)
  1054. SharedDtor();
  1055. }
  1056. void Rabbitmq_parameter::SharedDtor() {
  1057. ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1058. user_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1059. password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1060. }
  1061. void Rabbitmq_parameter::SetCachedSize(int size) const {
  1062. _cached_size_.Set(size);
  1063. }
  1064. const ::google::protobuf::Descriptor* Rabbitmq_parameter::descriptor() {
  1065. ::protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
  1066. return ::protobuf_rabbitmq_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1067. }
  1068. const Rabbitmq_parameter& Rabbitmq_parameter::default_instance() {
  1069. ::google::protobuf::internal::InitSCC(&protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter.base);
  1070. return *internal_default_instance();
  1071. }
  1072. void Rabbitmq_parameter::Clear() {
  1073. // @@protoc_insertion_point(message_clear_start:Rabbitmq_proto.Rabbitmq_parameter)
  1074. ::google::protobuf::uint32 cached_has_bits = 0;
  1075. // Prevent compiler warnings about cached_has_bits being unused
  1076. (void) cached_has_bits;
  1077. rabbitmq_reciever_vector_.Clear();
  1078. rabbitmq_sender_request_vector_.Clear();
  1079. rabbitmq_sender_status_vector_.Clear();
  1080. cached_has_bits = _has_bits_[0];
  1081. if (cached_has_bits & 7u) {
  1082. if (cached_has_bits & 0x00000001u) {
  1083. ip_.ClearNonDefaultToEmptyNoArena();
  1084. }
  1085. if (cached_has_bits & 0x00000002u) {
  1086. user_.ClearNonDefaultToEmptyNoArena();
  1087. }
  1088. if (cached_has_bits & 0x00000004u) {
  1089. password_.ClearNonDefaultToEmptyNoArena();
  1090. }
  1091. }
  1092. port_ = 0;
  1093. _has_bits_.Clear();
  1094. _internal_metadata_.Clear();
  1095. }
  1096. bool Rabbitmq_parameter::MergePartialFromCodedStream(
  1097. ::google::protobuf::io::CodedInputStream* input) {
  1098. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1099. ::google::protobuf::uint32 tag;
  1100. // @@protoc_insertion_point(parse_start:Rabbitmq_proto.Rabbitmq_parameter)
  1101. for (;;) {
  1102. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1103. tag = p.first;
  1104. if (!p.second) goto handle_unusual;
  1105. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1106. // optional string ip = 1;
  1107. case 1: {
  1108. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1109. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1110. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1111. input, this->mutable_ip()));
  1112. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1113. this->ip().data(), static_cast<int>(this->ip().length()),
  1114. ::google::protobuf::internal::WireFormat::PARSE,
  1115. "Rabbitmq_proto.Rabbitmq_parameter.ip");
  1116. } else {
  1117. goto handle_unusual;
  1118. }
  1119. break;
  1120. }
  1121. // optional int32 port = 2;
  1122. case 2: {
  1123. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1124. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1125. set_has_port();
  1126. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1127. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1128. input, &port_)));
  1129. } else {
  1130. goto handle_unusual;
  1131. }
  1132. break;
  1133. }
  1134. // optional string user = 3;
  1135. case 3: {
  1136. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1137. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1138. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1139. input, this->mutable_user()));
  1140. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1141. this->user().data(), static_cast<int>(this->user().length()),
  1142. ::google::protobuf::internal::WireFormat::PARSE,
  1143. "Rabbitmq_proto.Rabbitmq_parameter.user");
  1144. } else {
  1145. goto handle_unusual;
  1146. }
  1147. break;
  1148. }
  1149. // optional string password = 4;
  1150. case 4: {
  1151. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1152. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1153. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1154. input, this->mutable_password()));
  1155. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1156. this->password().data(), static_cast<int>(this->password().length()),
  1157. ::google::protobuf::internal::WireFormat::PARSE,
  1158. "Rabbitmq_proto.Rabbitmq_parameter.password");
  1159. } else {
  1160. goto handle_unusual;
  1161. }
  1162. break;
  1163. }
  1164. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_reciever_vector = 5;
  1165. case 5: {
  1166. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1167. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1168. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1169. input, add_rabbitmq_reciever_vector()));
  1170. } else {
  1171. goto handle_unusual;
  1172. }
  1173. break;
  1174. }
  1175. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_request_vector = 6;
  1176. case 6: {
  1177. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1178. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1179. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1180. input, add_rabbitmq_sender_request_vector()));
  1181. } else {
  1182. goto handle_unusual;
  1183. }
  1184. break;
  1185. }
  1186. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_status_vector = 7;
  1187. case 7: {
  1188. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1189. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  1190. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1191. input, add_rabbitmq_sender_status_vector()));
  1192. } else {
  1193. goto handle_unusual;
  1194. }
  1195. break;
  1196. }
  1197. default: {
  1198. handle_unusual:
  1199. if (tag == 0) {
  1200. goto success;
  1201. }
  1202. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1203. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1204. break;
  1205. }
  1206. }
  1207. }
  1208. success:
  1209. // @@protoc_insertion_point(parse_success:Rabbitmq_proto.Rabbitmq_parameter)
  1210. return true;
  1211. failure:
  1212. // @@protoc_insertion_point(parse_failure:Rabbitmq_proto.Rabbitmq_parameter)
  1213. return false;
  1214. #undef DO_
  1215. }
  1216. void Rabbitmq_parameter::SerializeWithCachedSizes(
  1217. ::google::protobuf::io::CodedOutputStream* output) const {
  1218. // @@protoc_insertion_point(serialize_start:Rabbitmq_proto.Rabbitmq_parameter)
  1219. ::google::protobuf::uint32 cached_has_bits = 0;
  1220. (void) cached_has_bits;
  1221. cached_has_bits = _has_bits_[0];
  1222. // optional string ip = 1;
  1223. if (cached_has_bits & 0x00000001u) {
  1224. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1225. this->ip().data(), static_cast<int>(this->ip().length()),
  1226. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1227. "Rabbitmq_proto.Rabbitmq_parameter.ip");
  1228. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1229. 1, this->ip(), output);
  1230. }
  1231. // optional int32 port = 2;
  1232. if (cached_has_bits & 0x00000008u) {
  1233. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
  1234. }
  1235. // optional string user = 3;
  1236. if (cached_has_bits & 0x00000002u) {
  1237. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1238. this->user().data(), static_cast<int>(this->user().length()),
  1239. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1240. "Rabbitmq_proto.Rabbitmq_parameter.user");
  1241. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1242. 3, this->user(), output);
  1243. }
  1244. // optional string password = 4;
  1245. if (cached_has_bits & 0x00000004u) {
  1246. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1247. this->password().data(), static_cast<int>(this->password().length()),
  1248. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1249. "Rabbitmq_proto.Rabbitmq_parameter.password");
  1250. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1251. 4, this->password(), output);
  1252. }
  1253. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_reciever_vector = 5;
  1254. for (unsigned int i = 0,
  1255. n = static_cast<unsigned int>(this->rabbitmq_reciever_vector_size()); i < n; i++) {
  1256. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1257. 5,
  1258. this->rabbitmq_reciever_vector(static_cast<int>(i)),
  1259. output);
  1260. }
  1261. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_request_vector = 6;
  1262. for (unsigned int i = 0,
  1263. n = static_cast<unsigned int>(this->rabbitmq_sender_request_vector_size()); i < n; i++) {
  1264. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1265. 6,
  1266. this->rabbitmq_sender_request_vector(static_cast<int>(i)),
  1267. output);
  1268. }
  1269. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_status_vector = 7;
  1270. for (unsigned int i = 0,
  1271. n = static_cast<unsigned int>(this->rabbitmq_sender_status_vector_size()); i < n; i++) {
  1272. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1273. 7,
  1274. this->rabbitmq_sender_status_vector(static_cast<int>(i)),
  1275. output);
  1276. }
  1277. if (_internal_metadata_.have_unknown_fields()) {
  1278. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1279. _internal_metadata_.unknown_fields(), output);
  1280. }
  1281. // @@protoc_insertion_point(serialize_end:Rabbitmq_proto.Rabbitmq_parameter)
  1282. }
  1283. ::google::protobuf::uint8* Rabbitmq_parameter::InternalSerializeWithCachedSizesToArray(
  1284. bool deterministic, ::google::protobuf::uint8* target) const {
  1285. (void)deterministic; // Unused
  1286. // @@protoc_insertion_point(serialize_to_array_start:Rabbitmq_proto.Rabbitmq_parameter)
  1287. ::google::protobuf::uint32 cached_has_bits = 0;
  1288. (void) cached_has_bits;
  1289. cached_has_bits = _has_bits_[0];
  1290. // optional string ip = 1;
  1291. if (cached_has_bits & 0x00000001u) {
  1292. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1293. this->ip().data(), static_cast<int>(this->ip().length()),
  1294. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1295. "Rabbitmq_proto.Rabbitmq_parameter.ip");
  1296. target =
  1297. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1298. 1, this->ip(), target);
  1299. }
  1300. // optional int32 port = 2;
  1301. if (cached_has_bits & 0x00000008u) {
  1302. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
  1303. }
  1304. // optional string user = 3;
  1305. if (cached_has_bits & 0x00000002u) {
  1306. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1307. this->user().data(), static_cast<int>(this->user().length()),
  1308. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1309. "Rabbitmq_proto.Rabbitmq_parameter.user");
  1310. target =
  1311. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1312. 3, this->user(), target);
  1313. }
  1314. // optional string password = 4;
  1315. if (cached_has_bits & 0x00000004u) {
  1316. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1317. this->password().data(), static_cast<int>(this->password().length()),
  1318. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1319. "Rabbitmq_proto.Rabbitmq_parameter.password");
  1320. target =
  1321. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1322. 4, this->password(), target);
  1323. }
  1324. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_reciever_vector = 5;
  1325. for (unsigned int i = 0,
  1326. n = static_cast<unsigned int>(this->rabbitmq_reciever_vector_size()); i < n; i++) {
  1327. target = ::google::protobuf::internal::WireFormatLite::
  1328. InternalWriteMessageToArray(
  1329. 5, this->rabbitmq_reciever_vector(static_cast<int>(i)), deterministic, target);
  1330. }
  1331. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_request_vector = 6;
  1332. for (unsigned int i = 0,
  1333. n = static_cast<unsigned int>(this->rabbitmq_sender_request_vector_size()); i < n; i++) {
  1334. target = ::google::protobuf::internal::WireFormatLite::
  1335. InternalWriteMessageToArray(
  1336. 6, this->rabbitmq_sender_request_vector(static_cast<int>(i)), deterministic, target);
  1337. }
  1338. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_status_vector = 7;
  1339. for (unsigned int i = 0,
  1340. n = static_cast<unsigned int>(this->rabbitmq_sender_status_vector_size()); i < n; i++) {
  1341. target = ::google::protobuf::internal::WireFormatLite::
  1342. InternalWriteMessageToArray(
  1343. 7, this->rabbitmq_sender_status_vector(static_cast<int>(i)), deterministic, target);
  1344. }
  1345. if (_internal_metadata_.have_unknown_fields()) {
  1346. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1347. _internal_metadata_.unknown_fields(), target);
  1348. }
  1349. // @@protoc_insertion_point(serialize_to_array_end:Rabbitmq_proto.Rabbitmq_parameter)
  1350. return target;
  1351. }
  1352. size_t Rabbitmq_parameter::ByteSizeLong() const {
  1353. // @@protoc_insertion_point(message_byte_size_start:Rabbitmq_proto.Rabbitmq_parameter)
  1354. size_t total_size = 0;
  1355. if (_internal_metadata_.have_unknown_fields()) {
  1356. total_size +=
  1357. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1358. _internal_metadata_.unknown_fields());
  1359. }
  1360. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_reciever_vector = 5;
  1361. {
  1362. unsigned int count = static_cast<unsigned int>(this->rabbitmq_reciever_vector_size());
  1363. total_size += 1UL * count;
  1364. for (unsigned int i = 0; i < count; i++) {
  1365. total_size +=
  1366. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1367. this->rabbitmq_reciever_vector(static_cast<int>(i)));
  1368. }
  1369. }
  1370. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_request_vector = 6;
  1371. {
  1372. unsigned int count = static_cast<unsigned int>(this->rabbitmq_sender_request_vector_size());
  1373. total_size += 1UL * count;
  1374. for (unsigned int i = 0; i < count; i++) {
  1375. total_size +=
  1376. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1377. this->rabbitmq_sender_request_vector(static_cast<int>(i)));
  1378. }
  1379. }
  1380. // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_status_vector = 7;
  1381. {
  1382. unsigned int count = static_cast<unsigned int>(this->rabbitmq_sender_status_vector_size());
  1383. total_size += 1UL * count;
  1384. for (unsigned int i = 0; i < count; i++) {
  1385. total_size +=
  1386. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1387. this->rabbitmq_sender_status_vector(static_cast<int>(i)));
  1388. }
  1389. }
  1390. if (_has_bits_[0 / 32] & 15u) {
  1391. // optional string ip = 1;
  1392. if (has_ip()) {
  1393. total_size += 1 +
  1394. ::google::protobuf::internal::WireFormatLite::StringSize(
  1395. this->ip());
  1396. }
  1397. // optional string user = 3;
  1398. if (has_user()) {
  1399. total_size += 1 +
  1400. ::google::protobuf::internal::WireFormatLite::StringSize(
  1401. this->user());
  1402. }
  1403. // optional string password = 4;
  1404. if (has_password()) {
  1405. total_size += 1 +
  1406. ::google::protobuf::internal::WireFormatLite::StringSize(
  1407. this->password());
  1408. }
  1409. // optional int32 port = 2;
  1410. if (has_port()) {
  1411. total_size += 1 +
  1412. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1413. this->port());
  1414. }
  1415. }
  1416. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1417. SetCachedSize(cached_size);
  1418. return total_size;
  1419. }
  1420. void Rabbitmq_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  1421. // @@protoc_insertion_point(generalized_merge_from_start:Rabbitmq_proto.Rabbitmq_parameter)
  1422. GOOGLE_DCHECK_NE(&from, this);
  1423. const Rabbitmq_parameter* source =
  1424. ::google::protobuf::internal::DynamicCastToGenerated<const Rabbitmq_parameter>(
  1425. &from);
  1426. if (source == NULL) {
  1427. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Rabbitmq_proto.Rabbitmq_parameter)
  1428. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1429. } else {
  1430. // @@protoc_insertion_point(generalized_merge_from_cast_success:Rabbitmq_proto.Rabbitmq_parameter)
  1431. MergeFrom(*source);
  1432. }
  1433. }
  1434. void Rabbitmq_parameter::MergeFrom(const Rabbitmq_parameter& from) {
  1435. // @@protoc_insertion_point(class_specific_merge_from_start:Rabbitmq_proto.Rabbitmq_parameter)
  1436. GOOGLE_DCHECK_NE(&from, this);
  1437. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1438. ::google::protobuf::uint32 cached_has_bits = 0;
  1439. (void) cached_has_bits;
  1440. rabbitmq_reciever_vector_.MergeFrom(from.rabbitmq_reciever_vector_);
  1441. rabbitmq_sender_request_vector_.MergeFrom(from.rabbitmq_sender_request_vector_);
  1442. rabbitmq_sender_status_vector_.MergeFrom(from.rabbitmq_sender_status_vector_);
  1443. cached_has_bits = from._has_bits_[0];
  1444. if (cached_has_bits & 15u) {
  1445. if (cached_has_bits & 0x00000001u) {
  1446. set_has_ip();
  1447. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  1448. }
  1449. if (cached_has_bits & 0x00000002u) {
  1450. set_has_user();
  1451. user_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_);
  1452. }
  1453. if (cached_has_bits & 0x00000004u) {
  1454. set_has_password();
  1455. password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_);
  1456. }
  1457. if (cached_has_bits & 0x00000008u) {
  1458. port_ = from.port_;
  1459. }
  1460. _has_bits_[0] |= cached_has_bits;
  1461. }
  1462. }
  1463. void Rabbitmq_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  1464. // @@protoc_insertion_point(generalized_copy_from_start:Rabbitmq_proto.Rabbitmq_parameter)
  1465. if (&from == this) return;
  1466. Clear();
  1467. MergeFrom(from);
  1468. }
  1469. void Rabbitmq_parameter::CopyFrom(const Rabbitmq_parameter& from) {
  1470. // @@protoc_insertion_point(class_specific_copy_from_start:Rabbitmq_proto.Rabbitmq_parameter)
  1471. if (&from == this) return;
  1472. Clear();
  1473. MergeFrom(from);
  1474. }
  1475. bool Rabbitmq_parameter::IsInitialized() const {
  1476. return true;
  1477. }
  1478. void Rabbitmq_parameter::Swap(Rabbitmq_parameter* other) {
  1479. if (other == this) return;
  1480. InternalSwap(other);
  1481. }
  1482. void Rabbitmq_parameter::InternalSwap(Rabbitmq_parameter* other) {
  1483. using std::swap;
  1484. CastToBase(&rabbitmq_reciever_vector_)->InternalSwap(CastToBase(&other->rabbitmq_reciever_vector_));
  1485. CastToBase(&rabbitmq_sender_request_vector_)->InternalSwap(CastToBase(&other->rabbitmq_sender_request_vector_));
  1486. CastToBase(&rabbitmq_sender_status_vector_)->InternalSwap(CastToBase(&other->rabbitmq_sender_status_vector_));
  1487. ip_.Swap(&other->ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1488. GetArenaNoVirtual());
  1489. user_.Swap(&other->user_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1490. GetArenaNoVirtual());
  1491. password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1492. GetArenaNoVirtual());
  1493. swap(port_, other->port_);
  1494. swap(_has_bits_[0], other->_has_bits_[0]);
  1495. _internal_metadata_.Swap(&other->_internal_metadata_);
  1496. }
  1497. ::google::protobuf::Metadata Rabbitmq_parameter::GetMetadata() const {
  1498. protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
  1499. return ::protobuf_rabbitmq_2eproto::file_level_metadata[kIndexInFileMessages];
  1500. }
  1501. // ===================================================================
  1502. void Rabbitmq_parameter_all::InitAsDefaultInstance() {
  1503. ::Rabbitmq_proto::_Rabbitmq_parameter_all_default_instance_._instance.get_mutable()->rabbitmq_parameters_ = const_cast< ::Rabbitmq_proto::Rabbitmq_parameter*>(
  1504. ::Rabbitmq_proto::Rabbitmq_parameter::internal_default_instance());
  1505. }
  1506. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1507. const int Rabbitmq_parameter_all::kRabbitmqParametersFieldNumber;
  1508. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1509. Rabbitmq_parameter_all::Rabbitmq_parameter_all()
  1510. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1511. ::google::protobuf::internal::InitSCC(
  1512. &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter_all.base);
  1513. SharedCtor();
  1514. // @@protoc_insertion_point(constructor:Rabbitmq_proto.Rabbitmq_parameter_all)
  1515. }
  1516. Rabbitmq_parameter_all::Rabbitmq_parameter_all(const Rabbitmq_parameter_all& from)
  1517. : ::google::protobuf::Message(),
  1518. _internal_metadata_(NULL),
  1519. _has_bits_(from._has_bits_) {
  1520. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1521. if (from.has_rabbitmq_parameters()) {
  1522. rabbitmq_parameters_ = new ::Rabbitmq_proto::Rabbitmq_parameter(*from.rabbitmq_parameters_);
  1523. } else {
  1524. rabbitmq_parameters_ = NULL;
  1525. }
  1526. // @@protoc_insertion_point(copy_constructor:Rabbitmq_proto.Rabbitmq_parameter_all)
  1527. }
  1528. void Rabbitmq_parameter_all::SharedCtor() {
  1529. rabbitmq_parameters_ = NULL;
  1530. }
  1531. Rabbitmq_parameter_all::~Rabbitmq_parameter_all() {
  1532. // @@protoc_insertion_point(destructor:Rabbitmq_proto.Rabbitmq_parameter_all)
  1533. SharedDtor();
  1534. }
  1535. void Rabbitmq_parameter_all::SharedDtor() {
  1536. if (this != internal_default_instance()) delete rabbitmq_parameters_;
  1537. }
  1538. void Rabbitmq_parameter_all::SetCachedSize(int size) const {
  1539. _cached_size_.Set(size);
  1540. }
  1541. const ::google::protobuf::Descriptor* Rabbitmq_parameter_all::descriptor() {
  1542. ::protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
  1543. return ::protobuf_rabbitmq_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1544. }
  1545. const Rabbitmq_parameter_all& Rabbitmq_parameter_all::default_instance() {
  1546. ::google::protobuf::internal::InitSCC(&protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter_all.base);
  1547. return *internal_default_instance();
  1548. }
  1549. void Rabbitmq_parameter_all::Clear() {
  1550. // @@protoc_insertion_point(message_clear_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1551. ::google::protobuf::uint32 cached_has_bits = 0;
  1552. // Prevent compiler warnings about cached_has_bits being unused
  1553. (void) cached_has_bits;
  1554. cached_has_bits = _has_bits_[0];
  1555. if (cached_has_bits & 0x00000001u) {
  1556. GOOGLE_DCHECK(rabbitmq_parameters_ != NULL);
  1557. rabbitmq_parameters_->Clear();
  1558. }
  1559. _has_bits_.Clear();
  1560. _internal_metadata_.Clear();
  1561. }
  1562. bool Rabbitmq_parameter_all::MergePartialFromCodedStream(
  1563. ::google::protobuf::io::CodedInputStream* input) {
  1564. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1565. ::google::protobuf::uint32 tag;
  1566. // @@protoc_insertion_point(parse_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1567. for (;;) {
  1568. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1569. tag = p.first;
  1570. if (!p.second) goto handle_unusual;
  1571. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1572. // optional .Rabbitmq_proto.Rabbitmq_parameter rabbitmq_parameters = 1;
  1573. case 1: {
  1574. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1575. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1576. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1577. input, mutable_rabbitmq_parameters()));
  1578. } else {
  1579. goto handle_unusual;
  1580. }
  1581. break;
  1582. }
  1583. default: {
  1584. handle_unusual:
  1585. if (tag == 0) {
  1586. goto success;
  1587. }
  1588. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1589. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1590. break;
  1591. }
  1592. }
  1593. }
  1594. success:
  1595. // @@protoc_insertion_point(parse_success:Rabbitmq_proto.Rabbitmq_parameter_all)
  1596. return true;
  1597. failure:
  1598. // @@protoc_insertion_point(parse_failure:Rabbitmq_proto.Rabbitmq_parameter_all)
  1599. return false;
  1600. #undef DO_
  1601. }
  1602. void Rabbitmq_parameter_all::SerializeWithCachedSizes(
  1603. ::google::protobuf::io::CodedOutputStream* output) const {
  1604. // @@protoc_insertion_point(serialize_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1605. ::google::protobuf::uint32 cached_has_bits = 0;
  1606. (void) cached_has_bits;
  1607. cached_has_bits = _has_bits_[0];
  1608. // optional .Rabbitmq_proto.Rabbitmq_parameter rabbitmq_parameters = 1;
  1609. if (cached_has_bits & 0x00000001u) {
  1610. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1611. 1, this->_internal_rabbitmq_parameters(), output);
  1612. }
  1613. if (_internal_metadata_.have_unknown_fields()) {
  1614. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1615. _internal_metadata_.unknown_fields(), output);
  1616. }
  1617. // @@protoc_insertion_point(serialize_end:Rabbitmq_proto.Rabbitmq_parameter_all)
  1618. }
  1619. ::google::protobuf::uint8* Rabbitmq_parameter_all::InternalSerializeWithCachedSizesToArray(
  1620. bool deterministic, ::google::protobuf::uint8* target) const {
  1621. (void)deterministic; // Unused
  1622. // @@protoc_insertion_point(serialize_to_array_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1623. ::google::protobuf::uint32 cached_has_bits = 0;
  1624. (void) cached_has_bits;
  1625. cached_has_bits = _has_bits_[0];
  1626. // optional .Rabbitmq_proto.Rabbitmq_parameter rabbitmq_parameters = 1;
  1627. if (cached_has_bits & 0x00000001u) {
  1628. target = ::google::protobuf::internal::WireFormatLite::
  1629. InternalWriteMessageToArray(
  1630. 1, this->_internal_rabbitmq_parameters(), deterministic, target);
  1631. }
  1632. if (_internal_metadata_.have_unknown_fields()) {
  1633. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1634. _internal_metadata_.unknown_fields(), target);
  1635. }
  1636. // @@protoc_insertion_point(serialize_to_array_end:Rabbitmq_proto.Rabbitmq_parameter_all)
  1637. return target;
  1638. }
  1639. size_t Rabbitmq_parameter_all::ByteSizeLong() const {
  1640. // @@protoc_insertion_point(message_byte_size_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1641. size_t total_size = 0;
  1642. if (_internal_metadata_.have_unknown_fields()) {
  1643. total_size +=
  1644. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1645. _internal_metadata_.unknown_fields());
  1646. }
  1647. // optional .Rabbitmq_proto.Rabbitmq_parameter rabbitmq_parameters = 1;
  1648. if (has_rabbitmq_parameters()) {
  1649. total_size += 1 +
  1650. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1651. *rabbitmq_parameters_);
  1652. }
  1653. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1654. SetCachedSize(cached_size);
  1655. return total_size;
  1656. }
  1657. void Rabbitmq_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
  1658. // @@protoc_insertion_point(generalized_merge_from_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1659. GOOGLE_DCHECK_NE(&from, this);
  1660. const Rabbitmq_parameter_all* source =
  1661. ::google::protobuf::internal::DynamicCastToGenerated<const Rabbitmq_parameter_all>(
  1662. &from);
  1663. if (source == NULL) {
  1664. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Rabbitmq_proto.Rabbitmq_parameter_all)
  1665. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1666. } else {
  1667. // @@protoc_insertion_point(generalized_merge_from_cast_success:Rabbitmq_proto.Rabbitmq_parameter_all)
  1668. MergeFrom(*source);
  1669. }
  1670. }
  1671. void Rabbitmq_parameter_all::MergeFrom(const Rabbitmq_parameter_all& from) {
  1672. // @@protoc_insertion_point(class_specific_merge_from_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1673. GOOGLE_DCHECK_NE(&from, this);
  1674. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1675. ::google::protobuf::uint32 cached_has_bits = 0;
  1676. (void) cached_has_bits;
  1677. if (from.has_rabbitmq_parameters()) {
  1678. mutable_rabbitmq_parameters()->::Rabbitmq_proto::Rabbitmq_parameter::MergeFrom(from.rabbitmq_parameters());
  1679. }
  1680. }
  1681. void Rabbitmq_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
  1682. // @@protoc_insertion_point(generalized_copy_from_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1683. if (&from == this) return;
  1684. Clear();
  1685. MergeFrom(from);
  1686. }
  1687. void Rabbitmq_parameter_all::CopyFrom(const Rabbitmq_parameter_all& from) {
  1688. // @@protoc_insertion_point(class_specific_copy_from_start:Rabbitmq_proto.Rabbitmq_parameter_all)
  1689. if (&from == this) return;
  1690. Clear();
  1691. MergeFrom(from);
  1692. }
  1693. bool Rabbitmq_parameter_all::IsInitialized() const {
  1694. return true;
  1695. }
  1696. void Rabbitmq_parameter_all::Swap(Rabbitmq_parameter_all* other) {
  1697. if (other == this) return;
  1698. InternalSwap(other);
  1699. }
  1700. void Rabbitmq_parameter_all::InternalSwap(Rabbitmq_parameter_all* other) {
  1701. using std::swap;
  1702. swap(rabbitmq_parameters_, other->rabbitmq_parameters_);
  1703. swap(_has_bits_[0], other->_has_bits_[0]);
  1704. _internal_metadata_.Swap(&other->_internal_metadata_);
  1705. }
  1706. ::google::protobuf::Metadata Rabbitmq_parameter_all::GetMetadata() const {
  1707. protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
  1708. return ::protobuf_rabbitmq_2eproto::file_level_metadata[kIndexInFileMessages];
  1709. }
  1710. // @@protoc_insertion_point(namespace_scope)
  1711. } // namespace Rabbitmq_proto
  1712. namespace google {
  1713. namespace protobuf {
  1714. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Arena::CreateMaybeMessage< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >(Arena* arena) {
  1715. return Arena::CreateInternal< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >(arena);
  1716. }
  1717. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Rabbitmq_proto::Rabbitmq_parameter* Arena::CreateMaybeMessage< ::Rabbitmq_proto::Rabbitmq_parameter >(Arena* arena) {
  1718. return Arena::CreateInternal< ::Rabbitmq_proto::Rabbitmq_parameter >(arena);
  1719. }
  1720. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Rabbitmq_proto::Rabbitmq_parameter_all* Arena::CreateMaybeMessage< ::Rabbitmq_proto::Rabbitmq_parameter_all >(Arena* arena) {
  1721. return Arena::CreateInternal< ::Rabbitmq_proto::Rabbitmq_parameter_all >(arena);
  1722. }
  1723. } // namespace protobuf
  1724. } // namespace google
  1725. // @@protoc_insertion_point(global_scope)