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

@@ -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