rabbitmq.pb.cc 79 KB

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