// Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/multiplex_frames.proto // Protobuf C++ Version: 6.33.3 #include "proto/mediums/multiplex_frames.pb.h" #include #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/io/zero_copy_stream_impl_lite.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace location { namespace nearby { namespace mediums { inline constexpr MultiplexFrameHeader::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, salted_service_id_hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), service_id_hash_salt_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR MultiplexFrameHeader::MultiplexFrameHeader(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(MultiplexFrameHeader_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct MultiplexFrameHeaderDefaultTypeInternal { PROTOBUF_CONSTEXPR MultiplexFrameHeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MultiplexFrameHeaderDefaultTypeInternal() {} union { MultiplexFrameHeader _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexFrameHeaderDefaultTypeInternal _MultiplexFrameHeader_default_instance_; inline constexpr MultiplexDataFrame::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, data_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR MultiplexDataFrame::MultiplexDataFrame(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(MultiplexDataFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct MultiplexDataFrameDefaultTypeInternal { PROTOBUF_CONSTEXPR MultiplexDataFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MultiplexDataFrameDefaultTypeInternal() {} union { MultiplexDataFrame _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexDataFrameDefaultTypeInternal _MultiplexDataFrame_default_instance_; inline constexpr DisconnectFrame::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0} {} template PROTOBUF_CONSTEXPR DisconnectFrame::DisconnectFrame(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(DisconnectFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct DisconnectFrameDefaultTypeInternal { PROTOBUF_CONSTEXPR DisconnectFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DisconnectFrameDefaultTypeInternal() {} union { DisconnectFrame _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisconnectFrameDefaultTypeInternal _DisconnectFrame_default_instance_; inline constexpr ConnectionResponseFrame::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, connection_response_code_{static_cast< ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode >(0)} {} template PROTOBUF_CONSTEXPR ConnectionResponseFrame::ConnectionResponseFrame(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(ConnectionResponseFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct ConnectionResponseFrameDefaultTypeInternal { PROTOBUF_CONSTEXPR ConnectionResponseFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionResponseFrameDefaultTypeInternal() {} union { ConnectionResponseFrame _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; inline constexpr ConnectionRequestFrame::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0} {} template PROTOBUF_CONSTEXPR ConnectionRequestFrame::ConnectionRequestFrame(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(ConnectionRequestFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct ConnectionRequestFrameDefaultTypeInternal { PROTOBUF_CONSTEXPR ConnectionRequestFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionRequestFrameDefaultTypeInternal() {} union { ConnectionRequestFrame _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; inline constexpr MultiplexControlFrame::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, control_frame_type_{static_cast< ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType >(0)}, Frame_{}, _oneof_case_{} {} template PROTOBUF_CONSTEXPR MultiplexControlFrame::MultiplexControlFrame(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(MultiplexControlFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct MultiplexControlFrameDefaultTypeInternal { PROTOBUF_CONSTEXPR MultiplexControlFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MultiplexControlFrameDefaultTypeInternal() {} union { MultiplexControlFrame _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexControlFrameDefaultTypeInternal _MultiplexControlFrame_default_instance_; inline constexpr MultiplexFrame::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, header_{nullptr}, frame_type_{static_cast< ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType >(0)}, Frame_{}, _oneof_case_{} {} template PROTOBUF_CONSTEXPR MultiplexFrame::MultiplexFrame(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(MultiplexFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } struct MultiplexFrameDefaultTypeInternal { PROTOBUF_CONSTEXPR MultiplexFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MultiplexFrameDefaultTypeInternal() {} union { MultiplexFrame _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexFrameDefaultTypeInternal _MultiplexFrame_default_instance_; } // namespace mediums } // namespace nearby } // namespace location namespace location { namespace nearby { namespace mediums { PROTOBUF_CONSTINIT const uint32_t MultiplexFrame_MultiplexFrameType_internal_data_[] = { 196608u, 0u, }; static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> MultiplexFrame_MultiplexFrameType_strings[3] = {}; static const char MultiplexFrame_MultiplexFrameType_names[] = { "CONTROL_FRAME" "DATA_FRAME" "UNKNOWN_FRAME_TYPE" }; static const ::google::protobuf::internal::EnumEntry MultiplexFrame_MultiplexFrameType_entries[] = { {{&MultiplexFrame_MultiplexFrameType_names[0], 13}, 1}, {{&MultiplexFrame_MultiplexFrameType_names[13], 10}, 2}, {{&MultiplexFrame_MultiplexFrameType_names[23], 18}, 0}, }; static const int MultiplexFrame_MultiplexFrameType_entries_by_number[] = { 2, // 0 -> UNKNOWN_FRAME_TYPE 0, // 1 -> CONTROL_FRAME 1, // 2 -> DATA_FRAME }; const ::std::string& MultiplexFrame_MultiplexFrameType_Name(MultiplexFrame_MultiplexFrameType value) { static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( MultiplexFrame_MultiplexFrameType_entries, MultiplexFrame_MultiplexFrameType_entries_by_number, 3, MultiplexFrame_MultiplexFrameType_strings); (void)kDummy; int idx = ::google::protobuf::internal::LookUpEnumName(MultiplexFrame_MultiplexFrameType_entries, MultiplexFrame_MultiplexFrameType_entries_by_number, 3, value); return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : MultiplexFrame_MultiplexFrameType_strings[idx].get(); } bool MultiplexFrame_MultiplexFrameType_Parse(::absl::string_view name, MultiplexFrame_MultiplexFrameType* PROTOBUF_NONNULL value) { int int_value; bool success = ::google::protobuf::internal::LookUpEnumValue( MultiplexFrame_MultiplexFrameType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } PROTOBUF_CONSTINIT const uint32_t MultiplexControlFrame_MultiplexControlFrameType_internal_data_[] = { 262144u, 0u, }; static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> MultiplexControlFrame_MultiplexControlFrameType_strings[4] = {}; static const char MultiplexControlFrame_MultiplexControlFrameType_names[] = { "CONNECTION_REQUEST" "CONNECTION_RESPONSE" "DISCONNECTION" "UNKNOWN_CONTROL_FRAME_TYPE" }; static const ::google::protobuf::internal::EnumEntry MultiplexControlFrame_MultiplexControlFrameType_entries[] = { {{&MultiplexControlFrame_MultiplexControlFrameType_names[0], 18}, 1}, {{&MultiplexControlFrame_MultiplexControlFrameType_names[18], 19}, 2}, {{&MultiplexControlFrame_MultiplexControlFrameType_names[37], 13}, 3}, {{&MultiplexControlFrame_MultiplexControlFrameType_names[50], 26}, 0}, }; static const int MultiplexControlFrame_MultiplexControlFrameType_entries_by_number[] = { 3, // 0 -> UNKNOWN_CONTROL_FRAME_TYPE 0, // 1 -> CONNECTION_REQUEST 1, // 2 -> CONNECTION_RESPONSE 2, // 3 -> DISCONNECTION }; const ::std::string& MultiplexControlFrame_MultiplexControlFrameType_Name(MultiplexControlFrame_MultiplexControlFrameType value) { static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( MultiplexControlFrame_MultiplexControlFrameType_entries, MultiplexControlFrame_MultiplexControlFrameType_entries_by_number, 4, MultiplexControlFrame_MultiplexControlFrameType_strings); (void)kDummy; int idx = ::google::protobuf::internal::LookUpEnumName(MultiplexControlFrame_MultiplexControlFrameType_entries, MultiplexControlFrame_MultiplexControlFrameType_entries_by_number, 4, value); return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : MultiplexControlFrame_MultiplexControlFrameType_strings[idx].get(); } bool MultiplexControlFrame_MultiplexControlFrameType_Parse(::absl::string_view name, MultiplexControlFrame_MultiplexControlFrameType* PROTOBUF_NONNULL value) { int int_value; bool success = ::google::protobuf::internal::LookUpEnumValue( MultiplexControlFrame_MultiplexControlFrameType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } PROTOBUF_CONSTINIT const uint32_t ConnectionResponseFrame_ConnectionResponseCode_internal_data_[] = { 196608u, 0u, }; static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> ConnectionResponseFrame_ConnectionResponseCode_strings[3] = {}; static const char ConnectionResponseFrame_ConnectionResponseCode_names[] = { "CONNECTION_ACCEPTED" "NOT_LISTENING" "UNKNOWN_RESPONSE_CODE" }; static const ::google::protobuf::internal::EnumEntry ConnectionResponseFrame_ConnectionResponseCode_entries[] = { {{&ConnectionResponseFrame_ConnectionResponseCode_names[0], 19}, 1}, {{&ConnectionResponseFrame_ConnectionResponseCode_names[19], 13}, 2}, {{&ConnectionResponseFrame_ConnectionResponseCode_names[32], 21}, 0}, }; static const int ConnectionResponseFrame_ConnectionResponseCode_entries_by_number[] = { 2, // 0 -> UNKNOWN_RESPONSE_CODE 0, // 1 -> CONNECTION_ACCEPTED 1, // 2 -> NOT_LISTENING }; const ::std::string& ConnectionResponseFrame_ConnectionResponseCode_Name(ConnectionResponseFrame_ConnectionResponseCode value) { static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( ConnectionResponseFrame_ConnectionResponseCode_entries, ConnectionResponseFrame_ConnectionResponseCode_entries_by_number, 3, ConnectionResponseFrame_ConnectionResponseCode_strings); (void)kDummy; int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionResponseFrame_ConnectionResponseCode_entries, ConnectionResponseFrame_ConnectionResponseCode_entries_by_number, 3, value); return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionResponseFrame_ConnectionResponseCode_strings[idx].get(); } bool ConnectionResponseFrame_ConnectionResponseCode_Parse(::absl::string_view name, ConnectionResponseFrame_ConnectionResponseCode* PROTOBUF_NONNULL value) { int int_value; bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionResponseFrame_ConnectionResponseCode_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } // =================================================================== class MultiplexFrame::_Internal { public: using HasBits = decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::location::nearby::mediums::MultiplexFrame, _impl_._oneof_case_); }; void MultiplexFrame::set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE control_frame) { ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (control_frame) { ::google::protobuf::Arena* submessage_arena = control_frame->GetArena(); if (message_arena != submessage_arena) { control_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, control_frame, submessage_arena); } set_has_control_frame(); _impl_.Frame_.control_frame_ = control_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrame.control_frame) } void MultiplexFrame::set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE data_frame) { ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (data_frame) { ::google::protobuf::Arena* submessage_arena = data_frame->GetArena(); if (message_arena != submessage_arena) { data_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, data_frame, submessage_arena); } set_has_data_frame(); _impl_.Frame_.data_frame_ = data_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrame.data_frame) } MultiplexFrame::MultiplexFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexFrame) } PROTOBUF_NDEBUG_INLINE MultiplexFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::location::nearby::mediums::MultiplexFrame& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, Frame_{}, _oneof_case_{from._oneof_case_[0]} {} MultiplexFrame::MultiplexFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexFrame& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE MultiplexFrame* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; _impl_.header_ = (CheckHasBit(cached_has_bits, 0x00000001U)) ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_) : nullptr; _impl_.frame_type_ = from._impl_.frame_type_; switch (Frame_case()) { case FRAME_NOT_SET: break; case kControlFrame: _impl_.Frame_.control_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.control_frame_); break; case kDataFrame: _impl_.Frame_.data_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.data_frame_); break; } // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexFrame) } PROTOBUF_NDEBUG_INLINE MultiplexFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, Frame_{}, _oneof_case_{} {} inline void MultiplexFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, header_), 0, offsetof(Impl_, frame_type_) - offsetof(Impl_, header_) + sizeof(Impl_::frame_type_)); } MultiplexFrame::~MultiplexFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexFrame) SharedDtor(*this); } inline void MultiplexFrame::SharedDtor(MessageLite& self) { MultiplexFrame& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.header_; if (this_.has_Frame()) { this_.clear_Frame(); } this_._impl_.~Impl_(); } void MultiplexFrame::clear_Frame() { // @@protoc_insertion_point(one_of_clear_start:location.nearby.mediums.MultiplexFrame) ::google::protobuf::internal::TSanWrite(&_impl_); switch (Frame_case()) { case kControlFrame: { if (GetArena() == nullptr) { delete _impl_.Frame_.control_frame_; } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { if (_impl_.Frame_.control_frame_ != nullptr) { _impl_.Frame_.control_frame_->Clear(); } } break; } case kDataFrame: { if (GetArena() == nullptr) { delete _impl_.Frame_.data_frame_; } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { if (_impl_.Frame_.data_frame_ != nullptr) { _impl_.Frame_.data_frame_->Clear(); } } break; } case FRAME_NOT_SET: { break; } } _impl_._oneof_case_[0] = FRAME_NOT_SET; } inline void* PROTOBUF_NONNULL MultiplexFrame::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) MultiplexFrame(arena); } constexpr auto MultiplexFrame::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MultiplexFrame), alignof(MultiplexFrame)); } constexpr auto MultiplexFrame::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<39>{ { &_MultiplexFrame_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &MultiplexFrame::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &MultiplexFrame::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexFrame::ByteSizeLong, &MultiplexFrame::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_._cached_size_), true, }, "location.nearby.mediums.MultiplexFrame", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<39> MultiplexFrame_class_data_ = MultiplexFrame::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL MultiplexFrame::GetClassData() const { return MultiplexFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 4, 4, 0, 2> MultiplexFrame::_table_ = { { PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_._has_bits_), 0, // no _extensions_ 4, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967280, // skipmap offsetof(decltype(_table_), field_entries), 4, // num_field_entries 4, // num_aux_entries offsetof(decltype(_table_), aux_entries), MultiplexFrame_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexFrame>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; {::_pbi::TcParser::FastEr0S1, {16, 1, 2, PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.frame_type_)}}, // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.header_)}}, }}, {{ 65535, 65535 }}, {{ // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.frame_type_), _Internal::kHasBitsOffset + 1, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.Frame_.control_frame_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.Frame_.data_frame_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexFrameHeader>()}, {::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexControlFrame>()}, {::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexDataFrame>()}, {0, 2}, }}, {{ }}, }; PROTOBUF_NOINLINE void MultiplexFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexFrame) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(_impl_.header_ != nullptr); _impl_.header_->Clear(); } _impl_.frame_type_ = 0; clear_Frame(); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL MultiplexFrame::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const MultiplexFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL MultiplexFrame::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const MultiplexFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexFrame) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, stream); } // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this_._internal_frame_type(), target); } switch (this_.Frame_case()) { case kControlFrame: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.Frame_.control_frame_, this_._impl_.Frame_.control_frame_->GetCachedSize(), target, stream); break; } case kDataFrame: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.Frame_.data_frame_, this_._impl_.Frame_.data_frame_->GetCachedSize(), target, stream); break; } default: break; } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexFrame) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t MultiplexFrame::ByteSizeLong(const MessageLite& base) { const MultiplexFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t MultiplexFrame::ByteSizeLong() const { const MultiplexFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexFrame) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); } // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_frame_type()); } } switch (this_.Frame_case()) { // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; case kControlFrame: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.control_frame_); break; } // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; case kDataFrame: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.data_frame_); break; } case FRAME_NOT_SET: { break; } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void MultiplexFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexFrame) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(from._impl_.header_ != nullptr); if (_this->_impl_.header_ == nullptr) { _this->_impl_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_); } else { _this->_impl_.header_->MergeFrom(*from._impl_.header_); } } if (CheckHasBit(cached_has_bits, 0x00000002U)) { _this->_impl_.frame_type_ = from._impl_.frame_type_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { if (oneof_to_case != 0) { _this->clear_Frame(); } _this->_impl_._oneof_case_[0] = oneof_from_case; } switch (oneof_from_case) { case kControlFrame: { if (oneof_needs_init) { _this->_impl_.Frame_.control_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.control_frame_); } else { _this->_impl_.Frame_.control_frame_->MergeFrom(*from._impl_.Frame_.control_frame_); } break; } case kDataFrame: { if (oneof_needs_init) { _this->_impl_.Frame_.data_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.data_frame_); } else { _this->_impl_.Frame_.data_frame_->MergeFrom(*from._impl_.Frame_.data_frame_); } break; } case FRAME_NOT_SET: break; } } _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void MultiplexFrame::CopyFrom(const MultiplexFrame& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexFrame) if (&from == this) return; Clear(); MergeFrom(from); } void MultiplexFrame::InternalSwap(MultiplexFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.frame_type_) + sizeof(MultiplexFrame::_impl_.frame_type_) - PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.header_)>( reinterpret_cast(&_impl_.header_), reinterpret_cast(&other->_impl_.header_)); swap(_impl_.Frame_, other->_impl_.Frame_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } // =================================================================== class MultiplexFrameHeader::_Internal { public: using HasBits = decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_._has_bits_); }; MultiplexFrameHeader::MultiplexFrameHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexFrameHeader_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexFrameHeader) } PROTOBUF_NDEBUG_INLINE MultiplexFrameHeader::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::location::nearby::mediums::MultiplexFrameHeader& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, salted_service_id_hash_(arena, from.salted_service_id_hash_), service_id_hash_salt_(arena, from.service_id_hash_salt_) {} MultiplexFrameHeader::MultiplexFrameHeader( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexFrameHeader& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexFrameHeader_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE MultiplexFrameHeader* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexFrameHeader) } PROTOBUF_NDEBUG_INLINE MultiplexFrameHeader::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, salted_service_id_hash_(arena), service_id_hash_salt_(arena) {} inline void MultiplexFrameHeader::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } MultiplexFrameHeader::~MultiplexFrameHeader() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexFrameHeader) SharedDtor(*this); } inline void MultiplexFrameHeader::SharedDtor(MessageLite& self) { MultiplexFrameHeader& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.salted_service_id_hash_.Destroy(); this_._impl_.service_id_hash_salt_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL MultiplexFrameHeader::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) MultiplexFrameHeader(arena); } constexpr auto MultiplexFrameHeader::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MultiplexFrameHeader), alignof(MultiplexFrameHeader)); } constexpr auto MultiplexFrameHeader::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<45>{ { &_MultiplexFrameHeader_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &MultiplexFrameHeader::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &MultiplexFrameHeader::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexFrameHeader::ByteSizeLong, &MultiplexFrameHeader::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_._cached_size_), true, }, "location.nearby.mediums.MultiplexFrameHeader", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<45> MultiplexFrameHeader_class_data_ = MultiplexFrameHeader::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL MultiplexFrameHeader::GetClassData() const { return MultiplexFrameHeader_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> MultiplexFrameHeader::_table_ = { { PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries MultiplexFrameHeader_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexFrameHeader>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // optional string service_id_hash_salt = 2; {::_pbi::TcParser::FastBS1, {18, 1, 0, PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.service_id_hash_salt_)}}, // optional bytes salted_service_id_hash = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.salted_service_id_hash_)}}, }}, {{ 65535, 65535 }}, {{ // optional bytes salted_service_id_hash = 1; {PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.salted_service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // optional string service_id_hash_salt = 2; {PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.service_id_hash_salt_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void MultiplexFrameHeader::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexFrameHeader) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.salted_service_id_hash_.ClearNonDefaultToEmpty(); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.service_id_hash_salt_.ClearNonDefaultToEmpty(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL MultiplexFrameHeader::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const MultiplexFrameHeader& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL MultiplexFrameHeader::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const MultiplexFrameHeader& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexFrameHeader) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes salted_service_id_hash = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { const ::std::string& _s = this_._internal_salted_service_id_hash(); target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional string service_id_hash_salt = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { const ::std::string& _s = this_._internal_service_id_hash_salt(); target = stream->WriteStringMaybeAliased(2, _s, target); } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexFrameHeader) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t MultiplexFrameHeader::ByteSizeLong(const MessageLite& base) { const MultiplexFrameHeader& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t MultiplexFrameHeader::ByteSizeLong() const { const MultiplexFrameHeader& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexFrameHeader) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes salted_service_id_hash = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_salted_service_id_hash()); } // optional string service_id_hash_salt = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_service_id_hash_salt()); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void MultiplexFrameHeader::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexFrameHeader) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { _this->_internal_set_salted_service_id_hash(from._internal_salted_service_id_hash()); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { _this->_internal_set_service_id_hash_salt(from._internal_service_id_hash_salt()); } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void MultiplexFrameHeader::CopyFrom(const MultiplexFrameHeader& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexFrameHeader) if (&from == this) return; Clear(); MergeFrom(from); } void MultiplexFrameHeader::InternalSwap(MultiplexFrameHeader* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.salted_service_id_hash_, &other->_impl_.salted_service_id_hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_salt_, &other->_impl_.service_id_hash_salt_, arena); } // =================================================================== class MultiplexControlFrame::_Internal { public: using HasBits = decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::location::nearby::mediums::MultiplexControlFrame, _impl_._oneof_case_); }; void MultiplexControlFrame::set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE connection_request_frame) { ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (connection_request_frame) { ::google::protobuf::Arena* submessage_arena = connection_request_frame->GetArena(); if (message_arena != submessage_arena) { connection_request_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, connection_request_frame, submessage_arena); } set_has_connection_request_frame(); _impl_.Frame_.connection_request_frame_ = connection_request_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) } void MultiplexControlFrame::set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE connection_response_frame) { ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (connection_response_frame) { ::google::protobuf::Arena* submessage_arena = connection_response_frame->GetArena(); if (message_arena != submessage_arena) { connection_response_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, connection_response_frame, submessage_arena); } set_has_connection_response_frame(); _impl_.Frame_.connection_response_frame_ = connection_response_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) } void MultiplexControlFrame::set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE disconnect_frame) { ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (disconnect_frame) { ::google::protobuf::Arena* submessage_arena = disconnect_frame->GetArena(); if (message_arena != submessage_arena) { disconnect_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, disconnect_frame, submessage_arena); } set_has_disconnect_frame(); _impl_.Frame_.disconnect_frame_ = disconnect_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) } MultiplexControlFrame::MultiplexControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexControlFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexControlFrame) } PROTOBUF_NDEBUG_INLINE MultiplexControlFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::location::nearby::mediums::MultiplexControlFrame& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, Frame_{}, _oneof_case_{from._oneof_case_[0]} {} MultiplexControlFrame::MultiplexControlFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexControlFrame& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexControlFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE MultiplexControlFrame* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.control_frame_type_ = from._impl_.control_frame_type_; switch (Frame_case()) { case FRAME_NOT_SET: break; case kConnectionRequestFrame: _impl_.Frame_.connection_request_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_request_frame_); break; case kConnectionResponseFrame: _impl_.Frame_.connection_response_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_response_frame_); break; case kDisconnectFrame: _impl_.Frame_.disconnect_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.disconnect_frame_); break; } // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexControlFrame) } PROTOBUF_NDEBUG_INLINE MultiplexControlFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, Frame_{}, _oneof_case_{} {} inline void MultiplexControlFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.control_frame_type_ = {}; } MultiplexControlFrame::~MultiplexControlFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexControlFrame) SharedDtor(*this); } inline void MultiplexControlFrame::SharedDtor(MessageLite& self) { MultiplexControlFrame& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); if (this_.has_Frame()) { this_.clear_Frame(); } this_._impl_.~Impl_(); } void MultiplexControlFrame::clear_Frame() { // @@protoc_insertion_point(one_of_clear_start:location.nearby.mediums.MultiplexControlFrame) ::google::protobuf::internal::TSanWrite(&_impl_); switch (Frame_case()) { case kConnectionRequestFrame: { if (GetArena() == nullptr) { delete _impl_.Frame_.connection_request_frame_; } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { if (_impl_.Frame_.connection_request_frame_ != nullptr) { _impl_.Frame_.connection_request_frame_->Clear(); } } break; } case kConnectionResponseFrame: { if (GetArena() == nullptr) { delete _impl_.Frame_.connection_response_frame_; } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { if (_impl_.Frame_.connection_response_frame_ != nullptr) { _impl_.Frame_.connection_response_frame_->Clear(); } } break; } case kDisconnectFrame: { if (GetArena() == nullptr) { delete _impl_.Frame_.disconnect_frame_; } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { if (_impl_.Frame_.disconnect_frame_ != nullptr) { _impl_.Frame_.disconnect_frame_->Clear(); } } break; } case FRAME_NOT_SET: { break; } } _impl_._oneof_case_[0] = FRAME_NOT_SET; } inline void* PROTOBUF_NONNULL MultiplexControlFrame::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) MultiplexControlFrame(arena); } constexpr auto MultiplexControlFrame::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MultiplexControlFrame), alignof(MultiplexControlFrame)); } constexpr auto MultiplexControlFrame::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<46>{ { &_MultiplexControlFrame_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &MultiplexControlFrame::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &MultiplexControlFrame::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexControlFrame::ByteSizeLong, &MultiplexControlFrame::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_._cached_size_), true, }, "location.nearby.mediums.MultiplexControlFrame", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<46> MultiplexControlFrame_class_data_ = MultiplexControlFrame::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL MultiplexControlFrame::GetClassData() const { return MultiplexControlFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 4, 4, 0, 2> MultiplexControlFrame::_table_ = { { PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_._has_bits_), 0, // no _extensions_ 4, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967280, // skipmap offsetof(decltype(_table_), field_entries), 4, // num_field_entries 4, // num_aux_entries offsetof(decltype(_table_), aux_entries), MultiplexControlFrame_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexControlFrame>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; {::_pbi::TcParser::FastEr0S1, {8, 0, 3, PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.control_frame_type_)}}, }}, {{ 65535, 65535 }}, {{ // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.control_frame_type_), _Internal::kHasBitsOffset + 0, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.Frame_.connection_request_frame_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.Frame_.connection_response_frame_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.Frame_.disconnect_frame_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionRequestFrame>()}, {::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionResponseFrame>()}, {::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectFrame>()}, {0, 3}, }}, {{ }}, }; PROTOBUF_NOINLINE void MultiplexControlFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexControlFrame) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.control_frame_type_ = 0; clear_Frame(); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL MultiplexControlFrame::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const MultiplexControlFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL MultiplexControlFrame::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const MultiplexControlFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexControlFrame) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this_._internal_control_frame_type(), target); } switch (this_.Frame_case()) { case kConnectionRequestFrame: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.Frame_.connection_request_frame_, this_._impl_.Frame_.connection_request_frame_->GetCachedSize(), target, stream); break; } case kConnectionResponseFrame: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.Frame_.connection_response_frame_, this_._impl_.Frame_.connection_response_frame_->GetCachedSize(), target, stream); break; } case kDisconnectFrame: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.Frame_.disconnect_frame_, this_._impl_.Frame_.disconnect_frame_->GetCachedSize(), target, stream); break; } default: break; } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexControlFrame) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t MultiplexControlFrame::ByteSizeLong(const MessageLite& base) { const MultiplexControlFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t MultiplexControlFrame::ByteSizeLong() const { const MultiplexControlFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexControlFrame) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_control_frame_type()); } } switch (this_.Frame_case()) { // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; case kConnectionRequestFrame: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.connection_request_frame_); break; } // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; case kConnectionResponseFrame: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.connection_response_frame_); break; } // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; case kDisconnectFrame: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.disconnect_frame_); break; } case FRAME_NOT_SET: { break; } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void MultiplexControlFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexControlFrame) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _this->_impl_.control_frame_type_ = from._impl_.control_frame_type_; } _this->_impl_._has_bits_[0] |= cached_has_bits; if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { if (oneof_to_case != 0) { _this->clear_Frame(); } _this->_impl_._oneof_case_[0] = oneof_from_case; } switch (oneof_from_case) { case kConnectionRequestFrame: { if (oneof_needs_init) { _this->_impl_.Frame_.connection_request_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_request_frame_); } else { _this->_impl_.Frame_.connection_request_frame_->CheckTypeAndMergeFrom(*from._impl_.Frame_.connection_request_frame_); } break; } case kConnectionResponseFrame: { if (oneof_needs_init) { _this->_impl_.Frame_.connection_response_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_response_frame_); } else { _this->_impl_.Frame_.connection_response_frame_->CheckTypeAndMergeFrom(*from._impl_.Frame_.connection_response_frame_); } break; } case kDisconnectFrame: { if (oneof_needs_init) { _this->_impl_.Frame_.disconnect_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.disconnect_frame_); } else { _this->_impl_.Frame_.disconnect_frame_->CheckTypeAndMergeFrom(*from._impl_.Frame_.disconnect_frame_); } break; } case FRAME_NOT_SET: break; } } _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void MultiplexControlFrame::CopyFrom(const MultiplexControlFrame& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexControlFrame) if (&from == this) return; Clear(); MergeFrom(from); } void MultiplexControlFrame::InternalSwap(MultiplexControlFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.control_frame_type_, other->_impl_.control_frame_type_); swap(_impl_.Frame_, other->_impl_.Frame_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } // =================================================================== class ConnectionRequestFrame::_Internal { public: }; ConnectionRequestFrame::ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, ConnectionRequestFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.ConnectionRequestFrame) } ConnectionRequestFrame::ConnectionRequestFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionRequestFrame& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, ConnectionRequestFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE ConnectionRequestFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void ConnectionRequestFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ConnectionRequestFrame::~ConnectionRequestFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.ConnectionRequestFrame) SharedDtor(*this); } inline void ConnectionRequestFrame::SharedDtor(MessageLite& self) { ConnectionRequestFrame& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL ConnectionRequestFrame::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ConnectionRequestFrame(arena); } constexpr auto ConnectionRequestFrame::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionRequestFrame), alignof(ConnectionRequestFrame)); } constexpr auto ConnectionRequestFrame::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<47>{ { &_ConnectionRequestFrame_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &ConnectionRequestFrame::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &ConnectionRequestFrame::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionRequestFrame::ByteSizeLong, &ConnectionRequestFrame::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_._cached_size_), true, }, "location.nearby.mediums.ConnectionRequestFrame", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<47> ConnectionRequestFrame_class_data_ = ConnectionRequestFrame::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL ConnectionRequestFrame::GetClassData() const { return ConnectionRequestFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ConnectionRequestFrame::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 0, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967295, // skipmap offsetof(decltype(_table_), field_names), // no field_entries 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries ConnectionRequestFrame_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionRequestFrame>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, // no field_entries, or aux_entries {{ }}, }; PROTOBUF_NOINLINE void ConnectionRequestFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.ConnectionRequestFrame) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL ConnectionRequestFrame::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const ConnectionRequestFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL ConnectionRequestFrame::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const ConnectionRequestFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.ConnectionRequestFrame) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.ConnectionRequestFrame) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t ConnectionRequestFrame::ByteSizeLong(const MessageLite& base) { const ConnectionRequestFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t ConnectionRequestFrame::ByteSizeLong() const { const ConnectionRequestFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ConnectionRequestFrame) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void ConnectionRequestFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ConnectionRequestFrame) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void ConnectionRequestFrame::CopyFrom(const ConnectionRequestFrame& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ConnectionRequestFrame) if (&from == this) return; Clear(); MergeFrom(from); } void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } // =================================================================== class ConnectionResponseFrame::_Internal { public: using HasBits = decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._has_bits_); }; ConnectionResponseFrame::ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, ConnectionResponseFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.ConnectionResponseFrame) } ConnectionResponseFrame::ConnectionResponseFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionResponseFrame& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, ConnectionResponseFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE ConnectionResponseFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void ConnectionResponseFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.connection_response_code_ = {}; } ConnectionResponseFrame::~ConnectionResponseFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.ConnectionResponseFrame) SharedDtor(*this); } inline void ConnectionResponseFrame::SharedDtor(MessageLite& self) { ConnectionResponseFrame& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL ConnectionResponseFrame::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ConnectionResponseFrame(arena); } constexpr auto ConnectionResponseFrame::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionResponseFrame), alignof(ConnectionResponseFrame)); } constexpr auto ConnectionResponseFrame::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<48>{ { &_ConnectionResponseFrame_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &ConnectionResponseFrame::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &ConnectionResponseFrame::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionResponseFrame::ByteSizeLong, &ConnectionResponseFrame::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._cached_size_), true, }, "location.nearby.mediums.ConnectionResponseFrame", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<48> ConnectionResponseFrame_class_data_ = ConnectionResponseFrame::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL ConnectionResponseFrame::GetClassData() const { return ConnectionResponseFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ConnectionResponseFrame::_table_ = { { PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), ConnectionResponseFrame_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionResponseFrame>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; {::_pbi::TcParser::FastEr0S1, {8, 0, 2, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.connection_response_code_)}}, }}, {{ 65535, 65535 }}, {{ // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.connection_response_code_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, }}, {{ {0, 2}, }}, {{ }}, }; PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.ConnectionResponseFrame) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.connection_response_code_ = 0; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL ConnectionResponseFrame::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const ConnectionResponseFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL ConnectionResponseFrame::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const ConnectionResponseFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.ConnectionResponseFrame) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this_._internal_connection_response_code(), target); } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.ConnectionResponseFrame) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t ConnectionResponseFrame::ByteSizeLong(const MessageLite& base) { const ConnectionResponseFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t ConnectionResponseFrame::ByteSizeLong() const { const ConnectionResponseFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ConnectionResponseFrame) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_connection_response_code()); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void ConnectionResponseFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ConnectionResponseFrame) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _this->_impl_.connection_response_code_ = from._impl_.connection_response_code_; } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void ConnectionResponseFrame::CopyFrom(const ConnectionResponseFrame& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ConnectionResponseFrame) if (&from == this) return; Clear(); MergeFrom(from); } void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.connection_response_code_, other->_impl_.connection_response_code_); } // =================================================================== class DisconnectFrame::_Internal { public: }; DisconnectFrame::DisconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, DisconnectFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.DisconnectFrame) } DisconnectFrame::DisconnectFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DisconnectFrame& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, DisconnectFrame_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE DisconnectFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void DisconnectFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } DisconnectFrame::~DisconnectFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.DisconnectFrame) SharedDtor(*this); } inline void DisconnectFrame::SharedDtor(MessageLite& self) { DisconnectFrame& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL DisconnectFrame::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) DisconnectFrame(arena); } constexpr auto DisconnectFrame::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DisconnectFrame), alignof(DisconnectFrame)); } constexpr auto DisconnectFrame::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<40>{ { &_DisconnectFrame_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &DisconnectFrame::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &DisconnectFrame::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &DisconnectFrame::ByteSizeLong, &DisconnectFrame::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(DisconnectFrame, _impl_._cached_size_), true, }, "location.nearby.mediums.DisconnectFrame", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<40> DisconnectFrame_class_data_ = DisconnectFrame::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL DisconnectFrame::GetClassData() const { return DisconnectFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> DisconnectFrame::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 0, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967295, // skipmap offsetof(decltype(_table_), field_names), // no field_entries 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries DisconnectFrame_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectFrame>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, // no field_entries, or aux_entries {{ }}, }; PROTOBUF_NOINLINE void DisconnectFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.DisconnectFrame) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL DisconnectFrame::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const DisconnectFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL DisconnectFrame::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const DisconnectFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.DisconnectFrame) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.DisconnectFrame) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t DisconnectFrame::ByteSizeLong(const MessageLite& base) { const DisconnectFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t DisconnectFrame::ByteSizeLong() const { const DisconnectFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.DisconnectFrame) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void DisconnectFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.DisconnectFrame) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void DisconnectFrame::CopyFrom(const DisconnectFrame& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.DisconnectFrame) if (&from == this) return; Clear(); MergeFrom(from); } void DisconnectFrame::InternalSwap(DisconnectFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } // =================================================================== class MultiplexDataFrame::_Internal { public: using HasBits = decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_._has_bits_); }; MultiplexDataFrame::MultiplexDataFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexDataFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexDataFrame) } PROTOBUF_NDEBUG_INLINE MultiplexDataFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::location::nearby::mediums::MultiplexDataFrame& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, data_(arena, from.data_) {} MultiplexDataFrame::MultiplexDataFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexDataFrame& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::MessageLite(arena, MultiplexDataFrame_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::MessageLite(arena) { #endif // PROTOBUF_CUSTOM_VTABLE MultiplexDataFrame* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexDataFrame) } PROTOBUF_NDEBUG_INLINE MultiplexDataFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, data_(arena) {} inline void MultiplexDataFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } MultiplexDataFrame::~MultiplexDataFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexDataFrame) SharedDtor(*this); } inline void MultiplexDataFrame::SharedDtor(MessageLite& self) { MultiplexDataFrame& this_ = static_cast(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.data_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL MultiplexDataFrame::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) MultiplexDataFrame(arena); } constexpr auto MultiplexDataFrame::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MultiplexDataFrame), alignof(MultiplexDataFrame)); } constexpr auto MultiplexDataFrame::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataLite<43>{ { &_MultiplexDataFrame_default_instance_._instance, &_table_.header, nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &MultiplexDataFrame::MergeImpl, ::google::protobuf::MessageLite::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) &MultiplexDataFrame::SharedDtor, ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexDataFrame::ByteSizeLong, &MultiplexDataFrame::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_._cached_size_), true, }, "location.nearby.mediums.MultiplexDataFrame", }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataLite<43> MultiplexDataFrame_class_data_ = MultiplexDataFrame::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL MultiplexDataFrame::GetClassData() const { return MultiplexDataFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> MultiplexDataFrame::_table_ = { { PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries MultiplexDataFrame_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallbackLite, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexDataFrame>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // optional bytes data = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_.data_)}}, }}, {{ 65535, 65535 }}, {{ // optional bytes data = 1; {PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void MultiplexDataFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexDataFrame) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.data_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::std::string>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL MultiplexDataFrame::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const MultiplexDataFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL MultiplexDataFrame::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const MultiplexDataFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexDataFrame) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes data = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { const ::std::string& _s = this_._internal_data(); target = stream->WriteBytesMaybeAliased(1, _s, target); } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexDataFrame) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t MultiplexDataFrame::ByteSizeLong(const MessageLite& base) { const MultiplexDataFrame& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t MultiplexDataFrame::ByteSizeLong() const { const MultiplexDataFrame& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexDataFrame) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // optional bytes data = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_data()); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void MultiplexDataFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexDataFrame) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _this->_internal_set_data(from._internal_data()); } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::std::string>( from._internal_metadata_); } void MultiplexDataFrame::CopyFrom(const MultiplexDataFrame& from) { // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexDataFrame) if (&from == this) return; Clear(); MergeFrom(from); } void MultiplexDataFrame::InternalSwap(MultiplexDataFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); } // @@protoc_insertion_point(namespace_scope) } // namespace mediums } // namespace nearby } // namespace location namespace google { namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc"