mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
1484 lines
63 KiB
C++
1484 lines
63 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// NO CHECKED-IN PROTOBUF GENCODE
|
|
// source: proto/mediums/ble_frames.proto
|
|
// Protobuf C++ Version: 6.33.3
|
|
|
|
#include "proto/mediums/ble_frames.pb.h"
|
|
|
|
#include <algorithm>
|
|
#include <type_traits>
|
|
#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 PacketAcknowledgementFrame::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
service_id_hash_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
received_size_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR PacketAcknowledgementFrame::PacketAcknowledgementFrame(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(PacketAcknowledgementFrame_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct PacketAcknowledgementFrameDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR PacketAcknowledgementFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~PacketAcknowledgementFrameDefaultTypeInternal() {}
|
|
union {
|
|
PacketAcknowledgementFrame _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PacketAcknowledgementFrameDefaultTypeInternal _PacketAcknowledgementFrame_default_instance_;
|
|
|
|
inline constexpr IntroductionFrame::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
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()),
|
|
socket_version_{static_cast< ::location::nearby::mediums::SocketVersion >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR IntroductionFrame::IntroductionFrame(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(IntroductionFrame_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct IntroductionFrameDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR IntroductionFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~IntroductionFrameDefaultTypeInternal() {}
|
|
union {
|
|
IntroductionFrame _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntroductionFrameDefaultTypeInternal _IntroductionFrame_default_instance_;
|
|
|
|
inline constexpr DisconnectionFrame::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
service_id_hash_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR DisconnectionFrame::DisconnectionFrame(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(DisconnectionFrame_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct DisconnectionFrameDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR DisconnectionFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~DisconnectionFrameDefaultTypeInternal() {}
|
|
union {
|
|
DisconnectionFrame _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_;
|
|
|
|
inline constexpr SocketControlFrame::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
introduction_{nullptr},
|
|
disconnection_{nullptr},
|
|
packet_acknowledgement_{nullptr},
|
|
type_{static_cast< ::location::nearby::mediums::SocketControlFrame_ControlFrameType >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR SocketControlFrame::SocketControlFrame(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(SocketControlFrame_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct SocketControlFrameDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR SocketControlFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~SocketControlFrameDefaultTypeInternal() {}
|
|
union {
|
|
SocketControlFrame _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SocketControlFrameDefaultTypeInternal _SocketControlFrame_default_instance_;
|
|
} // namespace mediums
|
|
} // namespace nearby
|
|
} // namespace location
|
|
namespace location {
|
|
namespace nearby {
|
|
namespace mediums {
|
|
PROTOBUF_CONSTINIT const uint32_t SocketControlFrame_ControlFrameType_internal_data_[] = {
|
|
262144u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
SocketControlFrame_ControlFrameType_strings[4] = {};
|
|
|
|
static const char SocketControlFrame_ControlFrameType_names[] = {
|
|
"DISCONNECTION"
|
|
"INTRODUCTION"
|
|
"PACKET_ACKNOWLEDGEMENT"
|
|
"UNKNOWN_CONTROL_FRAME_TYPE"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry SocketControlFrame_ControlFrameType_entries[] = {
|
|
{{&SocketControlFrame_ControlFrameType_names[0], 13}, 2},
|
|
{{&SocketControlFrame_ControlFrameType_names[13], 12}, 1},
|
|
{{&SocketControlFrame_ControlFrameType_names[25], 22}, 3},
|
|
{{&SocketControlFrame_ControlFrameType_names[47], 26}, 0},
|
|
};
|
|
|
|
static const int SocketControlFrame_ControlFrameType_entries_by_number[] = {
|
|
3, // 0 -> UNKNOWN_CONTROL_FRAME_TYPE
|
|
1, // 1 -> INTRODUCTION
|
|
0, // 2 -> DISCONNECTION
|
|
2, // 3 -> PACKET_ACKNOWLEDGEMENT
|
|
};
|
|
|
|
const ::std::string& SocketControlFrame_ControlFrameType_Name(SocketControlFrame_ControlFrameType value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
SocketControlFrame_ControlFrameType_entries, SocketControlFrame_ControlFrameType_entries_by_number, 4,
|
|
SocketControlFrame_ControlFrameType_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(SocketControlFrame_ControlFrameType_entries,
|
|
SocketControlFrame_ControlFrameType_entries_by_number,
|
|
4, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SocketControlFrame_ControlFrameType_strings[idx].get();
|
|
}
|
|
|
|
bool SocketControlFrame_ControlFrameType_Parse(::absl::string_view name, SocketControlFrame_ControlFrameType* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
SocketControlFrame_ControlFrameType_entries, 4, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<SocketControlFrame_ControlFrameType>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t SocketVersion_internal_data_[] = {
|
|
196608u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
SocketVersion_strings[3] = {};
|
|
|
|
static const char SocketVersion_names[] = {
|
|
"UNKNOWN_SOCKET_VERSION"
|
|
"V1"
|
|
"V2"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry SocketVersion_entries[] = {
|
|
{{&SocketVersion_names[0], 22}, 0},
|
|
{{&SocketVersion_names[22], 2}, 1},
|
|
{{&SocketVersion_names[24], 2}, 2},
|
|
};
|
|
|
|
static const int SocketVersion_entries_by_number[] = {
|
|
0, // 0 -> UNKNOWN_SOCKET_VERSION
|
|
1, // 1 -> V1
|
|
2, // 2 -> V2
|
|
};
|
|
|
|
const ::std::string& SocketVersion_Name(SocketVersion value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
SocketVersion_entries, SocketVersion_entries_by_number, 3,
|
|
SocketVersion_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(SocketVersion_entries,
|
|
SocketVersion_entries_by_number,
|
|
3, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SocketVersion_strings[idx].get();
|
|
}
|
|
|
|
bool SocketVersion_Parse(::absl::string_view name, SocketVersion* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
SocketVersion_entries, 3, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<SocketVersion>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
// ===================================================================
|
|
|
|
class SocketControlFrame::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<SocketControlFrame>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_._has_bits_);
|
|
};
|
|
|
|
SocketControlFrame::SocketControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, SocketControlFrame_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.SocketControlFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE SocketControlFrame::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::SocketControlFrame& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0} {}
|
|
|
|
SocketControlFrame::SocketControlFrame(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const SocketControlFrame& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, SocketControlFrame_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SocketControlFrame* 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_.introduction_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.introduction_)
|
|
: nullptr;
|
|
_impl_.disconnection_ = (CheckHasBit(cached_has_bits, 0x00000002U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_)
|
|
: nullptr;
|
|
_impl_.packet_acknowledgement_ = (CheckHasBit(cached_has_bits, 0x00000004U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.packet_acknowledgement_)
|
|
: nullptr;
|
|
_impl_.type_ = from._impl_.type_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.SocketControlFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE SocketControlFrame::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void SocketControlFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, introduction_),
|
|
0,
|
|
offsetof(Impl_, type_) -
|
|
offsetof(Impl_, introduction_) +
|
|
sizeof(Impl_::type_));
|
|
}
|
|
SocketControlFrame::~SocketControlFrame() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.SocketControlFrame)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void SocketControlFrame::SharedDtor(MessageLite& self) {
|
|
SocketControlFrame& this_ = static_cast<SocketControlFrame&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.introduction_;
|
|
delete this_._impl_.disconnection_;
|
|
delete this_._impl_.packet_acknowledgement_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL SocketControlFrame::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) SocketControlFrame(arena);
|
|
}
|
|
constexpr auto SocketControlFrame::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SocketControlFrame),
|
|
alignof(SocketControlFrame));
|
|
}
|
|
constexpr auto SocketControlFrame::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<43>{
|
|
{
|
|
&_SocketControlFrame_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&SocketControlFrame::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<SocketControlFrame>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&SocketControlFrame::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<SocketControlFrame>(), &SocketControlFrame::ByteSizeLong,
|
|
&SocketControlFrame::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.SocketControlFrame",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<43> SocketControlFrame_class_data_ =
|
|
SocketControlFrame::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
SocketControlFrame::GetClassData() const {
|
|
return SocketControlFrame_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 4, 4, 0, 2>
|
|
SocketControlFrame::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
4, 24, // 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),
|
|
SocketControlFrame_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::SocketControlFrame>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{34, 2, 2,
|
|
PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.packet_acknowledgement_)}},
|
|
// optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 3, 3,
|
|
PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.type_)}},
|
|
// optional .location.nearby.mediums.IntroductionFrame introduction = 2;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{18, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.introduction_)}},
|
|
// optional .location.nearby.mediums.DisconnectionFrame disconnection = 3;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{26, 1, 1,
|
|
PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.disconnection_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1;
|
|
{PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.type_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.mediums.IntroductionFrame introduction = 2;
|
|
{PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.introduction_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.mediums.DisconnectionFrame disconnection = 3;
|
|
{PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.disconnection_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4;
|
|
{PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.packet_acknowledgement_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::IntroductionFrame>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectionFrame>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::PacketAcknowledgementFrame>()},
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void SocketControlFrame::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.SocketControlFrame)
|
|
::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, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(_impl_.introduction_ != nullptr);
|
|
_impl_.introduction_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(_impl_.disconnection_ != nullptr);
|
|
_impl_.disconnection_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(_impl_.packet_acknowledgement_ != nullptr);
|
|
_impl_.packet_acknowledgement_->Clear();
|
|
}
|
|
}
|
|
_impl_.type_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL SocketControlFrame::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const SocketControlFrame& this_ = static_cast<const SocketControlFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL SocketControlFrame::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const SocketControlFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.SocketControlFrame)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.mediums.IntroductionFrame introduction = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
2, *this_._impl_.introduction_, this_._impl_.introduction_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.mediums.DisconnectionFrame disconnection = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, *this_._impl_.disconnection_, this_._impl_.disconnection_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, *this_._impl_.packet_acknowledgement_, this_._impl_.packet_acknowledgement_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
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<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.SocketControlFrame)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t SocketControlFrame::ByteSizeLong(const MessageLite& base) {
|
|
const SocketControlFrame& this_ = static_cast<const SocketControlFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t SocketControlFrame::ByteSizeLong() const {
|
|
const SocketControlFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.SocketControlFrame)
|
|
::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, 0x0000000fU)) {
|
|
// optional .location.nearby.mediums.IntroductionFrame introduction = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.introduction_);
|
|
}
|
|
// optional .location.nearby.mediums.DisconnectionFrame disconnection = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.disconnection_);
|
|
}
|
|
// optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.packet_acknowledgement_);
|
|
}
|
|
// optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
}
|
|
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 SocketControlFrame::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<SocketControlFrame*>(&to_msg);
|
|
auto& from = static_cast<const SocketControlFrame&>(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.SocketControlFrame)
|
|
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, 0x0000000fU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(from._impl_.introduction_ != nullptr);
|
|
if (_this->_impl_.introduction_ == nullptr) {
|
|
_this->_impl_.introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.introduction_);
|
|
} else {
|
|
_this->_impl_.introduction_->MergeFrom(*from._impl_.introduction_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(from._impl_.disconnection_ != nullptr);
|
|
if (_this->_impl_.disconnection_ == nullptr) {
|
|
_this->_impl_.disconnection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_);
|
|
} else {
|
|
_this->_impl_.disconnection_->MergeFrom(*from._impl_.disconnection_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(from._impl_.packet_acknowledgement_ != nullptr);
|
|
if (_this->_impl_.packet_acknowledgement_ == nullptr) {
|
|
_this->_impl_.packet_acknowledgement_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.packet_acknowledgement_);
|
|
} else {
|
|
_this->_impl_.packet_acknowledgement_->MergeFrom(*from._impl_.packet_acknowledgement_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void SocketControlFrame::CopyFrom(const SocketControlFrame& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.SocketControlFrame)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void SocketControlFrame::InternalSwap(SocketControlFrame* 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(SocketControlFrame, _impl_.type_)
|
|
+ sizeof(SocketControlFrame::_impl_.type_)
|
|
- PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.introduction_)>(
|
|
reinterpret_cast<char*>(&_impl_.introduction_),
|
|
reinterpret_cast<char*>(&other->_impl_.introduction_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class IntroductionFrame::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<IntroductionFrame>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_._has_bits_);
|
|
};
|
|
|
|
IntroductionFrame::IntroductionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, IntroductionFrame_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.IntroductionFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE IntroductionFrame::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::IntroductionFrame& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
service_id_hash_(arena, from.service_id_hash_),
|
|
service_id_hash_salt_(arena, from.service_id_hash_salt_) {}
|
|
|
|
IntroductionFrame::IntroductionFrame(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const IntroductionFrame& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, IntroductionFrame_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
IntroductionFrame* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.socket_version_ = from._impl_.socket_version_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.IntroductionFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE IntroductionFrame::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
service_id_hash_(arena),
|
|
service_id_hash_salt_(arena) {}
|
|
|
|
inline void IntroductionFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.socket_version_ = {};
|
|
}
|
|
IntroductionFrame::~IntroductionFrame() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.IntroductionFrame)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void IntroductionFrame::SharedDtor(MessageLite& self) {
|
|
IntroductionFrame& this_ = static_cast<IntroductionFrame&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.service_id_hash_.Destroy();
|
|
this_._impl_.service_id_hash_salt_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL IntroductionFrame::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) IntroductionFrame(arena);
|
|
}
|
|
constexpr auto IntroductionFrame::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IntroductionFrame),
|
|
alignof(IntroductionFrame));
|
|
}
|
|
constexpr auto IntroductionFrame::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<42>{
|
|
{
|
|
&_IntroductionFrame_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&IntroductionFrame::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<IntroductionFrame>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&IntroductionFrame::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<IntroductionFrame>(), &IntroductionFrame::ByteSizeLong,
|
|
&IntroductionFrame::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.IntroductionFrame",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<42> IntroductionFrame_class_data_ =
|
|
IntroductionFrame::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
IntroductionFrame::GetClassData() const {
|
|
return IntroductionFrame_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
|
|
IntroductionFrame::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
3, 24, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967288, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
3, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
IntroductionFrame_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::IntroductionFrame>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional bytes service_id_hash = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_)}},
|
|
// optional .location.nearby.mediums.SocketVersion socket_version = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 2, 2,
|
|
PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.socket_version_)}},
|
|
// optional string service_id_hash_salt = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_salt_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bytes service_id_hash = 1;
|
|
{PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.mediums.SocketVersion socket_version = 2;
|
|
{PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.socket_version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional string service_id_hash_salt = 3;
|
|
{PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_salt_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
{{
|
|
{0, 2},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void IntroductionFrame::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.IntroductionFrame)
|
|
::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_.service_id_hash_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.service_id_hash_salt_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_.socket_version_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL IntroductionFrame::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const IntroductionFrame& this_ = static_cast<const IntroductionFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL IntroductionFrame::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const IntroductionFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.IntroductionFrame)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bytes service_id_hash = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_service_id_hash();
|
|
target = stream->WriteBytesMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.mediums.SocketVersion socket_version = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_socket_version(), target);
|
|
}
|
|
|
|
// optional string service_id_hash_salt = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_service_id_hash_salt();
|
|
target = stream->WriteStringMaybeAliased(3, _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<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.IntroductionFrame)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t IntroductionFrame::ByteSizeLong(const MessageLite& base) {
|
|
const IntroductionFrame& this_ = static_cast<const IntroductionFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t IntroductionFrame::ByteSizeLong() const {
|
|
const IntroductionFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IntroductionFrame)
|
|
::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, 0x00000007U)) {
|
|
// optional bytes service_id_hash = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_service_id_hash());
|
|
}
|
|
// optional string service_id_hash_salt = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_service_id_hash_salt());
|
|
}
|
|
// optional .location.nearby.mediums.SocketVersion socket_version = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_socket_version());
|
|
}
|
|
}
|
|
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 IntroductionFrame::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<IntroductionFrame*>(&to_msg);
|
|
auto& from = static_cast<const IntroductionFrame&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IntroductionFrame)
|
|
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, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_service_id_hash(from._internal_service_id_hash());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_service_id_hash_salt(from._internal_service_id_hash_salt());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.socket_version_ = from._impl_.socket_version_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void IntroductionFrame::CopyFrom(const IntroductionFrame& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IntroductionFrame)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void IntroductionFrame::InternalSwap(IntroductionFrame* 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_.service_id_hash_, &other->_impl_.service_id_hash_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_salt_, &other->_impl_.service_id_hash_salt_, arena);
|
|
swap(_impl_.socket_version_, other->_impl_.socket_version_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class DisconnectionFrame::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<DisconnectionFrame>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._has_bits_);
|
|
};
|
|
|
|
DisconnectionFrame::DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, DisconnectionFrame_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.DisconnectionFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE DisconnectionFrame::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::DisconnectionFrame& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
service_id_hash_(arena, from.service_id_hash_) {}
|
|
|
|
DisconnectionFrame::DisconnectionFrame(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const DisconnectionFrame& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, DisconnectionFrame_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
DisconnectionFrame* 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.DisconnectionFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE DisconnectionFrame::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
service_id_hash_(arena) {}
|
|
|
|
inline void DisconnectionFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
DisconnectionFrame::~DisconnectionFrame() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.DisconnectionFrame)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void DisconnectionFrame::SharedDtor(MessageLite& self) {
|
|
DisconnectionFrame& this_ = static_cast<DisconnectionFrame&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.service_id_hash_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL DisconnectionFrame::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) DisconnectionFrame(arena);
|
|
}
|
|
constexpr auto DisconnectionFrame::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DisconnectionFrame),
|
|
alignof(DisconnectionFrame));
|
|
}
|
|
constexpr auto DisconnectionFrame::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<43>{
|
|
{
|
|
&_DisconnectionFrame_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&DisconnectionFrame::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<DisconnectionFrame>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&DisconnectionFrame::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<DisconnectionFrame>(), &DisconnectionFrame::ByteSizeLong,
|
|
&DisconnectionFrame::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.DisconnectionFrame",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<43> DisconnectionFrame_class_data_ =
|
|
DisconnectionFrame::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
DisconnectionFrame::GetClassData() const {
|
|
return DisconnectionFrame_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
|
|
DisconnectionFrame::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _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
|
|
DisconnectionFrame_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectionFrame>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional bytes service_id_hash = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.service_id_hash_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bytes service_id_hash = 1;
|
|
{PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void DisconnectionFrame::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.DisconnectionFrame)
|
|
::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_.service_id_hash_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL DisconnectionFrame::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const DisconnectionFrame& this_ = static_cast<const DisconnectionFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL DisconnectionFrame::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const DisconnectionFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.DisconnectionFrame)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bytes service_id_hash = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_service_id_hash();
|
|
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<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.DisconnectionFrame)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t DisconnectionFrame::ByteSizeLong(const MessageLite& base) {
|
|
const DisconnectionFrame& this_ = static_cast<const DisconnectionFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t DisconnectionFrame::ByteSizeLong() const {
|
|
const DisconnectionFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.DisconnectionFrame)
|
|
::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 service_id_hash = 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_service_id_hash());
|
|
}
|
|
}
|
|
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 DisconnectionFrame::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<DisconnectionFrame*>(&to_msg);
|
|
auto& from = static_cast<const DisconnectionFrame&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.DisconnectionFrame)
|
|
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_service_id_hash(from._internal_service_id_hash());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void DisconnectionFrame::CopyFrom(const DisconnectionFrame& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.DisconnectionFrame)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void DisconnectionFrame::InternalSwap(DisconnectionFrame* 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_.service_id_hash_, &other->_impl_.service_id_hash_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class PacketAcknowledgementFrame::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<PacketAcknowledgementFrame>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_._has_bits_);
|
|
};
|
|
|
|
PacketAcknowledgementFrame::PacketAcknowledgementFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, PacketAcknowledgementFrame_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.PacketAcknowledgementFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE PacketAcknowledgementFrame::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::PacketAcknowledgementFrame& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
service_id_hash_(arena, from.service_id_hash_) {}
|
|
|
|
PacketAcknowledgementFrame::PacketAcknowledgementFrame(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const PacketAcknowledgementFrame& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, PacketAcknowledgementFrame_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PacketAcknowledgementFrame* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.received_size_ = from._impl_.received_size_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE PacketAcknowledgementFrame::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
service_id_hash_(arena) {}
|
|
|
|
inline void PacketAcknowledgementFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.received_size_ = {};
|
|
}
|
|
PacketAcknowledgementFrame::~PacketAcknowledgementFrame() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void PacketAcknowledgementFrame::SharedDtor(MessageLite& self) {
|
|
PacketAcknowledgementFrame& this_ = static_cast<PacketAcknowledgementFrame&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.service_id_hash_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL PacketAcknowledgementFrame::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) PacketAcknowledgementFrame(arena);
|
|
}
|
|
constexpr auto PacketAcknowledgementFrame::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PacketAcknowledgementFrame),
|
|
alignof(PacketAcknowledgementFrame));
|
|
}
|
|
constexpr auto PacketAcknowledgementFrame::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<51>{
|
|
{
|
|
&_PacketAcknowledgementFrame_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&PacketAcknowledgementFrame::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<PacketAcknowledgementFrame>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&PacketAcknowledgementFrame::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<PacketAcknowledgementFrame>(), &PacketAcknowledgementFrame::ByteSizeLong,
|
|
&PacketAcknowledgementFrame::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.PacketAcknowledgementFrame",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<51> PacketAcknowledgementFrame_class_data_ =
|
|
PacketAcknowledgementFrame::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
PacketAcknowledgementFrame::GetClassData() const {
|
|
return PacketAcknowledgementFrame_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
|
|
PacketAcknowledgementFrame::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _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
|
|
PacketAcknowledgementFrame_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::PacketAcknowledgementFrame>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional int32 received_size = 2;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{16, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.received_size_)}},
|
|
// optional bytes service_id_hash = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.service_id_hash_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bytes service_id_hash = 1;
|
|
{PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional int32 received_size = 2;
|
|
{PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.received_size_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void PacketAcknowledgementFrame::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
::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_.service_id_hash_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_.received_size_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL PacketAcknowledgementFrame::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const PacketAcknowledgementFrame& this_ = static_cast<const PacketAcknowledgementFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL PacketAcknowledgementFrame::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const PacketAcknowledgementFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bytes service_id_hash = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_service_id_hash();
|
|
target = stream->WriteBytesMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional int32 received_size = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
|
|
stream, this_._internal_received_size(), 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<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t PacketAcknowledgementFrame::ByteSizeLong(const MessageLite& base) {
|
|
const PacketAcknowledgementFrame& this_ = static_cast<const PacketAcknowledgementFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t PacketAcknowledgementFrame::ByteSizeLong() const {
|
|
const PacketAcknowledgementFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
::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 service_id_hash = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_service_id_hash());
|
|
}
|
|
// optional int32 received_size = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_received_size());
|
|
}
|
|
}
|
|
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 PacketAcknowledgementFrame::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<PacketAcknowledgementFrame*>(&to_msg);
|
|
auto& from = static_cast<const PacketAcknowledgementFrame&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
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_service_id_hash(from._internal_service_id_hash());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.received_size_ = from._impl_.received_size_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void PacketAcknowledgementFrame::CopyFrom(const PacketAcknowledgementFrame& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.PacketAcknowledgementFrame)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void PacketAcknowledgementFrame::InternalSwap(PacketAcknowledgementFrame* 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_.service_id_hash_, &other->_impl_.service_id_hash_, arena);
|
|
swap(_impl_.received_size_, other->_impl_.received_size_);
|
|
}
|
|
|
|
// @@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"
|