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