UPDATE: change to submodule for protobuf and zmq libs

This commit is contained in:
Henry Winkel
2023-11-07 10:22:14 +01:00
parent 36bd28620d
commit e41cbd8a82
3414 changed files with 2325 additions and 1038133 deletions

View File

@@ -4,274 +4,300 @@
#include "join.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace messages {
namespace join {
PROTOBUF_CONSTEXPR Join::Join(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.srcaddress_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.port_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
inline constexpr Join::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: srcaddress_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
port_{0u},
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR Join::Join(::_pbi::ConstantInitialized)
: _impl_(::_pbi::ConstantInitialized()) {}
struct JoinDefaultTypeInternal {
PROTOBUF_CONSTEXPR JoinDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR JoinDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~JoinDefaultTypeInternal() {}
union {
Join _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JoinDefaultTypeInternal _Join_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JoinDefaultTypeInternal _Join_default_instance_;
} // namespace join
} // namespace messages
static ::_pb::Metadata file_level_metadata_join_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_join_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_join_2eproto = nullptr;
const uint32_t TableStruct_join_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _impl_.port_),
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _impl_.srcaddress_),
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_join_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_join_2eproto = nullptr;
const ::uint32_t
TableStruct_join_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _impl_.port_),
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _impl_.srcaddress_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::join::Join)},
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::messages::join::Join)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::join::_Join_default_instance_._instance,
&::messages::join::_Join_default_instance_._instance,
};
const char descriptor_table_protodef_join_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\njoin.proto\022\rmessages.join\"(\n\004Join\022\014\n\004p"
"ort\030\001 \001(\r\022\022\n\nsrcAddress\030\002 \001(\tb\006proto3"
;
static ::_pbi::once_flag descriptor_table_join_2eproto_once;
const char descriptor_table_protodef_join_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\njoin.proto\022\rmessages.join\"(\n\004Join\022\014\n\004p"
"ort\030\001 \001(\r\022\022\n\nsrcAddress\030\002 \001(\tb\006proto3"
};
static ::absl::once_flag descriptor_table_join_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_join_2eproto = {
false, false, 77, descriptor_table_protodef_join_2eproto,
false,
false,
77,
descriptor_table_protodef_join_2eproto,
"join.proto",
&descriptor_table_join_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_join_2eproto::offsets,
file_level_metadata_join_2eproto, file_level_enum_descriptors_join_2eproto,
&descriptor_table_join_2eproto_once,
nullptr,
0,
1,
schemas,
file_default_instances,
TableStruct_join_2eproto::offsets,
file_level_metadata_join_2eproto,
file_level_enum_descriptors_join_2eproto,
file_level_service_descriptors_join_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_join_2eproto_getter() {
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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_join_2eproto(&descriptor_table_join_2eproto);
namespace messages {
namespace join {
// ===================================================================
class Join::_Internal {
public:
};
Join::Join(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
Join::Join(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:messages.join.Join)
}
Join::Join(const Join& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Join* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.srcaddress_){}
, decltype(_impl_.port_){}
, /*decltype(_impl_._cached_size_)*/{}};
inline PROTOBUF_NDEBUG_INLINE Join::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from)
: srcaddress_(arena, from.srcaddress_),
_cached_size_{0} {}
Join::Join(
::google::protobuf::Arena* arena,
const Join& from)
: ::google::protobuf::Message(arena) {
Join* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
_impl_.port_ = from._impl_.port_;
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.srcaddress_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.srcaddress_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_srcaddress().empty()) {
_this->_impl_.srcaddress_.Set(from._internal_srcaddress(),
_this->GetArenaForAllocation());
}
_this->_impl_.port_ = from._impl_.port_;
// @@protoc_insertion_point(copy_constructor:messages.join.Join)
}
inline PROTOBUF_NDEBUG_INLINE Join::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: srcaddress_(arena),
_cached_size_{0} {}
inline void Join::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.srcaddress_){}
, decltype(_impl_.port_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.srcaddress_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.srcaddress_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void Join::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.port_ = {};
}
Join::~Join() {
// @@protoc_insertion_point(destructor:messages.join.Join)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void Join::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ABSL_DCHECK(GetArena() == nullptr);
_impl_.srcaddress_.Destroy();
_impl_.~Impl_();
}
void Join::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
const ::google::protobuf::MessageLite::ClassData*
Join::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData
_data_ = {
Join::MergeImpl,
nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Join, _impl_._cached_size_),
};
return &_data_;
}
void Join::Clear() {
PROTOBUF_NOINLINE void Join::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.join.Join)
uint32_t cached_has_bits = 0;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.srcaddress_.ClearToEmpty();
_impl_.port_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* Join::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 port = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string srcAddress = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_srcaddress();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "messages.join.Join.srcAddress"));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
const char* Join::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Join::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 0, 37, 2> Join::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_Join_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string srcAddress = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Join, _impl_.srcaddress_)}},
// uint32 port = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Join, _impl_.port_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(Join, _impl_.port_)}},
}}, {{
65535, 65535
}}, {{
// uint32 port = 1;
{PROTOBUF_FIELD_OFFSET(Join, _impl_.port_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// string srcAddress = 2;
{PROTOBUF_FIELD_OFFSET(Join, _impl_.srcaddress_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\22\0\12\0\0\0\0\0"
"messages.join.Join"
"srcAddress"
}},
};
::uint8_t* Join::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.join.Join)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 port = 1;
if (this->_internal_port() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_port(), target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_port(), target);
}
// string srcAddress = 2;
if (!this->_internal_srcaddress().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_srcaddress().data(), static_cast<int>(this->_internal_srcaddress().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"messages.join.Join.srcAddress");
target = stream->WriteStringMaybeAliased(
2, this->_internal_srcaddress(), target);
const std::string& _s = this->_internal_srcaddress();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.join.Join.srcAddress");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:messages.join.Join)
return target;
}
size_t Join::ByteSizeLong() const {
::size_t Join::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.join.Join)
size_t total_size = 0;
::size_t total_size = 0;
uint32_t cached_has_bits = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string srcAddress = 2;
if (!this->_internal_srcaddress().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_srcaddress());
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_srcaddress());
}
// uint32 port = 1;
if (this->_internal_port() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_port());
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_port());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Join::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Join::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Join::GetClassData() const { return &_class_data_; }
void Join::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
void Join::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<Join*>(&to_msg);
auto& from = static_cast<const Join&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.join.Join)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_srcaddress().empty()) {
@@ -280,7 +306,7 @@ void Join::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_
if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void Join::CopyFrom(const Join& from) {
@@ -290,37 +316,30 @@ void Join::CopyFrom(const Join& from) {
MergeFrom(from);
}
bool Join::IsInitialized() const {
PROTOBUF_NOINLINE bool Join::IsInitialized() const {
return true;
}
void Join::InternalSwap(Join* other) {
void Join::InternalSwap(Join* PROTOBUF_RESTRICT other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.srcaddress_, lhs_arena,
&other->_impl_.srcaddress_, rhs_arena
);
swap(_impl_.port_, other->_impl_.port_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.srcaddress_, &other->_impl_.srcaddress_, arena);
swap(_impl_.port_, other->_impl_.port_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Join::GetMetadata() const {
::google::protobuf::Metadata Join::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_join_2eproto_getter, &descriptor_table_join_2eproto_once,
file_level_metadata_join_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace join
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::join::Join*
Arena::CreateMaybeMessage< ::messages::join::Join >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::join::Join >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#include "google/protobuf/port_undef.inc"

View File

@@ -1,49 +1,60 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: join.proto
// Protobuf C++ Version: 4.24.0-main
#ifndef GOOGLE_PROTOBUF_INCLUDED_join_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_join_2eproto
#ifndef GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include "google/protobuf/port_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
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#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/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_join_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_join_2eproto {
static const uint32_t offsets[];
static const ::uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_join_2eproto;
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_join_2eproto;
namespace messages {
namespace join {
class Join;
@@ -51,22 +62,29 @@ struct JoinDefaultTypeInternal;
extern JoinDefaultTypeInternal _Join_default_instance_;
} // namespace join
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::join::Join* Arena::CreateMaybeMessage<::messages::join::Join>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace messages {
namespace join {
// ===================================================================
// -------------------------------------------------------------------
class Join final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.join.Join) */ {
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.join.Join) */ {
public:
inline Join() : Join(nullptr) {}
~Join() override;
explicit PROTOBUF_CONSTEXPR Join(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
template<typename = void>
explicit PROTOBUF_CONSTEXPR Join(::google::protobuf::internal::ConstantInitialized);
Join(const Join& from);
inline Join(const Join& from)
: Join(nullptr, from) {}
Join(Join&& from) noexcept
: Join() {
*this = ::std::move(from);
@@ -78,9 +96,9 @@ class Join final :
}
inline Join& operator=(Join&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@@ -90,13 +108,22 @@ class Join final :
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Join& default_instance() {
@@ -115,65 +142,62 @@ class Join final :
inline void Swap(Join* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Join* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Join* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
Join* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Join>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Join& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Join& from) {
Join::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Join* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "messages.join.Join";
}
protected:
explicit Join(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
explicit Join(::google::protobuf::Arena* arena);
Join(::google::protobuf::Arena* arena, const Join& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -184,134 +208,166 @@ class Join final :
kPortFieldNumber = 1,
};
// string srcAddress = 2;
void clear_srcaddress();
void clear_srcaddress() ;
const std::string& srcaddress() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_srcaddress(ArgT0&& arg0, ArgT... args);
template <typename Arg_ = const std::string&, typename... Args_>
void set_srcaddress(Arg_&& arg, Args_... args);
std::string* mutable_srcaddress();
PROTOBUF_NODISCARD std::string* release_srcaddress();
void set_allocated_srcaddress(std::string* srcaddress);
void set_allocated_srcaddress(std::string* value);
private:
const std::string& _internal_srcaddress() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_srcaddress(const std::string& value);
inline PROTOBUF_ALWAYS_INLINE void _internal_set_srcaddress(
const std::string& value);
std::string* _internal_mutable_srcaddress();
public:
public:
// uint32 port = 1;
void clear_port();
uint32_t port() const;
void set_port(uint32_t value);
private:
uint32_t _internal_port() const;
void _internal_set_port(uint32_t value);
public:
void clear_port() ;
::uint32_t port() const;
void set_port(::uint32_t value);
private:
::uint32_t _internal_port() const;
void _internal_set_port(::uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.join.Join)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
1, 2, 0,
37, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr srcaddress_;
uint32_t port_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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::ArenaStringPtr srcaddress_;
::uint32_t port_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_join_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Join
// uint32 port = 1;
inline void Join::clear_port() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.port_ = 0u;
}
inline uint32_t Join::_internal_port() const {
return _impl_.port_;
}
inline uint32_t Join::port() const {
inline ::uint32_t Join::port() const {
// @@protoc_insertion_point(field_get:messages.join.Join.port)
return _internal_port();
}
inline void Join::_internal_set_port(uint32_t value) {
_impl_.port_ = value;
}
inline void Join::set_port(uint32_t value) {
inline void Join::set_port(::uint32_t value) {
_internal_set_port(value);
// @@protoc_insertion_point(field_set:messages.join.Join.port)
}
inline ::uint32_t Join::_internal_port() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.port_;
}
inline void Join::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value;
}
// string srcAddress = 2;
inline void Join::clear_srcaddress() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.srcaddress_.ClearToEmpty();
}
inline const std::string& Join::srcaddress() const {
inline const std::string& Join::srcaddress() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:messages.join.Join.srcAddress)
return _internal_srcaddress();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Join::set_srcaddress(ArgT0&& arg0, ArgT... args) {
_impl_.srcaddress_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Join::set_srcaddress(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.join.Join.srcAddress)
}
inline std::string* Join::mutable_srcaddress() {
inline std::string* Join::mutable_srcaddress() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_srcaddress();
// @@protoc_insertion_point(field_mutable:messages.join.Join.srcAddress)
return _s;
}
inline const std::string& Join::_internal_srcaddress() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.srcaddress_.Get();
}
inline void Join::_internal_set_srcaddress(const std::string& value) {
_impl_.srcaddress_.Set(value, GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(value, GetArena());
}
inline std::string* Join::_internal_mutable_srcaddress() {
return _impl_.srcaddress_.Mutable(GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.srcaddress_.Mutable( GetArena());
}
inline std::string* Join::release_srcaddress() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:messages.join.Join.srcAddress)
return _impl_.srcaddress_.Release();
}
inline void Join::set_allocated_srcaddress(std::string* srcaddress) {
if (srcaddress != nullptr) {
} else {
}
_impl_.srcaddress_.SetAllocated(srcaddress, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.srcaddress_.IsDefault()) {
_impl_.srcaddress_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void Join::set_allocated_srcaddress(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.srcaddress_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.srcaddress_.IsDefault()) {
_impl_.srcaddress_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:messages.join.Join.srcAddress)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace join
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_join_2eproto
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh

View File

@@ -4,274 +4,300 @@
#include "leave.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace messages {
namespace leave {
PROTOBUF_CONSTEXPR Leave::Leave(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.srcaddress_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.port_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
inline constexpr Leave::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: srcaddress_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
port_{0u},
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR Leave::Leave(::_pbi::ConstantInitialized)
: _impl_(::_pbi::ConstantInitialized()) {}
struct LeaveDefaultTypeInternal {
PROTOBUF_CONSTEXPR LeaveDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR LeaveDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LeaveDefaultTypeInternal() {}
union {
Leave _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LeaveDefaultTypeInternal _Leave_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LeaveDefaultTypeInternal _Leave_default_instance_;
} // namespace leave
} // namespace messages
static ::_pb::Metadata file_level_metadata_leave_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_leave_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_leave_2eproto = nullptr;
const uint32_t TableStruct_leave_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _impl_.port_),
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _impl_.srcaddress_),
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_leave_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_leave_2eproto = nullptr;
const ::uint32_t
TableStruct_leave_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _impl_.port_),
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _impl_.srcaddress_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::leave::Leave)},
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::messages::leave::Leave)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::leave::_Leave_default_instance_._instance,
&::messages::leave::_Leave_default_instance_._instance,
};
const char descriptor_table_protodef_leave_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\013leave.proto\022\016messages.leave\")\n\005Leave\022\014"
"\n\004port\030\001 \001(\r\022\022\n\nsrcAddress\030\002 \001(\tb\006proto3"
;
static ::_pbi::once_flag descriptor_table_leave_2eproto_once;
const char descriptor_table_protodef_leave_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\013leave.proto\022\016messages.leave\")\n\005Leave\022\014"
"\n\004port\030\001 \001(\r\022\022\n\nsrcAddress\030\002 \001(\tb\006proto3"
};
static ::absl::once_flag descriptor_table_leave_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_leave_2eproto = {
false, false, 80, descriptor_table_protodef_leave_2eproto,
false,
false,
80,
descriptor_table_protodef_leave_2eproto,
"leave.proto",
&descriptor_table_leave_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_leave_2eproto::offsets,
file_level_metadata_leave_2eproto, file_level_enum_descriptors_leave_2eproto,
&descriptor_table_leave_2eproto_once,
nullptr,
0,
1,
schemas,
file_default_instances,
TableStruct_leave_2eproto::offsets,
file_level_metadata_leave_2eproto,
file_level_enum_descriptors_leave_2eproto,
file_level_service_descriptors_leave_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_leave_2eproto_getter() {
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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_leave_2eproto(&descriptor_table_leave_2eproto);
namespace messages {
namespace leave {
// ===================================================================
class Leave::_Internal {
public:
};
Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
Leave::Leave(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:messages.leave.Leave)
}
Leave::Leave(const Leave& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Leave* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.srcaddress_){}
, decltype(_impl_.port_){}
, /*decltype(_impl_._cached_size_)*/{}};
inline PROTOBUF_NDEBUG_INLINE Leave::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from)
: srcaddress_(arena, from.srcaddress_),
_cached_size_{0} {}
Leave::Leave(
::google::protobuf::Arena* arena,
const Leave& from)
: ::google::protobuf::Message(arena) {
Leave* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
_impl_.port_ = from._impl_.port_;
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.srcaddress_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.srcaddress_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_srcaddress().empty()) {
_this->_impl_.srcaddress_.Set(from._internal_srcaddress(),
_this->GetArenaForAllocation());
}
_this->_impl_.port_ = from._impl_.port_;
// @@protoc_insertion_point(copy_constructor:messages.leave.Leave)
}
inline PROTOBUF_NDEBUG_INLINE Leave::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: srcaddress_(arena),
_cached_size_{0} {}
inline void Leave::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.srcaddress_){}
, decltype(_impl_.port_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.srcaddress_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.srcaddress_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void Leave::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.port_ = {};
}
Leave::~Leave() {
// @@protoc_insertion_point(destructor:messages.leave.Leave)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void Leave::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ABSL_DCHECK(GetArena() == nullptr);
_impl_.srcaddress_.Destroy();
_impl_.~Impl_();
}
void Leave::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
const ::google::protobuf::MessageLite::ClassData*
Leave::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData
_data_ = {
Leave::MergeImpl,
nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Leave, _impl_._cached_size_),
};
return &_data_;
}
void Leave::Clear() {
PROTOBUF_NOINLINE void Leave::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.leave.Leave)
uint32_t cached_has_bits = 0;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.srcaddress_.ClearToEmpty();
_impl_.port_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* Leave::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 port = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string srcAddress = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_srcaddress();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "messages.leave.Leave.srcAddress"));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
const char* Leave::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Leave::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 0, 39, 2> Leave::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_Leave_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string srcAddress = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Leave, _impl_.srcaddress_)}},
// uint32 port = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Leave, _impl_.port_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(Leave, _impl_.port_)}},
}}, {{
65535, 65535
}}, {{
// uint32 port = 1;
{PROTOBUF_FIELD_OFFSET(Leave, _impl_.port_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// string srcAddress = 2;
{PROTOBUF_FIELD_OFFSET(Leave, _impl_.srcaddress_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\24\0\12\0\0\0\0\0"
"messages.leave.Leave"
"srcAddress"
}},
};
::uint8_t* Leave::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.leave.Leave)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 port = 1;
if (this->_internal_port() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_port(), target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_port(), target);
}
// string srcAddress = 2;
if (!this->_internal_srcaddress().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_srcaddress().data(), static_cast<int>(this->_internal_srcaddress().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"messages.leave.Leave.srcAddress");
target = stream->WriteStringMaybeAliased(
2, this->_internal_srcaddress(), target);
const std::string& _s = this->_internal_srcaddress();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.leave.Leave.srcAddress");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:messages.leave.Leave)
return target;
}
size_t Leave::ByteSizeLong() const {
::size_t Leave::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.leave.Leave)
size_t total_size = 0;
::size_t total_size = 0;
uint32_t cached_has_bits = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string srcAddress = 2;
if (!this->_internal_srcaddress().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_srcaddress());
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_srcaddress());
}
// uint32 port = 1;
if (this->_internal_port() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_port());
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_port());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Leave::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
void Leave::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<Leave*>(&to_msg);
auto& from = static_cast<const Leave&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.leave.Leave)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_srcaddress().empty()) {
@@ -280,7 +306,7 @@ void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF
if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void Leave::CopyFrom(const Leave& from) {
@@ -290,37 +316,30 @@ void Leave::CopyFrom(const Leave& from) {
MergeFrom(from);
}
bool Leave::IsInitialized() const {
PROTOBUF_NOINLINE bool Leave::IsInitialized() const {
return true;
}
void Leave::InternalSwap(Leave* other) {
void Leave::InternalSwap(Leave* PROTOBUF_RESTRICT other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.srcaddress_, lhs_arena,
&other->_impl_.srcaddress_, rhs_arena
);
swap(_impl_.port_, other->_impl_.port_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.srcaddress_, &other->_impl_.srcaddress_, arena);
swap(_impl_.port_, other->_impl_.port_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
::google::protobuf::Metadata Leave::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_leave_2eproto_getter, &descriptor_table_leave_2eproto_once,
file_level_metadata_leave_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace leave
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::leave::Leave*
Arena::CreateMaybeMessage< ::messages::leave::Leave >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::leave::Leave >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#include "google/protobuf/port_undef.inc"

View File

@@ -1,49 +1,60 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: leave.proto
// Protobuf C++ Version: 4.24.0-main
#ifndef GOOGLE_PROTOBUF_INCLUDED_leave_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_leave_2eproto
#ifndef GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include "google/protobuf/port_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
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#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/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_leave_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_leave_2eproto {
static const uint32_t offsets[];
static const ::uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_leave_2eproto;
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_leave_2eproto;
namespace messages {
namespace leave {
class Leave;
@@ -51,22 +62,29 @@ struct LeaveDefaultTypeInternal;
extern LeaveDefaultTypeInternal _Leave_default_instance_;
} // namespace leave
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::leave::Leave* Arena::CreateMaybeMessage<::messages::leave::Leave>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace messages {
namespace leave {
// ===================================================================
// -------------------------------------------------------------------
class Leave final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.leave.Leave) */ {
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.leave.Leave) */ {
public:
inline Leave() : Leave(nullptr) {}
~Leave() override;
explicit PROTOBUF_CONSTEXPR Leave(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
template<typename = void>
explicit PROTOBUF_CONSTEXPR Leave(::google::protobuf::internal::ConstantInitialized);
Leave(const Leave& from);
inline Leave(const Leave& from)
: Leave(nullptr, from) {}
Leave(Leave&& from) noexcept
: Leave() {
*this = ::std::move(from);
@@ -78,9 +96,9 @@ class Leave final :
}
inline Leave& operator=(Leave&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@@ -90,13 +108,22 @@ class Leave final :
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Leave& default_instance() {
@@ -115,65 +142,62 @@ class Leave final :
inline void Swap(Leave* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Leave* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Leave* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
Leave* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Leave>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Leave& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Leave& from) {
Leave::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Leave* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "messages.leave.Leave";
}
protected:
explicit Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
explicit Leave(::google::protobuf::Arena* arena);
Leave(::google::protobuf::Arena* arena, const Leave& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -184,134 +208,166 @@ class Leave final :
kPortFieldNumber = 1,
};
// string srcAddress = 2;
void clear_srcaddress();
void clear_srcaddress() ;
const std::string& srcaddress() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_srcaddress(ArgT0&& arg0, ArgT... args);
template <typename Arg_ = const std::string&, typename... Args_>
void set_srcaddress(Arg_&& arg, Args_... args);
std::string* mutable_srcaddress();
PROTOBUF_NODISCARD std::string* release_srcaddress();
void set_allocated_srcaddress(std::string* srcaddress);
void set_allocated_srcaddress(std::string* value);
private:
const std::string& _internal_srcaddress() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_srcaddress(const std::string& value);
inline PROTOBUF_ALWAYS_INLINE void _internal_set_srcaddress(
const std::string& value);
std::string* _internal_mutable_srcaddress();
public:
public:
// uint32 port = 1;
void clear_port();
uint32_t port() const;
void set_port(uint32_t value);
private:
uint32_t _internal_port() const;
void _internal_set_port(uint32_t value);
public:
void clear_port() ;
::uint32_t port() const;
void set_port(::uint32_t value);
private:
::uint32_t _internal_port() const;
void _internal_set_port(::uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.leave.Leave)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
1, 2, 0,
39, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr srcaddress_;
uint32_t port_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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::ArenaStringPtr srcaddress_;
::uint32_t port_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_leave_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Leave
// uint32 port = 1;
inline void Leave::clear_port() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.port_ = 0u;
}
inline uint32_t Leave::_internal_port() const {
return _impl_.port_;
}
inline uint32_t Leave::port() const {
inline ::uint32_t Leave::port() const {
// @@protoc_insertion_point(field_get:messages.leave.Leave.port)
return _internal_port();
}
inline void Leave::_internal_set_port(uint32_t value) {
_impl_.port_ = value;
}
inline void Leave::set_port(uint32_t value) {
inline void Leave::set_port(::uint32_t value) {
_internal_set_port(value);
// @@protoc_insertion_point(field_set:messages.leave.Leave.port)
}
inline ::uint32_t Leave::_internal_port() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.port_;
}
inline void Leave::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value;
}
// string srcAddress = 2;
inline void Leave::clear_srcaddress() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.srcaddress_.ClearToEmpty();
}
inline const std::string& Leave::srcaddress() const {
inline const std::string& Leave::srcaddress() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:messages.leave.Leave.srcAddress)
return _internal_srcaddress();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Leave::set_srcaddress(ArgT0&& arg0, ArgT... args) {
_impl_.srcaddress_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Leave::set_srcaddress(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.leave.Leave.srcAddress)
}
inline std::string* Leave::mutable_srcaddress() {
inline std::string* Leave::mutable_srcaddress() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_srcaddress();
// @@protoc_insertion_point(field_mutable:messages.leave.Leave.srcAddress)
return _s;
}
inline const std::string& Leave::_internal_srcaddress() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.srcaddress_.Get();
}
inline void Leave::_internal_set_srcaddress(const std::string& value) {
_impl_.srcaddress_.Set(value, GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.srcaddress_.Set(value, GetArena());
}
inline std::string* Leave::_internal_mutable_srcaddress() {
return _impl_.srcaddress_.Mutable(GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.srcaddress_.Mutable( GetArena());
}
inline std::string* Leave::release_srcaddress() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:messages.leave.Leave.srcAddress)
return _impl_.srcaddress_.Release();
}
inline void Leave::set_allocated_srcaddress(std::string* srcaddress) {
if (srcaddress != nullptr) {
} else {
}
_impl_.srcaddress_.SetAllocated(srcaddress, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.srcaddress_.IsDefault()) {
_impl_.srcaddress_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void Leave::set_allocated_srcaddress(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.srcaddress_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.srcaddress_.IsDefault()) {
_impl_.srcaddress_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:messages.leave.Leave.srcAddress)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace leave
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_leave_2eproto
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh

View File

@@ -4,359 +4,406 @@
#include "message.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace messages {
namespace header {
PROTOBUF_CONSTEXPR Message::Message(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.senderuuid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.payload_)*/nullptr
, /*decltype(_impl_.topic_)*/0u
, /*decltype(_impl_.msgtype_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
inline constexpr Message::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
senderuuid_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
payload_{nullptr},
topic_{0u},
msgtype_{0u} {}
template <typename>
PROTOBUF_CONSTEXPR Message::Message(::_pbi::ConstantInitialized)
: _impl_(::_pbi::ConstantInitialized()) {}
struct MessageDefaultTypeInternal {
PROTOBUF_CONSTEXPR MessageDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR MessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~MessageDefaultTypeInternal() {}
union {
Message _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageDefaultTypeInternal _Message_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageDefaultTypeInternal _Message_default_instance_;
} // namespace header
} // namespace messages
static ::_pb::Metadata file_level_metadata_message_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_message_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_message_2eproto = nullptr;
const uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.topic_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.msgtype_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.senderuuid_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.payload_),
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_message_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_message_2eproto = nullptr;
const ::uint32_t
TableStruct_message_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.topic_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.msgtype_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.senderuuid_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.payload_),
~0u,
~0u,
~0u,
0,
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::header::Message)},
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, 12, -1, sizeof(::messages::header::Message)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::header::_Message_default_instance_._instance,
&::messages::header::_Message_default_instance_._instance,
};
const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\rmessage.proto\022\017messages.header\032\031google"
"/protobuf/any.proto\"d\n\007Message\022\r\n\005topic\030"
"\001 \001(\r\022\017\n\007msgType\030\002 \001(\r\022\022\n\nsenderUUID\030\003 \001"
"(\t\022%\n\007payload\030\005 \001(\0132\024.google.protobuf.An"
"yb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_message_2eproto_deps[1] = {
&::descriptor_table_google_2fprotobuf_2fany_2eproto,
const char descriptor_table_protodef_message_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\rmessage.proto\022\017messages.header\032\031google"
"/protobuf/any.proto\"d\n\007Message\022\r\n\005topic\030"
"\001 \001(\r\022\017\n\007msgType\030\002 \001(\r\022\022\n\nsenderUUID\030\003 \001"
"(\t\022%\n\007payload\030\005 \001(\0132\024.google.protobuf.An"
"yb\006proto3"
};
static ::_pbi::once_flag descriptor_table_message_2eproto_once;
static const ::_pbi::DescriptorTable* const descriptor_table_message_2eproto_deps[1] =
{
&::descriptor_table_google_2fprotobuf_2fany_2eproto,
};
static ::absl::once_flag descriptor_table_message_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
false, false, 169, descriptor_table_protodef_message_2eproto,
false,
false,
169,
descriptor_table_protodef_message_2eproto,
"message.proto",
&descriptor_table_message_2eproto_once, descriptor_table_message_2eproto_deps, 1, 1,
schemas, file_default_instances, TableStruct_message_2eproto::offsets,
file_level_metadata_message_2eproto, file_level_enum_descriptors_message_2eproto,
&descriptor_table_message_2eproto_once,
descriptor_table_message_2eproto_deps,
1,
1,
schemas,
file_default_instances,
TableStruct_message_2eproto::offsets,
file_level_metadata_message_2eproto,
file_level_enum_descriptors_message_2eproto,
file_level_service_descriptors_message_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() {
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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
namespace messages {
namespace header {
// ===================================================================
class Message::_Internal {
public:
static const ::PROTOBUF_NAMESPACE_ID::Any& payload(const Message* msg);
using HasBits = decltype(std::declval<Message>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
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 ::PROTOBUF_NAMESPACE_ID::Any&
Message::_Internal::payload(const Message* msg) {
const ::google::protobuf::Any& Message::_Internal::payload(const Message* msg) {
return *msg->_impl_.payload_;
}
void Message::clear_payload() {
if (GetArenaForAllocation() == nullptr && _impl_.payload_ != nullptr) {
delete _impl_.payload_;
}
_impl_.payload_ = nullptr;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (_impl_.payload_ != nullptr) _impl_.payload_->Clear();
_impl_._has_bits_[0] &= ~0x00000001u;
}
Message::Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
Message::Message(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:messages.header.Message)
}
Message::Message(const Message& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Message* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.senderuuid_){}
, decltype(_impl_.payload_){nullptr}
, decltype(_impl_.topic_){}
, decltype(_impl_.msgtype_){}
, /*decltype(_impl_._cached_size_)*/{}};
inline PROTOBUF_NDEBUG_INLINE Message::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from)
: _has_bits_{from._has_bits_},
_cached_size_{0},
senderuuid_(arena, from.senderuuid_) {}
Message::Message(
::google::protobuf::Arena* arena,
const Message& from)
: ::google::protobuf::Message(arena) {
Message* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.payload_ = (cached_has_bits & 0x00000001u)
? CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.payload_)
: nullptr;
::memcpy(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, topic_),
reinterpret_cast<const char *>(&from._impl_) +
offsetof(Impl_, topic_),
offsetof(Impl_, msgtype_) -
offsetof(Impl_, topic_) +
sizeof(Impl_::msgtype_));
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.senderuuid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.senderuuid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_senderuuid().empty()) {
_this->_impl_.senderuuid_.Set(from._internal_senderuuid(),
_this->GetArenaForAllocation());
}
if (from._internal_has_payload()) {
_this->_impl_.payload_ = new ::PROTOBUF_NAMESPACE_ID::Any(*from._impl_.payload_);
}
::memcpy(&_impl_.topic_, &from._impl_.topic_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.msgtype_) -
reinterpret_cast<char*>(&_impl_.topic_)) + sizeof(_impl_.msgtype_));
// @@protoc_insertion_point(copy_constructor:messages.header.Message)
}
inline PROTOBUF_NDEBUG_INLINE Message::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: _cached_size_{0},
senderuuid_(arena) {}
inline void Message::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.senderuuid_){}
, decltype(_impl_.payload_){nullptr}
, decltype(_impl_.topic_){0u}
, decltype(_impl_.msgtype_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.senderuuid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.senderuuid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void Message::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, payload_),
0,
offsetof(Impl_, msgtype_) -
offsetof(Impl_, payload_) +
sizeof(Impl_::msgtype_));
}
Message::~Message() {
// @@protoc_insertion_point(destructor:messages.header.Message)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void Message::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ABSL_DCHECK(GetArena() == nullptr);
_impl_.senderuuid_.Destroy();
if (this != internal_default_instance()) delete _impl_.payload_;
delete _impl_.payload_;
_impl_.~Impl_();
}
void Message::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
const ::google::protobuf::MessageLite::ClassData*
Message::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData
_data_ = {
Message::MergeImpl,
nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Message, _impl_._cached_size_),
};
return &_data_;
}
void Message::Clear() {
PROTOBUF_NOINLINE void Message::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.header.Message)
uint32_t cached_has_bits = 0;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.senderuuid_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.payload_ != nullptr) {
delete _impl_.payload_;
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) {
ABSL_DCHECK(_impl_.payload_ != nullptr);
_impl_.payload_->Clear();
}
_impl_.payload_ = nullptr;
::memset(&_impl_.topic_, 0, static_cast<size_t>(
::memset(&_impl_.topic_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.msgtype_) -
reinterpret_cast<char*>(&_impl_.topic_)) + sizeof(_impl_.msgtype_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* Message::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 topic = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.topic_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 msgType = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.msgtype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string senderUUID = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_senderuuid();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "messages.header.Message.senderUUID"));
} else
goto handle_unusual;
continue;
// .google.protobuf.Any payload = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr = ctx->ParseMessage(_internal_mutable_payload(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
const char* Message::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Message::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 4, 1, 42, 2> Message::_table_ = {
{
PROTOBUF_FIELD_OFFSET(Message, _impl_._has_bits_),
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967272, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_Message_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// uint32 topic = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Message, _impl_.topic_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(Message, _impl_.topic_)}},
// uint32 msgType = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Message, _impl_.msgtype_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(Message, _impl_.msgtype_)}},
// string senderUUID = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(Message, _impl_.senderuuid_)}},
{::_pbi::TcParser::MiniParse, {}},
// .google.protobuf.Any payload = 5;
{::_pbi::TcParser::FastMtS1,
{42, 0, 0, PROTOBUF_FIELD_OFFSET(Message, _impl_.payload_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// uint32 topic = 1;
{PROTOBUF_FIELD_OFFSET(Message, _impl_.topic_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 msgType = 2;
{PROTOBUF_FIELD_OFFSET(Message, _impl_.msgtype_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// string senderUUID = 3;
{PROTOBUF_FIELD_OFFSET(Message, _impl_.senderuuid_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// .google.protobuf.Any payload = 5;
{PROTOBUF_FIELD_OFFSET(Message, _impl_.payload_), _Internal::kHasBitsOffset + 0, 0,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::google::protobuf::Any>()},
}}, {{
"\27\0\0\12\0\0\0\0"
"messages.header.Message"
"senderUUID"
}},
};
::uint8_t* Message::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.header.Message)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 topic = 1;
if (this->_internal_topic() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_topic(), target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_topic(), target);
}
// uint32 msgType = 2;
if (this->_internal_msgtype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_msgtype(), target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
2, this->_internal_msgtype(), target);
}
// string senderUUID = 3;
if (!this->_internal_senderuuid().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_senderuuid().data(), static_cast<int>(this->_internal_senderuuid().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"messages.header.Message.senderUUID");
target = stream->WriteStringMaybeAliased(
3, this->_internal_senderuuid(), target);
const std::string& _s = this->_internal_senderuuid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.header.Message.senderUUID");
target = stream->WriteStringMaybeAliased(3, _s, target);
}
cached_has_bits = _impl_._has_bits_[0];
// .google.protobuf.Any payload = 5;
if (this->_internal_has_payload()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(5, _Internal::payload(this),
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
5, _Internal::payload(this),
_Internal::payload(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:messages.header.Message)
return target;
}
size_t Message::ByteSizeLong() const {
::size_t Message::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.header.Message)
size_t total_size = 0;
::size_t total_size = 0;
uint32_t cached_has_bits = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string senderUUID = 3;
if (!this->_internal_senderuuid().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_senderuuid());
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_senderuuid());
}
// .google.protobuf.Any payload = 5;
if (this->_internal_has_payload()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.payload_);
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) {
total_size +=
1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.payload_);
}
// uint32 topic = 1;
if (this->_internal_topic() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_topic());
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_topic());
}
// uint32 msgType = 2;
if (this->_internal_msgtype() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_msgtype());
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_msgtype());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Message::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message::GetClassData() const { return &_class_data_; }
void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
void Message::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<Message*>(&to_msg);
auto& from = static_cast<const Message&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.header.Message)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_senderuuid().empty()) {
_this->_internal_set_senderuuid(from._internal_senderuuid());
}
if (from._internal_has_payload()) {
_this->_internal_mutable_payload()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom(
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
_this->_internal_mutable_payload()->::google::protobuf::Any::MergeFrom(
from._internal_payload());
}
if (from._internal_topic() != 0) {
@@ -365,7 +412,7 @@ void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB
if (from._internal_msgtype() != 0) {
_this->_internal_set_msgtype(from._internal_msgtype());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void Message::CopyFrom(const Message& from) {
@@ -375,20 +422,18 @@ void Message::CopyFrom(const Message& from) {
MergeFrom(from);
}
bool Message::IsInitialized() const {
PROTOBUF_NOINLINE bool Message::IsInitialized() const {
return true;
}
void Message::InternalSwap(Message* other) {
void Message::InternalSwap(Message* PROTOBUF_RESTRICT other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.senderuuid_, lhs_arena,
&other->_impl_.senderuuid_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.senderuuid_, &other->_impl_.senderuuid_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(Message, _impl_.msgtype_)
+ sizeof(Message::_impl_.msgtype_)
- PROTOBUF_FIELD_OFFSET(Message, _impl_.payload_)>(
@@ -396,21 +441,17 @@ void Message::InternalSwap(Message* other) {
reinterpret_cast<char*>(&other->_impl_.payload_));
}
::PROTOBUF_NAMESPACE_ID::Metadata Message::GetMetadata() const {
::google::protobuf::Metadata Message::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
file_level_metadata_message_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace header
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::header::Message*
Arena::CreateMaybeMessage< ::messages::header::Message >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::header::Message >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#include "google/protobuf/port_undef.inc"

View File

@@ -1,50 +1,61 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message.proto
// Protobuf C++ Version: 4.24.0-main
#ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include "google/protobuf/port_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
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/any.pb.h>
#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/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/any.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_message_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_message_2eproto {
static const uint32_t offsets[];
static const ::uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_message_2eproto;
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_message_2eproto;
namespace messages {
namespace header {
class Message;
@@ -52,22 +63,29 @@ struct MessageDefaultTypeInternal;
extern MessageDefaultTypeInternal _Message_default_instance_;
} // namespace header
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::header::Message* Arena::CreateMaybeMessage<::messages::header::Message>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace messages {
namespace header {
// ===================================================================
// -------------------------------------------------------------------
class Message final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
public:
inline Message() : Message(nullptr) {}
~Message() override;
explicit PROTOBUF_CONSTEXPR Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
template<typename = void>
explicit PROTOBUF_CONSTEXPR Message(::google::protobuf::internal::ConstantInitialized);
Message(const Message& from);
inline Message(const Message& from)
: Message(nullptr, from) {}
Message(Message&& from) noexcept
: Message() {
*this = ::std::move(from);
@@ -79,9 +97,9 @@ class Message final :
}
inline Message& operator=(Message&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@@ -91,13 +109,22 @@ class Message final :
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Message& default_instance() {
@@ -116,65 +143,62 @@ class Message final :
inline void Swap(Message* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Message* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
Message* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Message>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Message& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Message& from) {
Message::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Message* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "messages.header.Message";
}
protected:
explicit Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
explicit Message(::google::protobuf::Arena* arena);
Message(::google::protobuf::Arena* arena, const Message& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -187,268 +211,308 @@ class Message final :
kMsgTypeFieldNumber = 2,
};
// string senderUUID = 3;
void clear_senderuuid();
void clear_senderuuid() ;
const std::string& senderuuid() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_senderuuid(ArgT0&& arg0, ArgT... args);
template <typename Arg_ = const std::string&, typename... Args_>
void set_senderuuid(Arg_&& arg, Args_... args);
std::string* mutable_senderuuid();
PROTOBUF_NODISCARD std::string* release_senderuuid();
void set_allocated_senderuuid(std::string* senderuuid);
void set_allocated_senderuuid(std::string* value);
private:
const std::string& _internal_senderuuid() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_senderuuid(const std::string& value);
inline PROTOBUF_ALWAYS_INLINE void _internal_set_senderuuid(
const std::string& value);
std::string* _internal_mutable_senderuuid();
public:
public:
// .google.protobuf.Any payload = 5;
bool has_payload() const;
private:
bool _internal_has_payload() const;
public:
void clear_payload();
const ::PROTOBUF_NAMESPACE_ID::Any& payload() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_payload();
::PROTOBUF_NAMESPACE_ID::Any* mutable_payload();
void set_allocated_payload(::PROTOBUF_NAMESPACE_ID::Any* payload);
private:
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_payload() const;
::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_payload();
public:
void unsafe_arena_set_allocated_payload(
::PROTOBUF_NAMESPACE_ID::Any* payload);
::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_payload();
void clear_payload() ;
const ::google::protobuf::Any& payload() const;
PROTOBUF_NODISCARD ::google::protobuf::Any* release_payload();
::google::protobuf::Any* mutable_payload();
void set_allocated_payload(::google::protobuf::Any* value);
void unsafe_arena_set_allocated_payload(::google::protobuf::Any* value);
::google::protobuf::Any* unsafe_arena_release_payload();
private:
const ::google::protobuf::Any& _internal_payload() const;
::google::protobuf::Any* _internal_mutable_payload();
public:
// uint32 topic = 1;
void clear_topic();
uint32_t topic() const;
void set_topic(uint32_t value);
private:
uint32_t _internal_topic() const;
void _internal_set_topic(uint32_t value);
public:
void clear_topic() ;
::uint32_t topic() const;
void set_topic(::uint32_t value);
private:
::uint32_t _internal_topic() const;
void _internal_set_topic(::uint32_t value);
public:
// uint32 msgType = 2;
void clear_msgtype();
uint32_t msgtype() const;
void set_msgtype(uint32_t value);
private:
uint32_t _internal_msgtype() const;
void _internal_set_msgtype(uint32_t value);
public:
void clear_msgtype() ;
::uint32_t msgtype() const;
void set_msgtype(::uint32_t value);
private:
::uint32_t _internal_msgtype() const;
void _internal_set_msgtype(::uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.header.Message)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
3, 4, 1,
42, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr senderuuid_;
::PROTOBUF_NAMESPACE_ID::Any* payload_;
uint32_t topic_;
uint32_t msgtype_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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_;
::google::protobuf::Any* payload_;
::uint32_t topic_;
::uint32_t msgtype_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_message_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Message
// uint32 topic = 1;
inline void Message::clear_topic() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.topic_ = 0u;
}
inline uint32_t Message::_internal_topic() const {
return _impl_.topic_;
}
inline uint32_t Message::topic() const {
inline ::uint32_t Message::topic() const {
// @@protoc_insertion_point(field_get:messages.header.Message.topic)
return _internal_topic();
}
inline void Message::_internal_set_topic(uint32_t value) {
_impl_.topic_ = value;
}
inline void Message::set_topic(uint32_t value) {
inline void Message::set_topic(::uint32_t value) {
_internal_set_topic(value);
// @@protoc_insertion_point(field_set:messages.header.Message.topic)
}
inline ::uint32_t Message::_internal_topic() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.topic_;
}
inline void Message::_internal_set_topic(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.topic_ = value;
}
// uint32 msgType = 2;
inline void Message::clear_msgtype() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.msgtype_ = 0u;
}
inline uint32_t Message::_internal_msgtype() const {
return _impl_.msgtype_;
}
inline uint32_t Message::msgtype() const {
inline ::uint32_t Message::msgtype() const {
// @@protoc_insertion_point(field_get:messages.header.Message.msgType)
return _internal_msgtype();
}
inline void Message::_internal_set_msgtype(uint32_t value) {
_impl_.msgtype_ = value;
}
inline void Message::set_msgtype(uint32_t value) {
inline void Message::set_msgtype(::uint32_t value) {
_internal_set_msgtype(value);
// @@protoc_insertion_point(field_set:messages.header.Message.msgType)
}
inline ::uint32_t Message::_internal_msgtype() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.msgtype_;
}
inline void Message::_internal_set_msgtype(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.msgtype_ = value;
}
// string senderUUID = 3;
inline void Message::clear_senderuuid() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.senderuuid_.ClearToEmpty();
}
inline const std::string& Message::senderuuid() const {
inline const std::string& Message::senderuuid() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:messages.header.Message.senderUUID)
return _internal_senderuuid();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Message::set_senderuuid(ArgT0&& arg0, ArgT... args) {
_impl_.senderuuid_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
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)
}
inline std::string* Message::mutable_senderuuid() {
inline std::string* Message::mutable_senderuuid() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_senderuuid();
// @@protoc_insertion_point(field_mutable:messages.header.Message.senderUUID)
return _s;
}
inline const std::string& Message::_internal_senderuuid() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.senderuuid_.Get();
}
inline void Message::_internal_set_senderuuid(const std::string& value) {
_impl_.senderuuid_.Set(value, GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.senderuuid_.Set(value, GetArena());
}
inline std::string* Message::_internal_mutable_senderuuid() {
return _impl_.senderuuid_.Mutable(GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.senderuuid_.Mutable( GetArena());
}
inline std::string* Message::release_senderuuid() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:messages.header.Message.senderUUID)
return _impl_.senderuuid_.Release();
}
inline void Message::set_allocated_senderuuid(std::string* senderuuid) {
if (senderuuid != nullptr) {
} else {
}
_impl_.senderuuid_.SetAllocated(senderuuid, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.senderuuid_.IsDefault()) {
_impl_.senderuuid_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void Message::set_allocated_senderuuid(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.senderuuid_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.senderuuid_.IsDefault()) {
_impl_.senderuuid_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:messages.header.Message.senderUUID)
}
// .google.protobuf.Any payload = 5;
inline bool Message::_internal_has_payload() const {
return this != internal_default_instance() && _impl_.payload_ != nullptr;
}
inline bool Message::has_payload() const {
return _internal_has_payload();
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
PROTOBUF_ASSUME(!value || _impl_.payload_ != nullptr);
return value;
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& Message::_internal_payload() const {
const ::PROTOBUF_NAMESPACE_ID::Any* p = _impl_.payload_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
inline const ::google::protobuf::Any& Message::_internal_payload() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
const ::google::protobuf::Any* p = _impl_.payload_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& Message::payload() const {
inline const ::google::protobuf::Any& Message::payload() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:messages.header.Message.payload)
return _internal_payload();
}
inline void Message::unsafe_arena_set_allocated_payload(
::PROTOBUF_NAMESPACE_ID::Any* payload) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.payload_);
inline void Message::unsafe_arena_set_allocated_payload(::google::protobuf::Any* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (GetArena() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_);
}
_impl_.payload_ = payload;
if (payload) {
_impl_.payload_ = reinterpret_cast<::google::protobuf::Any*>(value);
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.header.Message.payload)
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::release_payload() {
::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.payload_;
inline ::google::protobuf::Any* Message::release_payload() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] &= ~0x00000001u;
::google::protobuf::Any* released = _impl_.payload_;
_impl_.payload_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
if (GetArena() == nullptr) {
delete old;
}
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArena() != nullptr) {
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
return released;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::unsafe_arena_release_payload() {
inline ::google::protobuf::Any* Message::unsafe_arena_release_payload() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:messages.header.Message.payload)
::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.payload_;
_impl_._has_bits_[0] &= ~0x00000001u;
::google::protobuf::Any* temp = _impl_.payload_;
_impl_.payload_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::_internal_mutable_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<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
_impl_.payload_ = p;
auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArena());
_impl_.payload_ = reinterpret_cast<::google::protobuf::Any*>(p);
}
return _impl_.payload_;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* Message::mutable_payload() {
::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_payload();
inline ::google::protobuf::Any* Message::mutable_payload() ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::Any* _msg = _internal_mutable_payload();
// @@protoc_insertion_point(field_mutable:messages.header.Message.payload)
return _msg;
}
inline void Message::set_allocated_payload(::PROTOBUF_NAMESPACE_ID::Any* payload) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
inline void Message::set_allocated_payload(::google::protobuf::Any* value) {
::google::protobuf::Arena* message_arena = GetArena();
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.payload_);
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_);
}
if (payload) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload));
if (value != nullptr) {
::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
if (message_arena != submessage_arena) {
payload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, payload, submessage_arena);
value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.payload_ = payload;
_impl_.payload_ = reinterpret_cast<::google::protobuf::Any*>(value);
// @@protoc_insertion_point(field_set_allocated:messages.header.Message.payload)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace header
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh

View File

@@ -4,235 +4,262 @@
#include "ping.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace messages {
namespace ping {
PROTOBUF_CONSTEXPR Ping::Ping(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.port_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
inline constexpr Ping::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: port_{0u},
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR Ping::Ping(::_pbi::ConstantInitialized)
: _impl_(::_pbi::ConstantInitialized()) {}
struct PingDefaultTypeInternal {
PROTOBUF_CONSTEXPR PingDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR PingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~PingDefaultTypeInternal() {}
union {
Ping _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PingDefaultTypeInternal _Ping_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PingDefaultTypeInternal _Ping_default_instance_;
} // namespace ping
} // namespace messages
static ::_pb::Metadata file_level_metadata_ping_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_ping_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_ping_2eproto = nullptr;
const uint32_t TableStruct_ping_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::ping::Ping, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::ping::Ping, _impl_.port_),
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_ping_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_ping_2eproto = nullptr;
const ::uint32_t
TableStruct_ping_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::ping::Ping, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::ping::Ping, _impl_.port_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::ping::Ping)},
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::messages::ping::Ping)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::ping::_Ping_default_instance_._instance,
&::messages::ping::_Ping_default_instance_._instance,
};
const char descriptor_table_protodef_ping_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\nping.proto\022\rmessages.ping\"\024\n\004Ping\022\014\n\004p"
"ort\030\002 \001(\rb\006proto3"
;
static ::_pbi::once_flag descriptor_table_ping_2eproto_once;
const char descriptor_table_protodef_ping_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\nping.proto\022\rmessages.ping\"\024\n\004Ping\022\014\n\004p"
"ort\030\002 \001(\rb\006proto3"
};
static ::absl::once_flag descriptor_table_ping_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_ping_2eproto = {
false, false, 57, descriptor_table_protodef_ping_2eproto,
false,
false,
57,
descriptor_table_protodef_ping_2eproto,
"ping.proto",
&descriptor_table_ping_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_ping_2eproto::offsets,
file_level_metadata_ping_2eproto, file_level_enum_descriptors_ping_2eproto,
&descriptor_table_ping_2eproto_once,
nullptr,
0,
1,
schemas,
file_default_instances,
TableStruct_ping_2eproto::offsets,
file_level_metadata_ping_2eproto,
file_level_enum_descriptors_ping_2eproto,
file_level_service_descriptors_ping_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_ping_2eproto_getter() {
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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_ping_2eproto(&descriptor_table_ping_2eproto);
namespace messages {
namespace ping {
// ===================================================================
class Ping::_Internal {
public:
};
Ping::Ping(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
Ping::Ping(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:messages.ping.Ping)
}
Ping::Ping(const Ping& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Ping* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.port_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.port_ = from._impl_.port_;
// @@protoc_insertion_point(copy_constructor:messages.ping.Ping)
Ping::Ping(
::google::protobuf::Arena* arena, const Ping& from)
: Ping(arena) {
MergeFrom(from);
}
inline PROTOBUF_NDEBUG_INLINE Ping::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: _cached_size_{0} {}
inline void Ping::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.port_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
inline void Ping::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.port_ = {};
}
Ping::~Ping() {
// @@protoc_insertion_point(destructor:messages.ping.Ping)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void Ping::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ABSL_DCHECK(GetArena() == nullptr);
_impl_.~Impl_();
}
void Ping::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
const ::google::protobuf::MessageLite::ClassData*
Ping::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData
_data_ = {
Ping::MergeImpl,
nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Ping, _impl_._cached_size_),
};
return &_data_;
}
void Ping::Clear() {
PROTOBUF_NOINLINE void Ping::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.ping.Ping)
uint32_t cached_has_bits = 0;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.port_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* Ping::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 port = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
const char* Ping::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Ping::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Ping::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967293, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_Ping_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// uint32 port = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Ping, _impl_.port_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(Ping, _impl_.port_)}},
}}, {{
65535, 65535
}}, {{
// uint32 port = 2;
{PROTOBUF_FIELD_OFFSET(Ping, _impl_.port_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
}},
// no aux_entries
{{
}},
};
::uint8_t* Ping::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.ping.Ping)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 port = 2;
if (this->_internal_port() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_port(), target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
2, this->_internal_port(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:messages.ping.Ping)
return target;
}
size_t Ping::ByteSizeLong() const {
::size_t Ping::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.ping.Ping)
size_t total_size = 0;
::size_t total_size = 0;
uint32_t cached_has_bits = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 port = 2;
if (this->_internal_port() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_port());
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_port());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Ping::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Ping::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Ping::GetClassData() const { return &_class_data_; }
void Ping::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
void Ping::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<Ping*>(&to_msg);
auto& from = static_cast<const Ping&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.ping.Ping)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void Ping::CopyFrom(const Ping& from) {
@@ -242,31 +269,27 @@ void Ping::CopyFrom(const Ping& from) {
MergeFrom(from);
}
bool Ping::IsInitialized() const {
PROTOBUF_NOINLINE bool Ping::IsInitialized() const {
return true;
}
void Ping::InternalSwap(Ping* other) {
void Ping::InternalSwap(Ping* PROTOBUF_RESTRICT other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.port_, other->_impl_.port_);
swap(_impl_.port_, other->_impl_.port_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Ping::GetMetadata() const {
::google::protobuf::Metadata Ping::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_ping_2eproto_getter, &descriptor_table_ping_2eproto_once,
file_level_metadata_ping_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace ping
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::ping::Ping*
Arena::CreateMaybeMessage< ::messages::ping::Ping >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::ping::Ping >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#include "google/protobuf/port_undef.inc"

View File

@@ -1,49 +1,60 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ping.proto
// Protobuf C++ Version: 4.24.0-main
#ifndef GOOGLE_PROTOBUF_INCLUDED_ping_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_ping_2eproto
#ifndef GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include "google/protobuf/port_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
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#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/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_ping_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_ping_2eproto {
static const uint32_t offsets[];
static const ::uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ping_2eproto;
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_ping_2eproto;
namespace messages {
namespace ping {
class Ping;
@@ -51,22 +62,29 @@ struct PingDefaultTypeInternal;
extern PingDefaultTypeInternal _Ping_default_instance_;
} // namespace ping
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::ping::Ping* Arena::CreateMaybeMessage<::messages::ping::Ping>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace messages {
namespace ping {
// ===================================================================
// -------------------------------------------------------------------
class Ping final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.ping.Ping) */ {
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.ping.Ping) */ {
public:
inline Ping() : Ping(nullptr) {}
~Ping() override;
explicit PROTOBUF_CONSTEXPR Ping(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
template<typename = void>
explicit PROTOBUF_CONSTEXPR Ping(::google::protobuf::internal::ConstantInitialized);
Ping(const Ping& from);
inline Ping(const Ping& from)
: Ping(nullptr, from) {}
Ping(Ping&& from) noexcept
: Ping() {
*this = ::std::move(from);
@@ -78,9 +96,9 @@ class Ping final :
}
inline Ping& operator=(Ping&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@@ -90,13 +108,22 @@ class Ping final :
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Ping& default_instance() {
@@ -115,65 +142,62 @@ class Ping final :
inline void Swap(Ping* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Ping* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Ping* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
Ping* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Ping>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Ping& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Ping& from) {
Ping::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Ping* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "messages.ping.Ping";
}
protected:
explicit Ping(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
explicit Ping(::google::protobuf::Arena* arena);
Ping(::google::protobuf::Arena* arena, const Ping& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -183,69 +207,96 @@ class Ping final :
kPortFieldNumber = 2,
};
// uint32 port = 2;
void clear_port();
uint32_t port() const;
void set_port(uint32_t value);
private:
uint32_t _internal_port() const;
void _internal_set_port(uint32_t value);
public:
void clear_port() ;
::uint32_t port() const;
void set_port(::uint32_t value);
private:
::uint32_t _internal_port() const;
void _internal_set_port(::uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.ping.Ping)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
0, 1, 0,
0, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
uint32_t port_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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);
::uint32_t port_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_ping_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Ping
// uint32 port = 2;
inline void Ping::clear_port() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.port_ = 0u;
}
inline uint32_t Ping::_internal_port() const {
return _impl_.port_;
}
inline uint32_t Ping::port() const {
inline ::uint32_t Ping::port() const {
// @@protoc_insertion_point(field_get:messages.ping.Ping.port)
return _internal_port();
}
inline void Ping::_internal_set_port(uint32_t value) {
_impl_.port_ = value;
}
inline void Ping::set_port(uint32_t value) {
inline void Ping::set_port(::uint32_t value) {
_internal_set_port(value);
// @@protoc_insertion_point(field_set:messages.ping.Ping.port)
}
inline ::uint32_t Ping::_internal_port() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.port_;
}
inline void Ping::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace ping
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ping_2eproto
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_ping_2eproto_2epb_2eh

View File

@@ -4,235 +4,262 @@
#include "pong.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace messages {
namespace pong {
PROTOBUF_CONSTEXPR Pong::Pong(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.port_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
inline constexpr Pong::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: port_{0u},
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR Pong::Pong(::_pbi::ConstantInitialized)
: _impl_(::_pbi::ConstantInitialized()) {}
struct PongDefaultTypeInternal {
PROTOBUF_CONSTEXPR PongDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR PongDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~PongDefaultTypeInternal() {}
union {
Pong _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PongDefaultTypeInternal _Pong_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PongDefaultTypeInternal _Pong_default_instance_;
} // namespace pong
} // namespace messages
static ::_pb::Metadata file_level_metadata_pong_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_pong_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_pong_2eproto = nullptr;
const uint32_t TableStruct_pong_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::pong::Pong, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::pong::Pong, _impl_.port_),
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_pong_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_pong_2eproto = nullptr;
const ::uint32_t
TableStruct_pong_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::pong::Pong, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::pong::Pong, _impl_.port_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::pong::Pong)},
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::messages::pong::Pong)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::pong::_Pong_default_instance_._instance,
&::messages::pong::_Pong_default_instance_._instance,
};
const char descriptor_table_protodef_pong_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\npong.proto\022\rmessages.pong\"\024\n\004Pong\022\014\n\004p"
"ort\030\001 \001(\rb\006proto3"
;
static ::_pbi::once_flag descriptor_table_pong_2eproto_once;
const char descriptor_table_protodef_pong_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\npong.proto\022\rmessages.pong\"\024\n\004Pong\022\014\n\004p"
"ort\030\001 \001(\rb\006proto3"
};
static ::absl::once_flag descriptor_table_pong_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_pong_2eproto = {
false, false, 57, descriptor_table_protodef_pong_2eproto,
false,
false,
57,
descriptor_table_protodef_pong_2eproto,
"pong.proto",
&descriptor_table_pong_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_pong_2eproto::offsets,
file_level_metadata_pong_2eproto, file_level_enum_descriptors_pong_2eproto,
&descriptor_table_pong_2eproto_once,
nullptr,
0,
1,
schemas,
file_default_instances,
TableStruct_pong_2eproto::offsets,
file_level_metadata_pong_2eproto,
file_level_enum_descriptors_pong_2eproto,
file_level_service_descriptors_pong_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_pong_2eproto_getter() {
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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_pong_2eproto(&descriptor_table_pong_2eproto);
namespace messages {
namespace pong {
// ===================================================================
class Pong::_Internal {
public:
};
Pong::Pong(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
Pong::Pong(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:messages.pong.Pong)
}
Pong::Pong(const Pong& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Pong* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.port_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.port_ = from._impl_.port_;
// @@protoc_insertion_point(copy_constructor:messages.pong.Pong)
Pong::Pong(
::google::protobuf::Arena* arena, const Pong& from)
: Pong(arena) {
MergeFrom(from);
}
inline PROTOBUF_NDEBUG_INLINE Pong::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: _cached_size_{0} {}
inline void Pong::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.port_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
inline void Pong::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.port_ = {};
}
Pong::~Pong() {
// @@protoc_insertion_point(destructor:messages.pong.Pong)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void Pong::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ABSL_DCHECK(GetArena() == nullptr);
_impl_.~Impl_();
}
void Pong::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
const ::google::protobuf::MessageLite::ClassData*
Pong::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData
_data_ = {
Pong::MergeImpl,
nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(Pong, _impl_._cached_size_),
};
return &_data_;
}
void Pong::Clear() {
PROTOBUF_NOINLINE void Pong::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.pong.Pong)
uint32_t cached_has_bits = 0;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.port_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* Pong::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 port = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
const char* Pong::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Pong::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Pong::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_Pong_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// uint32 port = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Pong, _impl_.port_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(Pong, _impl_.port_)}},
}}, {{
65535, 65535
}}, {{
// uint32 port = 1;
{PROTOBUF_FIELD_OFFSET(Pong, _impl_.port_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
}},
// no aux_entries
{{
}},
};
::uint8_t* Pong::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.pong.Pong)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 port = 1;
if (this->_internal_port() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_port(), target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_port(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:messages.pong.Pong)
return target;
}
size_t Pong::ByteSizeLong() const {
::size_t Pong::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.pong.Pong)
size_t total_size = 0;
::size_t total_size = 0;
uint32_t cached_has_bits = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 port = 1;
if (this->_internal_port() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_port());
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_port());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pong::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Pong::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pong::GetClassData() const { return &_class_data_; }
void Pong::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
void Pong::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<Pong*>(&to_msg);
auto& from = static_cast<const Pong&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.pong.Pong)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_port() != 0) {
_this->_internal_set_port(from._internal_port());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void Pong::CopyFrom(const Pong& from) {
@@ -242,31 +269,27 @@ void Pong::CopyFrom(const Pong& from) {
MergeFrom(from);
}
bool Pong::IsInitialized() const {
PROTOBUF_NOINLINE bool Pong::IsInitialized() const {
return true;
}
void Pong::InternalSwap(Pong* other) {
void Pong::InternalSwap(Pong* PROTOBUF_RESTRICT other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.port_, other->_impl_.port_);
swap(_impl_.port_, other->_impl_.port_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Pong::GetMetadata() const {
::google::protobuf::Metadata Pong::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_pong_2eproto_getter, &descriptor_table_pong_2eproto_once,
file_level_metadata_pong_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace pong
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::pong::Pong*
Arena::CreateMaybeMessage< ::messages::pong::Pong >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::pong::Pong >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#include "google/protobuf/port_undef.inc"

View File

@@ -1,49 +1,60 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pong.proto
// Protobuf C++ Version: 4.24.0-main
#ifndef GOOGLE_PROTOBUF_INCLUDED_pong_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_pong_2eproto
#ifndef GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include "google/protobuf/port_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
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#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/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_pong_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_pong_2eproto {
static const uint32_t offsets[];
static const ::uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pong_2eproto;
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_pong_2eproto;
namespace messages {
namespace pong {
class Pong;
@@ -51,22 +62,29 @@ struct PongDefaultTypeInternal;
extern PongDefaultTypeInternal _Pong_default_instance_;
} // namespace pong
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::pong::Pong* Arena::CreateMaybeMessage<::messages::pong::Pong>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace messages {
namespace pong {
// ===================================================================
// -------------------------------------------------------------------
class Pong final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.pong.Pong) */ {
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.pong.Pong) */ {
public:
inline Pong() : Pong(nullptr) {}
~Pong() override;
explicit PROTOBUF_CONSTEXPR Pong(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
template<typename = void>
explicit PROTOBUF_CONSTEXPR Pong(::google::protobuf::internal::ConstantInitialized);
Pong(const Pong& from);
inline Pong(const Pong& from)
: Pong(nullptr, from) {}
Pong(Pong&& from) noexcept
: Pong() {
*this = ::std::move(from);
@@ -78,9 +96,9 @@ class Pong final :
}
inline Pong& operator=(Pong&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@@ -90,13 +108,22 @@ class Pong final :
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Pong& default_instance() {
@@ -115,65 +142,62 @@ class Pong final :
inline void Swap(Pong* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Pong* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Pong* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
Pong* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Pong>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Pong& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Pong& from) {
Pong::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Pong* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "messages.pong.Pong";
}
protected:
explicit Pong(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
explicit Pong(::google::protobuf::Arena* arena);
Pong(::google::protobuf::Arena* arena, const Pong& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -183,69 +207,96 @@ class Pong final :
kPortFieldNumber = 1,
};
// uint32 port = 1;
void clear_port();
uint32_t port() const;
void set_port(uint32_t value);
private:
uint32_t _internal_port() const;
void _internal_set_port(uint32_t value);
public:
void clear_port() ;
::uint32_t port() const;
void set_port(::uint32_t value);
private:
::uint32_t _internal_port() const;
void _internal_set_port(::uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.pong.Pong)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
0, 1, 0,
0, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
uint32_t port_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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);
::uint32_t port_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_pong_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Pong
// uint32 port = 1;
inline void Pong::clear_port() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.port_ = 0u;
}
inline uint32_t Pong::_internal_port() const {
return _impl_.port_;
}
inline uint32_t Pong::port() const {
inline ::uint32_t Pong::port() const {
// @@protoc_insertion_point(field_get:messages.pong.Pong.port)
return _internal_port();
}
inline void Pong::_internal_set_port(uint32_t value) {
_impl_.port_ = value;
}
inline void Pong::set_port(uint32_t value) {
inline void Pong::set_port(::uint32_t value) {
_internal_set_port(value);
// @@protoc_insertion_point(field_set:messages.pong.Pong.port)
}
inline ::uint32_t Pong::_internal_port() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.port_;
}
inline void Pong::_internal_set_port(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.port_ = value;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace pong
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_pong_2eproto
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_pong_2eproto_2epb_2eh

View File

@@ -4,255 +4,282 @@
#include "stringData.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace messages {
namespace stringData {
PROTOBUF_CONSTEXPR StringData::StringData(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_._cached_size_)*/{}} {}
inline constexpr StringData::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: data_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR StringData::StringData(::_pbi::ConstantInitialized)
: _impl_(::_pbi::ConstantInitialized()) {}
struct StringDataDefaultTypeInternal {
PROTOBUF_CONSTEXPR StringDataDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR StringDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~StringDataDefaultTypeInternal() {}
union {
StringData _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringDataDefaultTypeInternal _StringData_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringDataDefaultTypeInternal _StringData_default_instance_;
} // namespace stringData
} // namespace messages
static ::_pb::Metadata file_level_metadata_stringData_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_stringData_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_stringData_2eproto = nullptr;
const uint32_t TableStruct_stringData_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::stringData::StringData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::stringData::StringData, _impl_.data_),
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_stringData_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_stringData_2eproto = nullptr;
const ::uint32_t
TableStruct_stringData_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::stringData::StringData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::stringData::StringData, _impl_.data_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::stringData::StringData)},
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::messages::stringData::StringData)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::stringData::_StringData_default_instance_._instance,
&::messages::stringData::_StringData_default_instance_._instance,
};
const char descriptor_table_protodef_stringData_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\020stringData.proto\022\023messages.stringData\""
"\032\n\nStringData\022\014\n\004data\030\001 \001(\tb\006proto3"
;
static ::_pbi::once_flag descriptor_table_stringData_2eproto_once;
const char descriptor_table_protodef_stringData_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\020stringData.proto\022\023messages.stringData\""
"\032\n\nStringData\022\014\n\004data\030\001 \001(\tb\006proto3"
};
static ::absl::once_flag descriptor_table_stringData_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_stringData_2eproto = {
false, false, 75, descriptor_table_protodef_stringData_2eproto,
false,
false,
75,
descriptor_table_protodef_stringData_2eproto,
"stringData.proto",
&descriptor_table_stringData_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_stringData_2eproto::offsets,
file_level_metadata_stringData_2eproto, file_level_enum_descriptors_stringData_2eproto,
&descriptor_table_stringData_2eproto_once,
nullptr,
0,
1,
schemas,
file_default_instances,
TableStruct_stringData_2eproto::offsets,
file_level_metadata_stringData_2eproto,
file_level_enum_descriptors_stringData_2eproto,
file_level_service_descriptors_stringData_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_stringData_2eproto_getter() {
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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_stringData_2eproto(&descriptor_table_stringData_2eproto);
namespace messages {
namespace stringData {
// ===================================================================
class StringData::_Internal {
public:
};
StringData::StringData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
StringData::StringData(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:messages.stringData.StringData)
}
StringData::StringData(const StringData& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
StringData* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.data_){}
, /*decltype(_impl_._cached_size_)*/{}};
inline PROTOBUF_NDEBUG_INLINE StringData::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from)
: data_(arena, from.data_),
_cached_size_{0} {}
StringData::StringData(
::google::protobuf::Arena* arena,
const StringData& from)
: ::google::protobuf::Message(arena) {
StringData* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.data_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.data_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_data().empty()) {
_this->_impl_.data_.Set(from._internal_data(),
_this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:messages.stringData.StringData)
}
inline PROTOBUF_NDEBUG_INLINE StringData::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: data_(arena),
_cached_size_{0} {}
inline void StringData::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.data_){}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.data_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.data_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void StringData::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
StringData::~StringData() {
// @@protoc_insertion_point(destructor:messages.stringData.StringData)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void StringData::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ABSL_DCHECK(GetArena() == nullptr);
_impl_.data_.Destroy();
_impl_.~Impl_();
}
void StringData::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
const ::google::protobuf::MessageLite::ClassData*
StringData::GetClassData() const {
PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::ClassData
_data_ = {
StringData::MergeImpl,
nullptr, // OnDemandRegisterArenaDtor
&::google::protobuf::Message::kDescriptorMethods,
PROTOBUF_FIELD_OFFSET(StringData, _impl_._cached_size_),
};
return &_data_;
}
void StringData::Clear() {
PROTOBUF_NOINLINE void StringData::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.stringData.StringData)
uint32_t cached_has_bits = 0;
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.data_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* StringData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// string data = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_data();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "messages.stringData.StringData.data"));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
const char* StringData::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* StringData::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 43, 2> StringData::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_StringData_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string data = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(StringData, _impl_.data_)}},
}}, {{
65535, 65535
}}, {{
// string data = 1;
{PROTOBUF_FIELD_OFFSET(StringData, _impl_.data_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\36\4\0\0\0\0\0\0"
"messages.stringData.StringData"
"data"
}},
};
::uint8_t* StringData::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.stringData.StringData)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string data = 1;
if (!this->_internal_data().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_data().data(), static_cast<int>(this->_internal_data().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"messages.stringData.StringData.data");
target = stream->WriteStringMaybeAliased(
1, this->_internal_data(), target);
const std::string& _s = this->_internal_data();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.stringData.StringData.data");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:messages.stringData.StringData)
return target;
}
size_t StringData::ByteSizeLong() const {
::size_t StringData::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.stringData.StringData)
size_t total_size = 0;
::size_t total_size = 0;
uint32_t cached_has_bits = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string data = 1;
if (!this->_internal_data().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_data());
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_data());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StringData::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
StringData::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StringData::GetClassData() const { return &_class_data_; }
void StringData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
void StringData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<StringData*>(&to_msg);
auto& from = static_cast<const StringData&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.stringData.StringData)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_data().empty()) {
_this->_internal_set_data(from._internal_data());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void StringData::CopyFrom(const StringData& from) {
@@ -262,36 +289,29 @@ void StringData::CopyFrom(const StringData& from) {
MergeFrom(from);
}
bool StringData::IsInitialized() const {
PROTOBUF_NOINLINE bool StringData::IsInitialized() const {
return true;
}
void StringData::InternalSwap(StringData* other) {
void StringData::InternalSwap(StringData* PROTOBUF_RESTRICT other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.data_, lhs_arena,
&other->_impl_.data_, rhs_arena
);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena);
}
::PROTOBUF_NAMESPACE_ID::Metadata StringData::GetMetadata() const {
::google::protobuf::Metadata StringData::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stringData_2eproto_getter, &descriptor_table_stringData_2eproto_once,
file_level_metadata_stringData_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace stringData
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::stringData::StringData*
Arena::CreateMaybeMessage< ::messages::stringData::StringData >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::stringData::StringData >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#include "google/protobuf/port_undef.inc"

View File

@@ -1,49 +1,60 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stringData.proto
// Protobuf C++ Version: 4.24.0-main
#ifndef GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto
#ifndef GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include "google/protobuf/port_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
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#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/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_stringData_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_stringData_2eproto {
static const uint32_t offsets[];
static const ::uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_stringData_2eproto;
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_stringData_2eproto;
namespace messages {
namespace stringData {
class StringData;
@@ -51,22 +62,29 @@ struct StringDataDefaultTypeInternal;
extern StringDataDefaultTypeInternal _StringData_default_instance_;
} // namespace stringData
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::stringData::StringData* Arena::CreateMaybeMessage<::messages::stringData::StringData>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace messages {
namespace stringData {
// ===================================================================
// -------------------------------------------------------------------
class StringData final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.stringData.StringData) */ {
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:messages.stringData.StringData) */ {
public:
inline StringData() : StringData(nullptr) {}
~StringData() override;
explicit PROTOBUF_CONSTEXPR StringData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
template<typename = void>
explicit PROTOBUF_CONSTEXPR StringData(::google::protobuf::internal::ConstantInitialized);
StringData(const StringData& from);
inline StringData(const StringData& from)
: StringData(nullptr, from) {}
StringData(StringData&& from) noexcept
: StringData() {
*this = ::std::move(from);
@@ -78,9 +96,9 @@ class StringData final :
}
inline StringData& operator=(StringData&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@@ -90,13 +108,22 @@ class StringData final :
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const StringData& default_instance() {
@@ -115,65 +142,62 @@ class StringData final :
inline void Swap(StringData* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(StringData* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
StringData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
StringData* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<StringData>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const StringData& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const StringData& from) {
StringData::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(StringData* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "messages.stringData.StringData";
}
protected:
explicit StringData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
explicit StringData(::google::protobuf::Arena* arena);
StringData(::google::protobuf::Arena* arena, const StringData& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -183,104 +207,132 @@ class StringData final :
kDataFieldNumber = 1,
};
// string data = 1;
void clear_data();
void clear_data() ;
const std::string& data() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_data(ArgT0&& arg0, ArgT... args);
template <typename Arg_ = const std::string&, typename... Args_>
void set_data(Arg_&& arg, Args_... args);
std::string* mutable_data();
PROTOBUF_NODISCARD std::string* release_data();
void set_allocated_data(std::string* data);
void set_allocated_data(std::string* value);
private:
const std::string& _internal_data() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value);
inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(
const std::string& value);
std::string* _internal_mutable_data();
public:
public:
// @@protoc_insertion_point(class_scope:messages.stringData.StringData)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
0, 1, 0,
43, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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::ArenaStringPtr data_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_stringData_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// StringData
// string data = 1;
inline void StringData::clear_data() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.data_.ClearToEmpty();
}
inline const std::string& StringData::data() const {
inline const std::string& StringData::data() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:messages.stringData.StringData.data)
return _internal_data();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void StringData::set_data(ArgT0&& arg0, ArgT... args) {
_impl_.data_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void StringData::set_data(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.data_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:messages.stringData.StringData.data)
}
inline std::string* StringData::mutable_data() {
inline std::string* StringData::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_data();
// @@protoc_insertion_point(field_mutable:messages.stringData.StringData.data)
return _s;
}
inline const std::string& StringData::_internal_data() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.data_.Get();
}
inline void StringData::_internal_set_data(const std::string& value) {
_impl_.data_.Set(value, GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.data_.Set(value, GetArena());
}
inline std::string* StringData::_internal_mutable_data() {
return _impl_.data_.Mutable(GetArenaForAllocation());
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.data_.Mutable( GetArena());
}
inline std::string* StringData::release_data() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:messages.stringData.StringData.data)
return _impl_.data_.Release();
}
inline void StringData::set_allocated_data(std::string* data) {
if (data != nullptr) {
} else {
}
_impl_.data_.SetAllocated(data, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.data_.IsDefault()) {
_impl_.data_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
inline void StringData::set_allocated_data(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.data_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.data_.IsDefault()) {
_impl_.data_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:messages.stringData.StringData.data)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace stringData
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_stringData_2eproto_2epb_2eh