Files
whisper-com/include/WHISPER/Messages/Protos/message.pb.h

434 lines
14 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#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
#if 3021012 < 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
#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_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/unknown_field_set.h>
#include <google/protobuf/any.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_message_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_message_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_message_2eproto;
namespace messages {
namespace header {
class Message;
struct MessageDefaultTypeInternal;
extern MessageDefaultTypeInternal _Message_default_instance_;
} // namespace header
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::header::Message* Arena::CreateMaybeMessage<::messages::header::Message>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
namespace header {
// ===================================================================
class Message final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
public:
inline Message() : Message(nullptr) {}
~Message() override;
explicit PROTOBUF_CONSTEXPR Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Message(const Message& from);
Message(Message&& from) noexcept
: Message() {
*this = ::std::move(from);
}
inline Message& operator=(const Message& from) {
CopyFrom(from);
return *this;
}
inline Message& operator=(Message&& 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;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Message& default_instance() {
return *internal_default_instance();
}
static inline const Message* internal_default_instance() {
return reinterpret_cast<const Message*>(
&_Message_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Message& a, Message& b) {
a.Swap(&b);
}
inline void Swap(Message* 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 {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Message* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Message>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Message& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const Message& from) {
Message::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Message* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.header.Message";
}
protected:
explicit Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kPayloadFieldNumber = 6,
kTopicFieldNumber = 1,
kMsgTypeFieldNumber = 2,
kSourceTypeFieldNumber = 3,
kSourceIDFieldNumber = 4,
kParentIDFieldNumber = 5,
};
// repeated .google.protobuf.Any payload = 6;
int payload_size() const;
private:
int _internal_payload_size() const;
public:
void clear_payload();
::PROTOBUF_NAMESPACE_ID::Any* mutable_payload(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >*
mutable_payload();
private:
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_payload(int index) const;
::PROTOBUF_NAMESPACE_ID::Any* _internal_add_payload();
public:
const ::PROTOBUF_NAMESPACE_ID::Any& payload(int index) const;
::PROTOBUF_NAMESPACE_ID::Any* add_payload();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >&
payload() const;
// uint32 topic = 1;
void clear_topic();
uint32_t topic() const;
void set_topic(uint32_t value);
private:
uint32_t _internal_topic() const;
void _internal_set_topic(uint32_t value);
public:
// uint32 msgType = 2;
void clear_msgtype();
uint32_t msgtype() const;
void set_msgtype(uint32_t value);
private:
uint32_t _internal_msgtype() const;
void _internal_set_msgtype(uint32_t value);
public:
// uint32 sourceType = 3;
void clear_sourcetype();
uint32_t sourcetype() const;
void set_sourcetype(uint32_t value);
private:
uint32_t _internal_sourcetype() const;
void _internal_set_sourcetype(uint32_t value);
public:
// uint32 sourceID = 4;
void clear_sourceid();
uint32_t sourceid() const;
void set_sourceid(uint32_t value);
private:
uint32_t _internal_sourceid() const;
void _internal_set_sourceid(uint32_t value);
public:
// uint32 parentID = 5;
void clear_parentid();
uint32_t parentid() const;
void set_parentid(uint32_t value);
private:
uint32_t _internal_parentid() const;
void _internal_set_parentid(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.header.Message)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > payload_;
uint32_t topic_;
uint32_t msgtype_;
uint32_t sourcetype_;
uint32_t sourceid_;
uint32_t parentid_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_message_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// Message
// uint32 topic = 1;
inline void Message::clear_topic() {
_impl_.topic_ = 0u;
}
inline uint32_t Message::_internal_topic() const {
return _impl_.topic_;
}
inline uint32_t Message::topic() const {
// @@protoc_insertion_point(field_get:messages.header.Message.topic)
return _internal_topic();
}
inline void Message::_internal_set_topic(uint32_t value) {
_impl_.topic_ = value;
}
inline void Message::set_topic(uint32_t value) {
_internal_set_topic(value);
// @@protoc_insertion_point(field_set:messages.header.Message.topic)
}
// uint32 msgType = 2;
inline void Message::clear_msgtype() {
_impl_.msgtype_ = 0u;
}
inline uint32_t Message::_internal_msgtype() const {
return _impl_.msgtype_;
}
inline uint32_t Message::msgtype() const {
// @@protoc_insertion_point(field_get:messages.header.Message.msgType)
return _internal_msgtype();
}
inline void Message::_internal_set_msgtype(uint32_t value) {
_impl_.msgtype_ = value;
}
inline void Message::set_msgtype(uint32_t value) {
_internal_set_msgtype(value);
// @@protoc_insertion_point(field_set:messages.header.Message.msgType)
}
// uint32 sourceType = 3;
inline void Message::clear_sourcetype() {
_impl_.sourcetype_ = 0u;
}
inline uint32_t Message::_internal_sourcetype() const {
return _impl_.sourcetype_;
}
inline uint32_t Message::sourcetype() const {
// @@protoc_insertion_point(field_get:messages.header.Message.sourceType)
return _internal_sourcetype();
}
inline void Message::_internal_set_sourcetype(uint32_t value) {
_impl_.sourcetype_ = value;
}
inline void Message::set_sourcetype(uint32_t value) {
_internal_set_sourcetype(value);
// @@protoc_insertion_point(field_set:messages.header.Message.sourceType)
}
// uint32 sourceID = 4;
inline void Message::clear_sourceid() {
_impl_.sourceid_ = 0u;
}
inline uint32_t Message::_internal_sourceid() const {
return _impl_.sourceid_;
}
inline uint32_t Message::sourceid() const {
// @@protoc_insertion_point(field_get:messages.header.Message.sourceID)
return _internal_sourceid();
}
inline void Message::_internal_set_sourceid(uint32_t value) {
_impl_.sourceid_ = value;
}
inline void Message::set_sourceid(uint32_t value) {
_internal_set_sourceid(value);
// @@protoc_insertion_point(field_set:messages.header.Message.sourceID)
}
// uint32 parentID = 5;
inline void Message::clear_parentid() {
_impl_.parentid_ = 0u;
}
inline uint32_t Message::_internal_parentid() const {
return _impl_.parentid_;
}
inline uint32_t Message::parentid() const {
// @@protoc_insertion_point(field_get:messages.header.Message.parentID)
return _internal_parentid();
}
inline void Message::_internal_set_parentid(uint32_t value) {
_impl_.parentid_ = value;
}
inline void Message::set_parentid(uint32_t value) {
_internal_set_parentid(value);
// @@protoc_insertion_point(field_set:messages.header.Message.parentID)
}
// repeated .google.protobuf.Any payload = 6;
inline int Message::_internal_payload_size() const {
return _impl_.payload_.size();
}
inline int Message::payload_size() const {
return _internal_payload_size();
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::mutable_payload(int index) {
// @@protoc_insertion_point(field_mutable:messages.header.Message.payload)
return _impl_.payload_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >*
Message::mutable_payload() {
// @@protoc_insertion_point(field_mutable_list:messages.header.Message.payload)
return &_impl_.payload_;
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& Message::_internal_payload(int index) const {
return _impl_.payload_.Get(index);
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& Message::payload(int index) const {
// @@protoc_insertion_point(field_get:messages.header.Message.payload)
return _internal_payload(index);
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::_internal_add_payload() {
return _impl_.payload_.Add();
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::add_payload() {
::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_payload();
// @@protoc_insertion_point(field_add:messages.header.Message.payload)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >&
Message::payload() const {
// @@protoc_insertion_point(field_list:messages.header.Message.payload)
return _impl_.payload_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace header
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_message_2eproto