4#ifndef GOOGLE_PROTOBUF_INCLUDED_msg_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_msg_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
16#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include <google/protobuf/port_def.inc>
36#define PROTOBUF_INTERNAL_EXPORT_msg_2eproto
37PROTOBUF_NAMESPACE_OPEN
41PROTOBUF_NAMESPACE_CLOSE
50struct BasicPropertiesDefaultTypeInternal;
53struct MessageDefaultTypeInternal;
56struct Message_PayloadDefaultTypeInternal;
59PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
82 static_assert(::std::is_same<T, ExchangeType>::value ||
83 ::std::is_integral<T>::value,
84 "Incorrect type passed to function ExchangeType_Name.");
85 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
89 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
ExchangeType* value) {
90 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ExchangeType>(
108 static_assert(::std::is_same<T, DeliveryMode>::value ||
109 ::std::is_integral<T>::value,
110 "Incorrect type passed to function DeliveryMode_Name.");
111 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
115 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
DeliveryMode* value) {
116 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DeliveryMode>(
122 public ::PROTOBUF_NAMESPACE_ID::Message {
126 explicit PROTOBUF_CONSTEXPR
BasicProperties(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
131 *
this = ::std::move(from);
139 if (
this == &from)
return *
this;
140 if (GetOwningArena() == from.GetOwningArena()
141 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
142 && GetOwningArena() !=
nullptr
152 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
175 if (other ==
this)
return;
176 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
177 if (GetOwningArena() !=
nullptr &&
178 GetOwningArena() == other->GetOwningArena()) {
180 if (GetOwningArena() == other->GetOwningArena()) {
184 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
188 if (other ==
this)
return;
189 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
196 return CreateMaybeMessage<BasicProperties>(arena);
198 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
200 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
205 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
207 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
213 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
217 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
223 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
225 return "XuMQ.BasicProperties";
229 bool is_message_owned =
false);
233 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
235 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
248 const std::string&
id()
const;
249 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
256 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_id(
const std::string& value);
263 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
287 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
291 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr
id_;
297 friend struct ::TableStruct_msg_2eproto;
302 public ::PROTOBUF_NAMESPACE_ID::Message {
306 explicit PROTOBUF_CONSTEXPR
Message_Payload(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
311 *
this = ::std::move(from);
319 if (
this == &from)
return *
this;
320 if (GetOwningArena() == from.GetOwningArena()
321 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
322 && GetOwningArena() !=
nullptr
332 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
333 return GetDescriptor();
336 return default_instance().GetMetadata().descriptor;
339 return default_instance().GetMetadata().reflection;
342 return *internal_default_instance();
348 static constexpr int kIndexInFileMessages =
355 if (other ==
this)
return;
356 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
357 if (GetOwningArena() !=
nullptr &&
358 GetOwningArena() == other->GetOwningArena()) {
360 if (GetOwningArena() == other->GetOwningArena()) {
364 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
368 if (other ==
this)
return;
369 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
376 return CreateMaybeMessage<Message_Payload>(arena);
378 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
380 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
382 Message_Payload::MergeImpl(*
this, from);
385 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
387 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
388 bool IsInitialized() const final;
390 size_t ByteSizeLong() const final;
391 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
392 uint8_t* _InternalSerialize(
393 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
394 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
397 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
399 void SetCachedSize(
int size)
const final;
403 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
405 return "XuMQ.Message.Payload";
409 bool is_message_owned =
false);
413 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
415 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
422 kBodyFieldNumber = 2,
423 kValidFieldNumber = 3,
424 kPropertiesFieldNumber = 1,
428 const std::string& body()
const;
429 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
431 std::string* mutable_body();
432 PROTOBUF_NODISCARD std::string* release_body();
433 void set_allocated_body(std::string* body);
435 const std::string& _internal_body()
const;
436 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_body(
const std::string& value);
437 std::string* _internal_mutable_body();
442 const std::string& valid()
const;
443 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
445 std::string* mutable_valid();
446 PROTOBUF_NODISCARD std::string* release_valid();
447 void set_allocated_valid(std::string* valid);
449 const std::string& _internal_valid()
const;
450 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_valid(
const std::string& value);
451 std::string* _internal_mutable_valid();
455 bool has_properties()
const;
457 bool _internal_has_properties()
const;
459 void clear_properties();
460 const ::XuMQ::BasicProperties& properties()
const;
461 PROTOBUF_NODISCARD ::XuMQ::BasicProperties* release_properties();
465 const ::XuMQ::BasicProperties& _internal_properties()
const;
468 void unsafe_arena_set_allocated_properties(
476 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
480 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr
body_;
481 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr
valid_;
486 friend struct ::TableStruct_msg_2eproto;
491 public ::PROTOBUF_NAMESPACE_ID::Message {
495 explicit PROTOBUF_CONSTEXPR
Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
500 *
this = ::std::move(from);
508 if (
this == &from)
return *
this;
509 if (GetOwningArena() == from.GetOwningArena()
510 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
511 && GetOwningArena() !=
nullptr
521 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
522 return GetDescriptor();
525 return default_instance().GetMetadata().descriptor;
528 return default_instance().GetMetadata().reflection;
531 return *internal_default_instance();
534 return reinterpret_cast<const Message*
>(
537 static constexpr int kIndexInFileMessages =
544 if (other ==
this)
return;
545 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
546 if (GetOwningArena() !=
nullptr &&
547 GetOwningArena() == other->GetOwningArena()) {
549 if (GetOwningArena() == other->GetOwningArena()) {
553 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
557 if (other ==
this)
return;
558 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
564 Message*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
565 return CreateMaybeMessage<Message>(arena);
567 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
568 void CopyFrom(
const Message& from);
569 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
571 Message::MergeImpl(*
this, from);
574 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
576 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
577 bool IsInitialized() const final;
579 size_t ByteSizeLong() const final;
580 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
581 uint8_t* _InternalSerialize(
582 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
583 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
586 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
588 void SetCachedSize(
int size)
const final;
589 void InternalSwap(
Message* other);
592 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
594 return "XuMQ.Message";
597 explicit Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
598 bool is_message_owned =
false);
602 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
604 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
613 kPayloadFieldNumber = 1,
614 kOffsetFieldNumber = 2,
615 kLengthFieldNumber = 3,
618 bool has_payload()
const;
620 bool _internal_has_payload()
const;
622 void clear_payload();
623 const ::XuMQ::Message_Payload& payload()
const;
624 PROTOBUF_NODISCARD ::XuMQ::Message_Payload* release_payload();
628 const ::XuMQ::Message_Payload& _internal_payload()
const;
631 void unsafe_arena_set_allocated_payload(
637 uint32_t offset()
const;
638 void set_offset(uint32_t value);
640 uint32_t _internal_offset()
const;
641 void _internal_set_offset(uint32_t value);
646 uint32_t length()
const;
647 void set_length(uint32_t value);
649 uint32_t _internal_length()
const;
650 void _internal_set_length(uint32_t value);
657 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
667 friend struct ::TableStruct_msg_2eproto;
675 #pragma GCC diagnostic push
676 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
681inline void BasicProperties::clear_id() {
682 _impl_.id_.ClearToEmpty();
684inline const std::string& BasicProperties::id()
const {
686 return _internal_id();
688template <
typename ArgT0,
typename... ArgT>
689inline PROTOBUF_ALWAYS_INLINE
690void BasicProperties::set_id(ArgT0&& arg0, ArgT... args) {
692 _impl_.id_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
695inline std::string* BasicProperties::mutable_id() {
696 std::string* _s = _internal_mutable_id();
700inline const std::string& BasicProperties::_internal_id()
const {
701 return _impl_.id_.Get();
703inline void BasicProperties::_internal_set_id(
const std::string& value) {
705 _impl_.id_.Set(value, GetArenaForAllocation());
707inline std::string* BasicProperties::_internal_mutable_id() {
709 return _impl_.id_.Mutable(GetArenaForAllocation());
711inline std::string* BasicProperties::release_id() {
713 return _impl_.id_.Release();
715inline void BasicProperties::set_allocated_id(std::string*
id) {
721 _impl_.id_.SetAllocated(
id, GetArenaForAllocation());
722#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
723 if (_impl_.id_.IsDefault()) {
724 _impl_.id_.Set(
"", GetArenaForAllocation());
731inline void BasicProperties::clear_delivery_mode() {
732 _impl_.delivery_mode_ = 0;
734inline ::XuMQ::DeliveryMode BasicProperties::_internal_delivery_mode()
const {
737inline ::XuMQ::DeliveryMode BasicProperties::delivery_mode()
const {
739 return _internal_delivery_mode();
743 _impl_.delivery_mode_ = value;
746 _internal_set_delivery_mode(value);
751inline void BasicProperties::clear_routing_key() {
752 _impl_.routing_key_.ClearToEmpty();
754inline const std::string& BasicProperties::routing_key()
const {
756 return _internal_routing_key();
758template <
typename ArgT0,
typename... ArgT>
759inline PROTOBUF_ALWAYS_INLINE
760void BasicProperties::set_routing_key(ArgT0&& arg0, ArgT... args) {
762 _impl_.routing_key_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
765inline std::string* BasicProperties::mutable_routing_key() {
766 std::string* _s = _internal_mutable_routing_key();
770inline const std::string& BasicProperties::_internal_routing_key()
const {
771 return _impl_.routing_key_.Get();
773inline void BasicProperties::_internal_set_routing_key(
const std::string& value) {
775 _impl_.routing_key_.Set(value, GetArenaForAllocation());
777inline std::string* BasicProperties::_internal_mutable_routing_key() {
779 return _impl_.routing_key_.Mutable(GetArenaForAllocation());
781inline std::string* BasicProperties::release_routing_key() {
783 return _impl_.routing_key_.Release();
785inline void BasicProperties::set_allocated_routing_key(std::string* routing_key) {
786 if (routing_key !=
nullptr) {
791 _impl_.routing_key_.SetAllocated(routing_key, GetArenaForAllocation());
792#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
793 if (_impl_.routing_key_.IsDefault()) {
794 _impl_.routing_key_.Set(
"", GetArenaForAllocation());
805inline bool Message_Payload::_internal_has_properties()
const {
806 return this != internal_default_instance() && _impl_.properties_ !=
nullptr;
808inline bool Message_Payload::has_properties()
const {
809 return _internal_has_properties();
811inline void Message_Payload::clear_properties() {
812 if (GetArenaForAllocation() ==
nullptr && _impl_.properties_ !=
nullptr) {
813 delete _impl_.properties_;
815 _impl_.properties_ =
nullptr;
817inline const ::XuMQ::BasicProperties& Message_Payload::_internal_properties()
const {
818 const ::XuMQ::BasicProperties* p = _impl_.properties_;
822inline const ::XuMQ::BasicProperties& Message_Payload::properties()
const {
824 return _internal_properties();
826inline void Message_Payload::unsafe_arena_set_allocated_properties(
828 if (GetArenaForAllocation() ==
nullptr) {
829 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.properties_);
831 _impl_.properties_ = properties;
839inline ::XuMQ::BasicProperties* Message_Payload::release_properties() {
842 _impl_.properties_ =
nullptr;
843#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
844 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
845 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
846 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
848 if (GetArenaForAllocation() !=
nullptr) {
849 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
854inline ::XuMQ::BasicProperties* Message_Payload::unsafe_arena_release_properties() {
858 _impl_.properties_ =
nullptr;
861inline ::XuMQ::BasicProperties* Message_Payload::_internal_mutable_properties() {
863 if (_impl_.properties_ ==
nullptr) {
865 _impl_.properties_ = p;
867 return _impl_.properties_;
869inline ::XuMQ::BasicProperties* Message_Payload::mutable_properties() {
875 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
876 if (message_arena ==
nullptr) {
877 delete _impl_.properties_;
880 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
881 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(properties);
882 if (message_arena != submessage_arena) {
883 properties = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
884 message_arena, properties, submessage_arena);
890 _impl_.properties_ = properties;
895inline void Message_Payload::clear_body() {
896 _impl_.body_.ClearToEmpty();
898inline const std::string& Message_Payload::body()
const {
900 return _internal_body();
902template <
typename ArgT0,
typename... ArgT>
903inline PROTOBUF_ALWAYS_INLINE
904void Message_Payload::set_body(ArgT0&& arg0, ArgT... args) {
906 _impl_.body_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
909inline std::string* Message_Payload::mutable_body() {
910 std::string* _s = _internal_mutable_body();
914inline const std::string& Message_Payload::_internal_body()
const {
915 return _impl_.body_.Get();
917inline void Message_Payload::_internal_set_body(
const std::string& value) {
919 _impl_.body_.Set(value, GetArenaForAllocation());
921inline std::string* Message_Payload::_internal_mutable_body() {
923 return _impl_.body_.Mutable(GetArenaForAllocation());
925inline std::string* Message_Payload::release_body() {
927 return _impl_.body_.Release();
929inline void Message_Payload::set_allocated_body(std::string* body) {
930 if (body !=
nullptr) {
935 _impl_.body_.SetAllocated(body, GetArenaForAllocation());
936#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
937 if (_impl_.body_.IsDefault()) {
938 _impl_.body_.Set(
"", GetArenaForAllocation());
945inline void Message_Payload::clear_valid() {
946 _impl_.valid_.ClearToEmpty();
948inline const std::string& Message_Payload::valid()
const {
950 return _internal_valid();
952template <
typename ArgT0,
typename... ArgT>
953inline PROTOBUF_ALWAYS_INLINE
954void Message_Payload::set_valid(ArgT0&& arg0, ArgT... args) {
956 _impl_.valid_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
959inline std::string* Message_Payload::mutable_valid() {
960 std::string* _s = _internal_mutable_valid();
964inline const std::string& Message_Payload::_internal_valid()
const {
965 return _impl_.valid_.Get();
967inline void Message_Payload::_internal_set_valid(
const std::string& value) {
969 _impl_.valid_.Set(value, GetArenaForAllocation());
971inline std::string* Message_Payload::_internal_mutable_valid() {
973 return _impl_.valid_.Mutable(GetArenaForAllocation());
975inline std::string* Message_Payload::release_valid() {
977 return _impl_.valid_.Release();
979inline void Message_Payload::set_allocated_valid(std::string* valid) {
980 if (valid !=
nullptr) {
985 _impl_.valid_.SetAllocated(valid, GetArenaForAllocation());
986#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
987 if (_impl_.valid_.IsDefault()) {
988 _impl_.valid_.Set(
"", GetArenaForAllocation());
999inline bool Message::_internal_has_payload()
const {
1000 return this != internal_default_instance() && _impl_.payload_ !=
nullptr;
1002inline bool Message::has_payload()
const {
1003 return _internal_has_payload();
1005inline void Message::clear_payload() {
1006 if (GetArenaForAllocation() ==
nullptr && _impl_.payload_ !=
nullptr) {
1007 delete _impl_.payload_;
1009 _impl_.payload_ =
nullptr;
1011inline const ::XuMQ::Message_Payload& Message::_internal_payload()
const {
1012 const ::XuMQ::Message_Payload* p = _impl_.payload_;
1016inline const ::XuMQ::Message_Payload& Message::payload()
const {
1018 return _internal_payload();
1020inline void Message::unsafe_arena_set_allocated_payload(
1022 if (GetArenaForAllocation() ==
nullptr) {
1023 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.payload_);
1025 _impl_.payload_ = payload;
1033inline ::XuMQ::Message_Payload* Message::release_payload() {
1036 _impl_.payload_ =
nullptr;
1037#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1038 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1039 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1040 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1042 if (GetArenaForAllocation() !=
nullptr) {
1043 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1048inline ::XuMQ::Message_Payload* Message::unsafe_arena_release_payload() {
1052 _impl_.payload_ =
nullptr;
1055inline ::XuMQ::Message_Payload* Message::_internal_mutable_payload() {
1057 if (_impl_.payload_ ==
nullptr) {
1059 _impl_.payload_ = p;
1061 return _impl_.payload_;
1063inline ::XuMQ::Message_Payload* Message::mutable_payload() {
1069 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1070 if (message_arena ==
nullptr) {
1071 delete _impl_.payload_;
1074 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1075 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(payload);
1076 if (message_arena != submessage_arena) {
1077 payload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1078 message_arena, payload, submessage_arena);
1084 _impl_.payload_ = payload;
1089inline void Message::clear_offset() {
1090 _impl_.offset_ = 0u;
1092inline uint32_t Message::_internal_offset()
const {
1093 return _impl_.offset_;
1095inline uint32_t Message::offset()
const {
1097 return _internal_offset();
1099inline void Message::_internal_set_offset(uint32_t value) {
1101 _impl_.offset_ = value;
1103inline void Message::set_offset(uint32_t value) {
1104 _internal_set_offset(value);
1109inline void Message::clear_length() {
1110 _impl_.length_ = 0u;
1112inline uint32_t Message::_internal_length()
const {
1113 return _impl_.length_;
1115inline uint32_t Message::length()
const {
1117 return _internal_length();
1119inline void Message::_internal_set_length(uint32_t value) {
1121 _impl_.length_ = value;
1123inline void Message::set_length(uint32_t value) {
1124 _internal_set_length(value);
1129 #pragma GCC diagnostic pop
1140PROTOBUF_NAMESPACE_OPEN
1145 return ::XuMQ::ExchangeType_descriptor();
1150 return ::XuMQ::DeliveryMode_descriptor();
1153PROTOBUF_NAMESPACE_CLOSE
1157#include <google/protobuf/port_undef.inc>
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition msg.pb.h:155
void clear_routing_key()
Definition msg.pb.h:751
PROTOBUF_NODISCARD std::string * release_routing_key()
Definition msg.pb.h:781
bool IsInitialized() const final
Definition msg.pb.cc:433
static const ClassData _class_data_
Definition msg.pb.h:232
void MergeFrom(const BasicProperties &from)
Definition msg.pb.h:201
void InternalSwap(BasicProperties *other)
Definition msg.pb.cc:437
void _internal_set_delivery_mode(::XuMQ::DeliveryMode value)
Definition msg.pb.h:741
void set_routing_key(ArgT0 &&arg0, ArgT... args)
static const BasicProperties * internal_default_instance()
Definition msg.pb.h:164
BasicProperties & operator=(const BasicProperties &from)
Definition msg.pb.h:134
BasicProperties & operator=(BasicProperties &&from) noexcept
Definition msg.pb.h:138
void UnsafeArenaSwap(BasicProperties *other)
Definition msg.pb.h:187
BasicProperties(BasicProperties &&from) noexcept
Definition msg.pb.h:129
void set_id(ArgT0 &&arg0, ArgT... args)
std::string * _internal_mutable_routing_key()
Definition msg.pb.h:777
BasicProperties()
Definition msg.pb.h:124
::XuMQ::DeliveryMode _internal_delivery_mode() const
Definition msg.pb.h:734
void InternalArenaConstructable_
Definition msg.pb.h:288
std::string * mutable_routing_key()
Definition msg.pb.h:765
static const BasicProperties & default_instance()
Definition msg.pb.h:161
void set_allocated_routing_key(std::string *routing_key)
Definition msg.pb.h:785
PROTOBUF_ALWAYS_INLINE void _internal_set_routing_key(const std::string &value)
Definition msg.pb.h:773
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
Definition msg.pb.cc:269
PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string &value)
Definition msg.pb.h:703
const std::string & _internal_routing_key() const
Definition msg.pb.h:770
::XuMQ::DeliveryMode delivery_mode() const
Definition msg.pb.h:737
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition msg.pb.h:158
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message &to_msg, const ::PROTOBUF_NAMESPACE_ID::Message &from_msg)
Definition msg.pb.cc:406
size_t ByteSizeLong() const final
Definition msg.pb.cc:368
std::string * _internal_mutable_id()
Definition msg.pb.h:707
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Definition msg.pb.cc:453
const std::string & id() const
Definition msg.pb.h:684
const std::string & routing_key() const
Definition msg.pb.h:754
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Definition msg.pb.cc:403
@ kDeliveryModeFieldNumber
Definition msg.pb.h:244
@ kIdFieldNumber
Definition msg.pb.h:242
@ kRoutingKeyFieldNumber
Definition msg.pb.h:243
BasicProperties * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition msg.pb.h:195
void set_delivery_mode(::XuMQ::DeliveryMode value)
Definition msg.pb.h:745
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
Definition msg.pb.cc:327
void clear_id()
Definition msg.pb.h:681
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Definition msg.pb.cc:257
void set_allocated_id(std::string *id)
Definition msg.pb.h:715
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition msg.pb.h:224
void SetCachedSize(int size) const final
Definition msg.pb.cc:253
static constexpr int kIndexInFileMessages
Definition msg.pb.h:168
PROTOBUF_CONSTEXPR BasicProperties(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
std::string * mutable_id()
Definition msg.pb.h:695
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition msg.pb.h:152
void clear_delivery_mode()
Definition msg.pb.h:731
PROTOBUF_NODISCARD std::string * release_id()
Definition msg.pb.h:711
void SharedDtor()
Definition msg.pb.cc:247
friend void swap(BasicProperties &a, BasicProperties &b)
Definition msg.pb.h:171
void Swap(BasicProperties *other)
Definition msg.pb.h:174
void CopyFrom(const BasicProperties &from)
Definition msg.pb.cc:426
~BasicProperties() override
Definition msg.pb.cc:238
int GetCachedSize() const final
Definition msg.pb.h:214
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned)
Definition msg.pb.cc:218
void DestructorSkippable_
Definition msg.pb.h:289
const std::string & _internal_id() const
Definition msg.pb.h:700
Impl_ _impl_
Definition msg.pb.h:296
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition msg.pb.h:338
static const Message_Payload & default_instance()
Definition msg.pb.h:341
Message_Payload()
Definition msg.pb.h:304
Impl_ _impl_
Definition msg.pb.h:485
static const Message_Payload * internal_default_instance()
Definition msg.pb.h:344
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition msg.pb.h:335
Message_Payload(Message_Payload &&from) noexcept
Definition msg.pb.h:309
void UnsafeArenaSwap(Message_Payload *other)
Definition msg.pb.h:367
void set_body(ArgT0 &&arg0, ArgT... args)
void Swap(Message_Payload *other)
Definition msg.pb.h:354
void MergeFrom(const Message_Payload &from)
Definition msg.pb.h:381
static const ClassData _class_data_
Definition msg.pb.h:412
PROTOBUF_CONSTEXPR Message_Payload(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_valid(ArgT0 &&arg0, ArgT... args)
void DestructorSkippable_
Definition msg.pb.h:478
friend void swap(Message_Payload &a, Message_Payload &b)
Definition msg.pb.h:351
Message_Payload * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition msg.pb.h:375
Message_Payload & operator=(Message_Payload &&from) noexcept
Definition msg.pb.h:318
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition msg.pb.h:332
Message_Payload & operator=(const Message_Payload &from)
Definition msg.pb.h:314
void InternalArenaConstructable_
Definition msg.pb.h:477
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition msg.pb.h:404
void MergeFrom(const Message &from)
Definition msg.pb.h:570
Impl_ _impl_
Definition msg.pb.h:666
void UnsafeArenaSwap(Message *other)
Definition msg.pb.h:556
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition msg.pb.h:524
Message * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition msg.pb.h:564
Message()
Definition msg.pb.h:493
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition msg.pb.h:527
static const Message & default_instance()
Definition msg.pb.h:530
friend void swap(Message &a, Message &b)
Definition msg.pb.h:540
static const Message * internal_default_instance()
Definition msg.pb.h:533
void InternalArenaConstructable_
Definition msg.pb.h:658
PROTOBUF_CONSTEXPR Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ClassData _class_data_
Definition msg.pb.h:601
void DestructorSkippable_
Definition msg.pb.h:659
Message & operator=(const Message &from)
Definition msg.pb.h:503
Message & operator=(Message &&from) noexcept
Definition msg.pb.h:507
Message(Message &&from) noexcept
Definition msg.pb.h:498
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition msg.pb.h:521
void Swap(Message *other)
Definition msg.pb.h:543
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition msg.pb.h:593
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_msg_2eproto
Definition msg.pb.cc:129
const EnumDescriptor * GetEnumDescriptor< ::XuMQ::ExchangeType >()
Definition msg.pb.h:1144
PROTOBUF_NAMESPACE_OPEN ::XuMQ::BasicProperties * Arena::CreateMaybeMessage<::XuMQ::BasicProperties >(Arena *)
const EnumDescriptor * GetEnumDescriptor< ::XuMQ::DeliveryMode >()
Definition msg.pb.h:1149
::XuMQ::Message_Payload * Arena::CreateMaybeMessage<::XuMQ::Message_Payload >(Arena *)
Definition channel.hpp:22
constexpr DeliveryMode DeliveryMode_MIN
Definition msg.pb.h:101
DeliveryMode
Definition msg.pb.h:93
@ UNDURABLE
Definition msg.pb.h:95
@ UNKNOWMODE
Definition msg.pb.h:94
@ DURABLE
Definition msg.pb.h:96
@ DeliveryMode_INT_MIN_SENTINEL_DO_NOT_USE_
Definition msg.pb.h:97
@ DeliveryMode_INT_MAX_SENTINEL_DO_NOT_USE_
Definition msg.pb.h:98
const std::string & ExchangeType_Name(T enum_t_value)
Definition msg.pb.h:81
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ExchangeType_descriptor()
Definition msg.pb.cc:144
bool ExchangeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ExchangeType *value)
Definition msg.pb.h:88
constexpr DeliveryMode DeliveryMode_MAX
Definition msg.pb.h:102
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BasicPropertiesDefaultTypeInternal _BasicProperties_default_instance_
Definition msg.pb.cc:38
ExchangeType
Definition msg.pb.h:66
@ ExchangeType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition msg.pb.h:72
@ UNKNOWTYPE
Definition msg.pb.h:67
@ DIRECT
Definition msg.pb.h:68
@ TOPIC
Definition msg.pb.h:70
@ ExchangeType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition msg.pb.h:71
@ FANOUT
Definition msg.pb.h:69
constexpr int ExchangeType_ARRAYSIZE
Definition msg.pb.h:77
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Message_PayloadDefaultTypeInternal _Message_Payload_default_instance_
Definition msg.pb.cc:53
bool DeliveryMode_IsValid(int value)
Definition msg.pb.cc:164
bool ExchangeType_IsValid(int value)
Definition msg.pb.cc:148
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DeliveryMode_descriptor()
Definition msg.pb.cc:160
constexpr ExchangeType ExchangeType_MAX
Definition msg.pb.h:76
const std::string & DeliveryMode_Name(T enum_t_value)
Definition msg.pb.h:107
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageDefaultTypeInternal _Message_default_instance_
Definition msg.pb.cc:68
bool DeliveryMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeliveryMode *value)
Definition msg.pb.h:114
constexpr ExchangeType ExchangeType_MIN
Definition msg.pb.h:75
constexpr int DeliveryMode_ARRAYSIZE
Definition msg.pb.h:103
static const uint32_t offsets[]
Definition msg.pb.h:45
mutable::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
Definition msg.pb.h:294
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr routing_key_
Definition msg.pb.h:292
int delivery_mode_
Definition msg.pb.h:293
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_
Definition msg.pb.h:291
uint32_t length_
Definition msg.pb.h:663
mutable::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
Definition msg.pb.h:664
::XuMQ::Message_Payload * payload_
Definition msg.pb.h:661
uint32_t offset_
Definition msg.pb.h:662
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_
Definition msg.pb.h:480
mutable::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
Definition msg.pb.h:483
::XuMQ::BasicProperties * properties_
Definition msg.pb.h:482
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr valid_
Definition msg.pb.h:481