mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
743 lines
30 KiB
C++
743 lines
30 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// NO CHECKED-IN PROTOBUF GENCODE
|
|
// source: proto/mediums/nfc_frames.proto
|
|
// Protobuf C++ Version: 6.33.3
|
|
|
|
#include "proto/mediums/nfc_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 AdvertisementRequest::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
service_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
endpoint_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
public_key_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR AdvertisementRequest::AdvertisementRequest(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(AdvertisementRequest_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct AdvertisementRequestDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AdvertisementRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AdvertisementRequestDefaultTypeInternal() {}
|
|
union {
|
|
AdvertisementRequest _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdvertisementRequestDefaultTypeInternal _AdvertisementRequest_default_instance_;
|
|
|
|
inline constexpr AdvertisementData::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
tag_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
public_key_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
rx_advertisement_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR AdvertisementData::AdvertisementData(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(AdvertisementData_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct AdvertisementDataDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AdvertisementDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AdvertisementDataDefaultTypeInternal() {}
|
|
union {
|
|
AdvertisementData _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdvertisementDataDefaultTypeInternal _AdvertisementData_default_instance_;
|
|
} // namespace mediums
|
|
} // namespace nearby
|
|
} // namespace location
|
|
namespace location {
|
|
namespace nearby {
|
|
namespace mediums {
|
|
// ===================================================================
|
|
|
|
class AdvertisementData::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<AdvertisementData>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_._has_bits_);
|
|
};
|
|
|
|
AdvertisementData::AdvertisementData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, AdvertisementData_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.AdvertisementData)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE AdvertisementData::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::AdvertisementData& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
tag_(arena, from.tag_),
|
|
public_key_(arena, from.public_key_),
|
|
rx_advertisement_(arena, from.rx_advertisement_) {}
|
|
|
|
AdvertisementData::AdvertisementData(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const AdvertisementData& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, AdvertisementData_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
AdvertisementData* 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.AdvertisementData)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE AdvertisementData::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
tag_(arena),
|
|
public_key_(arena),
|
|
rx_advertisement_(arena) {}
|
|
|
|
inline void AdvertisementData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
AdvertisementData::~AdvertisementData() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.AdvertisementData)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void AdvertisementData::SharedDtor(MessageLite& self) {
|
|
AdvertisementData& this_ = static_cast<AdvertisementData&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.tag_.Destroy();
|
|
this_._impl_.public_key_.Destroy();
|
|
this_._impl_.rx_advertisement_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL AdvertisementData::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) AdvertisementData(arena);
|
|
}
|
|
constexpr auto AdvertisementData::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AdvertisementData),
|
|
alignof(AdvertisementData));
|
|
}
|
|
constexpr auto AdvertisementData::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<42>{
|
|
{
|
|
&_AdvertisementData_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&AdvertisementData::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<AdvertisementData>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&AdvertisementData::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<AdvertisementData>(), &AdvertisementData::ByteSizeLong,
|
|
&AdvertisementData::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.AdvertisementData",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<42> AdvertisementData_class_data_ =
|
|
AdvertisementData::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
AdvertisementData::GetClassData() const {
|
|
return AdvertisementData_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
|
|
AdvertisementData::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementData, _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
|
|
0, // num_aux_entries
|
|
offsetof(decltype(_table_), field_names), // no aux_entries
|
|
AdvertisementData_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::AdvertisementData>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional bytes tag = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.tag_)}},
|
|
// optional bytes public_key = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.public_key_)}},
|
|
// optional bytes rx_advertisement = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.rx_advertisement_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bytes tag = 1;
|
|
{PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.tag_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional bytes public_key = 2;
|
|
{PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional bytes rx_advertisement = 3;
|
|
{PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.rx_advertisement_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void AdvertisementData::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.AdvertisementData)
|
|
::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)) {
|
|
_impl_.tag_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.public_key_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_impl_.rx_advertisement_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL AdvertisementData::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const AdvertisementData& this_ = static_cast<const AdvertisementData&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL AdvertisementData::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const AdvertisementData& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.AdvertisementData)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bytes tag = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_tag();
|
|
target = stream->WriteBytesMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional bytes public_key = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_public_key();
|
|
target = stream->WriteBytesMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional bytes rx_advertisement = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
const ::std::string& _s = this_._internal_rx_advertisement();
|
|
target = stream->WriteBytesMaybeAliased(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.AdvertisementData)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t AdvertisementData::ByteSizeLong(const MessageLite& base) {
|
|
const AdvertisementData& this_ = static_cast<const AdvertisementData&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t AdvertisementData::ByteSizeLong() const {
|
|
const AdvertisementData& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.AdvertisementData)
|
|
::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 tag = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_tag());
|
|
}
|
|
// optional bytes public_key = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_public_key());
|
|
}
|
|
// optional bytes rx_advertisement = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_rx_advertisement());
|
|
}
|
|
}
|
|
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 AdvertisementData::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<AdvertisementData*>(&to_msg);
|
|
auto& from = static_cast<const AdvertisementData&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.AdvertisementData)
|
|
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_tag(from._internal_tag());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_public_key(from._internal_public_key());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_set_rx_advertisement(from._internal_rx_advertisement());
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void AdvertisementData::CopyFrom(const AdvertisementData& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.AdvertisementData)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void AdvertisementData::InternalSwap(AdvertisementData* 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_.tag_, &other->_impl_.tag_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rx_advertisement_, &other->_impl_.rx_advertisement_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class AdvertisementRequest::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<AdvertisementRequest>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_._has_bits_);
|
|
};
|
|
|
|
AdvertisementRequest::AdvertisementRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, AdvertisementRequest_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.AdvertisementRequest)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE AdvertisementRequest::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::AdvertisementRequest& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
service_id_(arena, from.service_id_),
|
|
endpoint_id_(arena, from.endpoint_id_),
|
|
public_key_(arena, from.public_key_) {}
|
|
|
|
AdvertisementRequest::AdvertisementRequest(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const AdvertisementRequest& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, AdvertisementRequest_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
AdvertisementRequest* 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.AdvertisementRequest)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE AdvertisementRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
service_id_(arena),
|
|
endpoint_id_(arena),
|
|
public_key_(arena) {}
|
|
|
|
inline void AdvertisementRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
AdvertisementRequest::~AdvertisementRequest() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.AdvertisementRequest)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void AdvertisementRequest::SharedDtor(MessageLite& self) {
|
|
AdvertisementRequest& this_ = static_cast<AdvertisementRequest&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.service_id_.Destroy();
|
|
this_._impl_.endpoint_id_.Destroy();
|
|
this_._impl_.public_key_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL AdvertisementRequest::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) AdvertisementRequest(arena);
|
|
}
|
|
constexpr auto AdvertisementRequest::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AdvertisementRequest),
|
|
alignof(AdvertisementRequest));
|
|
}
|
|
constexpr auto AdvertisementRequest::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<45>{
|
|
{
|
|
&_AdvertisementRequest_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&AdvertisementRequest::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<AdvertisementRequest>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&AdvertisementRequest::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<AdvertisementRequest>(), &AdvertisementRequest::ByteSizeLong,
|
|
&AdvertisementRequest::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.AdvertisementRequest",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<45> AdvertisementRequest_class_data_ =
|
|
AdvertisementRequest::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
AdvertisementRequest::GetClassData() const {
|
|
return AdvertisementRequest_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
|
|
AdvertisementRequest::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _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
|
|
0, // num_aux_entries
|
|
offsetof(decltype(_table_), field_names), // no aux_entries
|
|
AdvertisementRequest_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::AdvertisementRequest>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string service_id = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.service_id_)}},
|
|
// optional string endpoint_id = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.endpoint_id_)}},
|
|
// optional bytes public_key = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.public_key_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string service_id = 1;
|
|
{PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.service_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string endpoint_id = 2;
|
|
{PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional bytes public_key = 3;
|
|
{PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.public_key_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void AdvertisementRequest::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.AdvertisementRequest)
|
|
::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)) {
|
|
_impl_.service_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.endpoint_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_impl_.public_key_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL AdvertisementRequest::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const AdvertisementRequest& this_ = static_cast<const AdvertisementRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL AdvertisementRequest::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const AdvertisementRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.AdvertisementRequest)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string service_id = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_service_id();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional string endpoint_id = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_endpoint_id();
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional bytes public_key = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
const ::std::string& _s = this_._internal_public_key();
|
|
target = stream->WriteBytesMaybeAliased(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.AdvertisementRequest)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t AdvertisementRequest::ByteSizeLong(const MessageLite& base) {
|
|
const AdvertisementRequest& this_ = static_cast<const AdvertisementRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t AdvertisementRequest::ByteSizeLong() const {
|
|
const AdvertisementRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.AdvertisementRequest)
|
|
::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 string service_id = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_service_id());
|
|
}
|
|
// optional string endpoint_id = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_endpoint_id());
|
|
}
|
|
// optional bytes public_key = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_public_key());
|
|
}
|
|
}
|
|
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 AdvertisementRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<AdvertisementRequest*>(&to_msg);
|
|
auto& from = static_cast<const AdvertisementRequest&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.AdvertisementRequest)
|
|
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(from._internal_service_id());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_endpoint_id(from._internal_endpoint_id());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_set_public_key(from._internal_public_key());
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void AdvertisementRequest::CopyFrom(const AdvertisementRequest& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.AdvertisementRequest)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void AdvertisementRequest::InternalSwap(AdvertisementRequest* 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_, &other->_impl_.service_id_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, 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"
|