mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
2707 lines
108 KiB
C++
2707 lines
108 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// NO CHECKED-IN PROTOBUF GENCODE
|
|
// source: proto/mediums/web_rtc_signaling_frames.proto
|
|
// Protobuf C++ Version: 6.33.3
|
|
|
|
#include "proto/mediums/web_rtc_signaling_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 SessionDescription::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
description_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR SessionDescription::SessionDescription(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(SessionDescription_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct SessionDescriptionDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR SessionDescriptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~SessionDescriptionDefaultTypeInternal() {}
|
|
union {
|
|
SessionDescription _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionDescriptionDefaultTypeInternal _SessionDescription_default_instance_;
|
|
|
|
inline constexpr ReadyForSignalingPoke::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ReadyForSignalingPoke::ReadyForSignalingPoke(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ReadyForSignalingPoke_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ReadyForSignalingPokeDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ReadyForSignalingPokeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ReadyForSignalingPokeDefaultTypeInternal() {}
|
|
union {
|
|
ReadyForSignalingPoke _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyForSignalingPokeDefaultTypeInternal _ReadyForSignalingPoke_default_instance_;
|
|
|
|
inline constexpr PeerId::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR PeerId::PeerId(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(PeerId_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct PeerIdDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR PeerIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~PeerIdDefaultTypeInternal() {}
|
|
union {
|
|
PeerId _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerIdDefaultTypeInternal _PeerId_default_instance_;
|
|
|
|
inline constexpr IceCandidate::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
sdp_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
sdp_mid_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
sdp_m_line_index_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR IceCandidate::IceCandidate(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(IceCandidate_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct IceCandidateDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR IceCandidateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~IceCandidateDefaultTypeInternal() {}
|
|
union {
|
|
IceCandidate _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IceCandidateDefaultTypeInternal _IceCandidate_default_instance_;
|
|
|
|
inline constexpr Offer::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
session_description_{nullptr} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR Offer::Offer(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(Offer_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct OfferDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR OfferDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~OfferDefaultTypeInternal() {}
|
|
union {
|
|
Offer _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OfferDefaultTypeInternal _Offer_default_instance_;
|
|
|
|
inline constexpr IceCandidates::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
ice_candidates_{} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR IceCandidates::IceCandidates(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(IceCandidates_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct IceCandidatesDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR IceCandidatesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~IceCandidatesDefaultTypeInternal() {}
|
|
union {
|
|
IceCandidates _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IceCandidatesDefaultTypeInternal _IceCandidates_default_instance_;
|
|
|
|
inline constexpr Answer::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
session_description_{nullptr} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR Answer::Answer(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(Answer_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct AnswerDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AnswerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AnswerDefaultTypeInternal() {}
|
|
union {
|
|
Answer _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerDefaultTypeInternal _Answer_default_instance_;
|
|
|
|
inline constexpr WebRtcSignalingFrame::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
sender_id_{nullptr},
|
|
type_{static_cast< ::location::nearby::mediums::WebRtcSignalingFrame_FrameType >(0)},
|
|
Frame_{},
|
|
_oneof_case_{} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR WebRtcSignalingFrame::WebRtcSignalingFrame(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(WebRtcSignalingFrame_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct WebRtcSignalingFrameDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR WebRtcSignalingFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~WebRtcSignalingFrameDefaultTypeInternal() {}
|
|
union {
|
|
WebRtcSignalingFrame _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebRtcSignalingFrameDefaultTypeInternal _WebRtcSignalingFrame_default_instance_;
|
|
} // namespace mediums
|
|
} // namespace nearby
|
|
} // namespace location
|
|
namespace location {
|
|
namespace nearby {
|
|
namespace mediums {
|
|
PROTOBUF_CONSTINIT const uint32_t WebRtcSignalingFrame_FrameType_internal_data_[] = {
|
|
327680u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
WebRtcSignalingFrame_FrameType_strings[5] = {};
|
|
|
|
static const char WebRtcSignalingFrame_FrameType_names[] = {
|
|
"ANSWER_TYPE"
|
|
"ICE_CANDIDATES_TYPE"
|
|
"OFFER_TYPE"
|
|
"READY_FOR_SIGNALING_POKE_TYPE"
|
|
"UNKNOWN_FRAME_TYPE"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry WebRtcSignalingFrame_FrameType_entries[] = {
|
|
{{&WebRtcSignalingFrame_FrameType_names[0], 11}, 2},
|
|
{{&WebRtcSignalingFrame_FrameType_names[11], 19}, 3},
|
|
{{&WebRtcSignalingFrame_FrameType_names[30], 10}, 1},
|
|
{{&WebRtcSignalingFrame_FrameType_names[40], 29}, 4},
|
|
{{&WebRtcSignalingFrame_FrameType_names[69], 18}, 0},
|
|
};
|
|
|
|
static const int WebRtcSignalingFrame_FrameType_entries_by_number[] = {
|
|
4, // 0 -> UNKNOWN_FRAME_TYPE
|
|
2, // 1 -> OFFER_TYPE
|
|
0, // 2 -> ANSWER_TYPE
|
|
1, // 3 -> ICE_CANDIDATES_TYPE
|
|
3, // 4 -> READY_FOR_SIGNALING_POKE_TYPE
|
|
};
|
|
|
|
const ::std::string& WebRtcSignalingFrame_FrameType_Name(WebRtcSignalingFrame_FrameType value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
WebRtcSignalingFrame_FrameType_entries, WebRtcSignalingFrame_FrameType_entries_by_number, 5,
|
|
WebRtcSignalingFrame_FrameType_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(WebRtcSignalingFrame_FrameType_entries,
|
|
WebRtcSignalingFrame_FrameType_entries_by_number,
|
|
5, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : WebRtcSignalingFrame_FrameType_strings[idx].get();
|
|
}
|
|
|
|
bool WebRtcSignalingFrame_FrameType_Parse(::absl::string_view name, WebRtcSignalingFrame_FrameType* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
WebRtcSignalingFrame_FrameType_entries, 5, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<WebRtcSignalingFrame_FrameType>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
// ===================================================================
|
|
|
|
class WebRtcSignalingFrame::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<WebRtcSignalingFrame>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_._has_bits_);
|
|
static constexpr ::int32_t kOneofCaseOffset =
|
|
PROTOBUF_FIELD_OFFSET(::location::nearby::mediums::WebRtcSignalingFrame, _impl_._oneof_case_);
|
|
};
|
|
|
|
void WebRtcSignalingFrame::set_allocated_offer(::location::nearby::mediums::Offer* PROTOBUF_NULLABLE offer) {
|
|
::google::protobuf::Arena* message_arena = GetArena();
|
|
clear_Frame();
|
|
if (offer) {
|
|
::google::protobuf::Arena* submessage_arena = offer->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
offer = ::google::protobuf::internal::GetOwnedMessage(message_arena, offer, submessage_arena);
|
|
}
|
|
set_has_offer();
|
|
_impl_.Frame_.offer_ = offer;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.offer)
|
|
}
|
|
void WebRtcSignalingFrame::set_allocated_answer(::location::nearby::mediums::Answer* PROTOBUF_NULLABLE answer) {
|
|
::google::protobuf::Arena* message_arena = GetArena();
|
|
clear_Frame();
|
|
if (answer) {
|
|
::google::protobuf::Arena* submessage_arena = answer->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
answer = ::google::protobuf::internal::GetOwnedMessage(message_arena, answer, submessage_arena);
|
|
}
|
|
set_has_answer();
|
|
_impl_.Frame_.answer_ = answer;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.answer)
|
|
}
|
|
void WebRtcSignalingFrame::set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE ice_candidates) {
|
|
::google::protobuf::Arena* message_arena = GetArena();
|
|
clear_Frame();
|
|
if (ice_candidates) {
|
|
::google::protobuf::Arena* submessage_arena = ice_candidates->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
ice_candidates = ::google::protobuf::internal::GetOwnedMessage(message_arena, ice_candidates, submessage_arena);
|
|
}
|
|
set_has_ice_candidates();
|
|
_impl_.Frame_.ice_candidates_ = ice_candidates;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates)
|
|
}
|
|
void WebRtcSignalingFrame::set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE ready_for_signaling_poke) {
|
|
::google::protobuf::Arena* message_arena = GetArena();
|
|
clear_Frame();
|
|
if (ready_for_signaling_poke) {
|
|
::google::protobuf::Arena* submessage_arena = ready_for_signaling_poke->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
ready_for_signaling_poke = ::google::protobuf::internal::GetOwnedMessage(message_arena, ready_for_signaling_poke, submessage_arena);
|
|
}
|
|
set_has_ready_for_signaling_poke();
|
|
_impl_.Frame_.ready_for_signaling_poke_ = ready_for_signaling_poke;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke)
|
|
}
|
|
WebRtcSignalingFrame::WebRtcSignalingFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, WebRtcSignalingFrame_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.WebRtcSignalingFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE WebRtcSignalingFrame::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::WebRtcSignalingFrame& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
Frame_{},
|
|
_oneof_case_{from._oneof_case_[0]} {}
|
|
|
|
WebRtcSignalingFrame::WebRtcSignalingFrame(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const WebRtcSignalingFrame& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, WebRtcSignalingFrame_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
WebRtcSignalingFrame* 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_.sender_id_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.sender_id_)
|
|
: nullptr;
|
|
_impl_.type_ = from._impl_.type_;
|
|
switch (Frame_case()) {
|
|
case FRAME_NOT_SET:
|
|
break;
|
|
case kOffer:
|
|
_impl_.Frame_.offer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.offer_);
|
|
break;
|
|
case kAnswer:
|
|
_impl_.Frame_.answer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.answer_);
|
|
break;
|
|
case kIceCandidates:
|
|
_impl_.Frame_.ice_candidates_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ice_candidates_);
|
|
break;
|
|
case kReadyForSignalingPoke:
|
|
_impl_.Frame_.ready_for_signaling_poke_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ready_for_signaling_poke_);
|
|
break;
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.WebRtcSignalingFrame)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE WebRtcSignalingFrame::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
Frame_{},
|
|
_oneof_case_{} {}
|
|
|
|
inline void WebRtcSignalingFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, sender_id_),
|
|
0,
|
|
offsetof(Impl_, type_) -
|
|
offsetof(Impl_, sender_id_) +
|
|
sizeof(Impl_::type_));
|
|
}
|
|
WebRtcSignalingFrame::~WebRtcSignalingFrame() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.WebRtcSignalingFrame)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void WebRtcSignalingFrame::SharedDtor(MessageLite& self) {
|
|
WebRtcSignalingFrame& this_ = static_cast<WebRtcSignalingFrame&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.sender_id_;
|
|
if (this_.has_Frame()) {
|
|
this_.clear_Frame();
|
|
}
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
void WebRtcSignalingFrame::clear_Frame() {
|
|
// @@protoc_insertion_point(one_of_clear_start:location.nearby.mediums.WebRtcSignalingFrame)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
switch (Frame_case()) {
|
|
case kOffer: {
|
|
if (GetArena() == nullptr) {
|
|
delete _impl_.Frame_.offer_;
|
|
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
|
|
if (_impl_.Frame_.offer_ != nullptr) {
|
|
_impl_.Frame_.offer_->Clear();
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case kAnswer: {
|
|
if (GetArena() == nullptr) {
|
|
delete _impl_.Frame_.answer_;
|
|
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
|
|
if (_impl_.Frame_.answer_ != nullptr) {
|
|
_impl_.Frame_.answer_->Clear();
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case kIceCandidates: {
|
|
if (GetArena() == nullptr) {
|
|
delete _impl_.Frame_.ice_candidates_;
|
|
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
|
|
if (_impl_.Frame_.ice_candidates_ != nullptr) {
|
|
_impl_.Frame_.ice_candidates_->Clear();
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case kReadyForSignalingPoke: {
|
|
if (GetArena() == nullptr) {
|
|
delete _impl_.Frame_.ready_for_signaling_poke_;
|
|
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
|
|
if (_impl_.Frame_.ready_for_signaling_poke_ != nullptr) {
|
|
_impl_.Frame_.ready_for_signaling_poke_->Clear();
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case FRAME_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
_impl_._oneof_case_[0] = FRAME_NOT_SET;
|
|
}
|
|
|
|
|
|
inline void* PROTOBUF_NONNULL WebRtcSignalingFrame::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) WebRtcSignalingFrame(arena);
|
|
}
|
|
constexpr auto WebRtcSignalingFrame::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WebRtcSignalingFrame),
|
|
alignof(WebRtcSignalingFrame));
|
|
}
|
|
constexpr auto WebRtcSignalingFrame::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<45>{
|
|
{
|
|
&_WebRtcSignalingFrame_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&WebRtcSignalingFrame::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<WebRtcSignalingFrame>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&WebRtcSignalingFrame::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<WebRtcSignalingFrame>(), &WebRtcSignalingFrame::ByteSizeLong,
|
|
&WebRtcSignalingFrame::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.WebRtcSignalingFrame",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<45> WebRtcSignalingFrame_class_data_ =
|
|
WebRtcSignalingFrame::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
WebRtcSignalingFrame::GetClassData() const {
|
|
return WebRtcSignalingFrame_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<1, 6, 6, 0, 2>
|
|
WebRtcSignalingFrame::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
6, 8, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967232, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
6, // num_field_entries
|
|
6, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
WebRtcSignalingFrame_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::WebRtcSignalingFrame>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 1, 4,
|
|
PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.type_)}},
|
|
// optional .location.nearby.mediums.PeerId sender_id = 1;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.sender_id_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.mediums.PeerId sender_id = 1;
|
|
{PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.sender_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2;
|
|
{PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.type_), _Internal::kHasBitsOffset + 1, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// .location.nearby.mediums.Offer offer = 3;
|
|
{PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.offer_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// .location.nearby.mediums.Answer answer = 4;
|
|
{PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.answer_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// .location.nearby.mediums.IceCandidates ice_candidates = 5;
|
|
{PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.ice_candidates_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6;
|
|
{PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.ready_for_signaling_poke_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::PeerId>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::Offer>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::Answer>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidates>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::ReadyForSignalingPoke>()},
|
|
{0, 4},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void WebRtcSignalingFrame::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.WebRtcSignalingFrame)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(_impl_.sender_id_ != nullptr);
|
|
_impl_.sender_id_->Clear();
|
|
}
|
|
_impl_.type_ = 0;
|
|
clear_Frame();
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL WebRtcSignalingFrame::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const WebRtcSignalingFrame& this_ = static_cast<const WebRtcSignalingFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL WebRtcSignalingFrame::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const WebRtcSignalingFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.WebRtcSignalingFrame)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.mediums.PeerId sender_id = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, *this_._impl_.sender_id_, this_._impl_.sender_id_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_type(), target);
|
|
}
|
|
|
|
switch (this_.Frame_case()) {
|
|
case kOffer: {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, *this_._impl_.Frame_.offer_, this_._impl_.Frame_.offer_->GetCachedSize(), target,
|
|
stream);
|
|
break;
|
|
}
|
|
case kAnswer: {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, *this_._impl_.Frame_.answer_, this_._impl_.Frame_.answer_->GetCachedSize(), target,
|
|
stream);
|
|
break;
|
|
}
|
|
case kIceCandidates: {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
5, *this_._impl_.Frame_.ice_candidates_, this_._impl_.Frame_.ice_candidates_->GetCachedSize(), target,
|
|
stream);
|
|
break;
|
|
}
|
|
case kReadyForSignalingPoke: {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
6, *this_._impl_.Frame_.ready_for_signaling_poke_, this_._impl_.Frame_.ready_for_signaling_poke_->GetCachedSize(), target,
|
|
stream);
|
|
break;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.WebRtcSignalingFrame)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t WebRtcSignalingFrame::ByteSizeLong(const MessageLite& base) {
|
|
const WebRtcSignalingFrame& this_ = static_cast<const WebRtcSignalingFrame&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t WebRtcSignalingFrame::ByteSizeLong() const {
|
|
const WebRtcSignalingFrame& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.WebRtcSignalingFrame)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void)cached_has_bits;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
// optional .location.nearby.mediums.PeerId sender_id = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sender_id_);
|
|
}
|
|
// optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
}
|
|
switch (this_.Frame_case()) {
|
|
// .location.nearby.mediums.Offer offer = 3;
|
|
case kOffer: {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.offer_);
|
|
break;
|
|
}
|
|
// .location.nearby.mediums.Answer answer = 4;
|
|
case kAnswer: {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.answer_);
|
|
break;
|
|
}
|
|
// .location.nearby.mediums.IceCandidates ice_candidates = 5;
|
|
case kIceCandidates: {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.ice_candidates_);
|
|
break;
|
|
}
|
|
// .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6;
|
|
case kReadyForSignalingPoke: {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.ready_for_signaling_poke_);
|
|
break;
|
|
}
|
|
case FRAME_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void WebRtcSignalingFrame::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<WebRtcSignalingFrame*>(&to_msg);
|
|
auto& from = static_cast<const WebRtcSignalingFrame&>(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.WebRtcSignalingFrame)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(from._impl_.sender_id_ != nullptr);
|
|
if (_this->_impl_.sender_id_ == nullptr) {
|
|
_this->_impl_.sender_id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.sender_id_);
|
|
} else {
|
|
_this->_impl_.sender_id_->MergeFrom(*from._impl_.sender_id_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
if (const uint32_t oneof_from_case =
|
|
from._impl_._oneof_case_[0]) {
|
|
const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
|
|
const bool oneof_needs_init = oneof_to_case != oneof_from_case;
|
|
if (oneof_needs_init) {
|
|
if (oneof_to_case != 0) {
|
|
_this->clear_Frame();
|
|
}
|
|
_this->_impl_._oneof_case_[0] = oneof_from_case;
|
|
}
|
|
|
|
switch (oneof_from_case) {
|
|
case kOffer: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.Frame_.offer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.offer_);
|
|
} else {
|
|
_this->_impl_.Frame_.offer_->CheckTypeAndMergeFrom(*from._impl_.Frame_.offer_);
|
|
}
|
|
break;
|
|
}
|
|
case kAnswer: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.Frame_.answer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.answer_);
|
|
} else {
|
|
_this->_impl_.Frame_.answer_->CheckTypeAndMergeFrom(*from._impl_.Frame_.answer_);
|
|
}
|
|
break;
|
|
}
|
|
case kIceCandidates: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.Frame_.ice_candidates_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ice_candidates_);
|
|
} else {
|
|
_this->_impl_.Frame_.ice_candidates_->CheckTypeAndMergeFrom(*from._impl_.Frame_.ice_candidates_);
|
|
}
|
|
break;
|
|
}
|
|
case kReadyForSignalingPoke: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.Frame_.ready_for_signaling_poke_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ready_for_signaling_poke_);
|
|
} else {
|
|
_this->_impl_.Frame_.ready_for_signaling_poke_->CheckTypeAndMergeFrom(*from._impl_.Frame_.ready_for_signaling_poke_);
|
|
}
|
|
break;
|
|
}
|
|
case FRAME_NOT_SET:
|
|
break;
|
|
}
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void WebRtcSignalingFrame::CopyFrom(const WebRtcSignalingFrame& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.WebRtcSignalingFrame)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void WebRtcSignalingFrame::InternalSwap(WebRtcSignalingFrame* 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(WebRtcSignalingFrame, _impl_.type_)
|
|
+ sizeof(WebRtcSignalingFrame::_impl_.type_)
|
|
- PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.sender_id_)>(
|
|
reinterpret_cast<char*>(&_impl_.sender_id_),
|
|
reinterpret_cast<char*>(&other->_impl_.sender_id_));
|
|
swap(_impl_.Frame_, other->_impl_.Frame_);
|
|
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class PeerId::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<PeerId>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(PeerId, _impl_._has_bits_);
|
|
};
|
|
|
|
PeerId::PeerId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, PeerId_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.PeerId)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE PeerId::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::PeerId& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
id_(arena, from.id_) {}
|
|
|
|
PeerId::PeerId(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const PeerId& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, PeerId_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PeerId* 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.PeerId)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE PeerId::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
id_(arena) {}
|
|
|
|
inline void PeerId::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
PeerId::~PeerId() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.PeerId)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void PeerId::SharedDtor(MessageLite& self) {
|
|
PeerId& this_ = static_cast<PeerId&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.id_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL PeerId::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) PeerId(arena);
|
|
}
|
|
constexpr auto PeerId::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PeerId),
|
|
alignof(PeerId));
|
|
}
|
|
constexpr auto PeerId::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<31>{
|
|
{
|
|
&_PeerId_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&PeerId::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<PeerId>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&PeerId::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<PeerId>(), &PeerId::ByteSizeLong,
|
|
&PeerId::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(PeerId, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.PeerId",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<31> PeerId_class_data_ =
|
|
PeerId::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
PeerId::GetClassData() const {
|
|
return PeerId_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
|
|
PeerId::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(PeerId, _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
|
|
PeerId_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::PeerId>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string id = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(PeerId, _impl_.id_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string id = 1;
|
|
{PROTOBUF_FIELD_OFFSET(PeerId, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void PeerId::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.PeerId)
|
|
::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_.id_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL PeerId::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const PeerId& this_ = static_cast<const PeerId&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL PeerId::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const PeerId& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.PeerId)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string id = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_id();
|
|
target = stream->WriteStringMaybeAliased(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.PeerId)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t PeerId::ByteSizeLong(const MessageLite& base) {
|
|
const PeerId& this_ = static_cast<const PeerId&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t PeerId::ByteSizeLong() const {
|
|
const PeerId& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.PeerId)
|
|
::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 string id = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_id());
|
|
}
|
|
}
|
|
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 PeerId::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<PeerId*>(&to_msg);
|
|
auto& from = static_cast<const PeerId&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.PeerId)
|
|
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_id(from._internal_id());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void PeerId::CopyFrom(const PeerId& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.PeerId)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void PeerId::InternalSwap(PeerId* 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_.id_, &other->_impl_.id_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class SessionDescription::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<SessionDescription>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_._has_bits_);
|
|
};
|
|
|
|
SessionDescription::SessionDescription(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, SessionDescription_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.SessionDescription)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE SessionDescription::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::SessionDescription& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
description_(arena, from.description_) {}
|
|
|
|
SessionDescription::SessionDescription(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const SessionDescription& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, SessionDescription_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SessionDescription* 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.SessionDescription)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE SessionDescription::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
description_(arena) {}
|
|
|
|
inline void SessionDescription::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
SessionDescription::~SessionDescription() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.SessionDescription)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void SessionDescription::SharedDtor(MessageLite& self) {
|
|
SessionDescription& this_ = static_cast<SessionDescription&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.description_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL SessionDescription::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) SessionDescription(arena);
|
|
}
|
|
constexpr auto SessionDescription::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SessionDescription),
|
|
alignof(SessionDescription));
|
|
}
|
|
constexpr auto SessionDescription::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<43>{
|
|
{
|
|
&_SessionDescription_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&SessionDescription::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<SessionDescription>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&SessionDescription::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<SessionDescription>(), &SessionDescription::ByteSizeLong,
|
|
&SessionDescription::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.SessionDescription",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<43> SessionDescription_class_data_ =
|
|
SessionDescription::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
SessionDescription::GetClassData() const {
|
|
return SessionDescription_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
|
|
SessionDescription::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(SessionDescription, _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
|
|
SessionDescription_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::SessionDescription>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string description = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_.description_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string description = 1;
|
|
{PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void SessionDescription::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.SessionDescription)
|
|
::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_.description_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL SessionDescription::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const SessionDescription& this_ = static_cast<const SessionDescription&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL SessionDescription::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const SessionDescription& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.SessionDescription)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string description = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_description();
|
|
target = stream->WriteStringMaybeAliased(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.SessionDescription)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t SessionDescription::ByteSizeLong(const MessageLite& base) {
|
|
const SessionDescription& this_ = static_cast<const SessionDescription&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t SessionDescription::ByteSizeLong() const {
|
|
const SessionDescription& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.SessionDescription)
|
|
::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 string description = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_description());
|
|
}
|
|
}
|
|
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 SessionDescription::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<SessionDescription*>(&to_msg);
|
|
auto& from = static_cast<const SessionDescription&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.SessionDescription)
|
|
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_description(from._internal_description());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void SessionDescription::CopyFrom(const SessionDescription& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.SessionDescription)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void SessionDescription::InternalSwap(SessionDescription* 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_.description_, &other->_impl_.description_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class IceCandidate::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<IceCandidate>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_._has_bits_);
|
|
};
|
|
|
|
IceCandidate::IceCandidate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, IceCandidate_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.IceCandidate)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE IceCandidate::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::IceCandidate& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
sdp_(arena, from.sdp_),
|
|
sdp_mid_(arena, from.sdp_mid_) {}
|
|
|
|
IceCandidate::IceCandidate(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const IceCandidate& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, IceCandidate_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
IceCandidate* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.sdp_m_line_index_ = from._impl_.sdp_m_line_index_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.IceCandidate)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE IceCandidate::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
sdp_(arena),
|
|
sdp_mid_(arena) {}
|
|
|
|
inline void IceCandidate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.sdp_m_line_index_ = {};
|
|
}
|
|
IceCandidate::~IceCandidate() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.IceCandidate)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void IceCandidate::SharedDtor(MessageLite& self) {
|
|
IceCandidate& this_ = static_cast<IceCandidate&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.sdp_.Destroy();
|
|
this_._impl_.sdp_mid_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL IceCandidate::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) IceCandidate(arena);
|
|
}
|
|
constexpr auto IceCandidate::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IceCandidate),
|
|
alignof(IceCandidate));
|
|
}
|
|
constexpr auto IceCandidate::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<37>{
|
|
{
|
|
&_IceCandidate_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&IceCandidate::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<IceCandidate>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&IceCandidate::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<IceCandidate>(), &IceCandidate::ByteSizeLong,
|
|
&IceCandidate::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.IceCandidate",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<37> IceCandidate_class_data_ =
|
|
IceCandidate::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
IceCandidate::GetClassData() const {
|
|
return IceCandidate_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
|
|
IceCandidate::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(IceCandidate, _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
|
|
IceCandidate_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidate>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string sdp = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_)}},
|
|
// optional string sdp_mid = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_mid_)}},
|
|
// optional int32 sdp_m_line_index = 3;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{24, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_m_line_index_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string sdp = 1;
|
|
{PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string sdp_mid = 2;
|
|
{PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_mid_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional int32 sdp_m_line_index = 3;
|
|
{PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_m_line_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void IceCandidate::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.IceCandidate)
|
|
::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_.sdp_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.sdp_mid_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_.sdp_m_line_index_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL IceCandidate::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const IceCandidate& this_ = static_cast<const IceCandidate&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL IceCandidate::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const IceCandidate& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.IceCandidate)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string sdp = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_sdp();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional string sdp_mid = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_sdp_mid();
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional int32 sdp_m_line_index = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
|
|
stream, this_._internal_sdp_m_line_index(), 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.IceCandidate)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t IceCandidate::ByteSizeLong(const MessageLite& base) {
|
|
const IceCandidate& this_ = static_cast<const IceCandidate&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t IceCandidate::ByteSizeLong() const {
|
|
const IceCandidate& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IceCandidate)
|
|
::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 sdp = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_sdp());
|
|
}
|
|
// optional string sdp_mid = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_sdp_mid());
|
|
}
|
|
// optional int32 sdp_m_line_index = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_sdp_m_line_index());
|
|
}
|
|
}
|
|
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 IceCandidate::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<IceCandidate*>(&to_msg);
|
|
auto& from = static_cast<const IceCandidate&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IceCandidate)
|
|
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_sdp(from._internal_sdp());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_sdp_mid(from._internal_sdp_mid());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.sdp_m_line_index_ = from._impl_.sdp_m_line_index_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void IceCandidate::CopyFrom(const IceCandidate& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IceCandidate)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void IceCandidate::InternalSwap(IceCandidate* 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_.sdp_, &other->_impl_.sdp_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_mid_, &other->_impl_.sdp_mid_, arena);
|
|
swap(_impl_.sdp_m_line_index_, other->_impl_.sdp_m_line_index_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class IceCandidates::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<IceCandidates>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_._has_bits_);
|
|
};
|
|
|
|
IceCandidates::IceCandidates(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, IceCandidates_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.IceCandidates)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE IceCandidates::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::IceCandidates& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
ice_candidates_{visibility, arena, from.ice_candidates_} {}
|
|
|
|
IceCandidates::IceCandidates(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const IceCandidates& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, IceCandidates_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
IceCandidates* 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.IceCandidates)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE IceCandidates::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
ice_candidates_{visibility, arena} {}
|
|
|
|
inline void IceCandidates::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
IceCandidates::~IceCandidates() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.IceCandidates)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void IceCandidates::SharedDtor(MessageLite& self) {
|
|
IceCandidates& this_ = static_cast<IceCandidates&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL IceCandidates::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) IceCandidates(arena);
|
|
}
|
|
constexpr auto IceCandidates::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_.ice_candidates_) +
|
|
decltype(IceCandidates::_impl_.ice_candidates_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(
|
|
sizeof(IceCandidates), alignof(IceCandidates), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&IceCandidates::PlacementNew_,
|
|
sizeof(IceCandidates),
|
|
alignof(IceCandidates));
|
|
}
|
|
}
|
|
constexpr auto IceCandidates::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<38>{
|
|
{
|
|
&_IceCandidates_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&IceCandidates::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<IceCandidates>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&IceCandidates::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<IceCandidates>(), &IceCandidates::ByteSizeLong,
|
|
&IceCandidates::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.IceCandidates",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<38> IceCandidates_class_data_ =
|
|
IceCandidates::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
IceCandidates::GetClassData() const {
|
|
return IceCandidates_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
|
|
IceCandidates::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
IceCandidates_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidates>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// repeated .location.nearby.mediums.IceCandidate ice_candidates = 1;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_.ice_candidates_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// repeated .location.nearby.mediums.IceCandidate ice_candidates = 1;
|
|
{PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_.ice_candidates_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidate>()},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void IceCandidates::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.IceCandidates)
|
|
::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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_impl_.ice_candidates_.Clear();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL IceCandidates::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const IceCandidates& this_ = static_cast<const IceCandidates&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL IceCandidates::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const IceCandidates& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.IceCandidates)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// repeated .location.nearby.mediums.IceCandidate ice_candidates = 1;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_ice_candidates_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_ice_candidates().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, repfield, repfield.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.IceCandidates)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t IceCandidates::ByteSizeLong(const MessageLite& base) {
|
|
const IceCandidates& this_ = static_cast<const IceCandidates&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t IceCandidates::ByteSizeLong() const {
|
|
const IceCandidates& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IceCandidates)
|
|
::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_);
|
|
{
|
|
// repeated .location.nearby.mediums.IceCandidate ice_candidates = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_ice_candidates_size();
|
|
for (const auto& msg : this_._internal_ice_candidates()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
}
|
|
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 IceCandidates::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<IceCandidates*>(&to_msg);
|
|
auto& from = static_cast<const IceCandidates&>(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.IceCandidates)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_ice_candidates()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_ice_candidates());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void IceCandidates::CopyFrom(const IceCandidates& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IceCandidates)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void IceCandidates::InternalSwap(IceCandidates* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
_impl_.ice_candidates_.InternalSwap(&other->_impl_.ice_candidates_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Offer::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<Offer>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(Offer, _impl_._has_bits_);
|
|
};
|
|
|
|
Offer::Offer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, Offer_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.Offer)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE Offer::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::Offer& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0} {}
|
|
|
|
Offer::Offer(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const Offer& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, Offer_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
Offer* 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_.session_description_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_)
|
|
: nullptr;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.Offer)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE Offer::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void Offer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.session_description_ = {};
|
|
}
|
|
Offer::~Offer() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.Offer)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void Offer::SharedDtor(MessageLite& self) {
|
|
Offer& this_ = static_cast<Offer&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.session_description_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL Offer::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) Offer(arena);
|
|
}
|
|
constexpr auto Offer::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Offer),
|
|
alignof(Offer));
|
|
}
|
|
constexpr auto Offer::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<30>{
|
|
{
|
|
&_Offer_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&Offer::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<Offer>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&Offer::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<Offer>(), &Offer::ByteSizeLong,
|
|
&Offer::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(Offer, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.Offer",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<30> Offer_class_data_ =
|
|
Offer::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
Offer::GetClassData() const {
|
|
return Offer_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
|
|
Offer::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(Offer, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
Offer_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::Offer>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(Offer, _impl_.session_description_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
{PROTOBUF_FIELD_OFFSET(Offer, _impl_.session_description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::SessionDescription>()},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void Offer::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.Offer)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(_impl_.session_description_ != nullptr);
|
|
_impl_.session_description_->Clear();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL Offer::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const Offer& this_ = static_cast<const Offer&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL Offer::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const Offer& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.Offer)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, *this_._impl_.session_description_, this_._impl_.session_description_->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.Offer)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t Offer::ByteSizeLong(const MessageLite& base) {
|
|
const Offer& this_ = static_cast<const Offer&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t Offer::ByteSizeLong() const {
|
|
const Offer& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.Offer)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void)cached_has_bits;
|
|
|
|
{
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.session_description_);
|
|
}
|
|
}
|
|
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 Offer::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<Offer*>(&to_msg);
|
|
auto& from = static_cast<const Offer&>(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.Offer)
|
|
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)) {
|
|
ABSL_DCHECK(from._impl_.session_description_ != nullptr);
|
|
if (_this->_impl_.session_description_ == nullptr) {
|
|
_this->_impl_.session_description_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_);
|
|
} else {
|
|
_this->_impl_.session_description_->MergeFrom(*from._impl_.session_description_);
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void Offer::CopyFrom(const Offer& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.Offer)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void Offer::InternalSwap(Offer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
swap(_impl_.session_description_, other->_impl_.session_description_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Answer::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<Answer>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(Answer, _impl_._has_bits_);
|
|
};
|
|
|
|
Answer::Answer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, Answer_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.Answer)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE Answer::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::Answer& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0} {}
|
|
|
|
Answer::Answer(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const Answer& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, Answer_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
Answer* 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_.session_description_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_)
|
|
: nullptr;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.mediums.Answer)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE Answer::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void Answer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.session_description_ = {};
|
|
}
|
|
Answer::~Answer() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.Answer)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void Answer::SharedDtor(MessageLite& self) {
|
|
Answer& this_ = static_cast<Answer&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.session_description_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL Answer::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) Answer(arena);
|
|
}
|
|
constexpr auto Answer::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Answer),
|
|
alignof(Answer));
|
|
}
|
|
constexpr auto Answer::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<31>{
|
|
{
|
|
&_Answer_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&Answer::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<Answer>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&Answer::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<Answer>(), &Answer::ByteSizeLong,
|
|
&Answer::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(Answer, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.Answer",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<31> Answer_class_data_ =
|
|
Answer::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
Answer::GetClassData() const {
|
|
return Answer_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
|
|
Answer::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(Answer, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
Answer_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::Answer>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(Answer, _impl_.session_description_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
{PROTOBUF_FIELD_OFFSET(Answer, _impl_.session_description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::mediums::SessionDescription>()},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void Answer::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.Answer)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(_impl_.session_description_ != nullptr);
|
|
_impl_.session_description_->Clear();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL Answer::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const Answer& this_ = static_cast<const Answer&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL Answer::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const Answer& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.Answer)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, *this_._impl_.session_description_, this_._impl_.session_description_->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.Answer)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t Answer::ByteSizeLong(const MessageLite& base) {
|
|
const Answer& this_ = static_cast<const Answer&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t Answer::ByteSizeLong() const {
|
|
const Answer& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.Answer)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void)cached_has_bits;
|
|
|
|
{
|
|
// optional .location.nearby.mediums.SessionDescription session_description = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.session_description_);
|
|
}
|
|
}
|
|
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 Answer::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<Answer*>(&to_msg);
|
|
auto& from = static_cast<const Answer&>(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.Answer)
|
|
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)) {
|
|
ABSL_DCHECK(from._impl_.session_description_ != nullptr);
|
|
if (_this->_impl_.session_description_ == nullptr) {
|
|
_this->_impl_.session_description_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_);
|
|
} else {
|
|
_this->_impl_.session_description_->MergeFrom(*from._impl_.session_description_);
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void Answer::CopyFrom(const Answer& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.Answer)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void Answer::InternalSwap(Answer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
swap(_impl_.session_description_, other->_impl_.session_description_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ReadyForSignalingPoke::_Internal {
|
|
public:
|
|
};
|
|
|
|
ReadyForSignalingPoke::ReadyForSignalingPoke(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ReadyForSignalingPoke_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.ReadyForSignalingPoke)
|
|
}
|
|
ReadyForSignalingPoke::ReadyForSignalingPoke(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ReadyForSignalingPoke& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ReadyForSignalingPoke_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(from._impl_) {
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ReadyForSignalingPoke::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ReadyForSignalingPoke::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
ReadyForSignalingPoke::~ReadyForSignalingPoke() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.mediums.ReadyForSignalingPoke)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ReadyForSignalingPoke::SharedDtor(MessageLite& self) {
|
|
ReadyForSignalingPoke& this_ = static_cast<ReadyForSignalingPoke&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ReadyForSignalingPoke::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ReadyForSignalingPoke(arena);
|
|
}
|
|
constexpr auto ReadyForSignalingPoke::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ReadyForSignalingPoke),
|
|
alignof(ReadyForSignalingPoke));
|
|
}
|
|
constexpr auto ReadyForSignalingPoke::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<46>{
|
|
{
|
|
&_ReadyForSignalingPoke_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ReadyForSignalingPoke::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ReadyForSignalingPoke>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ReadyForSignalingPoke::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ReadyForSignalingPoke>(), &ReadyForSignalingPoke::ByteSizeLong,
|
|
&ReadyForSignalingPoke::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ReadyForSignalingPoke, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.mediums.ReadyForSignalingPoke",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<46> ReadyForSignalingPoke_class_data_ =
|
|
ReadyForSignalingPoke::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ReadyForSignalingPoke::GetClassData() const {
|
|
return ReadyForSignalingPoke_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
|
|
ReadyForSignalingPoke::_table_ = {
|
|
{
|
|
0, // no _has_bits_
|
|
0, // no _extensions_
|
|
0, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967295, // skipmap
|
|
offsetof(decltype(_table_), field_names), // no field_entries
|
|
0, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(decltype(_table_), field_names), // no aux_entries
|
|
ReadyForSignalingPoke_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::mediums::ReadyForSignalingPoke>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, // no field_entries, or aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ReadyForSignalingPoke::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.mediums.ReadyForSignalingPoke)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ReadyForSignalingPoke::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ReadyForSignalingPoke& this_ = static_cast<const ReadyForSignalingPoke&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ReadyForSignalingPoke::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ReadyForSignalingPoke& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.ReadyForSignalingPoke)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.ReadyForSignalingPoke)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ReadyForSignalingPoke::ByteSizeLong(const MessageLite& base) {
|
|
const ReadyForSignalingPoke& this_ = static_cast<const ReadyForSignalingPoke&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ReadyForSignalingPoke::ByteSizeLong() const {
|
|
const ReadyForSignalingPoke& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ReadyForSignalingPoke)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void)cached_has_bits;
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ReadyForSignalingPoke::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ReadyForSignalingPoke*>(&to_msg);
|
|
auto& from = static_cast<const ReadyForSignalingPoke&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ReadyForSignalingPoke)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ReadyForSignalingPoke::CopyFrom(const ReadyForSignalingPoke& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ReadyForSignalingPoke)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ReadyForSignalingPoke::InternalSwap(ReadyForSignalingPoke* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
}
|
|
|
|
// @@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"
|