ADD: added new created messages

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

View File

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