ADD: added new created messages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: message.proto
|
||||
// Protobuf C++ Version: 4.24.0-main
|
||||
// Protobuf C++ Version: 4.26.0-dev
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
|
||||
@@ -11,17 +11,11 @@
|
||||
#include <utility>
|
||||
|
||||
#include "google/protobuf/port_def.inc"
|
||||
#if PROTOBUF_VERSION < 4025000
|
||||
#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 4025000 < 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
|
||||
#if PROTOBUF_VERSION != 4026000
|
||||
#error "Protobuf C++ gencode is built with an incompatible version of"
|
||||
#error "Protobuf C++ headers/runtime. See"
|
||||
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
|
||||
#endif
|
||||
#include "google/protobuf/port_undef.inc"
|
||||
#include "google/protobuf/io/coded_stream.h"
|
||||
#include "google/protobuf/arena.h"
|
||||
@@ -76,21 +70,18 @@ namespace header {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class Message final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
|
||||
class Message final : public ::google::protobuf::Message
|
||||
/* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
|
||||
public:
|
||||
inline Message() : Message(nullptr) {}
|
||||
~Message() override;
|
||||
template<typename = void>
|
||||
explicit PROTOBUF_CONSTEXPR Message(::google::protobuf::internal::ConstantInitialized);
|
||||
|
||||
inline Message(const Message& from)
|
||||
: Message(nullptr, from) {}
|
||||
Message(Message&& from) noexcept
|
||||
: Message() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
template <typename = void>
|
||||
explicit PROTOBUF_CONSTEXPR Message(
|
||||
::google::protobuf::internal::ConstantInitialized);
|
||||
|
||||
inline Message(const Message& from) : Message(nullptr, from) {}
|
||||
inline Message(Message&& from) noexcept
|
||||
: Message(nullptr, std::move(from)) {}
|
||||
inline Message& operator=(const Message& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
@@ -98,9 +89,9 @@ class Message final :
|
||||
inline Message& operator=(Message&& from) noexcept {
|
||||
if (this == &from) return *this;
|
||||
if (GetArena() == from.GetArena()
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
&& GetArena() != nullptr
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
) {
|
||||
InternalSwap(&from);
|
||||
} else {
|
||||
@@ -132,22 +123,17 @@ class Message final :
|
||||
}
|
||||
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);
|
||||
&_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 (GetArena() != nullptr &&
|
||||
GetArena() == other->GetArena()) {
|
||||
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
|
||||
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetArena() == other->GetArena()) {
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::google::protobuf::internal::GenericSwap(this, other);
|
||||
@@ -162,16 +148,18 @@ class Message final :
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
Message* New(::google::protobuf::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<Message>(arena);
|
||||
return ::google::protobuf::Message::DefaultConstruct<Message>(arena);
|
||||
}
|
||||
using ::google::protobuf::Message::CopyFrom;
|
||||
void CopyFrom(const Message& from);
|
||||
using ::google::protobuf::Message::MergeFrom;
|
||||
void MergeFrom( const Message& from) {
|
||||
Message::MergeImpl(*this, from);
|
||||
}
|
||||
void MergeFrom(const Message& from) { Message::MergeImpl(*this, from); }
|
||||
|
||||
private:
|
||||
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
|
||||
static void MergeImpl(
|
||||
::google::protobuf::MessageLite& to_msg,
|
||||
const ::google::protobuf::MessageLite& from_msg);
|
||||
|
||||
public:
|
||||
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
@@ -179,31 +167,33 @@ class Message 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;
|
||||
::uint8_t* target,
|
||||
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor(::google::protobuf::Arena* arena);
|
||||
void SharedDtor();
|
||||
void InternalSwap(Message* other);
|
||||
|
||||
private:
|
||||
private:
|
||||
friend class ::google::protobuf::internal::AnyMetadata;
|
||||
static ::absl::string_view FullMessageName() {
|
||||
return "messages.header.Message";
|
||||
}
|
||||
protected:
|
||||
static ::absl::string_view FullMessageName() { return "messages.header.Message"; }
|
||||
|
||||
protected:
|
||||
explicit Message(::google::protobuf::Arena* arena);
|
||||
Message(::google::protobuf::Arena* arena, const Message& from);
|
||||
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
|
||||
public:
|
||||
Message(::google::protobuf::Arena* arena, Message&& from) noexcept
|
||||
: Message(arena) {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
const ::google::protobuf::MessageLite::ClassData* GetClassData()
|
||||
const final;
|
||||
|
||||
public:
|
||||
::google::protobuf::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kSenderUUIDFieldNumber = 3,
|
||||
kPayloadFieldNumber = 5,
|
||||
@@ -264,7 +254,6 @@ class Message final :
|
||||
// @@protoc_insertion_point(class_scope:messages.header.Message)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
friend class ::google::protobuf::internal::TcParser;
|
||||
static const ::google::protobuf::internal::TcParseTable<
|
||||
3, 4, 1,
|
||||
@@ -277,13 +266,12 @@ class Message final :
|
||||
using InternalArenaConstructable_ = void;
|
||||
using DestructorSkippable_ = void;
|
||||
struct Impl_ {
|
||||
|
||||
inline explicit constexpr Impl_(
|
||||
::google::protobuf::internal::ConstantInitialized) noexcept;
|
||||
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
|
||||
::google::protobuf::Arena* arena);
|
||||
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
|
||||
::google::protobuf::Arena* arena, const Impl_& from);
|
||||
inline explicit constexpr Impl_(
|
||||
::google::protobuf::internal::ConstantInitialized) noexcept;
|
||||
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
|
||||
::google::protobuf::Arena* arena);
|
||||
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
|
||||
::google::protobuf::Arena* arena, const Impl_& from);
|
||||
::google::protobuf::internal::HasBits<1> _has_bits_;
|
||||
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
||||
::google::protobuf::internal::ArenaStringPtr senderuuid_;
|
||||
@@ -331,7 +319,6 @@ inline ::uint32_t Message::_internal_topic() const {
|
||||
}
|
||||
inline void Message::_internal_set_topic(::uint32_t value) {
|
||||
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
||||
;
|
||||
_impl_.topic_ = value;
|
||||
}
|
||||
|
||||
@@ -354,7 +341,6 @@ inline ::uint32_t Message::_internal_msgtype() const {
|
||||
}
|
||||
inline void Message::_internal_set_msgtype(::uint32_t value) {
|
||||
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
||||
;
|
||||
_impl_.msgtype_ = value;
|
||||
}
|
||||
|
||||
@@ -372,7 +358,6 @@ template <typename Arg_, typename... Args_>
|
||||
inline PROTOBUF_ALWAYS_INLINE void Message::set_senderuuid(Arg_&& arg,
|
||||
Args_... args) {
|
||||
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
||||
;
|
||||
_impl_.senderuuid_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.senderUUID)
|
||||
}
|
||||
@@ -387,12 +372,10 @@ inline const std::string& Message::_internal_senderuuid() const {
|
||||
}
|
||||
inline void Message::_internal_set_senderuuid(const std::string& value) {
|
||||
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
||||
;
|
||||
_impl_.senderuuid_.Set(value, GetArena());
|
||||
}
|
||||
inline std::string* Message::_internal_mutable_senderuuid() {
|
||||
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
||||
;
|
||||
return _impl_.senderuuid_.Mutable( GetArena());
|
||||
}
|
||||
inline std::string* Message::release_senderuuid() {
|
||||
@@ -469,14 +452,14 @@ inline ::google::protobuf::Any* Message::unsafe_arena_release_payload() {
|
||||
}
|
||||
inline ::google::protobuf::Any* Message::_internal_mutable_payload() {
|
||||
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
if (_impl_.payload_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArena());
|
||||
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena());
|
||||
_impl_.payload_ = reinterpret_cast<::google::protobuf::Any*>(p);
|
||||
}
|
||||
return _impl_.payload_;
|
||||
}
|
||||
inline ::google::protobuf::Any* Message::mutable_payload() ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
::google::protobuf::Any* _msg = _internal_mutable_payload();
|
||||
// @@protoc_insertion_point(field_mutable:messages.header.Message.payload)
|
||||
return _msg;
|
||||
|
||||
Reference in New Issue
Block a user