WhisperCom/proto/RouterMessage.pb.h

506 lines
18 KiB
C
Raw Normal View History

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RouterMessage.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_RouterMessage_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_RouterMessage_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4023000
#error "This file was generated by a newer version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please update"
#error "your headers."
#endif // PROTOBUF_VERSION
#if 4023000 < PROTOBUF_MIN_PROTOC_VERSION
#error "This file was generated by an older version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please"
#error "regenerate this file with a newer version of protoc."
#endif // PROTOBUF_MIN_PROTOC_VERSION
#include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/any.pb.h"
#include "Message.pb.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_RouterMessage_2eproto
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_RouterMessage_2eproto {
static const ::uint32_t offsets[];
};
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_RouterMessage_2eproto;
namespace WhisperCom {
namespace Protobuf {
class RouterMessage;
struct RouterMessageDefaultTypeInternal;
extern RouterMessageDefaultTypeInternal _RouterMessage_default_instance_;
} // namespace Protobuf
} // namespace WhisperCom
namespace google {
namespace protobuf {
template <>
::WhisperCom::Protobuf::RouterMessage* Arena::CreateMaybeMessage<::WhisperCom::Protobuf::RouterMessage>(Arena*);
} // namespace protobuf
} // namespace google
namespace WhisperCom {
namespace Protobuf {
enum RouterMessageType : int {
UNKNOWN = 0,
JOIN = 1,
LEAVE = 2,
DATA = 3,
KEEPALIVE = 4,
SUBSCRIBE = 5,
UNSUBSCRIBE = 6,
UNSUBSCRIBE_ALL = 7,
RouterMessageType_INT_MIN_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::min(),
RouterMessageType_INT_MAX_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::max(),
};
bool RouterMessageType_IsValid(int value);
constexpr RouterMessageType RouterMessageType_MIN = static_cast<RouterMessageType>(0);
constexpr RouterMessageType RouterMessageType_MAX = static_cast<RouterMessageType>(7);
constexpr int RouterMessageType_ARRAYSIZE = 7 + 1;
const ::google::protobuf::EnumDescriptor*
RouterMessageType_descriptor();
template <typename T>
const std::string& RouterMessageType_Name(T value) {
static_assert(std::is_same<T, RouterMessageType>::value ||
std::is_integral<T>::value,
"Incorrect type passed to RouterMessageType_Name().");
return RouterMessageType_Name(static_cast<RouterMessageType>(value));
}
template <>
inline const std::string& RouterMessageType_Name(RouterMessageType value) {
return ::google::protobuf::internal::NameOfDenseEnum<RouterMessageType_descriptor,
0, 7>(
static_cast<int>(value));
}
inline bool RouterMessageType_Parse(absl::string_view name, RouterMessageType* value) {
return ::google::protobuf::internal::ParseNamedEnum<RouterMessageType>(
RouterMessageType_descriptor(), name, value);
}
// ===================================================================
// -------------------------------------------------------------------
class RouterMessage final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:WhisperCom.Protobuf.RouterMessage) */ {
public:
inline RouterMessage() : RouterMessage(nullptr) {}
~RouterMessage() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR RouterMessage(::google::protobuf::internal::ConstantInitialized);
RouterMessage(const RouterMessage& from);
RouterMessage(RouterMessage&& from) noexcept
: RouterMessage() {
*this = ::std::move(from);
}
inline RouterMessage& operator=(const RouterMessage& from) {
CopyFrom(from);
return *this;
}
inline RouterMessage& operator=(RouterMessage&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RouterMessage& default_instance() {
return *internal_default_instance();
}
static inline const RouterMessage* internal_default_instance() {
return reinterpret_cast<const RouterMessage*>(
&_RouterMessage_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(RouterMessage& a, RouterMessage& b) {
a.Swap(&b);
}
inline void Swap(RouterMessage* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RouterMessage* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RouterMessage* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RouterMessage>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const RouterMessage& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const RouterMessage& from) {
RouterMessage::MergeImpl(*this, from);
}
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RouterMessage* other);
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "WhisperCom.Protobuf.RouterMessage";
}
protected:
explicit RouterMessage(::google::protobuf::Arena* arena);
public:
static const ClassData _class_data_;
const ::google::protobuf::Message::ClassData*GetClassData() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kTopicFieldNumber = 3,
kMsgFieldNumber = 2,
kTypeFieldNumber = 1,
};
// string topic = 3;
void clear_topic() ;
const std::string& topic() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_topic(Arg_&& arg, Args_... args);
std::string* mutable_topic();
PROTOBUF_NODISCARD std::string* release_topic();
void set_allocated_topic(std::string* ptr);
private:
const std::string& _internal_topic() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_topic(
const std::string& value);
std::string* _internal_mutable_topic();
public:
// .WhisperCom.Protobuf.Message msg = 2;
bool has_msg() const;
void clear_msg() ;
const ::WhisperCom::Protobuf::Message& msg() const;
PROTOBUF_NODISCARD ::WhisperCom::Protobuf::Message* release_msg();
::WhisperCom::Protobuf::Message* mutable_msg();
void set_allocated_msg(::WhisperCom::Protobuf::Message* value);
void unsafe_arena_set_allocated_msg(::WhisperCom::Protobuf::Message* value);
::WhisperCom::Protobuf::Message* unsafe_arena_release_msg();
private:
const ::WhisperCom::Protobuf::Message& _internal_msg() const;
::WhisperCom::Protobuf::Message* _internal_mutable_msg();
public:
// .WhisperCom.Protobuf.RouterMessageType type = 1;
void clear_type() ;
::WhisperCom::Protobuf::RouterMessageType type() const;
void set_type(::WhisperCom::Protobuf::RouterMessageType value);
private:
::WhisperCom::Protobuf::RouterMessageType _internal_type() const;
void _internal_set_type(::WhisperCom::Protobuf::RouterMessageType value);
public:
// @@protoc_insertion_point(class_scope:WhisperCom.Protobuf.RouterMessage)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 47, 2> _table_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr topic_;
::WhisperCom::Protobuf::Message* msg_;
int type_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_RouterMessage_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// RouterMessage
// .WhisperCom.Protobuf.RouterMessageType type = 1;
inline void RouterMessage::clear_type() {
_impl_.type_ = 0;
}
inline ::WhisperCom::Protobuf::RouterMessageType RouterMessage::type() const {
// @@protoc_insertion_point(field_get:WhisperCom.Protobuf.RouterMessage.type)
return _internal_type();
}
inline void RouterMessage::set_type(::WhisperCom::Protobuf::RouterMessageType value) {
_internal_set_type(value);
// @@protoc_insertion_point(field_set:WhisperCom.Protobuf.RouterMessage.type)
}
inline ::WhisperCom::Protobuf::RouterMessageType RouterMessage::_internal_type() const {
return static_cast<::WhisperCom::Protobuf::RouterMessageType>(_impl_.type_);
}
inline void RouterMessage::_internal_set_type(::WhisperCom::Protobuf::RouterMessageType value) {
;
_impl_.type_ = value;
}
// .WhisperCom.Protobuf.Message msg = 2;
inline bool RouterMessage::has_msg() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
PROTOBUF_ASSUME(!value || _impl_.msg_ != nullptr);
return value;
}
inline const ::WhisperCom::Protobuf::Message& RouterMessage::_internal_msg() const {
const ::WhisperCom::Protobuf::Message* p = _impl_.msg_;
return p != nullptr ? *p : reinterpret_cast<const ::WhisperCom::Protobuf::Message&>(::WhisperCom::Protobuf::_Message_default_instance_);
}
inline const ::WhisperCom::Protobuf::Message& RouterMessage::msg() const {
// @@protoc_insertion_point(field_get:WhisperCom.Protobuf.RouterMessage.msg)
return _internal_msg();
}
inline void RouterMessage::unsafe_arena_set_allocated_msg(::WhisperCom::Protobuf::Message* value) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.msg_);
}
_impl_.msg_ = reinterpret_cast<::WhisperCom::Protobuf::Message*>(value);
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:WhisperCom.Protobuf.RouterMessage.msg)
}
inline ::WhisperCom::Protobuf::Message* RouterMessage::release_msg() {
_impl_._has_bits_[0] &= ~0x00000001u;
::WhisperCom::Protobuf::Message* released = _impl_.msg_;
_impl_.msg_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
if (GetArenaForAllocation() == nullptr) {
delete old;
}
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return released;
}
inline ::WhisperCom::Protobuf::Message* RouterMessage::unsafe_arena_release_msg() {
// @@protoc_insertion_point(field_release:WhisperCom.Protobuf.RouterMessage.msg)
_impl_._has_bits_[0] &= ~0x00000001u;
::WhisperCom::Protobuf::Message* temp = _impl_.msg_;
_impl_.msg_ = nullptr;
return temp;
}
inline ::WhisperCom::Protobuf::Message* RouterMessage::_internal_mutable_msg() {
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.msg_ == nullptr) {
auto* p = CreateMaybeMessage<::WhisperCom::Protobuf::Message>(GetArenaForAllocation());
_impl_.msg_ = reinterpret_cast<::WhisperCom::Protobuf::Message*>(p);
}
return _impl_.msg_;
}
inline ::WhisperCom::Protobuf::Message* RouterMessage::mutable_msg() {
::WhisperCom::Protobuf::Message* _msg = _internal_mutable_msg();
// @@protoc_insertion_point(field_mutable:WhisperCom.Protobuf.RouterMessage.msg)
return _msg;
}
inline void RouterMessage::set_allocated_msg(::WhisperCom::Protobuf::Message* value) {
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.msg_);
}
if (value != nullptr) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::google::protobuf::MessageLite*>(value));
if (message_arena != submessage_arena) {
value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.msg_ = reinterpret_cast<::WhisperCom::Protobuf::Message*>(value);
// @@protoc_insertion_point(field_set_allocated:WhisperCom.Protobuf.RouterMessage.msg)
}
// string topic = 3;
inline void RouterMessage::clear_topic() {
_impl_.topic_.ClearToEmpty();
}
inline const std::string& RouterMessage::topic() const {
// @@protoc_insertion_point(field_get:WhisperCom.Protobuf.RouterMessage.topic)
return _internal_topic();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void RouterMessage::set_topic(Arg_&& arg,
Args_... args) {
;
_impl_.topic_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:WhisperCom.Protobuf.RouterMessage.topic)
}
inline std::string* RouterMessage::mutable_topic() {
std::string* _s = _internal_mutable_topic();
// @@protoc_insertion_point(field_mutable:WhisperCom.Protobuf.RouterMessage.topic)
return _s;
}
inline const std::string& RouterMessage::_internal_topic() const {
return _impl_.topic_.Get();
}
inline void RouterMessage::_internal_set_topic(const std::string& value) {
;
_impl_.topic_.Set(value, GetArenaForAllocation());
}
inline std::string* RouterMessage::_internal_mutable_topic() {
;
return _impl_.topic_.Mutable( GetArenaForAllocation());
}
inline std::string* RouterMessage::release_topic() {
// @@protoc_insertion_point(field_release:WhisperCom.Protobuf.RouterMessage.topic)
return _impl_.topic_.Release();
}
inline void RouterMessage::set_allocated_topic(std::string* value) {
_impl_.topic_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.topic_.IsDefault()) {
_impl_.topic_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:WhisperCom.Protobuf.RouterMessage.topic)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace Protobuf
} // namespace WhisperCom
namespace google {
namespace protobuf {
template <>
struct is_proto_enum<::WhisperCom::Protobuf::RouterMessageType> : std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor<::WhisperCom::Protobuf::RouterMessageType>() {
return ::WhisperCom::Protobuf::RouterMessageType_descriptor();
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_RouterMessage_2eproto_2epb_2eh