ADD: added new version of protobuf

This commit is contained in:
Henry Winkel
2022-12-20 10:09:28 +01:00
parent 4a79559129
commit 1e2b3dda7b
1513 changed files with 123720 additions and 83381 deletions

View File

@@ -4,20 +4,22 @@
#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"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace _pbi = _pb::internal;
namespace messages {
namespace join {
PROTOBUF_CONSTEXPR Join::Join(
@@ -26,86 +28,60 @@ PROTOBUF_CONSTEXPR Join::Join(
, /*decltype(_impl_.port_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
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 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[] 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_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _impl_.port_),
PROTOBUF_FIELD_OFFSET(::messages::join::Join, _impl_.srcaddress_),
};
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_join_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_join_2eproto = nullptr;
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::join::Join)},
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 const ::_pbi::MigrationSchema schemas[] PROTOBUF_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,
};
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 ::absl::once_flag descriptor_table_join_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_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,
file_level_service_descriptors_join_2eproto,
&::messages::join::_Join_default_instance_._instance,
};
// 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.
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 ::_pbi::DescriptorTable descriptor_table_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,
file_level_service_descriptors_join_2eproto,
};
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 {
@@ -184,7 +160,6 @@ void Join::Clear() {
}
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;
@@ -233,7 +208,6 @@ failure:
uint8_t* Join::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.join.Join)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
@@ -263,7 +237,6 @@ uint8_t* Join::_InternalSerialize(
}
size_t Join::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.join.Join)
size_t total_size = 0;
@@ -296,7 +269,6 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Join::GetClassData() const { r
void Join::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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;
@@ -335,11 +307,11 @@ void Join::InternalSwap(Join* other) {
}
::PROTOBUF_NAMESPACE_ID::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
@@ -349,5 +321,6 @@ Arena::CreateMaybeMessage< ::messages::join::Join >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::join::Join >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#include <google/protobuf/port_undef.inc>

View File

@@ -1,43 +1,38 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: join.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_join_2eproto_2epb_2eh
#ifndef GOOGLE_PROTOBUF_INCLUDED_join_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_join_2eproto
#include <limits>
#include <string>
#include <type_traits>
#include "google/protobuf/port_def.inc"
#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 // PROTOBUF_VERSION
#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
#if 3021008 < 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_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/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>
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_join_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
@@ -48,8 +43,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_join_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
descriptor_table_join_2eproto;
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_join_2eproto;
namespace messages {
namespace join {
class Join;
@@ -58,18 +52,13 @@ extern JoinDefaultTypeInternal _Join_default_instance_;
} // namespace join
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
::messages::join::Join* Arena::CreateMaybeMessage<::messages::join::Join>(Arena*);
template<> ::messages::join::Join* Arena::CreateMaybeMessage<::messages::join::Join>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
namespace join {
// ===================================================================
// -------------------------------------------------------------------
class Join final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.join.Join) */ {
public:
@@ -173,7 +162,7 @@ class Join final :
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.join.Join";
}
protected:
@@ -235,17 +224,12 @@ class Join final :
// ===================================================================
// ===================================================================
#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;
@@ -260,7 +244,7 @@ inline uint32_t Join::port() const {
return _internal_port();
}
inline void Join::_internal_set_port(uint32_t value) {
_impl_.port_ = value;
}
inline void Join::set_port(uint32_t value) {
@@ -292,11 +276,11 @@ inline const std::string& Join::_internal_srcaddress() const {
return _impl_.srcaddress_.Get();
}
inline void Join::_internal_set_srcaddress(const std::string& value) {
_impl_.srcaddress_.Set(value, GetArenaForAllocation());
}
inline std::string* Join::_internal_mutable_srcaddress() {
return _impl_.srcaddress_.Mutable(GetArenaForAllocation());
}
inline std::string* Join::release_srcaddress() {
@@ -304,6 +288,11 @@ inline std::string* Join::release_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()) {
@@ -314,16 +303,15 @@ inline void Join::set_allocated_srcaddress(std::string* 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_join_2eproto_2epb_2eh
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_join_2eproto

View File

@@ -4,20 +4,22 @@
#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"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace _pbi = _pb::internal;
namespace messages {
namespace leave {
PROTOBUF_CONSTEXPR Leave::Leave(
@@ -26,86 +28,60 @@ PROTOBUF_CONSTEXPR Leave::Leave(
, /*decltype(_impl_.port_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
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 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[] 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_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _impl_.port_),
PROTOBUF_FIELD_OFFSET(::messages::leave::Leave, _impl_.srcaddress_),
};
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_leave_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_leave_2eproto = nullptr;
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::leave::Leave)},
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 const ::_pbi::MigrationSchema schemas[] PROTOBUF_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,
};
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 ::absl::once_flag descriptor_table_leave_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_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,
file_level_service_descriptors_leave_2eproto,
&::messages::leave::_Leave_default_instance_._instance,
};
// 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.
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 ::_pbi::DescriptorTable descriptor_table_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,
file_level_service_descriptors_leave_2eproto,
};
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 {
@@ -184,7 +160,6 @@ void Leave::Clear() {
}
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;
@@ -233,7 +208,6 @@ failure:
uint8_t* Leave::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.leave.Leave)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
@@ -263,7 +237,6 @@ uint8_t* Leave::_InternalSerialize(
}
size_t Leave::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.leave.Leave)
size_t total_size = 0;
@@ -296,7 +269,6 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const {
void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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;
@@ -335,11 +307,11 @@ void Leave::InternalSwap(Leave* other) {
}
::PROTOBUF_NAMESPACE_ID::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
@@ -349,5 +321,6 @@ Arena::CreateMaybeMessage< ::messages::leave::Leave >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::leave::Leave >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#include <google/protobuf/port_undef.inc>

View File

@@ -1,43 +1,38 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: leave.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_leave_2eproto_2epb_2eh
#ifndef GOOGLE_PROTOBUF_INCLUDED_leave_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_leave_2eproto
#include <limits>
#include <string>
#include <type_traits>
#include "google/protobuf/port_def.inc"
#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 // PROTOBUF_VERSION
#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
#if 3021008 < 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_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/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>
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_leave_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
@@ -48,8 +43,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_leave_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
descriptor_table_leave_2eproto;
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_leave_2eproto;
namespace messages {
namespace leave {
class Leave;
@@ -58,18 +52,13 @@ extern LeaveDefaultTypeInternal _Leave_default_instance_;
} // namespace leave
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
::messages::leave::Leave* Arena::CreateMaybeMessage<::messages::leave::Leave>(Arena*);
template<> ::messages::leave::Leave* Arena::CreateMaybeMessage<::messages::leave::Leave>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
namespace leave {
// ===================================================================
// -------------------------------------------------------------------
class Leave final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.leave.Leave) */ {
public:
@@ -173,7 +162,7 @@ class Leave final :
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.leave.Leave";
}
protected:
@@ -235,17 +224,12 @@ class Leave final :
// ===================================================================
// ===================================================================
#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;
@@ -260,7 +244,7 @@ inline uint32_t Leave::port() const {
return _internal_port();
}
inline void Leave::_internal_set_port(uint32_t value) {
_impl_.port_ = value;
}
inline void Leave::set_port(uint32_t value) {
@@ -292,11 +276,11 @@ inline const std::string& Leave::_internal_srcaddress() const {
return _impl_.srcaddress_.Get();
}
inline void Leave::_internal_set_srcaddress(const std::string& value) {
_impl_.srcaddress_.Set(value, GetArenaForAllocation());
}
inline std::string* Leave::_internal_mutable_srcaddress() {
return _impl_.srcaddress_.Mutable(GetArenaForAllocation());
}
inline std::string* Leave::release_srcaddress() {
@@ -304,6 +288,11 @@ inline std::string* Leave::release_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()) {
@@ -314,16 +303,15 @@ inline void Leave::set_allocated_srcaddress(std::string* 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_leave_2eproto_2epb_2eh
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_leave_2eproto

View File

@@ -4,20 +4,22 @@
#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"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace _pbi = _pb::internal;
namespace messages {
namespace header {
PROTOBUF_CONSTEXPR Message::Message(
@@ -29,96 +31,69 @@ PROTOBUF_CONSTEXPR Message::Message(
, /*decltype(_impl_.sourceid_)*/0
, /*decltype(_impl_._cached_size_)*/{}} {}
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 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[] 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_
~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_.sourcetype_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.sourceid_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.payload_),
};
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_message_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_message_2eproto = nullptr;
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::header::Message)},
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_.sourcetype_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.sourceid_),
PROTOBUF_FIELD_OFFSET(::messages::header::Message, _impl_.payload_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::header::Message)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::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\"v\n\007Message\022\r\n\005topic\030"
"\001 \001(\r\022\017\n\007msgType\030\002 \001(\005\022\022\n\nsourceType\030\003 \001"
"(\005\022\020\n\010sourceID\030\004 \001(\005\022%\n\007payload\030\005 \003(\0132\024."
"google.protobuf.Anyb\006proto3"
};
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,
187,
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,
file_level_service_descriptors_message_2eproto,
&::messages::header::_Message_default_instance_._instance,
};
// 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.
const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\rmessage.proto\022\017messages.header\032\031google"
"/protobuf/any.proto\"v\n\007Message\022\r\n\005topic\030"
"\001 \001(\r\022\017\n\007msgType\030\002 \001(\005\022\022\n\nsourceType\030\003 \001"
"(\005\022\020\n\010sourceID\030\004 \001(\005\022%\n\007payload\030\005 \003(\0132\024."
"google.protobuf.Anyb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_message_2eproto_deps[1] = {
&::descriptor_table_google_2fprotobuf_2fany_2eproto,
};
static ::_pbi::once_flag descriptor_table_message_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
false, false, 187, 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,
file_level_service_descriptors_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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
namespace messages {
namespace header {
// ===================================================================
class Message::_Internal {
@@ -198,7 +173,6 @@ void Message::Clear() {
}
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;
@@ -274,7 +248,6 @@ failure:
uint8_t* Message::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.header.Message)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
@@ -320,7 +293,6 @@ uint8_t* Message::_InternalSerialize(
}
size_t Message::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.header.Message)
size_t total_size = 0;
@@ -368,7 +340,6 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message::GetClassData() const
void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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;
@@ -414,11 +385,11 @@ void Message::InternalSwap(Message* other) {
}
::PROTOBUF_NAMESPACE_ID::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
@@ -428,5 +399,6 @@ Arena::CreateMaybeMessage< ::messages::header::Message >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::header::Message >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#include <google/protobuf/port_undef.inc>

View File

@@ -1,44 +1,39 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto_2epb_2eh
#ifndef GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_message_2eproto
#include <limits>
#include <string>
#include <type_traits>
#include "google/protobuf/port_def.inc"
#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 // PROTOBUF_VERSION
#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
#if 3021008 < 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_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"
#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>
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_message_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
@@ -49,8 +44,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_message_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
descriptor_table_message_2eproto;
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_message_2eproto;
namespace messages {
namespace header {
class Message;
@@ -59,18 +53,13 @@ extern MessageDefaultTypeInternal _Message_default_instance_;
} // namespace header
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
::messages::header::Message* Arena::CreateMaybeMessage<::messages::header::Message>(Arena*);
template<> ::messages::header::Message* Arena::CreateMaybeMessage<::messages::header::Message>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
namespace header {
// ===================================================================
// -------------------------------------------------------------------
class Message final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.header.Message) */ {
public:
@@ -174,7 +163,7 @@ class Message final :
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.header.Message";
}
protected:
@@ -273,17 +262,12 @@ class Message final :
// ===================================================================
// ===================================================================
#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;
@@ -298,7 +282,7 @@ inline uint32_t Message::topic() const {
return _internal_topic();
}
inline void Message::_internal_set_topic(uint32_t value) {
_impl_.topic_ = value;
}
inline void Message::set_topic(uint32_t value) {
@@ -318,7 +302,7 @@ inline int32_t Message::msgtype() const {
return _internal_msgtype();
}
inline void Message::_internal_set_msgtype(int32_t value) {
_impl_.msgtype_ = value;
}
inline void Message::set_msgtype(int32_t value) {
@@ -338,7 +322,7 @@ inline int32_t Message::sourcetype() const {
return _internal_sourcetype();
}
inline void Message::_internal_set_sourcetype(int32_t value) {
_impl_.sourcetype_ = value;
}
inline void Message::set_sourcetype(int32_t value) {
@@ -358,7 +342,7 @@ inline int32_t Message::sourceid() const {
return _internal_sourceid();
}
inline void Message::_internal_set_sourceid(int32_t value) {
_impl_.sourceid_ = value;
}
inline void Message::set_sourceid(int32_t value) {
@@ -404,16 +388,15 @@ Message::payload() const {
}
#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_message_2eproto_2epb_2eh
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_message_2eproto

View File

@@ -4,20 +4,22 @@
#include "raw_track.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"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace _pbi = _pb::internal;
namespace messages {
namespace raw_track {
PROTOBUF_CONSTEXPR RawTrack::RawTrack(
@@ -25,85 +27,59 @@ PROTOBUF_CONSTEXPR RawTrack::RawTrack(
/*decltype(_impl_.trackno_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct RawTrackDefaultTypeInternal {
PROTOBUF_CONSTEXPR RawTrackDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
PROTOBUF_CONSTEXPR RawTrackDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~RawTrackDefaultTypeInternal() {}
union {
RawTrack _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RawTrackDefaultTypeInternal _RawTrack_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RawTrackDefaultTypeInternal _RawTrack_default_instance_;
} // namespace raw_track
} // namespace messages
static ::_pb::Metadata file_level_metadata_raw_5ftrack_2eproto[1];
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_raw_5ftrack_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_raw_5ftrack_2eproto = nullptr;
const uint32_t TableStruct_raw_5ftrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _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::raw_track::RawTrack, _impl_.trackno_),
};
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_raw_5ftrack_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_raw_5ftrack_2eproto = nullptr;
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::raw_track::RawTrack)},
const uint32_t TableStruct_raw_5ftrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _impl_.trackno_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::raw_track::RawTrack)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::raw_track::_RawTrack_default_instance_._instance,
};
const char descriptor_table_protodef_raw_5ftrack_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
"\n\017raw_track.proto\022\022messages.raw_track\"\033\n"
"\010RawTrack\022\017\n\007trackNo\030\001 \001(\rb\006proto3"
};
static ::absl::once_flag descriptor_table_raw_5ftrack_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_raw_5ftrack_2eproto = {
false,
false,
74,
descriptor_table_protodef_raw_5ftrack_2eproto,
"raw_track.proto",
&descriptor_table_raw_5ftrack_2eproto_once,
nullptr,
0,
1,
schemas,
file_default_instances,
TableStruct_raw_5ftrack_2eproto::offsets,
file_level_metadata_raw_5ftrack_2eproto,
file_level_enum_descriptors_raw_5ftrack_2eproto,
file_level_service_descriptors_raw_5ftrack_2eproto,
&::messages::raw_track::_RawTrack_default_instance_._instance,
};
// 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.
const char descriptor_table_protodef_raw_5ftrack_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\017raw_track.proto\022\022messages.raw_track\"\033\n"
"\010RawTrack\022\017\n\007trackNo\030\001 \001(\rb\006proto3"
;
static ::_pbi::once_flag descriptor_table_raw_5ftrack_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_raw_5ftrack_2eproto = {
false, false, 74, descriptor_table_protodef_raw_5ftrack_2eproto,
"raw_track.proto",
&descriptor_table_raw_5ftrack_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_raw_5ftrack_2eproto::offsets,
file_level_metadata_raw_5ftrack_2eproto, file_level_enum_descriptors_raw_5ftrack_2eproto,
file_level_service_descriptors_raw_5ftrack_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_raw_5ftrack_2eproto_getter() {
return &descriptor_table_raw_5ftrack_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_raw_5ftrack_2eproto(&descriptor_table_raw_5ftrack_2eproto);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_raw_5ftrack_2eproto(&descriptor_table_raw_5ftrack_2eproto);
namespace messages {
namespace raw_track {
// ===================================================================
class RawTrack::_Internal {
@@ -117,9 +93,14 @@ RawTrack::RawTrack(::PROTOBUF_NAMESPACE_ID::Arena* arena,
// @@protoc_insertion_point(arena_constructor:messages.raw_track.RawTrack)
}
RawTrack::RawTrack(const RawTrack& from)
: ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
from._internal_metadata_);
: ::PROTOBUF_NAMESPACE_ID::Message() {
RawTrack* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.trackno_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.trackno_ = from._impl_.trackno_;
// @@protoc_insertion_point(copy_constructor:messages.raw_track.RawTrack)
}
@@ -161,7 +142,6 @@ void RawTrack::Clear() {
}
const char* RawTrack::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
@@ -200,7 +180,6 @@ failure:
uint8_t* RawTrack::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.raw_track.RawTrack)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
@@ -220,7 +199,6 @@ uint8_t* RawTrack::_InternalSerialize(
}
size_t RawTrack::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.raw_track.RawTrack)
size_t total_size = 0;
@@ -246,7 +224,6 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RawTrack::GetClassData() const
void RawTrack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<RawTrack*>(&to_msg);
auto& from = static_cast<const RawTrack&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.raw_track.RawTrack)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
@@ -276,11 +253,11 @@ void RawTrack::InternalSwap(RawTrack* other) {
}
::PROTOBUF_NAMESPACE_ID::Metadata RawTrack::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_raw_5ftrack_2eproto_getter, &descriptor_table_raw_5ftrack_2eproto_once,
file_level_metadata_raw_5ftrack_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace raw_track
} // namespace messages
@@ -290,5 +267,6 @@ Arena::CreateMaybeMessage< ::messages::raw_track::RawTrack >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::raw_track::RawTrack >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#include <google/protobuf/port_undef.inc>

View File

@@ -1,43 +1,38 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: raw_track.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_raw_5ftrack_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_raw_5ftrack_2eproto_2epb_2eh
#ifndef GOOGLE_PROTOBUF_INCLUDED_raw_5ftrack_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_raw_5ftrack_2eproto
#include <limits>
#include <string>
#include <type_traits>
#include "google/protobuf/port_def.inc"
#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 // PROTOBUF_VERSION
#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
#if 3021008 < 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_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/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>
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_raw_5ftrack_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
@@ -48,8 +43,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_raw_5ftrack_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
descriptor_table_raw_5ftrack_2eproto;
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_raw_5ftrack_2eproto;
namespace messages {
namespace raw_track {
class RawTrack;
@@ -58,18 +52,13 @@ extern RawTrackDefaultTypeInternal _RawTrack_default_instance_;
} // namespace raw_track
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
::messages::raw_track::RawTrack* Arena::CreateMaybeMessage<::messages::raw_track::RawTrack>(Arena*);
template<> ::messages::raw_track::RawTrack* Arena::CreateMaybeMessage<::messages::raw_track::RawTrack>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
namespace raw_track {
// ===================================================================
// -------------------------------------------------------------------
class RawTrack final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.raw_track.RawTrack) */ {
public:
@@ -173,7 +162,7 @@ class RawTrack final :
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.raw_track.RawTrack";
}
protected:
@@ -219,17 +208,12 @@ class RawTrack final :
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// RawTrack
// uint32 trackNo = 1;
@@ -244,7 +228,7 @@ inline uint32_t RawTrack::trackno() const {
return _internal_trackno();
}
inline void RawTrack::_internal_set_trackno(uint32_t value) {
_impl_.trackno_ = value;
}
inline void RawTrack::set_trackno(uint32_t value) {
@@ -253,16 +237,15 @@ inline void RawTrack::set_trackno(uint32_t value) {
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace raw_track
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_raw_5ftrack_2eproto_2epb_2eh
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_raw_5ftrack_2eproto