ADD: added new created messages

This commit is contained in:
Henry Winkel
2023-12-19 14:29:13 +01:00
parent f46706aec7
commit 8f163b5791
14 changed files with 439 additions and 481 deletions

View File

@@ -1,5 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: join.proto // source: join.proto
// Protobuf C++ Version: 4.26.0-dev
#include "join.pb.h" #include "join.pb.h"
@@ -112,9 +113,6 @@ const ::_pbi::DescriptorTable descriptor_table_join_2eproto = {
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_join_2eproto_getter() { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_join_2eproto_getter() {
return &descriptor_table_join_2eproto; return &descriptor_table_join_2eproto;
} }
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_join_2eproto(&descriptor_table_join_2eproto);
namespace messages { namespace messages {
namespace join { namespace join {
// =================================================================== // ===================================================================
@@ -170,12 +168,15 @@ inline void Join::SharedDtor() {
const ::google::protobuf::MessageLite::ClassData* const ::google::protobuf::MessageLite::ClassData*
Join::GetClassData() const { Join::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
_data_ = { ClassDataFull _data_ = {
Join::MergeImpl, {
nullptr, // OnDemandRegisterArenaDtor nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Join, _impl_._cached_size_), PROTOBUF_FIELD_OFFSET(Join, _impl_._cached_size_),
false,
},
&Join::MergeImpl,
&Join::kDescriptorMethods,
}; };
return &_data_; return &_data_;
} }
@@ -212,6 +213,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 37, 2> Join::_table_ = {
offsetof(decltype(_table_), field_names), // no aux_entries offsetof(decltype(_table_), field_names), // no aux_entries
&_Join_default_instance_._instance, &_Join_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback ::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::messages::join::Join>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
// string srcAddress = 2; // string srcAddress = 2;
{::_pbi::TcParser::FastUS1, {::_pbi::TcParser::FastUS1,
@@ -292,7 +296,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 37, 2> Join::_table_ = {
} }
void Join::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { void Join::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<Join*>(&to_msg); auto* const _this = static_cast<Join*>(&to_msg);
auto& from = static_cast<const Join&>(from_msg); auto& from = static_cast<const Join&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.join.Join) // @@protoc_insertion_point(class_specific_merge_from_start:messages.join.Join)
@@ -304,7 +308,7 @@ void Join::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protob
_this->_internal_set_srcaddress(from._internal_srcaddress()); _this->_internal_set_srcaddress(from._internal_srcaddress());
} }
if (from._internal_port() != 0) { if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port()); _this->_impl_.port_ = from._impl_.port_;
} }
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -330,8 +334,8 @@ void Join::InternalSwap(Join* PROTOBUF_RESTRICT other) {
} }
::google::protobuf::Metadata Join::GetMetadata() const { ::google::protobuf::Metadata Join::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(&descriptor_table_join_2eproto_getter,
&descriptor_table_join_2eproto_getter, &descriptor_table_join_2eproto_once, &descriptor_table_join_2eproto_once,
file_level_metadata_join_2eproto[0]); file_level_metadata_join_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -342,4 +346,8 @@ namespace protobuf {
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::std::false_type _static_init_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_join_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"

View File

@@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: join.proto // source: join.proto
// Protobuf C++ Version: 4.24.0-main // Protobuf C++ Version: 4.26.0-dev
#ifndef GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh #ifndef GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh
@@ -11,17 +11,11 @@
#include <utility> #include <utility>
#include "google/protobuf/port_def.inc" #include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000 #if PROTOBUF_VERSION != 4026000
#error "This file was generated by a newer version of protoc which is" #error "Protobuf C++ gencode is built with an incompatible version of"
#error "incompatible with your Protocol Buffer headers. Please update" #error "Protobuf C++ headers/runtime. See"
#error "your headers." #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif // PROTOBUF_VERSION #endif
#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
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h" #include "google/protobuf/arena.h"
@@ -75,21 +69,18 @@ namespace join {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class Join final : class Join final : public ::google::protobuf::Message
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.join.Join) */ { /* @@protoc_insertion_point(class_definition:messages.join.Join) */ {
public: public:
inline Join() : Join(nullptr) {} inline Join() : Join(nullptr) {}
~Join() override; ~Join() override;
template <typename = void> template <typename = void>
explicit PROTOBUF_CONSTEXPR Join(::google::protobuf::internal::ConstantInitialized); explicit PROTOBUF_CONSTEXPR Join(
::google::protobuf::internal::ConstantInitialized);
inline Join(const Join& from)
: Join(nullptr, from) {}
Join(Join&& from) noexcept
: Join() {
*this = ::std::move(from);
}
inline Join(const Join& from) : Join(nullptr, from) {}
inline Join(Join&& from) noexcept
: Join(nullptr, std::move(from)) {}
inline Join& operator=(const Join& from) { inline Join& operator=(const Join& from) {
CopyFrom(from); CopyFrom(from);
return *this; return *this;
@@ -133,17 +124,12 @@ class Join final :
return reinterpret_cast<const Join*>( return reinterpret_cast<const Join*>(
&_Join_default_instance_); &_Join_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages = 0;
0; friend void swap(Join& a, Join& b) { a.Swap(&b); }
friend void swap(Join& a, Join& b) {
a.Swap(&b);
}
inline void Swap(Join* other) { inline void Swap(Join* other) {
if (other == this) return; if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && if (GetArena() != nullptr && GetArena() == other->GetArena()) {
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP #else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) { if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@@ -161,16 +147,18 @@ class Join final :
// implements Message ---------------------------------------------- // implements Message ----------------------------------------------
Join* New(::google::protobuf::Arena* arena = nullptr) const final { Join* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Join>(arena); return ::google::protobuf::Message::DefaultConstruct<Join>(arena);
} }
using ::google::protobuf::Message::CopyFrom; using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Join& from); void CopyFrom(const Join& from);
using ::google::protobuf::Message::MergeFrom; using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Join& from) { void MergeFrom(const Join& from) { Join::MergeImpl(*this, from); }
Join::MergeImpl(*this, from);
}
private: 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: public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final; bool IsInitialized() const final;
@@ -178,31 +166,33 @@ class Join final :
::size_t ByteSizeLong() const final; ::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize( ::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(); } int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private: private:
void SharedCtor(::google::protobuf::Arena* arena); void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor(); void SharedDtor();
void InternalSwap(Join* other); void InternalSwap(Join* other);
private: private:
friend class ::google::protobuf::internal::AnyMetadata; friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { static ::absl::string_view FullMessageName() { return "messages.join.Join"; }
return "messages.join.Join";
}
protected: protected:
explicit Join(::google::protobuf::Arena* arena); explicit Join(::google::protobuf::Arena* arena);
Join(::google::protobuf::Arena* arena, const Join& from); Join(::google::protobuf::Arena* arena, const Join& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final; Join(::google::protobuf::Arena* arena, Join&& from) noexcept
: Join(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public: public:
::google::protobuf::Metadata GetMetadata() const final; ::google::protobuf::Metadata GetMetadata() const final;
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kSrcAddressFieldNumber = 2, kSrcAddressFieldNumber = 2,
kPortFieldNumber = 1, kPortFieldNumber = 1,
@@ -236,7 +226,6 @@ class Join final :
// @@protoc_insertion_point(class_scope:messages.join.Join) // @@protoc_insertion_point(class_scope:messages.join.Join)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
1, 2, 0, 1, 2, 0,
@@ -249,7 +238,6 @@ class Join final :
using InternalArenaConstructable_ = void; using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void; using DestructorSkippable_ = void;
struct Impl_ { struct Impl_ {
inline explicit constexpr Impl_( inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept; ::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@@ -300,7 +288,6 @@ inline ::uint32_t Join::_internal_port() const {
} }
inline void Join::_internal_set_port(::uint32_t value) { inline void Join::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value; _impl_.port_ = value;
} }
@@ -318,7 +305,6 @@ template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Join::set_srcaddress(Arg_&& arg, inline PROTOBUF_ALWAYS_INLINE void Join::set_srcaddress(Arg_&& arg,
Args_... args) { Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); _impl_.srcaddress_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.join.Join.srcAddress) // @@protoc_insertion_point(field_set:messages.join.Join.srcAddress)
} }
@@ -333,12 +319,10 @@ inline const std::string& Join::_internal_srcaddress() const {
} }
inline void Join::_internal_set_srcaddress(const std::string& value) { inline void Join::_internal_set_srcaddress(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(value, GetArena()); _impl_.srcaddress_.Set(value, GetArena());
} }
inline std::string* Join::_internal_mutable_srcaddress() { inline std::string* Join::_internal_mutable_srcaddress() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.srcaddress_.Mutable( GetArena()); return _impl_.srcaddress_.Mutable( GetArena());
} }
inline std::string* Join::release_srcaddress() { inline std::string* Join::release_srcaddress() {

View File

@@ -1,5 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: leave.proto // source: leave.proto
// Protobuf C++ Version: 4.26.0-dev
#include "leave.pb.h" #include "leave.pb.h"
@@ -112,9 +113,6 @@ const ::_pbi::DescriptorTable descriptor_table_leave_2eproto = {
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_leave_2eproto_getter() { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_leave_2eproto_getter() {
return &descriptor_table_leave_2eproto; return &descriptor_table_leave_2eproto;
} }
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_leave_2eproto(&descriptor_table_leave_2eproto);
namespace messages { namespace messages {
namespace leave { namespace leave {
// =================================================================== // ===================================================================
@@ -170,12 +168,15 @@ inline void Leave::SharedDtor() {
const ::google::protobuf::MessageLite::ClassData* const ::google::protobuf::MessageLite::ClassData*
Leave::GetClassData() const { Leave::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
_data_ = { ClassDataFull _data_ = {
Leave::MergeImpl, {
nullptr, // OnDemandRegisterArenaDtor nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Leave, _impl_._cached_size_), PROTOBUF_FIELD_OFFSET(Leave, _impl_._cached_size_),
false,
},
&Leave::MergeImpl,
&Leave::kDescriptorMethods,
}; };
return &_data_; return &_data_;
} }
@@ -212,6 +213,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 39, 2> Leave::_table_ = {
offsetof(decltype(_table_), field_names), // no aux_entries offsetof(decltype(_table_), field_names), // no aux_entries
&_Leave_default_instance_._instance, &_Leave_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback ::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::messages::leave::Leave>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
// string srcAddress = 2; // string srcAddress = 2;
{::_pbi::TcParser::FastUS1, {::_pbi::TcParser::FastUS1,
@@ -292,7 +296,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 39, 2> Leave::_table_ = {
} }
void Leave::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { void Leave::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<Leave*>(&to_msg); auto* const _this = static_cast<Leave*>(&to_msg);
auto& from = static_cast<const Leave&>(from_msg); auto& from = static_cast<const Leave&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.leave.Leave) // @@protoc_insertion_point(class_specific_merge_from_start:messages.leave.Leave)
@@ -304,7 +308,7 @@ void Leave::MergeImpl(::google::protobuf::Message& to_msg, const ::google::proto
_this->_internal_set_srcaddress(from._internal_srcaddress()); _this->_internal_set_srcaddress(from._internal_srcaddress());
} }
if (from._internal_port() != 0) { if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port()); _this->_impl_.port_ = from._impl_.port_;
} }
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -330,8 +334,8 @@ void Leave::InternalSwap(Leave* PROTOBUF_RESTRICT other) {
} }
::google::protobuf::Metadata Leave::GetMetadata() const { ::google::protobuf::Metadata Leave::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(&descriptor_table_leave_2eproto_getter,
&descriptor_table_leave_2eproto_getter, &descriptor_table_leave_2eproto_once, &descriptor_table_leave_2eproto_once,
file_level_metadata_leave_2eproto[0]); file_level_metadata_leave_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -342,4 +346,8 @@ namespace protobuf {
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::std::false_type _static_init_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_leave_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"

View File

@@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: leave.proto // source: leave.proto
// Protobuf C++ Version: 4.24.0-main // Protobuf C++ Version: 4.26.0-dev
#ifndef GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh #ifndef GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh
@@ -11,17 +11,11 @@
#include <utility> #include <utility>
#include "google/protobuf/port_def.inc" #include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000 #if PROTOBUF_VERSION != 4026000
#error "This file was generated by a newer version of protoc which is" #error "Protobuf C++ gencode is built with an incompatible version of"
#error "incompatible with your Protocol Buffer headers. Please update" #error "Protobuf C++ headers/runtime. See"
#error "your headers." #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif // PROTOBUF_VERSION #endif
#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
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h" #include "google/protobuf/arena.h"
@@ -75,21 +69,18 @@ namespace leave {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class Leave final : class Leave final : public ::google::protobuf::Message
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.leave.Leave) */ { /* @@protoc_insertion_point(class_definition:messages.leave.Leave) */ {
public: public:
inline Leave() : Leave(nullptr) {} inline Leave() : Leave(nullptr) {}
~Leave() override; ~Leave() override;
template <typename = void> template <typename = void>
explicit PROTOBUF_CONSTEXPR Leave(::google::protobuf::internal::ConstantInitialized); explicit PROTOBUF_CONSTEXPR Leave(
::google::protobuf::internal::ConstantInitialized);
inline Leave(const Leave& from)
: Leave(nullptr, from) {}
Leave(Leave&& from) noexcept
: Leave() {
*this = ::std::move(from);
}
inline Leave(const Leave& from) : Leave(nullptr, from) {}
inline Leave(Leave&& from) noexcept
: Leave(nullptr, std::move(from)) {}
inline Leave& operator=(const Leave& from) { inline Leave& operator=(const Leave& from) {
CopyFrom(from); CopyFrom(from);
return *this; return *this;
@@ -133,17 +124,12 @@ class Leave final :
return reinterpret_cast<const Leave*>( return reinterpret_cast<const Leave*>(
&_Leave_default_instance_); &_Leave_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages = 0;
0; friend void swap(Leave& a, Leave& b) { a.Swap(&b); }
friend void swap(Leave& a, Leave& b) {
a.Swap(&b);
}
inline void Swap(Leave* other) { inline void Swap(Leave* other) {
if (other == this) return; if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && if (GetArena() != nullptr && GetArena() == other->GetArena()) {
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP #else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) { if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@@ -161,16 +147,18 @@ class Leave final :
// implements Message ---------------------------------------------- // implements Message ----------------------------------------------
Leave* New(::google::protobuf::Arena* arena = nullptr) const final { Leave* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Leave>(arena); return ::google::protobuf::Message::DefaultConstruct<Leave>(arena);
} }
using ::google::protobuf::Message::CopyFrom; using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Leave& from); void CopyFrom(const Leave& from);
using ::google::protobuf::Message::MergeFrom; using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Leave& from) { void MergeFrom(const Leave& from) { Leave::MergeImpl(*this, from); }
Leave::MergeImpl(*this, from);
}
private: 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: public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final; bool IsInitialized() const final;
@@ -178,31 +166,33 @@ class Leave final :
::size_t ByteSizeLong() const final; ::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize( ::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(); } int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private: private:
void SharedCtor(::google::protobuf::Arena* arena); void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor(); void SharedDtor();
void InternalSwap(Leave* other); void InternalSwap(Leave* other);
private: private:
friend class ::google::protobuf::internal::AnyMetadata; friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { static ::absl::string_view FullMessageName() { return "messages.leave.Leave"; }
return "messages.leave.Leave";
}
protected: protected:
explicit Leave(::google::protobuf::Arena* arena); explicit Leave(::google::protobuf::Arena* arena);
Leave(::google::protobuf::Arena* arena, const Leave& from); Leave(::google::protobuf::Arena* arena, const Leave& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final; Leave(::google::protobuf::Arena* arena, Leave&& from) noexcept
: Leave(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public: public:
::google::protobuf::Metadata GetMetadata() const final; ::google::protobuf::Metadata GetMetadata() const final;
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kSrcAddressFieldNumber = 2, kSrcAddressFieldNumber = 2,
kPortFieldNumber = 1, kPortFieldNumber = 1,
@@ -236,7 +226,6 @@ class Leave final :
// @@protoc_insertion_point(class_scope:messages.leave.Leave) // @@protoc_insertion_point(class_scope:messages.leave.Leave)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
1, 2, 0, 1, 2, 0,
@@ -249,7 +238,6 @@ class Leave final :
using InternalArenaConstructable_ = void; using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void; using DestructorSkippable_ = void;
struct Impl_ { struct Impl_ {
inline explicit constexpr Impl_( inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept; ::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@@ -300,7 +288,6 @@ inline ::uint32_t Leave::_internal_port() const {
} }
inline void Leave::_internal_set_port(::uint32_t value) { inline void Leave::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value; _impl_.port_ = value;
} }
@@ -318,7 +305,6 @@ template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Leave::set_srcaddress(Arg_&& arg, inline PROTOBUF_ALWAYS_INLINE void Leave::set_srcaddress(Arg_&& arg,
Args_... args) { Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); _impl_.srcaddress_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.leave.Leave.srcAddress) // @@protoc_insertion_point(field_set:messages.leave.Leave.srcAddress)
} }
@@ -333,12 +319,10 @@ inline const std::string& Leave::_internal_srcaddress() const {
} }
inline void Leave::_internal_set_srcaddress(const std::string& value) { inline void Leave::_internal_set_srcaddress(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(value, GetArena()); _impl_.srcaddress_.Set(value, GetArena());
} }
inline std::string* Leave::_internal_mutable_srcaddress() { inline std::string* Leave::_internal_mutable_srcaddress() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.srcaddress_.Mutable( GetArena()); return _impl_.srcaddress_.Mutable( GetArena());
} }
inline std::string* Leave::release_srcaddress() { inline std::string* Leave::release_srcaddress() {

View File

@@ -1,5 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message.proto // source: message.proto
// Protobuf C++ Version: 4.26.0-dev
#include "message.pb.h" #include "message.pb.h"
@@ -127,9 +128,6 @@ const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() {
return &descriptor_table_message_2eproto; return &descriptor_table_message_2eproto;
} }
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
namespace messages { namespace messages {
namespace header { namespace header {
// =================================================================== // ===================================================================
@@ -139,15 +137,8 @@ class Message::_Internal {
using HasBits = decltype(std::declval<Message>()._impl_._has_bits_); using HasBits = decltype(std::declval<Message>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset = static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(Message, _impl_._has_bits_); 8 * PROTOBUF_FIELD_OFFSET(Message, _impl_._has_bits_);
static const ::google::protobuf::Any& payload(const Message* msg);
static void set_has_payload(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
}; };
const ::google::protobuf::Any& Message::_Internal::payload(const Message* msg) {
return *msg->_impl_.payload_;
}
void Message::clear_payload() { void Message::clear_payload() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (_impl_.payload_ != nullptr) _impl_.payload_->Clear(); if (_impl_.payload_ != nullptr) _impl_.payload_->Clear();
@@ -175,8 +166,8 @@ Message::Message(
from._internal_metadata_); from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
::uint32_t cached_has_bits = _impl_._has_bits_[0]; ::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.payload_ = (cached_has_bits & 0x00000001u) _impl_.payload_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(
? CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.payload_) arena, *from._impl_.payload_)
: nullptr; : nullptr;
::memcpy(reinterpret_cast<char *>(&_impl_) + ::memcpy(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, topic_), offsetof(Impl_, topic_),
@@ -217,12 +208,15 @@ inline void Message::SharedDtor() {
const ::google::protobuf::MessageLite::ClassData* const ::google::protobuf::MessageLite::ClassData*
Message::GetClassData() const { Message::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
_data_ = { ClassDataFull _data_ = {
Message::MergeImpl, {
nullptr, // OnDemandRegisterArenaDtor nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Message, _impl_._cached_size_), PROTOBUF_FIELD_OFFSET(Message, _impl_._cached_size_),
false,
},
&Message::MergeImpl,
&Message::kDescriptorMethods,
}; };
return &_data_; return &_data_;
} }
@@ -267,6 +261,9 @@ const ::_pbi::TcParseTable<3, 4, 1, 42, 2> Message::_table_ = {
offsetof(decltype(_table_), aux_entries), offsetof(decltype(_table_), aux_entries),
&_Message_default_instance_._instance, &_Message_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback ::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::messages::header::Message>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
{::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}},
// uint32 topic = 1; // uint32 topic = 1;
@@ -341,8 +338,7 @@ const ::_pbi::TcParseTable<3, 4, 1, 42, 2> Message::_table_ = {
// .google.protobuf.Any payload = 5; // .google.protobuf.Any payload = 5;
if (cached_has_bits & 0x00000001u) { if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
5, _Internal::payload(this), 5, *_impl_.payload_, _impl_.payload_->GetCachedSize(), target, stream);
_Internal::payload(this).GetCachedSize(), target, stream);
} }
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -391,9 +387,10 @@ const ::_pbi::TcParseTable<3, 4, 1, 42, 2> Message::_table_ = {
} }
void Message::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { void Message::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<Message*>(&to_msg); auto* const _this = static_cast<Message*>(&to_msg);
auto& from = static_cast<const Message&>(from_msg); auto& from = static_cast<const Message&>(from_msg);
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:messages.header.Message) // @@protoc_insertion_point(class_specific_merge_from_start:messages.header.Message)
ABSL_DCHECK_NE(&from, _this); ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0; ::uint32_t cached_has_bits = 0;
@@ -402,16 +399,23 @@ void Message::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pro
if (!from._internal_senderuuid().empty()) { if (!from._internal_senderuuid().empty()) {
_this->_internal_set_senderuuid(from._internal_senderuuid()); _this->_internal_set_senderuuid(from._internal_senderuuid());
} }
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { cached_has_bits = from._impl_._has_bits_[0];
_this->_internal_mutable_payload()->::google::protobuf::Any::MergeFrom( if (cached_has_bits & 0x00000001u) {
from._internal_payload()); ABSL_DCHECK(from._impl_.payload_ != nullptr);
if (_this->_impl_.payload_ == nullptr) {
_this->_impl_.payload_ =
::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.payload_);
} else {
_this->_impl_.payload_->MergeFrom(*from._impl_.payload_);
}
} }
if (from._internal_topic() != 0) { if (from._internal_topic() != 0) {
_this->_internal_set_topic(from._internal_topic()); _this->_impl_.topic_ = from._impl_.topic_;
} }
if (from._internal_msgtype() != 0) { if (from._internal_msgtype() != 0) {
_this->_internal_set_msgtype(from._internal_msgtype()); _this->_impl_.msgtype_ = from._impl_.msgtype_;
} }
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -442,8 +446,8 @@ void Message::InternalSwap(Message* PROTOBUF_RESTRICT other) {
} }
::google::protobuf::Metadata Message::GetMetadata() const { ::google::protobuf::Metadata Message::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(&descriptor_table_message_2eproto_getter,
&descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once, &descriptor_table_message_2eproto_once,
file_level_metadata_message_2eproto[0]); file_level_metadata_message_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -454,4 +458,8 @@ namespace protobuf {
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::std::false_type _static_init_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_message_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"

View File

@@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message.proto // 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 #ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
@@ -11,17 +11,11 @@
#include <utility> #include <utility>
#include "google/protobuf/port_def.inc" #include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000 #if PROTOBUF_VERSION != 4026000
#error "This file was generated by a newer version of protoc which is" #error "Protobuf C++ gencode is built with an incompatible version of"
#error "incompatible with your Protocol Buffer headers. Please update" #error "Protobuf C++ headers/runtime. See"
#error "your headers." #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif // PROTOBUF_VERSION #endif
#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
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h" #include "google/protobuf/arena.h"
@@ -76,21 +70,18 @@ namespace header {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class Message final : class Message final : public ::google::protobuf::Message
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.header.Message) */ { /* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
public: public:
inline Message() : Message(nullptr) {} inline Message() : Message(nullptr) {}
~Message() override; ~Message() override;
template <typename = void> template <typename = void>
explicit PROTOBUF_CONSTEXPR Message(::google::protobuf::internal::ConstantInitialized); 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);
}
inline Message(const Message& from) : Message(nullptr, from) {}
inline Message(Message&& from) noexcept
: Message(nullptr, std::move(from)) {}
inline Message& operator=(const Message& from) { inline Message& operator=(const Message& from) {
CopyFrom(from); CopyFrom(from);
return *this; return *this;
@@ -134,17 +125,12 @@ class Message final :
return reinterpret_cast<const Message*>( return reinterpret_cast<const Message*>(
&_Message_default_instance_); &_Message_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages = 0;
0; friend void swap(Message& a, Message& b) { a.Swap(&b); }
friend void swap(Message& a, Message& b) {
a.Swap(&b);
}
inline void Swap(Message* other) { inline void Swap(Message* other) {
if (other == this) return; if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && if (GetArena() != nullptr && GetArena() == other->GetArena()) {
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP #else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) { if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@@ -162,16 +148,18 @@ class Message final :
// implements Message ---------------------------------------------- // implements Message ----------------------------------------------
Message* New(::google::protobuf::Arena* arena = nullptr) const final { 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; using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Message& from); void CopyFrom(const Message& from);
using ::google::protobuf::Message::MergeFrom; using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Message& from) { void MergeFrom(const Message& from) { Message::MergeImpl(*this, from); }
Message::MergeImpl(*this, from);
}
private: 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: public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final; bool IsInitialized() const final;
@@ -179,31 +167,33 @@ class Message final :
::size_t ByteSizeLong() const final; ::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize( ::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(); } int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private: private:
void SharedCtor(::google::protobuf::Arena* arena); void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor(); void SharedDtor();
void InternalSwap(Message* other); void InternalSwap(Message* other);
private: private:
friend class ::google::protobuf::internal::AnyMetadata; friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { static ::absl::string_view FullMessageName() { return "messages.header.Message"; }
return "messages.header.Message";
}
protected: protected:
explicit Message(::google::protobuf::Arena* arena); explicit Message(::google::protobuf::Arena* arena);
Message(::google::protobuf::Arena* arena, const Message& from); Message(::google::protobuf::Arena* arena, const Message& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final; Message(::google::protobuf::Arena* arena, Message&& from) noexcept
: Message(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public: public:
::google::protobuf::Metadata GetMetadata() const final; ::google::protobuf::Metadata GetMetadata() const final;
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kSenderUUIDFieldNumber = 3, kSenderUUIDFieldNumber = 3,
kPayloadFieldNumber = 5, kPayloadFieldNumber = 5,
@@ -264,7 +254,6 @@ class Message final :
// @@protoc_insertion_point(class_scope:messages.header.Message) // @@protoc_insertion_point(class_scope:messages.header.Message)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
3, 4, 1, 3, 4, 1,
@@ -277,7 +266,6 @@ class Message final :
using InternalArenaConstructable_ = void; using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void; using DestructorSkippable_ = void;
struct Impl_ { struct Impl_ {
inline explicit constexpr Impl_( inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept; ::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@@ -331,7 +319,6 @@ inline ::uint32_t Message::_internal_topic() const {
} }
inline void Message::_internal_set_topic(::uint32_t value) { inline void Message::_internal_set_topic(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.topic_ = value; _impl_.topic_ = value;
} }
@@ -354,7 +341,6 @@ inline ::uint32_t Message::_internal_msgtype() const {
} }
inline void Message::_internal_set_msgtype(::uint32_t value) { inline void Message::_internal_set_msgtype(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.msgtype_ = value; _impl_.msgtype_ = value;
} }
@@ -372,7 +358,6 @@ template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Message::set_senderuuid(Arg_&& arg, inline PROTOBUF_ALWAYS_INLINE void Message::set_senderuuid(Arg_&& arg,
Args_... args) { Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.senderuuid_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); _impl_.senderuuid_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.header.Message.senderUUID) // @@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) { inline void Message::_internal_set_senderuuid(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.senderuuid_.Set(value, GetArena()); _impl_.senderuuid_.Set(value, GetArena());
} }
inline std::string* Message::_internal_mutable_senderuuid() { inline std::string* Message::_internal_mutable_senderuuid() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.senderuuid_.Mutable( GetArena()); return _impl_.senderuuid_.Mutable( GetArena());
} }
inline std::string* Message::release_senderuuid() { 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() { inline ::google::protobuf::Any* Message::_internal_mutable_payload() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.payload_ == nullptr) { 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); _impl_.payload_ = reinterpret_cast<::google::protobuf::Any*>(p);
} }
return _impl_.payload_; return _impl_.payload_;
} }
inline ::google::protobuf::Any* Message::mutable_payload() ABSL_ATTRIBUTE_LIFETIME_BOUND { inline ::google::protobuf::Any* Message::mutable_payload() ABSL_ATTRIBUTE_LIFETIME_BOUND {
_impl_._has_bits_[0] |= 0x00000001u;
::google::protobuf::Any* _msg = _internal_mutable_payload(); ::google::protobuf::Any* _msg = _internal_mutable_payload();
// @@protoc_insertion_point(field_mutable:messages.header.Message.payload) // @@protoc_insertion_point(field_mutable:messages.header.Message.payload)
return _msg; return _msg;

View File

@@ -1,5 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ping.proto // source: ping.proto
// Protobuf C++ Version: 4.26.0-dev
#include "ping.pb.h" #include "ping.pb.h"
@@ -108,9 +109,6 @@ const ::_pbi::DescriptorTable descriptor_table_ping_2eproto = {
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_ping_2eproto_getter() { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_ping_2eproto_getter() {
return &descriptor_table_ping_2eproto; return &descriptor_table_ping_2eproto;
} }
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_ping_2eproto(&descriptor_table_ping_2eproto);
namespace messages { namespace messages {
namespace ping { namespace ping {
// =================================================================== // ===================================================================
@@ -150,12 +148,15 @@ inline void Ping::SharedDtor() {
const ::google::protobuf::MessageLite::ClassData* const ::google::protobuf::MessageLite::ClassData*
Ping::GetClassData() const { Ping::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
_data_ = { ClassDataFull _data_ = {
Ping::MergeImpl, {
nullptr, // OnDemandRegisterArenaDtor nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Ping, _impl_._cached_size_), PROTOBUF_FIELD_OFFSET(Ping, _impl_._cached_size_),
false,
},
&Ping::MergeImpl,
&Ping::kDescriptorMethods,
}; };
return &_data_; return &_data_;
} }
@@ -191,6 +192,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Ping::_table_ = {
offsetof(decltype(_table_), field_names), // no aux_entries offsetof(decltype(_table_), field_names), // no aux_entries
&_Ping_default_instance_._instance, &_Ping_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback ::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::messages::ping::Ping>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
// uint32 port = 2; // uint32 port = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Ping, _impl_.port_), 63>(), {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Ping, _impl_.port_), 63>(),
@@ -248,7 +252,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Ping::_table_ = {
} }
void Ping::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { void Ping::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<Ping*>(&to_msg); auto* const _this = static_cast<Ping*>(&to_msg);
auto& from = static_cast<const Ping&>(from_msg); auto& from = static_cast<const Ping&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.ping.Ping) // @@protoc_insertion_point(class_specific_merge_from_start:messages.ping.Ping)
@@ -257,7 +261,7 @@ void Ping::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protob
(void) cached_has_bits; (void) cached_has_bits;
if (from._internal_port() != 0) { if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port()); _this->_impl_.port_ = from._impl_.port_;
} }
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -280,8 +284,8 @@ void Ping::InternalSwap(Ping* PROTOBUF_RESTRICT other) {
} }
::google::protobuf::Metadata Ping::GetMetadata() const { ::google::protobuf::Metadata Ping::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(&descriptor_table_ping_2eproto_getter,
&descriptor_table_ping_2eproto_getter, &descriptor_table_ping_2eproto_once, &descriptor_table_ping_2eproto_once,
file_level_metadata_ping_2eproto[0]); file_level_metadata_ping_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -292,4 +296,8 @@ namespace protobuf {
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::std::false_type _static_init_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_ping_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"

View File

@@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ping.proto // source: ping.proto
// Protobuf C++ Version: 4.24.0-main // Protobuf C++ Version: 4.26.0-dev
#ifndef GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh #ifndef GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh
@@ -11,17 +11,11 @@
#include <utility> #include <utility>
#include "google/protobuf/port_def.inc" #include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000 #if PROTOBUF_VERSION != 4026000
#error "This file was generated by a newer version of protoc which is" #error "Protobuf C++ gencode is built with an incompatible version of"
#error "incompatible with your Protocol Buffer headers. Please update" #error "Protobuf C++ headers/runtime. See"
#error "your headers." #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif // PROTOBUF_VERSION #endif
#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
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h" #include "google/protobuf/arena.h"
@@ -75,21 +69,18 @@ namespace ping {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class Ping final : class Ping final : public ::google::protobuf::Message
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.ping.Ping) */ { /* @@protoc_insertion_point(class_definition:messages.ping.Ping) */ {
public: public:
inline Ping() : Ping(nullptr) {} inline Ping() : Ping(nullptr) {}
~Ping() override; ~Ping() override;
template <typename = void> template <typename = void>
explicit PROTOBUF_CONSTEXPR Ping(::google::protobuf::internal::ConstantInitialized); explicit PROTOBUF_CONSTEXPR Ping(
::google::protobuf::internal::ConstantInitialized);
inline Ping(const Ping& from)
: Ping(nullptr, from) {}
Ping(Ping&& from) noexcept
: Ping() {
*this = ::std::move(from);
}
inline Ping(const Ping& from) : Ping(nullptr, from) {}
inline Ping(Ping&& from) noexcept
: Ping(nullptr, std::move(from)) {}
inline Ping& operator=(const Ping& from) { inline Ping& operator=(const Ping& from) {
CopyFrom(from); CopyFrom(from);
return *this; return *this;
@@ -133,17 +124,12 @@ class Ping final :
return reinterpret_cast<const Ping*>( return reinterpret_cast<const Ping*>(
&_Ping_default_instance_); &_Ping_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages = 0;
0; friend void swap(Ping& a, Ping& b) { a.Swap(&b); }
friend void swap(Ping& a, Ping& b) {
a.Swap(&b);
}
inline void Swap(Ping* other) { inline void Swap(Ping* other) {
if (other == this) return; if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && if (GetArena() != nullptr && GetArena() == other->GetArena()) {
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP #else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) { if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@@ -161,16 +147,18 @@ class Ping final :
// implements Message ---------------------------------------------- // implements Message ----------------------------------------------
Ping* New(::google::protobuf::Arena* arena = nullptr) const final { Ping* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Ping>(arena); return ::google::protobuf::Message::DefaultConstruct<Ping>(arena);
} }
using ::google::protobuf::Message::CopyFrom; using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Ping& from); void CopyFrom(const Ping& from);
using ::google::protobuf::Message::MergeFrom; using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Ping& from) { void MergeFrom(const Ping& from) { Ping::MergeImpl(*this, from); }
Ping::MergeImpl(*this, from);
}
private: 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: public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final; bool IsInitialized() const final;
@@ -178,31 +166,33 @@ class Ping final :
::size_t ByteSizeLong() const final; ::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize( ::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(); } int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private: private:
void SharedCtor(::google::protobuf::Arena* arena); void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor(); void SharedDtor();
void InternalSwap(Ping* other); void InternalSwap(Ping* other);
private: private:
friend class ::google::protobuf::internal::AnyMetadata; friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { static ::absl::string_view FullMessageName() { return "messages.ping.Ping"; }
return "messages.ping.Ping";
}
protected: protected:
explicit Ping(::google::protobuf::Arena* arena); explicit Ping(::google::protobuf::Arena* arena);
Ping(::google::protobuf::Arena* arena, const Ping& from); Ping(::google::protobuf::Arena* arena, const Ping& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final; Ping(::google::protobuf::Arena* arena, Ping&& from) noexcept
: Ping(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public: public:
::google::protobuf::Metadata GetMetadata() const final; ::google::protobuf::Metadata GetMetadata() const final;
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kPortFieldNumber = 2, kPortFieldNumber = 2,
}; };
@@ -219,7 +209,6 @@ class Ping final :
// @@protoc_insertion_point(class_scope:messages.ping.Ping) // @@protoc_insertion_point(class_scope:messages.ping.Ping)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
0, 1, 0, 0, 1, 0,
@@ -232,7 +221,6 @@ class Ping final :
using InternalArenaConstructable_ = void; using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void; using DestructorSkippable_ = void;
struct Impl_ { struct Impl_ {
inline explicit constexpr Impl_( inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept; ::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@@ -282,7 +270,6 @@ inline ::uint32_t Ping::_internal_port() const {
} }
inline void Ping::_internal_set_port(::uint32_t value) { inline void Ping::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value; _impl_.port_ = value;
} }

View File

@@ -1,5 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pong.proto // source: pong.proto
// Protobuf C++ Version: 4.26.0-dev
#include "pong.pb.h" #include "pong.pb.h"
@@ -108,9 +109,6 @@ const ::_pbi::DescriptorTable descriptor_table_pong_2eproto = {
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_pong_2eproto_getter() { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_pong_2eproto_getter() {
return &descriptor_table_pong_2eproto; return &descriptor_table_pong_2eproto;
} }
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_pong_2eproto(&descriptor_table_pong_2eproto);
namespace messages { namespace messages {
namespace pong { namespace pong {
// =================================================================== // ===================================================================
@@ -150,12 +148,15 @@ inline void Pong::SharedDtor() {
const ::google::protobuf::MessageLite::ClassData* const ::google::protobuf::MessageLite::ClassData*
Pong::GetClassData() const { Pong::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
_data_ = { ClassDataFull _data_ = {
Pong::MergeImpl, {
nullptr, // OnDemandRegisterArenaDtor nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Pong, _impl_._cached_size_), PROTOBUF_FIELD_OFFSET(Pong, _impl_._cached_size_),
false,
},
&Pong::MergeImpl,
&Pong::kDescriptorMethods,
}; };
return &_data_; return &_data_;
} }
@@ -191,6 +192,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Pong::_table_ = {
offsetof(decltype(_table_), field_names), // no aux_entries offsetof(decltype(_table_), field_names), // no aux_entries
&_Pong_default_instance_._instance, &_Pong_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback ::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::messages::pong::Pong>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
// uint32 port = 1; // uint32 port = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Pong, _impl_.port_), 63>(), {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Pong, _impl_.port_), 63>(),
@@ -248,7 +252,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Pong::_table_ = {
} }
void Pong::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { void Pong::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<Pong*>(&to_msg); auto* const _this = static_cast<Pong*>(&to_msg);
auto& from = static_cast<const Pong&>(from_msg); auto& from = static_cast<const Pong&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.pong.Pong) // @@protoc_insertion_point(class_specific_merge_from_start:messages.pong.Pong)
@@ -257,7 +261,7 @@ void Pong::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protob
(void) cached_has_bits; (void) cached_has_bits;
if (from._internal_port() != 0) { if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port()); _this->_impl_.port_ = from._impl_.port_;
} }
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -280,8 +284,8 @@ void Pong::InternalSwap(Pong* PROTOBUF_RESTRICT other) {
} }
::google::protobuf::Metadata Pong::GetMetadata() const { ::google::protobuf::Metadata Pong::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(&descriptor_table_pong_2eproto_getter,
&descriptor_table_pong_2eproto_getter, &descriptor_table_pong_2eproto_once, &descriptor_table_pong_2eproto_once,
file_level_metadata_pong_2eproto[0]); file_level_metadata_pong_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -292,4 +296,8 @@ namespace protobuf {
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::std::false_type _static_init_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_pong_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"

View File

@@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pong.proto // source: pong.proto
// Protobuf C++ Version: 4.24.0-main // Protobuf C++ Version: 4.26.0-dev
#ifndef GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh #ifndef GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh
@@ -11,17 +11,11 @@
#include <utility> #include <utility>
#include "google/protobuf/port_def.inc" #include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000 #if PROTOBUF_VERSION != 4026000
#error "This file was generated by a newer version of protoc which is" #error "Protobuf C++ gencode is built with an incompatible version of"
#error "incompatible with your Protocol Buffer headers. Please update" #error "Protobuf C++ headers/runtime. See"
#error "your headers." #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif // PROTOBUF_VERSION #endif
#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
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h" #include "google/protobuf/arena.h"
@@ -75,21 +69,18 @@ namespace pong {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class Pong final : class Pong final : public ::google::protobuf::Message
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.pong.Pong) */ { /* @@protoc_insertion_point(class_definition:messages.pong.Pong) */ {
public: public:
inline Pong() : Pong(nullptr) {} inline Pong() : Pong(nullptr) {}
~Pong() override; ~Pong() override;
template <typename = void> template <typename = void>
explicit PROTOBUF_CONSTEXPR Pong(::google::protobuf::internal::ConstantInitialized); explicit PROTOBUF_CONSTEXPR Pong(
::google::protobuf::internal::ConstantInitialized);
inline Pong(const Pong& from)
: Pong(nullptr, from) {}
Pong(Pong&& from) noexcept
: Pong() {
*this = ::std::move(from);
}
inline Pong(const Pong& from) : Pong(nullptr, from) {}
inline Pong(Pong&& from) noexcept
: Pong(nullptr, std::move(from)) {}
inline Pong& operator=(const Pong& from) { inline Pong& operator=(const Pong& from) {
CopyFrom(from); CopyFrom(from);
return *this; return *this;
@@ -133,17 +124,12 @@ class Pong final :
return reinterpret_cast<const Pong*>( return reinterpret_cast<const Pong*>(
&_Pong_default_instance_); &_Pong_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages = 0;
0; friend void swap(Pong& a, Pong& b) { a.Swap(&b); }
friend void swap(Pong& a, Pong& b) {
a.Swap(&b);
}
inline void Swap(Pong* other) { inline void Swap(Pong* other) {
if (other == this) return; if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && if (GetArena() != nullptr && GetArena() == other->GetArena()) {
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP #else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) { if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@@ -161,16 +147,18 @@ class Pong final :
// implements Message ---------------------------------------------- // implements Message ----------------------------------------------
Pong* New(::google::protobuf::Arena* arena = nullptr) const final { Pong* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Pong>(arena); return ::google::protobuf::Message::DefaultConstruct<Pong>(arena);
} }
using ::google::protobuf::Message::CopyFrom; using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Pong& from); void CopyFrom(const Pong& from);
using ::google::protobuf::Message::MergeFrom; using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Pong& from) { void MergeFrom(const Pong& from) { Pong::MergeImpl(*this, from); }
Pong::MergeImpl(*this, from);
}
private: 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: public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final; bool IsInitialized() const final;
@@ -178,31 +166,33 @@ class Pong final :
::size_t ByteSizeLong() const final; ::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize( ::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(); } int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private: private:
void SharedCtor(::google::protobuf::Arena* arena); void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor(); void SharedDtor();
void InternalSwap(Pong* other); void InternalSwap(Pong* other);
private: private:
friend class ::google::protobuf::internal::AnyMetadata; friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { static ::absl::string_view FullMessageName() { return "messages.pong.Pong"; }
return "messages.pong.Pong";
}
protected: protected:
explicit Pong(::google::protobuf::Arena* arena); explicit Pong(::google::protobuf::Arena* arena);
Pong(::google::protobuf::Arena* arena, const Pong& from); Pong(::google::protobuf::Arena* arena, const Pong& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final; Pong(::google::protobuf::Arena* arena, Pong&& from) noexcept
: Pong(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public: public:
::google::protobuf::Metadata GetMetadata() const final; ::google::protobuf::Metadata GetMetadata() const final;
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kPortFieldNumber = 1, kPortFieldNumber = 1,
}; };
@@ -219,7 +209,6 @@ class Pong final :
// @@protoc_insertion_point(class_scope:messages.pong.Pong) // @@protoc_insertion_point(class_scope:messages.pong.Pong)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
0, 1, 0, 0, 1, 0,
@@ -232,7 +221,6 @@ class Pong final :
using InternalArenaConstructable_ = void; using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void; using DestructorSkippable_ = void;
struct Impl_ { struct Impl_ {
inline explicit constexpr Impl_( inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept; ::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@@ -282,7 +270,6 @@ inline ::uint32_t Pong::_internal_port() const {
} }
inline void Pong::_internal_set_port(::uint32_t value) { inline void Pong::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value; _impl_.port_ = value;
} }

View File

@@ -1,5 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stringData.proto // source: stringData.proto
// Protobuf C++ Version: 4.26.0-dev
#include "stringData.pb.h" #include "stringData.pb.h"
@@ -110,9 +111,6 @@ const ::_pbi::DescriptorTable descriptor_table_stringData_2eproto = {
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_stringData_2eproto_getter() { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_stringData_2eproto_getter() {
return &descriptor_table_stringData_2eproto; return &descriptor_table_stringData_2eproto;
} }
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_stringData_2eproto(&descriptor_table_stringData_2eproto);
namespace messages { namespace messages {
namespace stringData { namespace stringData {
// =================================================================== // ===================================================================
@@ -166,12 +164,15 @@ inline void StringData::SharedDtor() {
const ::google::protobuf::MessageLite::ClassData* const ::google::protobuf::MessageLite::ClassData*
StringData::GetClassData() const { StringData::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
_data_ = { ClassDataFull _data_ = {
StringData::MergeImpl, {
nullptr, // OnDemandRegisterArenaDtor nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(StringData, _impl_._cached_size_), PROTOBUF_FIELD_OFFSET(StringData, _impl_._cached_size_),
false,
},
&StringData::MergeImpl,
&StringData::kDescriptorMethods,
}; };
return &_data_; return &_data_;
} }
@@ -207,6 +208,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 43, 2> StringData::_table_ = {
offsetof(decltype(_table_), field_names), // no aux_entries offsetof(decltype(_table_), field_names), // no aux_entries
&_StringData_default_instance_._instance, &_StringData_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback ::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::messages::stringData::StringData>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
// string data = 1; // string data = 1;
{::_pbi::TcParser::FastUS1, {::_pbi::TcParser::FastUS1,
@@ -268,7 +272,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 43, 2> StringData::_table_ = {
} }
void StringData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { void StringData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<StringData*>(&to_msg); auto* const _this = static_cast<StringData*>(&to_msg);
auto& from = static_cast<const StringData&>(from_msg); auto& from = static_cast<const StringData&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.stringData.StringData) // @@protoc_insertion_point(class_specific_merge_from_start:messages.stringData.StringData)
@@ -302,8 +306,8 @@ void StringData::InternalSwap(StringData* PROTOBUF_RESTRICT other) {
} }
::google::protobuf::Metadata StringData::GetMetadata() const { ::google::protobuf::Metadata StringData::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(&descriptor_table_stringData_2eproto_getter,
&descriptor_table_stringData_2eproto_getter, &descriptor_table_stringData_2eproto_once, &descriptor_table_stringData_2eproto_once,
file_level_metadata_stringData_2eproto[0]); file_level_metadata_stringData_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -314,4 +318,8 @@ namespace protobuf {
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::std::false_type _static_init_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_stringData_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"

View File

@@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stringData.proto // source: stringData.proto
// Protobuf C++ Version: 4.24.0-main // Protobuf C++ Version: 4.26.0-dev
#ifndef GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh #ifndef GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh
@@ -11,17 +11,11 @@
#include <utility> #include <utility>
#include "google/protobuf/port_def.inc" #include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000 #if PROTOBUF_VERSION != 4026000
#error "This file was generated by a newer version of protoc which is" #error "Protobuf C++ gencode is built with an incompatible version of"
#error "incompatible with your Protocol Buffer headers. Please update" #error "Protobuf C++ headers/runtime. See"
#error "your headers." #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif // PROTOBUF_VERSION #endif
#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
#include "google/protobuf/port_undef.inc" #include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h" #include "google/protobuf/arena.h"
@@ -75,21 +69,18 @@ namespace stringData {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class StringData final : class StringData final : public ::google::protobuf::Message
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.stringData.StringData) */ { /* @@protoc_insertion_point(class_definition:messages.stringData.StringData) */ {
public: public:
inline StringData() : StringData(nullptr) {} inline StringData() : StringData(nullptr) {}
~StringData() override; ~StringData() override;
template <typename = void> template <typename = void>
explicit PROTOBUF_CONSTEXPR StringData(::google::protobuf::internal::ConstantInitialized); explicit PROTOBUF_CONSTEXPR StringData(
::google::protobuf::internal::ConstantInitialized);
inline StringData(const StringData& from)
: StringData(nullptr, from) {}
StringData(StringData&& from) noexcept
: StringData() {
*this = ::std::move(from);
}
inline StringData(const StringData& from) : StringData(nullptr, from) {}
inline StringData(StringData&& from) noexcept
: StringData(nullptr, std::move(from)) {}
inline StringData& operator=(const StringData& from) { inline StringData& operator=(const StringData& from) {
CopyFrom(from); CopyFrom(from);
return *this; return *this;
@@ -133,17 +124,12 @@ class StringData final :
return reinterpret_cast<const StringData*>( return reinterpret_cast<const StringData*>(
&_StringData_default_instance_); &_StringData_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages = 0;
0; friend void swap(StringData& a, StringData& b) { a.Swap(&b); }
friend void swap(StringData& a, StringData& b) {
a.Swap(&b);
}
inline void Swap(StringData* other) { inline void Swap(StringData* other) {
if (other == this) return; if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && if (GetArena() != nullptr && GetArena() == other->GetArena()) {
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP #else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) { if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@@ -161,16 +147,18 @@ class StringData final :
// implements Message ---------------------------------------------- // implements Message ----------------------------------------------
StringData* New(::google::protobuf::Arena* arena = nullptr) const final { StringData* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<StringData>(arena); return ::google::protobuf::Message::DefaultConstruct<StringData>(arena);
} }
using ::google::protobuf::Message::CopyFrom; using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const StringData& from); void CopyFrom(const StringData& from);
using ::google::protobuf::Message::MergeFrom; using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const StringData& from) { void MergeFrom(const StringData& from) { StringData::MergeImpl(*this, from); }
StringData::MergeImpl(*this, from);
}
private: 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: public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final; bool IsInitialized() const final;
@@ -178,31 +166,33 @@ class StringData final :
::size_t ByteSizeLong() const final; ::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize( ::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(); } int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private: private:
void SharedCtor(::google::protobuf::Arena* arena); void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor(); void SharedDtor();
void InternalSwap(StringData* other); void InternalSwap(StringData* other);
private: private:
friend class ::google::protobuf::internal::AnyMetadata; friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { static ::absl::string_view FullMessageName() { return "messages.stringData.StringData"; }
return "messages.stringData.StringData";
}
protected: protected:
explicit StringData(::google::protobuf::Arena* arena); explicit StringData(::google::protobuf::Arena* arena);
StringData(::google::protobuf::Arena* arena, const StringData& from); StringData(::google::protobuf::Arena* arena, const StringData& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final; StringData(::google::protobuf::Arena* arena, StringData&& from) noexcept
: StringData(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public: public:
::google::protobuf::Metadata GetMetadata() const final; ::google::protobuf::Metadata GetMetadata() const final;
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kDataFieldNumber = 1, kDataFieldNumber = 1,
}; };
@@ -225,7 +215,6 @@ class StringData final :
// @@protoc_insertion_point(class_scope:messages.stringData.StringData) // @@protoc_insertion_point(class_scope:messages.stringData.StringData)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
0, 1, 0, 0, 1, 0,
@@ -238,7 +227,6 @@ class StringData final :
using InternalArenaConstructable_ = void; using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void; using DestructorSkippable_ = void;
struct Impl_ { struct Impl_ {
inline explicit constexpr Impl_( inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept; ::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@@ -283,7 +271,6 @@ template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void StringData::set_data(Arg_&& arg, inline PROTOBUF_ALWAYS_INLINE void StringData::set_data(Arg_&& arg,
Args_... args) { Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.data_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); _impl_.data_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.stringData.StringData.data) // @@protoc_insertion_point(field_set:messages.stringData.StringData.data)
} }
@@ -298,12 +285,10 @@ inline const std::string& StringData::_internal_data() const {
} }
inline void StringData::_internal_set_data(const std::string& value) { inline void StringData::_internal_set_data(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.data_.Set(value, GetArena()); _impl_.data_.Set(value, GetArena());
} }
inline std::string* StringData::_internal_mutable_data() { inline std::string* StringData::_internal_mutable_data() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.data_.Mutable( GetArena()); return _impl_.data_.Mutable( GetArena());
} }
inline std::string* StringData::release_data() { inline std::string* StringData::release_data() {