diff --git a/src/protobuf/messages.pb.cc b/src/protobuf/messages.pb.cc index 6b7bd98de..29aa3b9ac 100644 --- a/src/protobuf/messages.pb.cc +++ b/src/protobuf/messages.pb.cc @@ -1,3 +1,4 @@ +// clang-format off // Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/protobuf/messages.proto @@ -5,19 +6,17 @@ #include <algorithm> -#include <google/protobuf/descriptor.h> -#include <google/protobuf/extension_set.h> -#include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/wire_format_lite.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> -#include <google/protobuf/wire_format_lite.h> // @@protoc_insertion_point(includes) #include <google/protobuf/port_def.inc> -extern PROTOBUF_INTERNAL_EXPORT_src_2fprotobuf_2fmessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> - scc_info_Address_src_2fprotobuf_2fmessages_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_src_2fprotobuf_2fmessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> - scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_src_2fprotobuf_2fmessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Address_src_2fprotobuf_2fmessages_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_src_2fprotobuf_2fmessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto; namespace memgraph { namespace protobuf { class AddressDefaultTypeInternal { @@ -31,7 +30,7 @@ class TestRequestDefaultTypeInternal { class UberMessageDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<UberMessage> _instance; - const ::memgraph::protobuf::TestRequest *test_request_; + const ::memgraph::protobuf::TestRequest* test_request_; } _UberMessage_default_instance_; } // namespace protobuf } // namespace memgraph @@ -39,170 +38,147 @@ static void InitDefaultsscc_info_Address_src_2fprotobuf_2fmessages_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void *ptr = &::memgraph::protobuf::_Address_default_instance_; - new (ptr)::memgraph::protobuf::Address(); + void* ptr = &::memgraph::protobuf::_Address_default_instance_; + new (ptr) ::memgraph::protobuf::Address(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::memgraph::protobuf::Address::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Address_src_2fprotobuf_2fmessages_2eproto = { - {ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, - InitDefaultsscc_info_Address_src_2fprotobuf_2fmessages_2eproto}, - {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Address_src_2fprotobuf_2fmessages_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Address_src_2fprotobuf_2fmessages_2eproto}, {}}; static void InitDefaultsscc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void *ptr = &::memgraph::protobuf::_TestRequest_default_instance_; - new (ptr)::memgraph::protobuf::TestRequest(); + void* ptr = &::memgraph::protobuf::_TestRequest_default_instance_; + new (ptr) ::memgraph::protobuf::TestRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::memgraph::protobuf::TestRequest::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto = { - {ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, - InitDefaultsscc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto}, - {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto}, {}}; static void InitDefaultsscc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void *ptr = &::memgraph::protobuf::_UberMessage_default_instance_; - new (ptr)::memgraph::protobuf::UberMessage(); + void* ptr = &::memgraph::protobuf::_UberMessage_default_instance_; + new (ptr) ::memgraph::protobuf::UberMessage(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::memgraph::protobuf::UberMessage::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto = { - {ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, - InitDefaultsscc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto}, - { - &scc_info_Address_src_2fprotobuf_2fmessages_2eproto.base, - &scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto.base, - }}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto}, { + &scc_info_Address_src_2fprotobuf_2fmessages_2eproto.base, + &scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto.base,}}; static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_src_2fprotobuf_2fmessages_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const * - *file_level_enum_descriptors_src_2fprotobuf_2fmessages_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const * - *file_level_service_descriptors_src_2fprotobuf_2fmessages_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_src_2fprotobuf_2fmessages_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_src_2fprotobuf_2fmessages_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 - TableStruct_src_2fprotobuf_2fmessages_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, unique_id_), - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, last_known_ip_), - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, last_known_port_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::TestRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::TestRequest, request_id_), - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::TestRequest, content_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, request_id_), - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, to_address_), - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, from_address_), - offsetof(::memgraph::protobuf::UberMessageDefaultTypeInternal, test_request_), - PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, content_), +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_src_2fprotobuf_2fmessages_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, unique_id_), + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, last_known_ip_), + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::Address, last_known_port_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::TestRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::TestRequest, request_id_), + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::TestRequest, content_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, request_id_), + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, to_address_), + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, from_address_), + offsetof(::memgraph::protobuf::UberMessageDefaultTypeInternal, test_request_), + PROTOBUF_FIELD_OFFSET(::memgraph::protobuf::UberMessage, specific_message_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, sizeof(::memgraph::protobuf::Address)}, - {8, -1, sizeof(::memgraph::protobuf::TestRequest)}, - {15, -1, sizeof(::memgraph::protobuf::UberMessage)}, + { 0, -1, sizeof(::memgraph::protobuf::Address)}, + { 8, -1, sizeof(::memgraph::protobuf::TestRequest)}, + { 15, -1, sizeof(::memgraph::protobuf::UberMessage)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[] = { - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message *>(&::memgraph::protobuf::_Address_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message *>(&::memgraph::protobuf::_TestRequest_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message *>(&::memgraph::protobuf::_UberMessage_default_instance_), +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::memgraph::protobuf::_Address_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::memgraph::protobuf::_TestRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::memgraph::protobuf::_UberMessage_default_instance_), }; const char descriptor_table_protodef_src_2fprotobuf_2fmessages_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\033src/protobuf/messages.proto\022\021memgraph." - "protobuf\"L\n\007Address\022\021\n\tunique_id\030\001 \001(\014\022\025" - "\n\rlast_known_ip\030\002 \001(\014\022\027\n\017last_known_port" - "\030\003 \001(\r\"2\n\013TestRequest\022\022\n\nrequest_id\030\001 \001(" - "\004\022\017\n\007content\030\002 \001(\t\"\306\001\n\013UberMessage\022\022\n\nre" - "quest_id\030\001 \001(\004\022.\n\nto_address\030\002 \001(\0132\032.mem" - "graph.protobuf.Address\0220\n\014from_address\030\003" - " \001(\0132\032.memgraph.protobuf.Address\0226\n\014test" - "_request\030\004 \001(\0132\036.memgraph.protobuf.TestR" - "equestH\000B\t\n\007contentb\006proto3"; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable - *const descriptor_table_src_2fprotobuf_2fmessages_2eproto_deps[1] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase - *const descriptor_table_src_2fprotobuf_2fmessages_2eproto_sccs[3] = { - &scc_info_Address_src_2fprotobuf_2fmessages_2eproto.base, - &scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto.base, - &scc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto.base, + "\n\033src/protobuf/messages.proto\022\021memgraph." + "protobuf\"L\n\007Address\022\021\n\tunique_id\030\001 \001(\014\022\025" + "\n\rlast_known_ip\030\002 \001(\014\022\027\n\017last_known_port" + "\030\003 \001(\r\"2\n\013TestRequest\022\022\n\nrequest_id\030\001 \001(" + "\004\022\017\n\007content\030\002 \001(\t\"\317\001\n\013UberMessage\022\022\n\nre" + "quest_id\030\001 \001(\004\022.\n\nto_address\030\002 \001(\0132\032.mem" + "graph.protobuf.Address\0220\n\014from_address\030\003" + " \001(\0132\032.memgraph.protobuf.Address\0226\n\014test" + "_request\030\004 \001(\0132\036.memgraph.protobuf.TestR" + "equestH\000B\022\n\020specific_messageb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_src_2fprotobuf_2fmessages_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_src_2fprotobuf_2fmessages_2eproto_sccs[3] = { + &scc_info_Address_src_2fprotobuf_2fmessages_2eproto.base, + &scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto.base, + &scc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_src_2fprotobuf_2fmessages_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_src_2fprotobuf_2fmessages_2eproto = { - false, - false, - descriptor_table_protodef_src_2fprotobuf_2fmessages_2eproto, - "src/protobuf/messages.proto", - 387, - &descriptor_table_src_2fprotobuf_2fmessages_2eproto_once, - descriptor_table_src_2fprotobuf_2fmessages_2eproto_sccs, - descriptor_table_src_2fprotobuf_2fmessages_2eproto_deps, - 3, - 0, - schemas, - file_default_instances, - TableStruct_src_2fprotobuf_2fmessages_2eproto::offsets, - file_level_metadata_src_2fprotobuf_2fmessages_2eproto, - 3, - file_level_enum_descriptors_src_2fprotobuf_2fmessages_2eproto, - file_level_service_descriptors_src_2fprotobuf_2fmessages_2eproto, + false, false, descriptor_table_protodef_src_2fprotobuf_2fmessages_2eproto, "src/protobuf/messages.proto", 396, + &descriptor_table_src_2fprotobuf_2fmessages_2eproto_once, descriptor_table_src_2fprotobuf_2fmessages_2eproto_sccs, descriptor_table_src_2fprotobuf_2fmessages_2eproto_deps, 3, 0, + schemas, file_default_instances, TableStruct_src_2fprotobuf_2fmessages_2eproto::offsets, + file_level_metadata_src_2fprotobuf_2fmessages_2eproto, 3, file_level_enum_descriptors_src_2fprotobuf_2fmessages_2eproto, file_level_service_descriptors_src_2fprotobuf_2fmessages_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_src_2fprotobuf_2fmessages_2eproto = - (static_cast<void>( - ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_src_2fprotobuf_2fmessages_2eproto)), - true); +static bool dynamic_init_dummy_src_2fprotobuf_2fmessages_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_src_2fprotobuf_2fmessages_2eproto)), true); namespace memgraph { namespace protobuf { // =================================================================== -void Address::InitAsDefaultInstance() {} +void Address::InitAsDefaultInstance() { +} class Address::_Internal { public: }; -Address::Address(::PROTOBUF_NAMESPACE_ID::Arena *arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Address::Address(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:memgraph.protobuf.Address) } -Address::Address(const Address &from) : ::PROTOBUF_NAMESPACE_ID::Message() { +Address::Address(const Address& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); unique_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_unique_id().empty()) { unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_unique_id(), - GetArena()); + GetArena()); } last_known_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_last_known_ip().empty()) { - last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - from._internal_last_known_ip(), GetArena()); + last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_last_known_ip(), + GetArena()); } last_known_port_ = from.last_known_port_; // @@protoc_insertion_point(copy_constructor:memgraph.protobuf.Address) @@ -227,22 +203,26 @@ void Address::SharedDtor() { last_known_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void Address::ArenaDtor(void *object) { - Address *_this = reinterpret_cast<Address *>(object); +void Address::ArenaDtor(void* object) { + Address* _this = reinterpret_cast< Address* >(object); (void)_this; } -void Address::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *) {} -void Address::SetCachedSize(int size) const { _cached_size_.Set(size); } -const Address &Address::default_instance() { +void Address::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Address::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Address& Address::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Address_src_2fprotobuf_2fmessages_2eproto.base); return *internal_default_instance(); } + void Address::Clear() { - // @@protoc_insertion_point(message_clear_start:memgraph.protobuf.Address) +// @@protoc_insertion_point(message_clear_start:memgraph.protobuf.Address) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + (void) cached_has_bits; unique_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); last_known_ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -250,11 +230,9 @@ void Address::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char *Address::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) { -#define CHK_(x) \ - if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena *arena = GetArena(); - (void)arena; +const char* Address::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); @@ -266,8 +244,7 @@ const char *Address::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::in auto str = _internal_mutable_unique_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // bytes last_known_ip = 2; case 2: @@ -275,16 +252,14 @@ const char *Address::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::in auto str = _internal_mutable_last_known_ip(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // uint32 last_known_port = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { last_known_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; default: { handle_unusual: @@ -292,13 +267,14 @@ const char *Address::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::in ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse( - tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch - } // while + } // while success: return ptr; failure: @@ -307,89 +283,97 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8 *Address::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Address::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:memgraph.protobuf.Address) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; // bytes unique_id = 1; if (this->unique_id().size() > 0) { - target = stream->WriteBytesMaybeAliased(1, this->_internal_unique_id(), target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_unique_id(), target); } // bytes last_known_ip = 2; if (this->last_known_ip().size() > 0) { - target = stream->WriteBytesMaybeAliased(2, this->_internal_last_known_ip(), target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_last_known_ip(), target); } // uint32 last_known_port = 3; if (this->last_known_port() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_last_known_port(), - target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_last_known_port(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), - target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:memgraph.protobuf.Address) return target; } size_t Address::ByteSizeLong() const { - // @@protoc_insertion_point(message_byte_size_start:memgraph.protobuf.Address) +// @@protoc_insertion_point(message_byte_size_start:memgraph.protobuf.Address) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + (void) cached_has_bits; // bytes unique_id = 1; if (this->unique_id().size() > 0) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_unique_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_unique_id()); } // bytes last_known_ip = 2; if (this->last_known_ip().size() > 0) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_last_known_ip()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_last_known_ip()); } // uint32 last_known_port = 3; if (this->last_known_port() != 0) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_last_known_port()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_last_known_port()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(_internal_metadata_, total_size, &_cached_size_); + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Address::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) { - // @@protoc_insertion_point(generalized_merge_from_start:memgraph.protobuf.Address) +void Address::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:memgraph.protobuf.Address) GOOGLE_DCHECK_NE(&from, this); - const Address *source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Address>(&from); + const Address* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Address>( + &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:memgraph.protobuf.Address) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:memgraph.protobuf.Address) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:memgraph.protobuf.Address) + // @@protoc_insertion_point(generalized_merge_from_cast_success:memgraph.protobuf.Address) MergeFrom(*source); } } -void Address::MergeFrom(const Address &from) { - // @@protoc_insertion_point(class_specific_merge_from_start:memgraph.protobuf.Address) +void Address::MergeFrom(const Address& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:memgraph.protobuf.Address) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; if (from.unique_id().size() > 0) { _internal_set_unique_id(from._internal_unique_id()); @@ -402,51 +386,58 @@ void Address::MergeFrom(const Address &from) { } } -void Address::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) { - // @@protoc_insertion_point(generalized_copy_from_start:memgraph.protobuf.Address) +void Address::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:memgraph.protobuf.Address) if (&from == this) return; Clear(); MergeFrom(from); } -void Address::CopyFrom(const Address &from) { - // @@protoc_insertion_point(class_specific_copy_from_start:memgraph.protobuf.Address) +void Address::CopyFrom(const Address& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:memgraph.protobuf.Address) if (&from == this) return; Clear(); MergeFrom(from); } -bool Address::IsInitialized() const { return true; } +bool Address::IsInitialized() const { + return true; +} -void Address::InternalSwap(Address *other) { +void Address::InternalSwap(Address* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); unique_id_.Swap(&other->unique_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - last_known_ip_.Swap(&other->last_known_ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); + last_known_ip_.Swap(&other->last_known_ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(last_known_port_, other->last_known_port_); } -::PROTOBUF_NAMESPACE_ID::Metadata Address::GetMetadata() const { return GetMetadataStatic(); } +::PROTOBUF_NAMESPACE_ID::Metadata Address::GetMetadata() const { + return GetMetadataStatic(); +} + // =================================================================== -void TestRequest::InitAsDefaultInstance() {} +void TestRequest::InitAsDefaultInstance() { +} class TestRequest::_Internal { public: }; -TestRequest::TestRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TestRequest::TestRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:memgraph.protobuf.TestRequest) } -TestRequest::TestRequest(const TestRequest &from) : ::PROTOBUF_NAMESPACE_ID::Message() { +TestRequest::TestRequest(const TestRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_content().empty()) { content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_content(), - GetArena()); + GetArena()); } request_id_ = from.request_id_; // @@protoc_insertion_point(copy_constructor:memgraph.protobuf.TestRequest) @@ -469,33 +460,35 @@ void TestRequest::SharedDtor() { content_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void TestRequest::ArenaDtor(void *object) { - TestRequest *_this = reinterpret_cast<TestRequest *>(object); +void TestRequest::ArenaDtor(void* object) { + TestRequest* _this = reinterpret_cast< TestRequest* >(object); (void)_this; } -void TestRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *) {} -void TestRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const TestRequest &TestRequest::default_instance() { +void TestRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void TestRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TestRequest& TestRequest::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TestRequest_src_2fprotobuf_2fmessages_2eproto.base); return *internal_default_instance(); } + void TestRequest::Clear() { - // @@protoc_insertion_point(message_clear_start:memgraph.protobuf.TestRequest) +// @@protoc_insertion_point(message_clear_start:memgraph.protobuf.TestRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + (void) cached_has_bits; content_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); request_id_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char *TestRequest::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) { -#define CHK_(x) \ - if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena *arena = GetArena(); - (void)arena; +const char* TestRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); @@ -506,8 +499,7 @@ const char *TestRequest::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // string content = 2; case 2: @@ -516,8 +508,7 @@ const char *TestRequest::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "memgraph.protobuf.TestRequest.content")); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; default: { handle_unusual: @@ -525,13 +516,14 @@ const char *TestRequest::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse( - tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch - } // while + } // while success: return ptr; failure: @@ -540,82 +532,88 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8 *TestRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* TestRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:memgraph.protobuf.TestRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; // uint64 request_id = 1; if (this->request_id() != 0) { target = stream->EnsureSpace(target); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_request_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_request_id(), target); } // string content = 2; if (this->content().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_content().data(), static_cast<int>(this->_internal_content().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "memgraph.protobuf.TestRequest.content"); - target = stream->WriteStringMaybeAliased(2, this->_internal_content(), target); + this->_internal_content().data(), static_cast<int>(this->_internal_content().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "memgraph.protobuf.TestRequest.content"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_content(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), - target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:memgraph.protobuf.TestRequest) return target; } size_t TestRequest::ByteSizeLong() const { - // @@protoc_insertion_point(message_byte_size_start:memgraph.protobuf.TestRequest) +// @@protoc_insertion_point(message_byte_size_start:memgraph.protobuf.TestRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + (void) cached_has_bits; // string content = 2; if (this->content().size() > 0) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_content()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_content()); } // uint64 request_id = 1; if (this->request_id() != 0) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(this->_internal_request_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_request_id()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(_internal_metadata_, total_size, &_cached_size_); + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TestRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) { - // @@protoc_insertion_point(generalized_merge_from_start:memgraph.protobuf.TestRequest) +void TestRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:memgraph.protobuf.TestRequest) GOOGLE_DCHECK_NE(&from, this); - const TestRequest *source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TestRequest>(&from); + const TestRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TestRequest>( + &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:memgraph.protobuf.TestRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:memgraph.protobuf.TestRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:memgraph.protobuf.TestRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:memgraph.protobuf.TestRequest) MergeFrom(*source); } } -void TestRequest::MergeFrom(const TestRequest &from) { - // @@protoc_insertion_point(class_specific_merge_from_start:memgraph.protobuf.TestRequest) +void TestRequest::MergeFrom(const TestRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:memgraph.protobuf.TestRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; if (from.content().size() > 0) { _internal_set_content(from._internal_content()); @@ -625,76 +623,88 @@ void TestRequest::MergeFrom(const TestRequest &from) { } } -void TestRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) { - // @@protoc_insertion_point(generalized_copy_from_start:memgraph.protobuf.TestRequest) +void TestRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:memgraph.protobuf.TestRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void TestRequest::CopyFrom(const TestRequest &from) { - // @@protoc_insertion_point(class_specific_copy_from_start:memgraph.protobuf.TestRequest) +void TestRequest::CopyFrom(const TestRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:memgraph.protobuf.TestRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool TestRequest::IsInitialized() const { return true; } +bool TestRequest::IsInitialized() const { + return true; +} -void TestRequest::InternalSwap(TestRequest *other) { +void TestRequest::InternalSwap(TestRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); content_.Swap(&other->content_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(request_id_, other->request_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata TestRequest::GetMetadata() const { return GetMetadataStatic(); } +::PROTOBUF_NAMESPACE_ID::Metadata TestRequest::GetMetadata() const { + return GetMetadataStatic(); +} + // =================================================================== void UberMessage::InitAsDefaultInstance() { - ::memgraph::protobuf::_UberMessage_default_instance_._instance.get_mutable()->to_address_ = - const_cast<::memgraph::protobuf::Address *>(::memgraph::protobuf::Address::internal_default_instance()); - ::memgraph::protobuf::_UberMessage_default_instance_._instance.get_mutable()->from_address_ = - const_cast<::memgraph::protobuf::Address *>(::memgraph::protobuf::Address::internal_default_instance()); - ::memgraph::protobuf::_UberMessage_default_instance_.test_request_ = - const_cast<::memgraph::protobuf::TestRequest *>(::memgraph::protobuf::TestRequest::internal_default_instance()); + ::memgraph::protobuf::_UberMessage_default_instance_._instance.get_mutable()->to_address_ = const_cast< ::memgraph::protobuf::Address*>( + ::memgraph::protobuf::Address::internal_default_instance()); + ::memgraph::protobuf::_UberMessage_default_instance_._instance.get_mutable()->from_address_ = const_cast< ::memgraph::protobuf::Address*>( + ::memgraph::protobuf::Address::internal_default_instance()); + ::memgraph::protobuf::_UberMessage_default_instance_.test_request_ = const_cast< ::memgraph::protobuf::TestRequest*>( + ::memgraph::protobuf::TestRequest::internal_default_instance()); } class UberMessage::_Internal { public: - static const ::memgraph::protobuf::Address &to_address(const UberMessage *msg); - static const ::memgraph::protobuf::Address &from_address(const UberMessage *msg); - static const ::memgraph::protobuf::TestRequest &test_request(const UberMessage *msg); + static const ::memgraph::protobuf::Address& to_address(const UberMessage* msg); + static const ::memgraph::protobuf::Address& from_address(const UberMessage* msg); + static const ::memgraph::protobuf::TestRequest& test_request(const UberMessage* msg); }; -const ::memgraph::protobuf::Address &UberMessage::_Internal::to_address(const UberMessage *msg) { +const ::memgraph::protobuf::Address& +UberMessage::_Internal::to_address(const UberMessage* msg) { return *msg->to_address_; } -const ::memgraph::protobuf::Address &UberMessage::_Internal::from_address(const UberMessage *msg) { +const ::memgraph::protobuf::Address& +UberMessage::_Internal::from_address(const UberMessage* msg) { return *msg->from_address_; } -const ::memgraph::protobuf::TestRequest &UberMessage::_Internal::test_request(const UberMessage *msg) { - return *msg->content_.test_request_; +const ::memgraph::protobuf::TestRequest& +UberMessage::_Internal::test_request(const UberMessage* msg) { + return *msg->specific_message_.test_request_; } -void UberMessage::set_allocated_test_request(::memgraph::protobuf::TestRequest *test_request) { - ::PROTOBUF_NAMESPACE_ID::Arena *message_arena = GetArena(); - clear_content(); +void UberMessage::set_allocated_test_request(::memgraph::protobuf::TestRequest* test_request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_specific_message(); if (test_request) { - ::PROTOBUF_NAMESPACE_ID::Arena *submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(test_request); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(test_request); if (message_arena != submessage_arena) { - test_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(message_arena, test_request, submessage_arena); + test_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, test_request, submessage_arena); } set_has_test_request(); - content_.test_request_ = test_request; + specific_message_.test_request_ = test_request; } // @@protoc_insertion_point(field_set_allocated:memgraph.protobuf.UberMessage.test_request) } -UberMessage::UberMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +UberMessage::UberMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:memgraph.protobuf.UberMessage) } -UberMessage::UberMessage(const UberMessage &from) : ::PROTOBUF_NAMESPACE_ID::Message() { +UberMessage::UberMessage(const UberMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_to_address()) { to_address_ = new ::memgraph::protobuf::Address(*from.to_address_); @@ -707,13 +717,13 @@ UberMessage::UberMessage(const UberMessage &from) : ::PROTOBUF_NAMESPACE_ID::Mes from_address_ = nullptr; } request_id_ = from.request_id_; - clear_has_content(); - switch (from.content_case()) { + clear_has_specific_message(); + switch (from.specific_message_case()) { case kTestRequest: { _internal_mutable_test_request()->::memgraph::protobuf::TestRequest::MergeFrom(from._internal_test_request()); break; } - case CONTENT_NOT_SET: { + case SPECIFIC_MESSAGE_NOT_SET: { break; } } @@ -722,10 +732,10 @@ UberMessage::UberMessage(const UberMessage &from) : ::PROTOBUF_NAMESPACE_ID::Mes void UberMessage::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto.base); - ::memset(&to_address_, 0, - static_cast<size_t>(reinterpret_cast<char *>(&request_id_) - reinterpret_cast<char *>(&to_address_)) + - sizeof(request_id_)); - clear_has_content(); + ::memset(&to_address_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&request_id_) - + reinterpret_cast<char*>(&to_address_)) + sizeof(request_id_)); + clear_has_specific_message(); } UberMessage::~UberMessage() { @@ -738,43 +748,48 @@ void UberMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete to_address_; if (this != internal_default_instance()) delete from_address_; - if (has_content()) { - clear_content(); + if (has_specific_message()) { + clear_specific_message(); } } -void UberMessage::ArenaDtor(void *object) { - UberMessage *_this = reinterpret_cast<UberMessage *>(object); +void UberMessage::ArenaDtor(void* object) { + UberMessage* _this = reinterpret_cast< UberMessage* >(object); (void)_this; } -void UberMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *) {} -void UberMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } -const UberMessage &UberMessage::default_instance() { +void UberMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void UberMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UberMessage& UberMessage::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_UberMessage_src_2fprotobuf_2fmessages_2eproto.base); return *internal_default_instance(); } -void UberMessage::clear_content() { - // @@protoc_insertion_point(one_of_clear_start:memgraph.protobuf.UberMessage) - switch (content_case()) { + +void UberMessage::clear_specific_message() { +// @@protoc_insertion_point(one_of_clear_start:memgraph.protobuf.UberMessage) + switch (specific_message_case()) { case kTestRequest: { if (GetArena() == nullptr) { - delete content_.test_request_; + delete specific_message_.test_request_; } break; } - case CONTENT_NOT_SET: { + case SPECIFIC_MESSAGE_NOT_SET: { break; } } - _oneof_case_[0] = CONTENT_NOT_SET; + _oneof_case_[0] = SPECIFIC_MESSAGE_NOT_SET; } + void UberMessage::Clear() { - // @@protoc_insertion_point(message_clear_start:memgraph.protobuf.UberMessage) +// @@protoc_insertion_point(message_clear_start:memgraph.protobuf.UberMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + (void) cached_has_bits; if (GetArena() == nullptr && to_address_ != nullptr) { delete to_address_; @@ -785,15 +800,13 @@ void UberMessage::Clear() { } from_address_ = nullptr; request_id_ = PROTOBUF_ULONGLONG(0); - clear_content(); + clear_specific_message(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char *UberMessage::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) { -#define CHK_(x) \ - if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena *arena = GetArena(); - (void)arena; +const char* UberMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); @@ -804,32 +817,28 @@ const char *UberMessage::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .memgraph.protobuf.Address to_address = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_to_address(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .memgraph.protobuf.Address from_address = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_from_address(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .memgraph.protobuf.TestRequest test_request = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_test_request(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; default: { handle_unusual: @@ -837,13 +846,14 @@ const char *UberMessage::_InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse( - tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch - } // while + } // while success: return ptr; failure: @@ -852,110 +862,121 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8 *UberMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* UberMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:memgraph.protobuf.UberMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; // uint64 request_id = 1; if (this->request_id() != 0) { target = stream->EnsureSpace(target); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_request_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_request_id(), target); } // .memgraph.protobuf.Address to_address = 2; if (this->has_to_address()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(2, _Internal::to_address(this), - target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::to_address(this), target, stream); } // .memgraph.protobuf.Address from_address = 3; if (this->has_from_address()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(3, _Internal::from_address(this), - target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::from_address(this), target, stream); } // .memgraph.protobuf.TestRequest test_request = 4; if (_internal_has_test_request()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(4, _Internal::test_request(this), - target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::test_request(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), - target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:memgraph.protobuf.UberMessage) return target; } size_t UberMessage::ByteSizeLong() const { - // @@protoc_insertion_point(message_byte_size_start:memgraph.protobuf.UberMessage) +// @@protoc_insertion_point(message_byte_size_start:memgraph.protobuf.UberMessage) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + (void) cached_has_bits; // .memgraph.protobuf.Address to_address = 2; if (this->has_to_address()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(*to_address_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *to_address_); } // .memgraph.protobuf.Address from_address = 3; if (this->has_from_address()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(*from_address_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *from_address_); } // uint64 request_id = 1; if (this->request_id() != 0) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(this->_internal_request_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_request_id()); } - switch (content_case()) { + switch (specific_message_case()) { // .memgraph.protobuf.TestRequest test_request = 4; case kTestRequest: { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(*content_.test_request_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *specific_message_.test_request_); break; } - case CONTENT_NOT_SET: { + case SPECIFIC_MESSAGE_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(_internal_metadata_, total_size, &_cached_size_); + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void UberMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) { - // @@protoc_insertion_point(generalized_merge_from_start:memgraph.protobuf.UberMessage) +void UberMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:memgraph.protobuf.UberMessage) GOOGLE_DCHECK_NE(&from, this); - const UberMessage *source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UberMessage>(&from); + const UberMessage* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UberMessage>( + &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:memgraph.protobuf.UberMessage) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:memgraph.protobuf.UberMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:memgraph.protobuf.UberMessage) + // @@protoc_insertion_point(generalized_merge_from_cast_success:memgraph.protobuf.UberMessage) MergeFrom(*source); } } -void UberMessage::MergeFrom(const UberMessage &from) { - // @@protoc_insertion_point(class_specific_merge_from_start:memgraph.protobuf.UberMessage) +void UberMessage::MergeFrom(const UberMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:memgraph.protobuf.UberMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; if (from.has_to_address()) { _internal_mutable_to_address()->::memgraph::protobuf::Address::MergeFrom(from._internal_to_address()); @@ -966,64 +987,65 @@ void UberMessage::MergeFrom(const UberMessage &from) { if (from.request_id() != 0) { _internal_set_request_id(from._internal_request_id()); } - switch (from.content_case()) { + switch (from.specific_message_case()) { case kTestRequest: { _internal_mutable_test_request()->::memgraph::protobuf::TestRequest::MergeFrom(from._internal_test_request()); break; } - case CONTENT_NOT_SET: { + case SPECIFIC_MESSAGE_NOT_SET: { break; } } } -void UberMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) { - // @@protoc_insertion_point(generalized_copy_from_start:memgraph.protobuf.UberMessage) +void UberMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:memgraph.protobuf.UberMessage) if (&from == this) return; Clear(); MergeFrom(from); } -void UberMessage::CopyFrom(const UberMessage &from) { - // @@protoc_insertion_point(class_specific_copy_from_start:memgraph.protobuf.UberMessage) +void UberMessage::CopyFrom(const UberMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:memgraph.protobuf.UberMessage) if (&from == this) return; Clear(); MergeFrom(from); } -bool UberMessage::IsInitialized() const { return true; } +bool UberMessage::IsInitialized() const { + return true; +} -void UberMessage::InternalSwap(UberMessage *other) { +void UberMessage::InternalSwap(UberMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap<PROTOBUF_FIELD_OFFSET(UberMessage, request_id_) + - sizeof(UberMessage::request_id_) - - PROTOBUF_FIELD_OFFSET(UberMessage, to_address_)>( - reinterpret_cast<char *>(&to_address_), reinterpret_cast<char *>(&other->to_address_)); - swap(content_, other->content_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UberMessage, request_id_) + + sizeof(UberMessage::request_id_) + - PROTOBUF_FIELD_OFFSET(UberMessage, to_address_)>( + reinterpret_cast<char*>(&to_address_), + reinterpret_cast<char*>(&other->to_address_)); + swap(specific_message_, other->specific_message_); swap(_oneof_case_[0], other->_oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata UberMessage::GetMetadata() const { return GetMetadataStatic(); } +::PROTOBUF_NAMESPACE_ID::Metadata UberMessage::GetMetadata() const { + return GetMetadataStatic(); +} + // @@protoc_insertion_point(namespace_scope) } // namespace protobuf } // namespace memgraph PROTOBUF_NAMESPACE_OPEN -template <> -PROTOBUF_NOINLINE ::memgraph::protobuf::Address *Arena::CreateMaybeMessage<::memgraph::protobuf::Address>( - Arena *arena) { - return Arena::CreateMessageInternal<::memgraph::protobuf::Address>(arena); +template<> PROTOBUF_NOINLINE ::memgraph::protobuf::Address* Arena::CreateMaybeMessage< ::memgraph::protobuf::Address >(Arena* arena) { + return Arena::CreateMessageInternal< ::memgraph::protobuf::Address >(arena); } -template <> -PROTOBUF_NOINLINE ::memgraph::protobuf::TestRequest *Arena::CreateMaybeMessage<::memgraph::protobuf::TestRequest>( - Arena *arena) { - return Arena::CreateMessageInternal<::memgraph::protobuf::TestRequest>(arena); +template<> PROTOBUF_NOINLINE ::memgraph::protobuf::TestRequest* Arena::CreateMaybeMessage< ::memgraph::protobuf::TestRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::memgraph::protobuf::TestRequest >(arena); } -template <> -PROTOBUF_NOINLINE ::memgraph::protobuf::UberMessage *Arena::CreateMaybeMessage<::memgraph::protobuf::UberMessage>( - Arena *arena) { - return Arena::CreateMessageInternal<::memgraph::protobuf::UberMessage>(arena); +template<> PROTOBUF_NOINLINE ::memgraph::protobuf::UberMessage* Arena::CreateMaybeMessage< ::memgraph::protobuf::UberMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::memgraph::protobuf::UberMessage >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/src/protobuf/messages.pb.h b/src/protobuf/messages.pb.h index 4c66878eb..431c097bf 100644 --- a/src/protobuf/messages.pb.h +++ b/src/protobuf/messages.pb.h @@ -1,3 +1,4 @@ +// clang-format off // Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/protobuf/messages.proto @@ -19,19 +20,19 @@ #error regenerate this file with a newer version of protoc. #endif +#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/extension_set.h> // IWYU pragma: export -#include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/generated_message_table_driven.h> #include <google/protobuf/generated_message_util.h> #include <google/protobuf/inlined_string_field.h> -#include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/message.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> // @@protoc_insertion_point(includes) #include <google/protobuf/port_def.inc> #define PROTOBUF_INTERNAL_EXPORT_src_2fprotobuf_2fmessages_2eproto @@ -43,10 +44,12 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_src_2fprotobuf_2fmessages_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; @@ -66,32 +69,32 @@ extern UberMessageDefaultTypeInternal _UberMessage_default_instance_; } // namespace protobuf } // namespace memgraph PROTOBUF_NAMESPACE_OPEN -template <> -::memgraph::protobuf::Address *Arena::CreateMaybeMessage<::memgraph::protobuf::Address>(Arena *); -template <> -::memgraph::protobuf::TestRequest *Arena::CreateMaybeMessage<::memgraph::protobuf::TestRequest>(Arena *); -template <> -::memgraph::protobuf::UberMessage *Arena::CreateMaybeMessage<::memgraph::protobuf::UberMessage>(Arena *); +template<> ::memgraph::protobuf::Address* Arena::CreateMaybeMessage<::memgraph::protobuf::Address>(Arena*); +template<> ::memgraph::protobuf::TestRequest* Arena::CreateMaybeMessage<::memgraph::protobuf::TestRequest>(Arena*); +template<> ::memgraph::protobuf::UberMessage* Arena::CreateMaybeMessage<::memgraph::protobuf::UberMessage>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace memgraph { namespace protobuf { // =================================================================== -class Address PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID:: - Message /* @@protoc_insertion_point(class_definition:memgraph.protobuf.Address) */ { +class Address PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:memgraph.protobuf.Address) */ { public: - inline Address() : Address(nullptr){}; + inline Address() : Address(nullptr) {}; virtual ~Address(); - Address(const Address &from); - Address(Address &&from) noexcept : Address() { *this = ::std::move(from); } + Address(const Address& from); + Address(Address&& from) noexcept + : Address() { + *this = ::std::move(from); + } - inline Address &operator=(const Address &from) { + inline Address& operator=(const Address& from) { CopyFrom(from); return *this; } - inline Address &operator=(Address &&from) noexcept { + inline Address& operator=(Address&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -100,19 +103,29 @@ class Address PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID:: return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor *descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor *GetDescriptor() { return GetMetadataStatic().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection *GetReflection() { return GetMetadataStatic().reflection; } - static const Address &default_instance(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Address& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Address *internal_default_instance() { - return reinterpret_cast<const Address *>(&_Address_default_instance_); + static inline const Address* internal_default_instance() { + return reinterpret_cast<const Address*>( + &_Address_default_instance_); } - static constexpr int kIndexInFileMessages = 0; + static constexpr int kIndexInFileMessages = + 0; - friend void swap(Address &a, Address &b) { a.Swap(&b); } - inline void Swap(Address *other) { + friend void swap(Address& a, Address& b) { + a.Swap(&b); + } + inline void Swap(Address* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -120,7 +133,7 @@ class Address PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID:: ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Address *other) { + void UnsafeArenaSwap(Address* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -128,47 +141,51 @@ class Address PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID:: // implements Message ---------------------------------------------- - inline Address *New() const final { return CreateMaybeMessage<Address>(nullptr); } + inline Address* New() const final { + return CreateMaybeMessage<Address>(nullptr); + } - Address *New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final { return CreateMaybeMessage<Address>(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final; - void CopyFrom(const Address &from); - void MergeFrom(const Address &from); + Address* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Address>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Address& from); + void MergeFrom(const Address& from); PROTOBUF_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; - ::PROTOBUF_NAMESPACE_ID::uint8 *_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } - private: + private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Address *other); + void InternalSwap(Address* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "memgraph.protobuf.Address"; } + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "memgraph.protobuf.Address"; + } + protected: + explicit Address(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: - protected: - explicit Address(::PROTOBUF_NAMESPACE_ID::Arena *arena); - - private: - static void ArenaDtor(void *object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena); - - public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - private: + private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_src_2fprotobuf_2fmessages_2eproto); return ::descriptor_table_src_2fprotobuf_2fmessages_2eproto.file_level_metadata[kIndexInFileMessages]; } - public: + public: + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -180,74 +197,68 @@ class Address PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID:: }; // bytes unique_id = 1; void clear_unique_id(); - const std::string &unique_id() const; - void set_unique_id(const std::string &value); - void set_unique_id(std::string &&value); - void set_unique_id(const char *value); - void set_unique_id(const void *value, size_t size); - std::string *mutable_unique_id(); - std::string *release_unique_id(); - void set_allocated_unique_id(std::string *unique_id); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED( - "The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string *unsafe_arena_release_unique_id(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED( - "The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_unique_id(std::string *unique_id); + const std::string& unique_id() const; + void set_unique_id(const std::string& value); + void set_unique_id(std::string&& value); + void set_unique_id(const char* value); + void set_unique_id(const void* value, size_t size); + std::string* mutable_unique_id(); + std::string* release_unique_id(); + void set_allocated_unique_id(std::string* unique_id); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_unique_id(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_unique_id( + std::string* unique_id); + private: + const std::string& _internal_unique_id() const; + void _internal_set_unique_id(const std::string& value); + std::string* _internal_mutable_unique_id(); + public: - private: - const std::string &_internal_unique_id() const; - void _internal_set_unique_id(const std::string &value); - std::string *_internal_mutable_unique_id(); - - public: // bytes last_known_ip = 2; void clear_last_known_ip(); - const std::string &last_known_ip() const; - void set_last_known_ip(const std::string &value); - void set_last_known_ip(std::string &&value); - void set_last_known_ip(const char *value); - void set_last_known_ip(const void *value, size_t size); - std::string *mutable_last_known_ip(); - std::string *release_last_known_ip(); - void set_allocated_last_known_ip(std::string *last_known_ip); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED( - "The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string *unsafe_arena_release_last_known_ip(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED( - "The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_last_known_ip(std::string *last_known_ip); + const std::string& last_known_ip() const; + void set_last_known_ip(const std::string& value); + void set_last_known_ip(std::string&& value); + void set_last_known_ip(const char* value); + void set_last_known_ip(const void* value, size_t size); + std::string* mutable_last_known_ip(); + std::string* release_last_known_ip(); + void set_allocated_last_known_ip(std::string* last_known_ip); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_last_known_ip(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_last_known_ip( + std::string* last_known_ip); + private: + const std::string& _internal_last_known_ip() const; + void _internal_set_last_known_ip(const std::string& value); + std::string* _internal_mutable_last_known_ip(); + public: - private: - const std::string &_internal_last_known_ip() const; - void _internal_set_last_known_ip(const std::string &value); - std::string *_internal_mutable_last_known_ip(); - - public: // uint32 last_known_port = 3; void clear_last_known_port(); ::PROTOBUF_NAMESPACE_ID::uint32 last_known_port() const; void set_last_known_port(::PROTOBUF_NAMESPACE_ID::uint32 value); - - private: + private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_last_known_port() const; void _internal_set_last_known_port(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: - public: // @@protoc_insertion_point(class_scope:memgraph.protobuf.Address) private: class _Internal; - template <typename T> - friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unique_id_; @@ -258,21 +269,23 @@ class Address PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID:: }; // ------------------------------------------------------------------- -class TestRequest PROTOBUF_FINAL - : public ::PROTOBUF_NAMESPACE_ID:: - Message /* @@protoc_insertion_point(class_definition:memgraph.protobuf.TestRequest) */ { +class TestRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:memgraph.protobuf.TestRequest) */ { public: - inline TestRequest() : TestRequest(nullptr){}; + inline TestRequest() : TestRequest(nullptr) {}; virtual ~TestRequest(); - TestRequest(const TestRequest &from); - TestRequest(TestRequest &&from) noexcept : TestRequest() { *this = ::std::move(from); } + TestRequest(const TestRequest& from); + TestRequest(TestRequest&& from) noexcept + : TestRequest() { + *this = ::std::move(from); + } - inline TestRequest &operator=(const TestRequest &from) { + inline TestRequest& operator=(const TestRequest& from) { CopyFrom(from); return *this; } - inline TestRequest &operator=(TestRequest &&from) noexcept { + inline TestRequest& operator=(TestRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -281,19 +294,29 @@ class TestRequest PROTOBUF_FINAL return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor *descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor *GetDescriptor() { return GetMetadataStatic().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection *GetReflection() { return GetMetadataStatic().reflection; } - static const TestRequest &default_instance(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const TestRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TestRequest *internal_default_instance() { - return reinterpret_cast<const TestRequest *>(&_TestRequest_default_instance_); + static inline const TestRequest* internal_default_instance() { + return reinterpret_cast<const TestRequest*>( + &_TestRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 1; + static constexpr int kIndexInFileMessages = + 1; - friend void swap(TestRequest &a, TestRequest &b) { a.Swap(&b); } - inline void Swap(TestRequest *other) { + friend void swap(TestRequest& a, TestRequest& b) { + a.Swap(&b); + } + inline void Swap(TestRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -301,7 +324,7 @@ class TestRequest PROTOBUF_FINAL ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TestRequest *other) { + void UnsafeArenaSwap(TestRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -309,47 +332,51 @@ class TestRequest PROTOBUF_FINAL // implements Message ---------------------------------------------- - inline TestRequest *New() const final { return CreateMaybeMessage<TestRequest>(nullptr); } + inline TestRequest* New() const final { + return CreateMaybeMessage<TestRequest>(nullptr); + } - TestRequest *New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final { return CreateMaybeMessage<TestRequest>(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final; - void CopyFrom(const TestRequest &from); - void MergeFrom(const TestRequest &from); + TestRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<TestRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const TestRequest& from); + void MergeFrom(const TestRequest& from); PROTOBUF_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; - ::PROTOBUF_NAMESPACE_ID::uint8 *_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } - private: + private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TestRequest *other); + void InternalSwap(TestRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "memgraph.protobuf.TestRequest"; } + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "memgraph.protobuf.TestRequest"; + } + protected: + explicit TestRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: - protected: - explicit TestRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena); - - private: - static void ArenaDtor(void *object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena); - - public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - private: + private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_src_2fprotobuf_2fmessages_2eproto); return ::descriptor_table_src_2fprotobuf_2fmessages_2eproto.file_level_metadata[kIndexInFileMessages]; } - public: + public: + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -360,47 +387,43 @@ class TestRequest PROTOBUF_FINAL }; // string content = 2; void clear_content(); - const std::string &content() const; - void set_content(const std::string &value); - void set_content(std::string &&value); - void set_content(const char *value); - void set_content(const char *value, size_t size); - std::string *mutable_content(); - std::string *release_content(); - void set_allocated_content(std::string *content); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED( - "The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string *unsafe_arena_release_content(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED( - "The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_content(std::string *content); + const std::string& content() const; + void set_content(const std::string& value); + void set_content(std::string&& value); + void set_content(const char* value); + void set_content(const char* value, size_t size); + std::string* mutable_content(); + std::string* release_content(); + void set_allocated_content(std::string* content); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_content(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_content( + std::string* content); + private: + const std::string& _internal_content() const; + void _internal_set_content(const std::string& value); + std::string* _internal_mutable_content(); + public: - private: - const std::string &_internal_content() const; - void _internal_set_content(const std::string &value); - std::string *_internal_mutable_content(); - - public: // uint64 request_id = 1; void clear_request_id(); ::PROTOBUF_NAMESPACE_ID::uint64 request_id() const; void set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value); - - private: + private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_request_id() const; void _internal_set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - public: // @@protoc_insertion_point(class_scope:memgraph.protobuf.TestRequest) private: class _Internal; - template <typename T> - friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_; @@ -410,21 +433,23 @@ class TestRequest PROTOBUF_FINAL }; // ------------------------------------------------------------------- -class UberMessage PROTOBUF_FINAL - : public ::PROTOBUF_NAMESPACE_ID:: - Message /* @@protoc_insertion_point(class_definition:memgraph.protobuf.UberMessage) */ { +class UberMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:memgraph.protobuf.UberMessage) */ { public: - inline UberMessage() : UberMessage(nullptr){}; + inline UberMessage() : UberMessage(nullptr) {}; virtual ~UberMessage(); - UberMessage(const UberMessage &from); - UberMessage(UberMessage &&from) noexcept : UberMessage() { *this = ::std::move(from); } + UberMessage(const UberMessage& from); + UberMessage(UberMessage&& from) noexcept + : UberMessage() { + *this = ::std::move(from); + } - inline UberMessage &operator=(const UberMessage &from) { + inline UberMessage& operator=(const UberMessage& from) { CopyFrom(from); return *this; } - inline UberMessage &operator=(UberMessage &&from) noexcept { + inline UberMessage& operator=(UberMessage&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -433,24 +458,34 @@ class UberMessage PROTOBUF_FINAL return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor *descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor *GetDescriptor() { return GetMetadataStatic().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection *GetReflection() { return GetMetadataStatic().reflection; } - static const UberMessage &default_instance(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const UberMessage& default_instance(); - enum ContentCase { + enum SpecificMessageCase { kTestRequest = 4, - CONTENT_NOT_SET = 0, + SPECIFIC_MESSAGE_NOT_SET = 0, }; static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UberMessage *internal_default_instance() { - return reinterpret_cast<const UberMessage *>(&_UberMessage_default_instance_); + static inline const UberMessage* internal_default_instance() { + return reinterpret_cast<const UberMessage*>( + &_UberMessage_default_instance_); } - static constexpr int kIndexInFileMessages = 2; + static constexpr int kIndexInFileMessages = + 2; - friend void swap(UberMessage &a, UberMessage &b) { a.Swap(&b); } - inline void Swap(UberMessage *other) { + friend void swap(UberMessage& a, UberMessage& b) { + a.Swap(&b); + } + inline void Swap(UberMessage* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -458,7 +493,7 @@ class UberMessage PROTOBUF_FINAL ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UberMessage *other) { + void UnsafeArenaSwap(UberMessage* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -466,47 +501,51 @@ class UberMessage PROTOBUF_FINAL // implements Message ---------------------------------------------- - inline UberMessage *New() const final { return CreateMaybeMessage<UberMessage>(nullptr); } + inline UberMessage* New() const final { + return CreateMaybeMessage<UberMessage>(nullptr); + } - UberMessage *New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final { return CreateMaybeMessage<UberMessage>(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final; - void CopyFrom(const UberMessage &from); - void MergeFrom(const UberMessage &from); + UberMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<UberMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const UberMessage& from); + void MergeFrom(const UberMessage& from); PROTOBUF_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; - ::PROTOBUF_NAMESPACE_ID::uint8 *_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } - private: + private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(UberMessage *other); + void InternalSwap(UberMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "memgraph.protobuf.UberMessage"; } + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "memgraph.protobuf.UberMessage"; + } + protected: + explicit UberMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: - protected: - explicit UberMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena); - - private: - static void ArenaDtor(void *object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena); - - public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - private: + private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_src_2fprotobuf_2fmessages_2eproto); return ::descriptor_table_src_2fprotobuf_2fmessages_2eproto.file_level_metadata[kIndexInFileMessages]; } - public: + public: + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -519,98 +558,87 @@ class UberMessage PROTOBUF_FINAL }; // .memgraph.protobuf.Address to_address = 2; bool has_to_address() const; - - private: + private: bool _internal_has_to_address() const; - - public: + public: void clear_to_address(); - const ::memgraph::protobuf::Address &to_address() const; - ::memgraph::protobuf::Address *release_to_address(); - ::memgraph::protobuf::Address *mutable_to_address(); - void set_allocated_to_address(::memgraph::protobuf::Address *to_address); - - private: - const ::memgraph::protobuf::Address &_internal_to_address() const; - ::memgraph::protobuf::Address *_internal_mutable_to_address(); - - public: - void unsafe_arena_set_allocated_to_address(::memgraph::protobuf::Address *to_address); - ::memgraph::protobuf::Address *unsafe_arena_release_to_address(); + const ::memgraph::protobuf::Address& to_address() const; + ::memgraph::protobuf::Address* release_to_address(); + ::memgraph::protobuf::Address* mutable_to_address(); + void set_allocated_to_address(::memgraph::protobuf::Address* to_address); + private: + const ::memgraph::protobuf::Address& _internal_to_address() const; + ::memgraph::protobuf::Address* _internal_mutable_to_address(); + public: + void unsafe_arena_set_allocated_to_address( + ::memgraph::protobuf::Address* to_address); + ::memgraph::protobuf::Address* unsafe_arena_release_to_address(); // .memgraph.protobuf.Address from_address = 3; bool has_from_address() const; - - private: + private: bool _internal_has_from_address() const; - - public: + public: void clear_from_address(); - const ::memgraph::protobuf::Address &from_address() const; - ::memgraph::protobuf::Address *release_from_address(); - ::memgraph::protobuf::Address *mutable_from_address(); - void set_allocated_from_address(::memgraph::protobuf::Address *from_address); - - private: - const ::memgraph::protobuf::Address &_internal_from_address() const; - ::memgraph::protobuf::Address *_internal_mutable_from_address(); - - public: - void unsafe_arena_set_allocated_from_address(::memgraph::protobuf::Address *from_address); - ::memgraph::protobuf::Address *unsafe_arena_release_from_address(); + const ::memgraph::protobuf::Address& from_address() const; + ::memgraph::protobuf::Address* release_from_address(); + ::memgraph::protobuf::Address* mutable_from_address(); + void set_allocated_from_address(::memgraph::protobuf::Address* from_address); + private: + const ::memgraph::protobuf::Address& _internal_from_address() const; + ::memgraph::protobuf::Address* _internal_mutable_from_address(); + public: + void unsafe_arena_set_allocated_from_address( + ::memgraph::protobuf::Address* from_address); + ::memgraph::protobuf::Address* unsafe_arena_release_from_address(); // uint64 request_id = 1; void clear_request_id(); ::PROTOBUF_NAMESPACE_ID::uint64 request_id() const; void set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value); - - private: + private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_request_id() const; void _internal_set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - public: // .memgraph.protobuf.TestRequest test_request = 4; bool has_test_request() const; - - private: + private: bool _internal_has_test_request() const; - - public: + public: void clear_test_request(); - const ::memgraph::protobuf::TestRequest &test_request() const; - ::memgraph::protobuf::TestRequest *release_test_request(); - ::memgraph::protobuf::TestRequest *mutable_test_request(); - void set_allocated_test_request(::memgraph::protobuf::TestRequest *test_request); + const ::memgraph::protobuf::TestRequest& test_request() const; + ::memgraph::protobuf::TestRequest* release_test_request(); + ::memgraph::protobuf::TestRequest* mutable_test_request(); + void set_allocated_test_request(::memgraph::protobuf::TestRequest* test_request); + private: + const ::memgraph::protobuf::TestRequest& _internal_test_request() const; + ::memgraph::protobuf::TestRequest* _internal_mutable_test_request(); + public: + void unsafe_arena_set_allocated_test_request( + ::memgraph::protobuf::TestRequest* test_request); + ::memgraph::protobuf::TestRequest* unsafe_arena_release_test_request(); - private: - const ::memgraph::protobuf::TestRequest &_internal_test_request() const; - ::memgraph::protobuf::TestRequest *_internal_mutable_test_request(); - - public: - void unsafe_arena_set_allocated_test_request(::memgraph::protobuf::TestRequest *test_request); - ::memgraph::protobuf::TestRequest *unsafe_arena_release_test_request(); - - void clear_content(); - ContentCase content_case() const; + void clear_specific_message(); + SpecificMessageCase specific_message_case() const; // @@protoc_insertion_point(class_scope:memgraph.protobuf.UberMessage) private: class _Internal; void set_has_test_request(); - inline bool has_content() const; - inline void clear_has_content(); + inline bool has_specific_message() const; + inline void clear_has_specific_message(); - template <typename T> - friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::memgraph::protobuf::Address *to_address_; - ::memgraph::protobuf::Address *from_address_; + ::memgraph::protobuf::Address* to_address_; + ::memgraph::protobuf::Address* from_address_; ::PROTOBUF_NAMESPACE_ID::uint64 request_id_; - union ContentUnion { - ContentUnion() {} - ::memgraph::protobuf::TestRequest *test_request_; - } content_; + union SpecificMessageUnion { + SpecificMessageUnion() {} + ::memgraph::protobuf::TestRequest* test_request_; + } specific_message_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; @@ -618,11 +646,12 @@ class UberMessage PROTOBUF_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__ // Address @@ -630,64 +659,80 @@ class UberMessage PROTOBUF_FINAL inline void Address::clear_unique_id() { unique_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline const std::string &Address::unique_id() const { +inline const std::string& Address::unique_id() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.Address.unique_id) return _internal_unique_id(); } -inline void Address::set_unique_id(const std::string &value) { +inline void Address::set_unique_id(const std::string& value) { _internal_set_unique_id(value); // @@protoc_insertion_point(field_set:memgraph.protobuf.Address.unique_id) } -inline std::string *Address::mutable_unique_id() { +inline std::string* Address::mutable_unique_id() { // @@protoc_insertion_point(field_mutable:memgraph.protobuf.Address.unique_id) return _internal_mutable_unique_id(); } -inline const std::string &Address::_internal_unique_id() const { return unique_id_.Get(); } -inline void Address::_internal_set_unique_id(const std::string &value) { +inline const std::string& Address::_internal_unique_id() const { + return unique_id_.Get(); +} +inline void Address::_internal_set_unique_id(const std::string& value) { + unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); } -inline void Address::set_unique_id(std::string &&value) { - unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); +inline void Address::set_unique_id(std::string&& value) { + + unique_id_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:memgraph.protobuf.Address.unique_id) } -inline void Address::set_unique_id(const char *value) { +inline void Address::set_unique_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArena()); + unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); // @@protoc_insertion_point(field_set_char:memgraph.protobuf.Address.unique_id) } -inline void Address::set_unique_id(const void *value, size_t size) { - unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char *>(value), size), GetArena()); +inline void Address::set_unique_id(const void* value, + size_t size) { + + unique_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:memgraph.protobuf.Address.unique_id) } -inline std::string *Address::_internal_mutable_unique_id() { +inline std::string* Address::_internal_mutable_unique_id() { + return unique_id_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline std::string *Address::release_unique_id() { +inline std::string* Address::release_unique_id() { // @@protoc_insertion_point(field_release:memgraph.protobuf.Address.unique_id) return unique_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Address::set_allocated_unique_id(std::string *unique_id) { +inline void Address::set_allocated_unique_id(std::string* unique_id) { if (unique_id != nullptr) { + } else { + } - unique_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unique_id, GetArena()); + unique_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unique_id, + GetArena()); // @@protoc_insertion_point(field_set_allocated:memgraph.protobuf.Address.unique_id) } -inline std::string *Address::unsafe_arena_release_unique_id() { +inline std::string* Address::unsafe_arena_release_unique_id() { // @@protoc_insertion_point(field_unsafe_arena_release:memgraph.protobuf.Address.unique_id) GOOGLE_DCHECK(GetArena() != nullptr); - return unique_id_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return unique_id_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); } -inline void Address::unsafe_arena_set_allocated_unique_id(std::string *unique_id) { +inline void Address::unsafe_arena_set_allocated_unique_id( + std::string* unique_id) { GOOGLE_DCHECK(GetArena() != nullptr); if (unique_id != nullptr) { + } else { + } - unique_id_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unique_id, - GetArena()); + unique_id_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + unique_id, GetArena()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:memgraph.protobuf.Address.unique_id) } @@ -695,78 +740,98 @@ inline void Address::unsafe_arena_set_allocated_unique_id(std::string *unique_id inline void Address::clear_last_known_ip() { last_known_ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline const std::string &Address::last_known_ip() const { +inline const std::string& Address::last_known_ip() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.Address.last_known_ip) return _internal_last_known_ip(); } -inline void Address::set_last_known_ip(const std::string &value) { +inline void Address::set_last_known_ip(const std::string& value) { _internal_set_last_known_ip(value); // @@protoc_insertion_point(field_set:memgraph.protobuf.Address.last_known_ip) } -inline std::string *Address::mutable_last_known_ip() { +inline std::string* Address::mutable_last_known_ip() { // @@protoc_insertion_point(field_mutable:memgraph.protobuf.Address.last_known_ip) return _internal_mutable_last_known_ip(); } -inline const std::string &Address::_internal_last_known_ip() const { return last_known_ip_.Get(); } -inline void Address::_internal_set_last_known_ip(const std::string &value) { +inline const std::string& Address::_internal_last_known_ip() const { + return last_known_ip_.Get(); +} +inline void Address::_internal_set_last_known_ip(const std::string& value) { + last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); } -inline void Address::set_last_known_ip(std::string &&value) { - last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); +inline void Address::set_last_known_ip(std::string&& value) { + + last_known_ip_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:memgraph.protobuf.Address.last_known_ip) } -inline void Address::set_last_known_ip(const char *value) { +inline void Address::set_last_known_ip(const char* value) { GOOGLE_DCHECK(value != nullptr); last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GetArena()); // @@protoc_insertion_point(field_set_char:memgraph.protobuf.Address.last_known_ip) } -inline void Address::set_last_known_ip(const void *value, size_t size) { - last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char *>(value), size), GetArena()); +inline void Address::set_last_known_ip(const void* value, + size_t size) { + + last_known_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:memgraph.protobuf.Address.last_known_ip) } -inline std::string *Address::_internal_mutable_last_known_ip() { +inline std::string* Address::_internal_mutable_last_known_ip() { + return last_known_ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline std::string *Address::release_last_known_ip() { +inline std::string* Address::release_last_known_ip() { // @@protoc_insertion_point(field_release:memgraph.protobuf.Address.last_known_ip) return last_known_ip_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Address::set_allocated_last_known_ip(std::string *last_known_ip) { +inline void Address::set_allocated_last_known_ip(std::string* last_known_ip) { if (last_known_ip != nullptr) { + } else { + } last_known_ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_known_ip, - GetArena()); + GetArena()); // @@protoc_insertion_point(field_set_allocated:memgraph.protobuf.Address.last_known_ip) } -inline std::string *Address::unsafe_arena_release_last_known_ip() { +inline std::string* Address::unsafe_arena_release_last_known_ip() { // @@protoc_insertion_point(field_unsafe_arena_release:memgraph.protobuf.Address.last_known_ip) GOOGLE_DCHECK(GetArena() != nullptr); return last_known_ip_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); + GetArena()); } -inline void Address::unsafe_arena_set_allocated_last_known_ip(std::string *last_known_ip) { +inline void Address::unsafe_arena_set_allocated_last_known_ip( + std::string* last_known_ip) { GOOGLE_DCHECK(GetArena() != nullptr); if (last_known_ip != nullptr) { + } else { + } last_known_ip_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - last_known_ip, GetArena()); + last_known_ip, GetArena()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:memgraph.protobuf.Address.last_known_ip) } // uint32 last_known_port = 3; -inline void Address::clear_last_known_port() { last_known_port_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Address::_internal_last_known_port() const { return last_known_port_; } +inline void Address::clear_last_known_port() { + last_known_port_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Address::_internal_last_known_port() const { + return last_known_port_; +} inline ::PROTOBUF_NAMESPACE_ID::uint32 Address::last_known_port() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.Address.last_known_port) return _internal_last_known_port(); } -inline void Address::_internal_set_last_known_port(::PROTOBUF_NAMESPACE_ID::uint32 value) { last_known_port_ = value; } +inline void Address::_internal_set_last_known_port(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + last_known_port_ = value; +} inline void Address::set_last_known_port(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_last_known_port(value); // @@protoc_insertion_point(field_set:memgraph.protobuf.Address.last_known_port) @@ -777,13 +842,20 @@ inline void Address::set_last_known_port(::PROTOBUF_NAMESPACE_ID::uint32 value) // TestRequest // uint64 request_id = 1; -inline void TestRequest::clear_request_id() { request_id_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TestRequest::_internal_request_id() const { return request_id_; } +inline void TestRequest::clear_request_id() { + request_id_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 TestRequest::_internal_request_id() const { + return request_id_; +} inline ::PROTOBUF_NAMESPACE_ID::uint64 TestRequest::request_id() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.TestRequest.request_id) return _internal_request_id(); } -inline void TestRequest::_internal_set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { request_id_ = value; } +inline void TestRequest::_internal_set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + request_id_ = value; +} inline void TestRequest::set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_request_id(value); // @@protoc_insertion_point(field_set:memgraph.protobuf.TestRequest.request_id) @@ -793,64 +865,80 @@ inline void TestRequest::set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { inline void TestRequest::clear_content() { content_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline const std::string &TestRequest::content() const { +inline const std::string& TestRequest::content() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.TestRequest.content) return _internal_content(); } -inline void TestRequest::set_content(const std::string &value) { +inline void TestRequest::set_content(const std::string& value) { _internal_set_content(value); // @@protoc_insertion_point(field_set:memgraph.protobuf.TestRequest.content) } -inline std::string *TestRequest::mutable_content() { +inline std::string* TestRequest::mutable_content() { // @@protoc_insertion_point(field_mutable:memgraph.protobuf.TestRequest.content) return _internal_mutable_content(); } -inline const std::string &TestRequest::_internal_content() const { return content_.Get(); } -inline void TestRequest::_internal_set_content(const std::string &value) { +inline const std::string& TestRequest::_internal_content() const { + return content_.Get(); +} +inline void TestRequest::_internal_set_content(const std::string& value) { + content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); } -inline void TestRequest::set_content(std::string &&value) { - content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); +inline void TestRequest::set_content(std::string&& value) { + + content_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:memgraph.protobuf.TestRequest.content) } -inline void TestRequest::set_content(const char *value) { +inline void TestRequest::set_content(const char* value) { GOOGLE_DCHECK(value != nullptr); - content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArena()); + content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); // @@protoc_insertion_point(field_set_char:memgraph.protobuf.TestRequest.content) } -inline void TestRequest::set_content(const char *value, size_t size) { - content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char *>(value), size), GetArena()); +inline void TestRequest::set_content(const char* value, + size_t size) { + + content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:memgraph.protobuf.TestRequest.content) } -inline std::string *TestRequest::_internal_mutable_content() { +inline std::string* TestRequest::_internal_mutable_content() { + return content_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline std::string *TestRequest::release_content() { +inline std::string* TestRequest::release_content() { // @@protoc_insertion_point(field_release:memgraph.protobuf.TestRequest.content) return content_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void TestRequest::set_allocated_content(std::string *content) { +inline void TestRequest::set_allocated_content(std::string* content) { if (content != nullptr) { + } else { + } - content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content, GetArena()); + content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content, + GetArena()); // @@protoc_insertion_point(field_set_allocated:memgraph.protobuf.TestRequest.content) } -inline std::string *TestRequest::unsafe_arena_release_content() { +inline std::string* TestRequest::unsafe_arena_release_content() { // @@protoc_insertion_point(field_unsafe_arena_release:memgraph.protobuf.TestRequest.content) GOOGLE_DCHECK(GetArena() != nullptr); - return content_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return content_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); } -inline void TestRequest::unsafe_arena_set_allocated_content(std::string *content) { +inline void TestRequest::unsafe_arena_set_allocated_content( + std::string* content) { GOOGLE_DCHECK(GetArena() != nullptr); if (content != nullptr) { + } else { + } - content_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content, - GetArena()); + content_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + content, GetArena()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:memgraph.protobuf.TestRequest.content) } @@ -859,13 +947,20 @@ inline void TestRequest::unsafe_arena_set_allocated_content(std::string *content // UberMessage // uint64 request_id = 1; -inline void UberMessage::clear_request_id() { request_id_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 UberMessage::_internal_request_id() const { return request_id_; } +inline void UberMessage::clear_request_id() { + request_id_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 UberMessage::_internal_request_id() const { + return request_id_; +} inline ::PROTOBUF_NAMESPACE_ID::uint64 UberMessage::request_id() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.UberMessage.request_id) return _internal_request_id(); } -inline void UberMessage::_internal_set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { request_id_ = value; } +inline void UberMessage::_internal_set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + request_id_ = value; +} inline void UberMessage::set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_request_id(value); // @@protoc_insertion_point(field_set:memgraph.protobuf.UberMessage.request_id) @@ -875,70 +970,78 @@ inline void UberMessage::set_request_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { inline bool UberMessage::_internal_has_to_address() const { return this != internal_default_instance() && to_address_ != nullptr; } -inline bool UberMessage::has_to_address() const { return _internal_has_to_address(); } +inline bool UberMessage::has_to_address() const { + return _internal_has_to_address(); +} inline void UberMessage::clear_to_address() { if (GetArena() == nullptr && to_address_ != nullptr) { delete to_address_; } to_address_ = nullptr; } -inline const ::memgraph::protobuf::Address &UberMessage::_internal_to_address() const { - const ::memgraph::protobuf::Address *p = to_address_; - return p != nullptr ? *p - : *reinterpret_cast<const ::memgraph::protobuf::Address *>( - &::memgraph::protobuf::_Address_default_instance_); +inline const ::memgraph::protobuf::Address& UberMessage::_internal_to_address() const { + const ::memgraph::protobuf::Address* p = to_address_; + return p != nullptr ? *p : *reinterpret_cast<const ::memgraph::protobuf::Address*>( + &::memgraph::protobuf::_Address_default_instance_); } -inline const ::memgraph::protobuf::Address &UberMessage::to_address() const { +inline const ::memgraph::protobuf::Address& UberMessage::to_address() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.UberMessage.to_address) return _internal_to_address(); } -inline void UberMessage::unsafe_arena_set_allocated_to_address(::memgraph::protobuf::Address *to_address) { +inline void UberMessage::unsafe_arena_set_allocated_to_address( + ::memgraph::protobuf::Address* to_address) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite *>(to_address_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(to_address_); } to_address_ = to_address; if (to_address) { + } else { + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:memgraph.protobuf.UberMessage.to_address) } -inline ::memgraph::protobuf::Address *UberMessage::release_to_address() { +inline ::memgraph::protobuf::Address* UberMessage::release_to_address() { auto temp = unsafe_arena_release_to_address(); if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::memgraph::protobuf::Address *UberMessage::unsafe_arena_release_to_address() { +inline ::memgraph::protobuf::Address* UberMessage::unsafe_arena_release_to_address() { // @@protoc_insertion_point(field_release:memgraph.protobuf.UberMessage.to_address) - ::memgraph::protobuf::Address *temp = to_address_; + ::memgraph::protobuf::Address* temp = to_address_; to_address_ = nullptr; return temp; } -inline ::memgraph::protobuf::Address *UberMessage::_internal_mutable_to_address() { +inline ::memgraph::protobuf::Address* UberMessage::_internal_mutable_to_address() { + if (to_address_ == nullptr) { - auto *p = CreateMaybeMessage<::memgraph::protobuf::Address>(GetArena()); + auto* p = CreateMaybeMessage<::memgraph::protobuf::Address>(GetArena()); to_address_ = p; } return to_address_; } -inline ::memgraph::protobuf::Address *UberMessage::mutable_to_address() { +inline ::memgraph::protobuf::Address* UberMessage::mutable_to_address() { // @@protoc_insertion_point(field_mutable:memgraph.protobuf.UberMessage.to_address) return _internal_mutable_to_address(); } -inline void UberMessage::set_allocated_to_address(::memgraph::protobuf::Address *to_address) { - ::PROTOBUF_NAMESPACE_ID::Arena *message_arena = GetArena(); +inline void UberMessage::set_allocated_to_address(::memgraph::protobuf::Address* to_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete to_address_; } if (to_address) { - ::PROTOBUF_NAMESPACE_ID::Arena *submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(to_address); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(to_address); if (message_arena != submessage_arena) { - to_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(message_arena, to_address, submessage_arena); + to_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, to_address, submessage_arena); } } else { + } to_address_ = to_address; // @@protoc_insertion_point(field_set_allocated:memgraph.protobuf.UberMessage.to_address) @@ -948,152 +1051,173 @@ inline void UberMessage::set_allocated_to_address(::memgraph::protobuf::Address inline bool UberMessage::_internal_has_from_address() const { return this != internal_default_instance() && from_address_ != nullptr; } -inline bool UberMessage::has_from_address() const { return _internal_has_from_address(); } +inline bool UberMessage::has_from_address() const { + return _internal_has_from_address(); +} inline void UberMessage::clear_from_address() { if (GetArena() == nullptr && from_address_ != nullptr) { delete from_address_; } from_address_ = nullptr; } -inline const ::memgraph::protobuf::Address &UberMessage::_internal_from_address() const { - const ::memgraph::protobuf::Address *p = from_address_; - return p != nullptr ? *p - : *reinterpret_cast<const ::memgraph::protobuf::Address *>( - &::memgraph::protobuf::_Address_default_instance_); +inline const ::memgraph::protobuf::Address& UberMessage::_internal_from_address() const { + const ::memgraph::protobuf::Address* p = from_address_; + return p != nullptr ? *p : *reinterpret_cast<const ::memgraph::protobuf::Address*>( + &::memgraph::protobuf::_Address_default_instance_); } -inline const ::memgraph::protobuf::Address &UberMessage::from_address() const { +inline const ::memgraph::protobuf::Address& UberMessage::from_address() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.UberMessage.from_address) return _internal_from_address(); } -inline void UberMessage::unsafe_arena_set_allocated_from_address(::memgraph::protobuf::Address *from_address) { +inline void UberMessage::unsafe_arena_set_allocated_from_address( + ::memgraph::protobuf::Address* from_address) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite *>(from_address_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(from_address_); } from_address_ = from_address; if (from_address) { + } else { + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:memgraph.protobuf.UberMessage.from_address) } -inline ::memgraph::protobuf::Address *UberMessage::release_from_address() { +inline ::memgraph::protobuf::Address* UberMessage::release_from_address() { auto temp = unsafe_arena_release_from_address(); if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::memgraph::protobuf::Address *UberMessage::unsafe_arena_release_from_address() { +inline ::memgraph::protobuf::Address* UberMessage::unsafe_arena_release_from_address() { // @@protoc_insertion_point(field_release:memgraph.protobuf.UberMessage.from_address) - ::memgraph::protobuf::Address *temp = from_address_; + ::memgraph::protobuf::Address* temp = from_address_; from_address_ = nullptr; return temp; } -inline ::memgraph::protobuf::Address *UberMessage::_internal_mutable_from_address() { +inline ::memgraph::protobuf::Address* UberMessage::_internal_mutable_from_address() { + if (from_address_ == nullptr) { - auto *p = CreateMaybeMessage<::memgraph::protobuf::Address>(GetArena()); + auto* p = CreateMaybeMessage<::memgraph::protobuf::Address>(GetArena()); from_address_ = p; } return from_address_; } -inline ::memgraph::protobuf::Address *UberMessage::mutable_from_address() { +inline ::memgraph::protobuf::Address* UberMessage::mutable_from_address() { // @@protoc_insertion_point(field_mutable:memgraph.protobuf.UberMessage.from_address) return _internal_mutable_from_address(); } -inline void UberMessage::set_allocated_from_address(::memgraph::protobuf::Address *from_address) { - ::PROTOBUF_NAMESPACE_ID::Arena *message_arena = GetArena(); +inline void UberMessage::set_allocated_from_address(::memgraph::protobuf::Address* from_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete from_address_; } if (from_address) { - ::PROTOBUF_NAMESPACE_ID::Arena *submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(from_address); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(from_address); if (message_arena != submessage_arena) { - from_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(message_arena, from_address, submessage_arena); + from_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, from_address, submessage_arena); } } else { + } from_address_ = from_address; // @@protoc_insertion_point(field_set_allocated:memgraph.protobuf.UberMessage.from_address) } // .memgraph.protobuf.TestRequest test_request = 4; -inline bool UberMessage::_internal_has_test_request() const { return content_case() == kTestRequest; } -inline bool UberMessage::has_test_request() const { return _internal_has_test_request(); } -inline void UberMessage::set_has_test_request() { _oneof_case_[0] = kTestRequest; } +inline bool UberMessage::_internal_has_test_request() const { + return specific_message_case() == kTestRequest; +} +inline bool UberMessage::has_test_request() const { + return _internal_has_test_request(); +} +inline void UberMessage::set_has_test_request() { + _oneof_case_[0] = kTestRequest; +} inline void UberMessage::clear_test_request() { if (_internal_has_test_request()) { if (GetArena() == nullptr) { - delete content_.test_request_; + delete specific_message_.test_request_; } - clear_has_content(); + clear_has_specific_message(); } } -inline ::memgraph::protobuf::TestRequest *UberMessage::release_test_request() { +inline ::memgraph::protobuf::TestRequest* UberMessage::release_test_request() { // @@protoc_insertion_point(field_release:memgraph.protobuf.UberMessage.test_request) if (_internal_has_test_request()) { - clear_has_content(); - ::memgraph::protobuf::TestRequest *temp = content_.test_request_; + clear_has_specific_message(); + ::memgraph::protobuf::TestRequest* temp = specific_message_.test_request_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - content_.test_request_ = nullptr; + specific_message_.test_request_ = nullptr; return temp; } else { return nullptr; } } -inline const ::memgraph::protobuf::TestRequest &UberMessage::_internal_test_request() const { - return _internal_has_test_request() ? *content_.test_request_ - : *reinterpret_cast<::memgraph::protobuf::TestRequest *>( - &::memgraph::protobuf::_TestRequest_default_instance_); +inline const ::memgraph::protobuf::TestRequest& UberMessage::_internal_test_request() const { + return _internal_has_test_request() + ? *specific_message_.test_request_ + : *reinterpret_cast< ::memgraph::protobuf::TestRequest*>(&::memgraph::protobuf::_TestRequest_default_instance_); } -inline const ::memgraph::protobuf::TestRequest &UberMessage::test_request() const { +inline const ::memgraph::protobuf::TestRequest& UberMessage::test_request() const { // @@protoc_insertion_point(field_get:memgraph.protobuf.UberMessage.test_request) return _internal_test_request(); } -inline ::memgraph::protobuf::TestRequest *UberMessage::unsafe_arena_release_test_request() { +inline ::memgraph::protobuf::TestRequest* UberMessage::unsafe_arena_release_test_request() { // @@protoc_insertion_point(field_unsafe_arena_release:memgraph.protobuf.UberMessage.test_request) if (_internal_has_test_request()) { - clear_has_content(); - ::memgraph::protobuf::TestRequest *temp = content_.test_request_; - content_.test_request_ = nullptr; + clear_has_specific_message(); + ::memgraph::protobuf::TestRequest* temp = specific_message_.test_request_; + specific_message_.test_request_ = nullptr; return temp; } else { return nullptr; } } -inline void UberMessage::unsafe_arena_set_allocated_test_request(::memgraph::protobuf::TestRequest *test_request) { - clear_content(); +inline void UberMessage::unsafe_arena_set_allocated_test_request(::memgraph::protobuf::TestRequest* test_request) { + clear_specific_message(); if (test_request) { set_has_test_request(); - content_.test_request_ = test_request; + specific_message_.test_request_ = test_request; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:memgraph.protobuf.UberMessage.test_request) } -inline ::memgraph::protobuf::TestRequest *UberMessage::_internal_mutable_test_request() { +inline ::memgraph::protobuf::TestRequest* UberMessage::_internal_mutable_test_request() { if (!_internal_has_test_request()) { - clear_content(); + clear_specific_message(); set_has_test_request(); - content_.test_request_ = CreateMaybeMessage<::memgraph::protobuf::TestRequest>(GetArena()); + specific_message_.test_request_ = CreateMaybeMessage< ::memgraph::protobuf::TestRequest >(GetArena()); } - return content_.test_request_; + return specific_message_.test_request_; } -inline ::memgraph::protobuf::TestRequest *UberMessage::mutable_test_request() { +inline ::memgraph::protobuf::TestRequest* UberMessage::mutable_test_request() { // @@protoc_insertion_point(field_mutable:memgraph.protobuf.UberMessage.test_request) return _internal_mutable_test_request(); } -inline bool UberMessage::has_content() const { return content_case() != CONTENT_NOT_SET; } -inline void UberMessage::clear_has_content() { _oneof_case_[0] = CONTENT_NOT_SET; } -inline UberMessage::ContentCase UberMessage::content_case() const { return UberMessage::ContentCase(_oneof_case_[0]); } +inline bool UberMessage::has_specific_message() const { + return specific_message_case() != SPECIFIC_MESSAGE_NOT_SET; +} +inline void UberMessage::clear_has_specific_message() { + _oneof_case_[0] = SPECIFIC_MESSAGE_NOT_SET; +} +inline UberMessage::SpecificMessageCase UberMessage::specific_message_case() const { + return UberMessage::SpecificMessageCase(_oneof_case_[0]); +} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) } // namespace protobuf diff --git a/src/protobuf/messages.proto b/src/protobuf/messages.proto index e8d0cfcfb..bf74cd399 100644 --- a/src/protobuf/messages.proto +++ b/src/protobuf/messages.proto @@ -18,7 +18,7 @@ message UberMessage { uint64 request_id = 1; Address to_address = 2; Address from_address = 3; - oneof content { + oneof specific_message { TestRequest test_request = 4; } }