Files

33427 lines
1.5 MiB
Plaintext

// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: sharing/proto/analytics/nearby_sharing_log.proto
// Protobuf C++ Version: 6.33.3
#include "sharing/proto/analytics/nearby_sharing_log.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 nearby {
namespace sharing {
namespace analytics {
namespace proto {
inline constexpr SharingLog_WifiCredentialsAttachment::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
batch_id_{::int64_t{0}},
security_type_{0},
source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_WifiCredentialsAttachment_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_WifiCredentialsAttachmentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_WifiCredentialsAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_WifiCredentialsAttachmentDefaultTypeInternal() {}
union {
SharingLog_WifiCredentialsAttachment _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_WifiCredentialsAttachmentDefaultTypeInternal _SharingLog_WifiCredentialsAttachment_default_instance_;
inline constexpr SharingLog_VerifyAPKStatus::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
status_{},
_status_cached_byte_size_{0},
source_{},
_source_cached_byte_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_VerifyAPKStatus_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_VerifyAPKStatusDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_VerifyAPKStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_VerifyAPKStatusDefaultTypeInternal() {}
union {
SharingLog_VerifyAPKStatus _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_VerifyAPKStatusDefaultTypeInternal _SharingLog_VerifyAPKStatus_default_instance_;
inline constexpr SharingLog_UnknownEvent::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_UnknownEvent::SharingLog_UnknownEvent(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_UnknownEvent_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_UnknownEventDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_UnknownEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_UnknownEventDefaultTypeInternal() {}
union {
SharingLog_UnknownEvent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_UnknownEventDefaultTypeInternal _SharingLog_UnknownEvent_default_instance_;
inline constexpr SharingLog_ToggleShowNotification::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
previous_status_{static_cast< ::location::nearby::proto::sharing::ShowNotificationStatus >(0)},
current_status_{static_cast< ::location::nearby::proto::sharing::ShowNotificationStatus >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ToggleShowNotification_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ToggleShowNotificationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ToggleShowNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ToggleShowNotificationDefaultTypeInternal() {}
union {
SharingLog_ToggleShowNotification _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ToggleShowNotificationDefaultTypeInternal _SharingLog_ToggleShowNotification_default_instance_;
inline constexpr SharingLog_TextAttachment::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
size_bytes_{::int64_t{0}},
type_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type >(0)},
source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)},
batch_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TextAttachment::SharingLog_TextAttachment(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TextAttachment_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TextAttachmentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TextAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TextAttachmentDefaultTypeInternal() {}
union {
SharingLog_TextAttachment _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TextAttachmentDefaultTypeInternal _SharingLog_TextAttachment_default_instance_;
inline constexpr SharingLog_TapQuickSettingsTile::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TapQuickSettingsTile_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TapQuickSettingsTileDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsTileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TapQuickSettingsTileDefaultTypeInternal() {}
union {
SharingLog_TapQuickSettingsTile _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapQuickSettingsTileDefaultTypeInternal _SharingLog_TapQuickSettingsTile_default_instance_;
inline constexpr SharingLog_TapQuickSettingsFileShare::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TapQuickSettingsFileShare_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TapQuickSettingsFileShareDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsFileShareDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TapQuickSettingsFileShareDefaultTypeInternal() {}
union {
SharingLog_TapQuickSettingsFileShare _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapQuickSettingsFileShareDefaultTypeInternal _SharingLog_TapQuickSettingsFileShare_default_instance_;
inline constexpr SharingLog_TapQrCode::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TapQrCode::SharingLog_TapQrCode(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TapQrCode_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TapQrCodeDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TapQrCodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TapQrCodeDefaultTypeInternal() {}
union {
SharingLog_TapQrCode _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapQrCodeDefaultTypeInternal _SharingLog_TapQrCode_default_instance_;
inline constexpr SharingLog_TapPrivacyNotification::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TapPrivacyNotification_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TapPrivacyNotificationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TapPrivacyNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TapPrivacyNotificationDefaultTypeInternal() {}
union {
SharingLog_TapPrivacyNotification _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapPrivacyNotificationDefaultTypeInternal _SharingLog_TapPrivacyNotification_default_instance_;
inline constexpr SharingLog_TapHelp::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TapHelp::SharingLog_TapHelp(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TapHelp_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TapHelpDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TapHelpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TapHelpDefaultTypeInternal() {}
union {
SharingLog_TapHelp _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapHelpDefaultTypeInternal _SharingLog_TapHelp_default_instance_;
inline constexpr SharingLog_TapFeedback::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_TapFeedback::SharingLog_TapFeedback(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_TapFeedback_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_TapFeedbackDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_TapFeedbackDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_TapFeedbackDefaultTypeInternal() {}
union {
SharingLog_TapFeedback _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapFeedbackDefaultTypeInternal _SharingLog_TapFeedback_default_instance_;
inline constexpr SharingLog_StreamAttachment::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
package_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
batch_id_{::int64_t{0}},
source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_StreamAttachment::SharingLog_StreamAttachment(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_StreamAttachment_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_StreamAttachmentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_StreamAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_StreamAttachmentDefaultTypeInternal() {}
union {
SharingLog_StreamAttachment _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_StreamAttachmentDefaultTypeInternal _SharingLog_StreamAttachment_default_instance_;
inline constexpr SharingLog_StartQrCodeSession::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_StartQrCodeSession_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_StartQrCodeSessionDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_StartQrCodeSessionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_StartQrCodeSessionDefaultTypeInternal() {}
union {
SharingLog_StartQrCodeSession _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_StartQrCodeSessionDefaultTypeInternal _SharingLog_StartQrCodeSession_default_instance_;
inline constexpr SharingLog_ShowWaitingForAccept::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
button_status_{static_cast< ::location::nearby::proto::sharing::ButtonStatus >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ShowWaitingForAccept_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ShowWaitingForAcceptDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ShowWaitingForAcceptDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ShowWaitingForAcceptDefaultTypeInternal() {}
union {
SharingLog_ShowWaitingForAccept _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ShowWaitingForAcceptDefaultTypeInternal _SharingLog_ShowWaitingForAccept_default_instance_;
inline constexpr SharingLog_ShowAllowPermissionAutoAccess::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)},
allowed_auto_access_{false},
is_wifi_missing_{false},
is_bt_missing_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ShowAllowPermissionAutoAccess_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal() {}
union {
SharingLog_ShowAllowPermissionAutoAccess _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal _SharingLog_ShowAllowPermissionAutoAccess_default_instance_;
inline constexpr SharingLog_ShareTargetInfo::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
device_type_{static_cast< ::location::nearby::proto::sharing::DeviceType >(0)},
os_type_{static_cast< ::location::nearby::proto::sharing::OSType >(0)},
device_relationship_{static_cast< ::location::nearby::proto::sharing::DeviceRelationship >(0)},
has_matching_qr_code_{false},
is_external_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ShareTargetInfo_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ShareTargetInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ShareTargetInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ShareTargetInfoDefaultTypeInternal() {}
union {
SharingLog_ShareTargetInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ShareTargetInfoDefaultTypeInternal _SharingLog_ShareTargetInfo_default_instance_;
inline constexpr SharingLog_SetupWizard::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)},
previous_visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SetupWizard::SharingLog_SetupWizard(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SetupWizard_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SetupWizardDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SetupWizardDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SetupWizardDefaultTypeInternal() {}
union {
SharingLog_SetupWizard _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetupWizardDefaultTypeInternal _SharingLog_SetupWizard_default_instance_;
inline constexpr SharingLog_SetVisibility::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)},
source_visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)},
duration_millis_{::int64_t{0}},
source_activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SetVisibility::SharingLog_SetVisibility(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SetVisibility_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SetVisibilityDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SetVisibilityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SetVisibilityDefaultTypeInternal() {}
union {
SharingLog_SetVisibility _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetVisibilityDefaultTypeInternal _SharingLog_SetVisibility_default_instance_;
inline constexpr SharingLog_SetDeviceName::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
device_name_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SetDeviceName::SharingLog_SetDeviceName(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SetDeviceName_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SetDeviceNameDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SetDeviceNameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SetDeviceNameDefaultTypeInternal() {}
union {
SharingLog_SetDeviceName _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetDeviceNameDefaultTypeInternal _SharingLog_SetDeviceName_default_instance_;
inline constexpr SharingLog_SetDataUsage::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
original_preference_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)},
preference_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SetDataUsage::SharingLog_SetDataUsage(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SetDataUsage_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SetDataUsageDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SetDataUsageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SetDataUsageDefaultTypeInternal() {}
union {
SharingLog_SetDataUsage _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetDataUsageDefaultTypeInternal _SharingLog_SetDataUsage_default_instance_;
inline constexpr SharingLog_SetAccount::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SetAccount::SharingLog_SetAccount(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SetAccount_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SetAccountDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SetAccountDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SetAccountDefaultTypeInternal() {}
union {
SharingLog_SetAccount _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetAccountDefaultTypeInternal _SharingLog_SetAccount_default_instance_;
inline constexpr SharingLog_SendFastInitialization::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendFastInitialization_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendFastInitializationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendFastInitializationDefaultTypeInternal() {}
union {
SharingLog_SendFastInitialization _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendFastInitializationDefaultTypeInternal _SharingLog_SendFastInitialization_default_instance_;
inline constexpr SharingLog_SendDesktopTransferEvent::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
event_{static_cast< ::location::nearby::proto::sharing::DesktopTransferEventType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendDesktopTransferEvent_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendDesktopTransferEventDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendDesktopTransferEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendDesktopTransferEventDefaultTypeInternal() {}
union {
SharingLog_SendDesktopTransferEvent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendDesktopTransferEventDefaultTypeInternal _SharingLog_SendDesktopTransferEvent_default_instance_;
inline constexpr SharingLog_SendDesktopNotification::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
event_{static_cast< ::location::nearby::proto::sharing::DesktopNotification >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendDesktopNotification_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendDesktopNotificationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendDesktopNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendDesktopNotificationDefaultTypeInternal() {}
union {
SharingLog_SendDesktopNotification _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendDesktopNotificationDefaultTypeInternal _SharingLog_SendDesktopNotification_default_instance_;
inline constexpr SharingLog_ScanForShareTargetsStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
session_id_{::int64_t{0}},
status_{static_cast< ::location::nearby::proto::sharing::SessionStatus >(0)},
scan_type_{static_cast< ::location::nearby::proto::sharing::ScanType >(0)},
flow_id_{::int64_t{0}},
use_qr_code_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ScanForShareTargetsStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ScanForShareTargetsStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ScanForShareTargetsStartDefaultTypeInternal() {}
union {
SharingLog_ScanForShareTargetsStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ScanForShareTargetsStartDefaultTypeInternal _SharingLog_ScanForShareTargetsStart_default_instance_;
inline constexpr SharingLog_ScanForShareTargetsEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
session_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ScanForShareTargetsEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ScanForShareTargetsEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ScanForShareTargetsEndDefaultTypeInternal() {}
union {
SharingLog_ScanForShareTargetsEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ScanForShareTargetsEndDefaultTypeInternal _SharingLog_ScanForShareTargetsEnd_default_instance_;
inline constexpr SharingLog_RpcCallStatus::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
rpc_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
direction_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection >(0)},
error_code_{0},
latency_millis_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_RpcCallStatus_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_RpcCallStatusDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_RpcCallStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_RpcCallStatusDefaultTypeInternal() {}
union {
SharingLog_RpcCallStatus _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RpcCallStatusDefaultTypeInternal _SharingLog_RpcCallStatus_default_instance_;
inline constexpr SharingLog_RespondToIntroduction::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
session_id_{::int64_t{0}},
action_{static_cast< ::location::nearby::proto::sharing::ResponseToIntroduction >(0)},
qr_code_flow_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_RespondToIntroduction_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_RespondToIntroductionDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_RespondToIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_RespondToIntroductionDefaultTypeInternal() {}
union {
SharingLog_RespondToIntroduction _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RespondToIntroductionDefaultTypeInternal _SharingLog_RespondToIntroduction_default_instance_;
inline constexpr SharingLog_RequestSettingPermissions::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
permission_type_{static_cast< ::location::nearby::proto::sharing::PermissionRequestType >(0)},
permission_request_result_{static_cast< ::location::nearby::proto::sharing::PermissionRequestResult >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_RequestSettingPermissions_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_RequestSettingPermissionsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_RequestSettingPermissionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_RequestSettingPermissionsDefaultTypeInternal() {}
union {
SharingLog_RequestSettingPermissions _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RequestSettingPermissionsDefaultTypeInternal _SharingLog_RequestSettingPermissions_default_instance_;
inline constexpr SharingLog_RemoveQuickSettingsTile::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_RemoveQuickSettingsTile_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_RemoveQuickSettingsTileDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_RemoveQuickSettingsTileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_RemoveQuickSettingsTileDefaultTypeInternal() {}
union {
SharingLog_RemoveQuickSettingsTile _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RemoveQuickSettingsTileDefaultTypeInternal _SharingLog_RemoveQuickSettingsTile_default_instance_;
inline constexpr SharingLog_RemoveContact::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
was_phone_removed_{false},
was_email_removed_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_RemoveContact::SharingLog_RemoveContact(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_RemoveContact_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_RemoveContactDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_RemoveContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_RemoveContactDefaultTypeInternal() {}
union {
SharingLog_RemoveContact _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RemoveContactDefaultTypeInternal _SharingLog_RemoveContact_default_instance_;
inline constexpr SharingLog_ReceivePreviews::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
num_previews_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ReceivePreviews_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ReceivePreviewsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ReceivePreviewsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ReceivePreviewsDefaultTypeInternal() {}
union {
SharingLog_ReceivePreviews _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceivePreviewsDefaultTypeInternal _SharingLog_ReceivePreviews_default_instance_;
inline constexpr SharingLog_ReceiveFastInitialization::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
time_elapse_since_screen_unlock_millis_{::int64_t{0}},
notifications_enabled_{false},
notifications_filtered_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ReceiveFastInitialization_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ReceiveFastInitializationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ReceiveFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ReceiveFastInitializationDefaultTypeInternal() {}
union {
SharingLog_ReceiveFastInitialization _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveFastInitializationDefaultTypeInternal _SharingLog_ReceiveFastInitialization_default_instance_;
inline constexpr SharingLog_QrCodeOpenedInWebClient::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
client_platform_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform >(0)},
is_retry_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_QrCodeOpenedInWebClient_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal() {}
union {
SharingLog_QrCodeOpenedInWebClient _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal _SharingLog_QrCodeOpenedInWebClient_default_instance_;
inline constexpr SharingLog_QrCodeLinkShown::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_QrCodeLinkShown_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_QrCodeLinkShownDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_QrCodeLinkShownDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_QrCodeLinkShownDefaultTypeInternal() {}
union {
SharingLog_QrCodeLinkShown _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_QrCodeLinkShownDefaultTypeInternal _SharingLog_QrCodeLinkShown_default_instance_;
inline constexpr SharingLog_ProcessReceivedAttachmentsEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
session_id_{::int64_t{0}},
status_{static_cast< ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal() {}
union {
SharingLog_ProcessReceivedAttachmentsEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal _SharingLog_ProcessReceivedAttachmentsEnd_default_instance_;
inline constexpr SharingLog_PreferencesUsage::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
action_{static_cast< ::location::nearby::proto::sharing::PreferencesAction >(0)},
action_status_{static_cast< ::location::nearby::proto::sharing::PreferencesActionStatus >(0)},
prev_sub_action_{static_cast< ::location::nearby::proto::sharing::PreferencesAction >(0)},
next_sub_action_{static_cast< ::location::nearby::proto::sharing::PreferencesAction >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_PreferencesUsage_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_PreferencesUsageDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_PreferencesUsageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_PreferencesUsageDefaultTypeInternal() {}
union {
SharingLog_PreferencesUsage _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_PreferencesUsageDefaultTypeInternal _SharingLog_PreferencesUsage_default_instance_;
inline constexpr SharingLog_LaunchSetupActivity::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_LaunchSetupActivity_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_LaunchSetupActivityDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_LaunchSetupActivityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_LaunchSetupActivityDefaultTypeInternal() {}
union {
SharingLog_LaunchSetupActivity _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchSetupActivityDefaultTypeInternal _SharingLog_LaunchSetupActivity_default_instance_;
inline constexpr SharingLog_LaunchPhoneConsent::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_LaunchPhoneConsent_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_LaunchPhoneConsentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_LaunchPhoneConsentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_LaunchPhoneConsentDefaultTypeInternal() {}
union {
SharingLog_LaunchPhoneConsent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchPhoneConsentDefaultTypeInternal _SharingLog_LaunchPhoneConsent_default_instance_;
inline constexpr SharingLog_LaunchConsent::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
consent_type_{static_cast< ::location::nearby::proto::sharing::ConsentType >(0)},
status_{static_cast< ::location::nearby::proto::sharing::ConsentAcceptanceStatus >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_LaunchConsent::SharingLog_LaunchConsent(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_LaunchConsent_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_LaunchConsentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_LaunchConsentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_LaunchConsentDefaultTypeInternal() {}
union {
SharingLog_LaunchConsent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchConsentDefaultTypeInternal _SharingLog_LaunchConsent_default_instance_;
inline constexpr SharingLog_LaunchActivity::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
duration_millis_{::int64_t{0}},
activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)},
previous_transfer_in_progress_{false},
has_opted_in_{false},
is_finishing_{false},
source_activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_LaunchActivity::SharingLog_LaunchActivity(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_LaunchActivity_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_LaunchActivityDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_LaunchActivityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_LaunchActivityDefaultTypeInternal() {}
union {
SharingLog_LaunchActivity _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchActivityDefaultTypeInternal _SharingLog_LaunchActivity_default_instance_;
inline constexpr SharingLog_InstallAPKStatus::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
status_{},
_status_cached_byte_size_{0},
source_{},
_source_cached_byte_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_InstallAPKStatus_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_InstallAPKStatusDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_InstallAPKStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_InstallAPKStatusDefaultTypeInternal() {}
union {
SharingLog_InstallAPKStatus _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_InstallAPKStatusDefaultTypeInternal _SharingLog_InstallAPKStatus_default_instance_;
inline constexpr SharingLog_HatsJointEvent::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
hats_session_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
flow_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_HatsJointEvent_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_HatsJointEventDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_HatsJointEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_HatsJointEventDefaultTypeInternal() {}
union {
SharingLog_HatsJointEvent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_HatsJointEventDefaultTypeInternal _SharingLog_HatsJointEvent_default_instance_;
inline constexpr SharingLog_FileAttachment::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
size_bytes_{::int64_t{0}},
type_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type >(0)},
source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)},
offset_bytes_{::int64_t{0}},
batch_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_FileAttachment::SharingLog_FileAttachment(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_FileAttachment_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_FileAttachmentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_FileAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_FileAttachmentDefaultTypeInternal() {}
union {
SharingLog_FileAttachment _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_FileAttachmentDefaultTypeInternal _SharingLog_FileAttachment_default_instance_;
inline constexpr SharingLog_FastShareServerResponse::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
status_{static_cast< ::location::nearby::proto::sharing::ServerResponseState >(0)},
name_{static_cast< ::location::nearby::proto::sharing::ServerActionName >(0)},
latency_millis_{::int64_t{0}},
purpose_{static_cast< ::location::nearby::proto::sharing::SyncPurpose >(0)},
requester_{static_cast< ::location::nearby::proto::sharing::ClientRole >(0)},
device_type_{static_cast< ::location::nearby::proto::sharing::DeviceType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_FastShareServerResponse_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_FastShareServerResponseDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_FastShareServerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_FastShareServerResponseDefaultTypeInternal() {}
union {
SharingLog_FastShareServerResponse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_FastShareServerResponseDefaultTypeInternal _SharingLog_FastShareServerResponse_default_instance_;
inline constexpr SharingLog_FastInitDiscoverDevice::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
fast_init_type_{static_cast< ::location::nearby::proto::sharing::FastInitType >(0)},
fast_init_state_{static_cast< ::location::nearby::proto::sharing::FastInitState >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_FastInitDiscoverDevice_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_FastInitDiscoverDeviceDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_FastInitDiscoverDeviceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_FastInitDiscoverDeviceDefaultTypeInternal() {}
union {
SharingLog_FastInitDiscoverDevice _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_FastInitDiscoverDeviceDefaultTypeInternal _SharingLog_FastInitDiscoverDevice_default_instance_;
inline constexpr SharingLog_EventMetadata::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
cloud_sharing_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
cloud_receiver_session_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
external_provider_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
external_provider_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
use_case_{static_cast< ::location::nearby::proto::sharing::SharingUseCase >(0)},
initial_opt_in_{false},
opt_in_{false},
initial_enable_status_{false},
is_direct_share_{false},
flow_id_{::int64_t{0}},
session_id_{::int64_t{0}},
vendor_id_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_EventMetadata::SharingLog_EventMetadata(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_EventMetadata_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_EventMetadataDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_EventMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_EventMetadataDefaultTypeInternal() {}
union {
SharingLog_EventMetadata _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_EventMetadataDefaultTypeInternal _SharingLog_EventMetadata_default_instance_;
inline constexpr SharingLog_EnableNearbySharing::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
status_{static_cast< ::location::nearby::proto::sharing::NearbySharingStatus >(0)},
has_opted_in_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_EnableNearbySharing_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_EnableNearbySharingDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_EnableNearbySharingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_EnableNearbySharingDefaultTypeInternal() {}
union {
SharingLog_EnableNearbySharing _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_EnableNearbySharingDefaultTypeInternal _SharingLog_EnableNearbySharing_default_instance_;
inline constexpr SharingLog_DisplayPrivacyNotification::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DisplayPrivacyNotification_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DisplayPrivacyNotificationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DisplayPrivacyNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DisplayPrivacyNotificationDefaultTypeInternal() {}
union {
SharingLog_DisplayPrivacyNotification _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DisplayPrivacyNotificationDefaultTypeInternal _SharingLog_DisplayPrivacyNotification_default_instance_;
inline constexpr SharingLog_DisplayPhoneConsent::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DisplayPhoneConsent_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DisplayPhoneConsentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DisplayPhoneConsentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DisplayPhoneConsentDefaultTypeInternal() {}
union {
SharingLog_DisplayPhoneConsent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DisplayPhoneConsentDefaultTypeInternal _SharingLog_DisplayPhoneConsent_default_instance_;
inline constexpr SharingLog_DismissPrivacyNotification::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DismissPrivacyNotification_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DismissPrivacyNotificationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DismissPrivacyNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DismissPrivacyNotificationDefaultTypeInternal() {}
union {
SharingLog_DismissPrivacyNotification _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DismissPrivacyNotificationDefaultTypeInternal _SharingLog_DismissPrivacyNotification_default_instance_;
inline constexpr SharingLog_DismissFastInitialization::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DismissFastInitialization_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DismissFastInitializationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DismissFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DismissFastInitializationDefaultTypeInternal() {}
union {
SharingLog_DismissFastInitialization _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DismissFastInitializationDefaultTypeInternal _SharingLog_DismissFastInitialization_default_instance_;
inline constexpr SharingLog_DeviceSettings::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)},
data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)},
device_name_size_{0},
is_show_notification_enabled_{false},
is_bt_enabled_{false},
is_location_enabled_{false},
is_wifi_enabled_{false},
first_successful_transfer_date_{0},
previous_successful_transfer_date_{0},
lifetime_transfer_count_{0},
contact_access_{static_cast< ::location::nearby::proto::sharing::ContactAccess >(0)},
identity_verification_{static_cast< ::location::nearby::proto::sharing::IdentityVerification >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DeviceSettings::SharingLog_DeviceSettings(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DeviceSettings_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DeviceSettingsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DeviceSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DeviceSettingsDefaultTypeInternal() {}
union {
SharingLog_DeviceSettings _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DeviceSettingsDefaultTypeInternal _SharingLog_DeviceSettings_default_instance_;
inline constexpr SharingLog_DefaultOptIn::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DefaultOptIn_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DefaultOptInDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DefaultOptInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DefaultOptInDefaultTypeInternal() {}
union {
SharingLog_DefaultOptIn _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DefaultOptInDefaultTypeInternal _SharingLog_DefaultOptIn_default_instance_;
inline constexpr SharingLog_DecryptCertificateFailure::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
status_{static_cast< ::location::nearby::proto::sharing::DecryptCertificateFailureStatus >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DecryptCertificateFailure_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DecryptCertificateFailureDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DecryptCertificateFailureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DecryptCertificateFailureDefaultTypeInternal() {}
union {
SharingLog_DecryptCertificateFailure _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DecryptCertificateFailureDefaultTypeInternal _SharingLog_DecryptCertificateFailure_default_instance_;
inline constexpr SharingLog_DeclineAgreements::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DeclineAgreements_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DeclineAgreementsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DeclineAgreementsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DeclineAgreementsDefaultTypeInternal() {}
union {
SharingLog_DeclineAgreements _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DeclineAgreementsDefaultTypeInternal _SharingLog_DeclineAgreements_default_instance_;
inline constexpr SharingLog_CloudSharingRpcResult::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
rpc_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
cloud_sharing_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
latency_millis_{::int64_t{0}},
status_code_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudSharingRpcResult_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudSharingRpcResultDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudSharingRpcResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudSharingRpcResultDefaultTypeInternal() {}
union {
SharingLog_CloudSharingRpcResult _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudSharingRpcResultDefaultTypeInternal _SharingLog_CloudSharingRpcResult_default_instance_;
inline constexpr SharingLog_CloudRegisterReceiver::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
result_{static_cast< ::location::nearby::proto::sharing::CloudRegisterReceiverResult >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudRegisterReceiver_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudRegisterReceiverDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudRegisterReceiverDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudRegisterReceiverDefaultTypeInternal() {}
union {
SharingLog_CloudRegisterReceiver _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudRegisterReceiverDefaultTypeInternal _SharingLog_CloudRegisterReceiver_default_instance_;
inline constexpr SharingLog_CancelSendingAttachments::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CancelSendingAttachments_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CancelSendingAttachmentsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CancelSendingAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CancelSendingAttachmentsDefaultTypeInternal() {}
union {
SharingLog_CancelSendingAttachments _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CancelSendingAttachmentsDefaultTypeInternal _SharingLog_CancelSendingAttachments_default_instance_;
inline constexpr SharingLog_CancelReceivingAttachments::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CancelReceivingAttachments_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CancelReceivingAttachmentsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CancelReceivingAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CancelReceivingAttachmentsDefaultTypeInternal() {}
union {
SharingLog_CancelReceivingAttachments _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CancelReceivingAttachmentsDefaultTypeInternal _SharingLog_CancelReceivingAttachments_default_instance_;
inline constexpr SharingLog_CancelConnection::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
session_id_{::int64_t{0}},
transfer_position_{0},
concurrent_connections_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CancelConnection::SharingLog_CancelConnection(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CancelConnection_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CancelConnectionDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CancelConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CancelConnectionDefaultTypeInternal() {}
union {
SharingLog_CancelConnection _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CancelConnectionDefaultTypeInternal _SharingLog_CancelConnection_default_instance_;
inline constexpr SharingLog_AutoDismissFastInitialization::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AutoDismissFastInitialization_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AutoDismissFastInitializationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AutoDismissFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AutoDismissFastInitializationDefaultTypeInternal() {}
union {
SharingLog_AutoDismissFastInitialization _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AutoDismissFastInitializationDefaultTypeInternal _SharingLog_AutoDismissFastInitialization_default_instance_;
inline constexpr SharingLog_AppInfo::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
app_version_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
app_language_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
update_track_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()) {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AppInfo::SharingLog_AppInfo(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AppInfo_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AppInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AppInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AppInfoDefaultTypeInternal() {}
union {
SharingLog_AppInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AppInfoDefaultTypeInternal _SharingLog_AppInfo_default_instance_;
inline constexpr SharingLog_AppCrash::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
crash_reason_{static_cast< ::location::nearby::proto::sharing::AppCrashReason >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AppCrash::SharingLog_AppCrash(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AppCrash_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AppCrashDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AppCrashDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AppCrashDefaultTypeInternal() {}
union {
SharingLog_AppCrash _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AppCrashDefaultTypeInternal _SharingLog_AppCrash_default_instance_;
inline constexpr SharingLog_AppAttachment::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
package_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
size_{::int64_t{0}},
batch_id_{::int64_t{0}},
source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AppAttachment::SharingLog_AppAttachment(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AppAttachment_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AppAttachmentDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AppAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AppAttachmentDefaultTypeInternal() {}
union {
SharingLog_AppAttachment _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AppAttachmentDefaultTypeInternal _SharingLog_AppAttachment_default_instance_;
inline constexpr SharingLog_AdvertiseDevicePresenceStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
session_id_{::int64_t{0}},
visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)},
status_{static_cast< ::location::nearby::proto::sharing::SessionStatus >(0)},
data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)},
device_name_size_{0},
advertising_mode_{static_cast< ::location::nearby::proto::sharing::AdvertisingMode >(0)},
qr_code_flow_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AdvertiseDevicePresenceStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal() {}
union {
SharingLog_AdvertiseDevicePresenceStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceStart_default_instance_;
inline constexpr SharingLog_AdvertiseDevicePresenceEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
session_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AdvertiseDevicePresenceEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal() {}
union {
SharingLog_AdvertiseDevicePresenceEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceEnd_default_instance_;
inline constexpr SharingLog_AddQuickSettingsTile::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AddQuickSettingsTile_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AddQuickSettingsTileDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AddQuickSettingsTileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AddQuickSettingsTileDefaultTypeInternal() {}
union {
SharingLog_AddQuickSettingsTile _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AddQuickSettingsTileDefaultTypeInternal _SharingLog_AddQuickSettingsTile_default_instance_;
inline constexpr SharingLog_AddContact::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
was_phone_added_{false},
was_email_added_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AddContact::SharingLog_AddContact(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AddContact_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AddContactDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AddContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AddContactDefaultTypeInternal() {}
union {
SharingLog_AddContact _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AddContactDefaultTypeInternal _SharingLog_AddContact_default_instance_;
inline constexpr SharingLog_AcceptFastInitialization::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AcceptFastInitialization_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AcceptFastInitializationDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AcceptFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AcceptFastInitializationDefaultTypeInternal() {}
union {
SharingLog_AcceptFastInitialization _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AcceptFastInitializationDefaultTypeInternal _SharingLog_AcceptFastInitialization_default_instance_;
inline constexpr SharingLog_AcceptAgreements::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AcceptAgreements_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AcceptAgreementsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AcceptAgreementsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AcceptAgreementsDefaultTypeInternal() {}
union {
SharingLog_AcceptAgreements _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AcceptAgreementsDefaultTypeInternal _SharingLog_AcceptAgreements_default_instance_;
inline constexpr SharingLog_SendStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
share_target_info_{nullptr},
session_id_{::int64_t{0}},
transfer_position_{0},
concurrent_connections_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendStart::SharingLog_SendStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendStartDefaultTypeInternal() {}
union {
SharingLog_SendStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendStartDefaultTypeInternal _SharingLog_SendStart_default_instance_;
inline constexpr SharingLog_SendIntroduction::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
share_target_info_{nullptr},
session_id_{::int64_t{0}},
transfer_position_{0},
concurrent_connections_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendIntroduction::SharingLog_SendIntroduction(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendIntroduction_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendIntroductionDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendIntroductionDefaultTypeInternal() {}
union {
SharingLog_SendIntroduction _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendIntroductionDefaultTypeInternal _SharingLog_SendIntroduction_default_instance_;
inline constexpr SharingLog_ReceiveIntroduction::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
share_target_info_{nullptr},
session_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ReceiveIntroduction_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ReceiveIntroductionDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ReceiveIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ReceiveIntroductionDefaultTypeInternal() {}
union {
SharingLog_ReceiveIntroduction _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveIntroductionDefaultTypeInternal _SharingLog_ReceiveIntroduction_default_instance_;
inline constexpr SharingLog_ReceiveAttachmentsEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
share_target_info_{nullptr},
session_id_{::int64_t{0}},
received_bytes_{::int64_t{0}},
status_{static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(0)},
first_successful_transfer_date_{0},
previous_successful_transfer_date_{0},
lifetime_transfer_count_{0},
connection_medium_{0},
data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ReceiveAttachmentsEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ReceiveAttachmentsEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ReceiveAttachmentsEndDefaultTypeInternal() {}
union {
SharingLog_ReceiveAttachmentsEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveAttachmentsEndDefaultTypeInternal _SharingLog_ReceiveAttachmentsEnd_default_instance_;
inline constexpr SharingLog_ParsingFailedEndpointId::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
endpoint_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
duration_since_scanning_{nullptr},
duration_since_last_sync_{nullptr},
session_id_{::int64_t{0}},
flow_id_{::int64_t{0}},
scan_type_{static_cast< ::location::nearby::proto::sharing::ScanType >(0)},
parsing_failed_type_{static_cast< ::location::nearby::proto::sharing::ParsingFailedType >(0)},
discovery_mode_{static_cast< ::location::nearby::proto::sharing::DiscoveryMode >(0)},
latency_since_activity_start_millis_{::int64_t{-1}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ParsingFailedEndpointId_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ParsingFailedEndpointIdDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ParsingFailedEndpointIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ParsingFailedEndpointIdDefaultTypeInternal() {}
union {
SharingLog_ParsingFailedEndpointId _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ParsingFailedEndpointIdDefaultTypeInternal _SharingLog_ParsingFailedEndpointId_default_instance_;
inline constexpr SharingLog_HighQualityMediumSetup::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
share_target_info_{nullptr},
session_id_{::int64_t{0}},
duration_millis_{::int64_t{0}},
is_timeout_{false},
original_quality_{0},
connection_medium_{0},
connection_mode_{0},
instant_connection_result_{0} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_HighQualityMediumSetup_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_HighQualityMediumSetupDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_HighQualityMediumSetupDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_HighQualityMediumSetupDefaultTypeInternal() {}
union {
SharingLog_HighQualityMediumSetup _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_HighQualityMediumSetupDefaultTypeInternal _SharingLog_HighQualityMediumSetup_default_instance_;
inline constexpr SharingLog_EstablishConnection::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
share_target_info_{nullptr},
qr_code_receiver_connect_latency_{nullptr},
session_id_{::int64_t{0}},
status_{static_cast< ::location::nearby::proto::sharing::EstablishConnectionStatus >(0)},
transfer_position_{0},
duration_millis_{::int64_t{0}},
concurrent_connections_{0},
qr_code_flow_{false},
is_incoming_connection_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_EstablishConnection::SharingLog_EstablishConnection(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_EstablishConnection_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_EstablishConnectionDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_EstablishConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_EstablishConnectionDefaultTypeInternal() {}
union {
SharingLog_EstablishConnection _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_EstablishConnectionDefaultTypeInternal _SharingLog_EstablishConnection_default_instance_;
inline constexpr SharingLog_DiscoverShareTarget::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
cloud_receiver_session_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
share_target_info_{nullptr},
duration_since_scanning_{nullptr},
session_id_{::int64_t{0}},
flow_id_{::int64_t{0}},
scan_type_{static_cast< ::location::nearby::proto::sharing::ScanType >(0)},
latency_since_activity_start_millis_{::int64_t{-1}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DiscoverShareTarget_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DiscoverShareTargetDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DiscoverShareTargetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DiscoverShareTargetDefaultTypeInternal() {}
union {
SharingLog_DiscoverShareTarget _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DiscoverShareTargetDefaultTypeInternal _SharingLog_DiscoverShareTarget_default_instance_;
inline constexpr SharingLog_CloudAttachmentInfo::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
transferred_bytes_{::int64_t{0}},
duration_millis_{::int64_t{0}},
status_{static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(0)},
CloudAttachment_{},
_oneof_case_{} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudAttachmentInfo_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudAttachmentInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudAttachmentInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudAttachmentInfoDefaultTypeInternal() {}
union {
SharingLog_CloudAttachmentInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudAttachmentInfoDefaultTypeInternal _SharingLog_CloudAttachmentInfo_default_instance_;
inline constexpr SharingLog_AttachmentsInfo::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
text_attachment_{},
file_attachment_{},
wifi_credentials_attachment_{},
app_attachment_{},
stream_attachment_{},
required_app_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()) {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_AttachmentsInfo_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_AttachmentsInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_AttachmentsInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_AttachmentsInfoDefaultTypeInternal() {}
union {
SharingLog_AttachmentsInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AttachmentsInfoDefaultTypeInternal _SharingLog_AttachmentsInfo_default_instance_;
inline constexpr SharingLog_SendAttachmentsStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
share_target_info_{nullptr},
session_id_{::int64_t{0}},
transfer_position_{0},
concurrent_connections_{0},
qr_code_flow_{false},
advanced_protection_enabled_{false},
advanced_protection_mismatch_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendAttachmentsStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendAttachmentsStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendAttachmentsStartDefaultTypeInternal() {}
union {
SharingLog_SendAttachmentsStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendAttachmentsStartDefaultTypeInternal _SharingLog_SendAttachmentsStart_default_instance_;
inline constexpr SharingLog_SendAttachmentsEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
referrer_name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
attachments_info_{nullptr},
share_target_info_{nullptr},
session_id_{::int64_t{0}},
sent_bytes_{::int64_t{0}},
status_{static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(0)},
transfer_position_{0},
duration_millis_{::int64_t{0}},
concurrent_connections_{0},
connection_layer_status_{static_cast< ::location::nearby::proto::sharing::ConnectionLayerStatus >(0)},
first_successful_transfer_date_{0},
previous_successful_transfer_date_{0},
lifetime_transfer_count_{0},
connection_medium_{0},
data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)},
is_mutual_contact_{false} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_SendAttachmentsEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_SendAttachmentsEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_SendAttachmentsEndDefaultTypeInternal() {}
union {
SharingLog_SendAttachmentsEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendAttachmentsEndDefaultTypeInternal _SharingLog_SendAttachmentsEnd_default_instance_;
inline constexpr SharingLog_ReceiveAttachmentsStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
share_target_info_{nullptr},
session_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_ReceiveAttachmentsStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_ReceiveAttachmentsStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_ReceiveAttachmentsStartDefaultTypeInternal() {}
union {
SharingLog_ReceiveAttachmentsStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveAttachmentsStartDefaultTypeInternal _SharingLog_ReceiveAttachmentsStart_default_instance_;
inline constexpr SharingLog_OpenReceivedAttachments::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
session_id_{::int64_t{0}} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_OpenReceivedAttachments_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_OpenReceivedAttachmentsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_OpenReceivedAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_OpenReceivedAttachmentsDefaultTypeInternal() {}
union {
SharingLog_OpenReceivedAttachments _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_OpenReceivedAttachmentsDefaultTypeInternal _SharingLog_OpenReceivedAttachments_default_instance_;
inline constexpr SharingLog_DescribeAttachments::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
download_duration_{nullptr} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_DescribeAttachments_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_DescribeAttachmentsDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_DescribeAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_DescribeAttachmentsDefaultTypeInternal() {}
union {
SharingLog_DescribeAttachments _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DescribeAttachmentsDefaultTypeInternal _SharingLog_DescribeAttachments_default_instance_;
inline constexpr SharingLog_CloudUploadStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudUploadStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudUploadStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudUploadStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudUploadStartDefaultTypeInternal() {}
union {
SharingLog_CloudUploadStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudUploadStartDefaultTypeInternal _SharingLog_CloudUploadStart_default_instance_;
inline constexpr SharingLog_CloudUploadEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
upload_infos_{},
action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudUploadEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudUploadEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudUploadEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudUploadEndDefaultTypeInternal() {}
union {
SharingLog_CloudUploadEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudUploadEndDefaultTypeInternal _SharingLog_CloudUploadEnd_default_instance_;
inline constexpr SharingLog_CloudDownloadStart::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudDownloadStart_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudDownloadStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudDownloadStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudDownloadStartDefaultTypeInternal() {}
union {
SharingLog_CloudDownloadStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudDownloadStartDefaultTypeInternal _SharingLog_CloudDownloadStart_default_instance_;
inline constexpr SharingLog_CloudDownloadEnd::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
download_infos_{},
action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudDownloadEnd_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudDownloadEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudDownloadEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudDownloadEndDefaultTypeInternal() {}
union {
SharingLog_CloudDownloadEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudDownloadEndDefaultTypeInternal _SharingLog_CloudDownloadEnd_default_instance_;
inline constexpr SharingLog_CloudCreateSharingRequest::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
attachments_info_{nullptr},
attachment_download_latency_millis_{::int64_t{0}},
preview_thumbnail_latency_millis_{::int64_t{0}},
rpc_latency_millis_{::int64_t{0}},
result_{static_cast< ::location::nearby::proto::sharing::CloudCreateSharingResult >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_CloudCreateSharingRequest_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLog_CloudCreateSharingRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLog_CloudCreateSharingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLog_CloudCreateSharingRequestDefaultTypeInternal() {}
union {
SharingLog_CloudCreateSharingRequest _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudCreateSharingRequestDefaultTypeInternal _SharingLog_CloudCreateSharingRequest_default_instance_;
inline constexpr SharingLog::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: _cached_size_{0},
unknown_event_{nullptr},
accept_agreements_{nullptr},
enable_nearby_sharing_{nullptr},
set_visibility_{nullptr},
describe_attachments_{nullptr},
scan_for_share_targets_start_{nullptr},
scan_for_share_targets_end_{nullptr},
advertise_device_presence_start_{nullptr},
advertise_device_presence_end_{nullptr},
send_initialization_{nullptr},
receive_initialization_{nullptr},
discover_share_target_{nullptr},
send_introduction_{nullptr},
receive_introduction_{nullptr},
respond_introduction_{nullptr},
send_attachments_start_{nullptr},
send_attachments_end_{nullptr},
receive_attachments_start_{nullptr},
receive_attachments_end_{nullptr},
cancel_sending_attachments_{nullptr},
cancel_receiving_attachments_{nullptr},
open_received_attachments_{nullptr},
launch_activity_{nullptr},
add_contact_{nullptr},
remove_contact_{nullptr},
fast_share_server_response_{nullptr},
send_start_{nullptr},
accept_fast_initialization_{nullptr},
set_data_usage_{nullptr},
event_type_{static_cast< ::location::nearby::proto::sharing::EventType >(0)},
log_source_{static_cast< ::location::nearby::proto::sharing::LogSource >(0)},
version_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
files_migration_phase_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
app_version_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
dismiss_fast_initialization_{nullptr},
cancel_connection_{nullptr},
dismiss_privacy_notification_{nullptr},
tap_privacy_notification_{nullptr},
tap_help_{nullptr},
tap_feedback_{nullptr},
add_quick_settings_tile_{nullptr},
remove_quick_settings_tile_{nullptr},
launch_phone_consent_{nullptr},
tap_quick_settings_tile_{nullptr},
install_apk_status_{nullptr},
verify_apk_status_{nullptr},
launch_consent_{nullptr},
process_received_attachments_end_{nullptr},
toggle_show_notification_{nullptr},
set_device_name_{nullptr},
decline_agreements_{nullptr},
request_setting_permissions_{nullptr},
device_settings_{nullptr},
establish_connection_{nullptr},
auto_dismiss_fast_initialization_{nullptr},
event_metadata_{nullptr},
app_crash_{nullptr},
tap_quick_settings_file_share_{nullptr},
app_info_{nullptr},
display_privacy_notification_{nullptr},
display_phone_consent_{nullptr},
preferences_usage_{nullptr},
default_opt_in_{nullptr},
setup_wizard_{nullptr},
tap_qr_code_{nullptr},
qr_code_link_shown_{nullptr},
parsing_failed_endpoint_id_{nullptr},
fast_init_discover_device_{nullptr},
send_desktop_notification_{nullptr},
send_desktop_transfer_event_{nullptr},
set_account_{nullptr},
decrypt_certificate_failure_{nullptr},
show_allow_permission_auto_access_{nullptr},
show_waiting_for_accept_{nullptr},
high_quality_medium_setup_{nullptr},
rpc_call_status_{nullptr},
start_qr_code_session_{nullptr},
qr_code_opened_in_web_client_{nullptr},
hats_joint_event_{nullptr},
receive_previews_{nullptr},
cloud_create_sharing_request_{nullptr},
cloud_register_receiver_{nullptr},
cloud_upload_start_{nullptr},
cloud_upload_end_{nullptr},
cloud_download_start_{nullptr},
cloud_download_end_{nullptr},
cloud_sharing_rpc_result_{nullptr},
event_category_{static_cast< ::location::nearby::proto::sharing::EventCategory >(0)} {}
template <typename>
PROTOBUF_CONSTEXPR SharingLog::SharingLog(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(SharingLog_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct SharingLogDefaultTypeInternal {
PROTOBUF_CONSTEXPR SharingLogDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SharingLogDefaultTypeInternal() {}
union {
SharingLog _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLogDefaultTypeInternal _SharingLog_default_instance_;
} // namespace proto
} // namespace analytics
} // namespace sharing
} // namespace nearby
namespace nearby {
namespace sharing {
namespace analytics {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t SharingLog_TextAttachment_Type_internal_data_[] = {
262144u, 0u, };
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
SharingLog_TextAttachment_Type_strings[4] = {};
static const char SharingLog_TextAttachment_Type_names[] = {
"ADDRESS"
"PHONE_NUMBER"
"UNKNOWN_TEXT_TYPE"
"URL"
};
static const ::google::protobuf::internal::EnumEntry SharingLog_TextAttachment_Type_entries[] = {
{{&SharingLog_TextAttachment_Type_names[0], 7}, 2},
{{&SharingLog_TextAttachment_Type_names[7], 12}, 3},
{{&SharingLog_TextAttachment_Type_names[19], 17}, 0},
{{&SharingLog_TextAttachment_Type_names[36], 3}, 1},
};
static const int SharingLog_TextAttachment_Type_entries_by_number[] = {
2, // 0 -> UNKNOWN_TEXT_TYPE
3, // 1 -> URL
0, // 2 -> ADDRESS
1, // 3 -> PHONE_NUMBER
};
const ::std::string& SharingLog_TextAttachment_Type_Name(SharingLog_TextAttachment_Type value) {
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
SharingLog_TextAttachment_Type_entries, SharingLog_TextAttachment_Type_entries_by_number, 4,
SharingLog_TextAttachment_Type_strings);
(void)kDummy;
int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_TextAttachment_Type_entries,
SharingLog_TextAttachment_Type_entries_by_number,
4, value);
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_TextAttachment_Type_strings[idx].get();
}
bool SharingLog_TextAttachment_Type_Parse(::absl::string_view name, SharingLog_TextAttachment_Type* PROTOBUF_NONNULL value) {
int int_value;
bool success = ::google::protobuf::internal::LookUpEnumValue(
SharingLog_TextAttachment_Type_entries, 4, name, &int_value);
if (success) {
*value = static_cast<SharingLog_TextAttachment_Type>(int_value);
}
return success;
}
PROTOBUF_CONSTINIT const uint32_t SharingLog_FileAttachment_Type_internal_data_[] = {
458752u, 0u, };
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
SharingLog_FileAttachment_Type_strings[7] = {};
static const char SharingLog_FileAttachment_Type_names[] = {
"ANDROID_APP"
"AUDIO"
"CONTACT_CARD"
"DOCUMENT"
"IMAGE"
"UNKNOWN_FILE_TYPE"
"VIDEO"
};
static const ::google::protobuf::internal::EnumEntry SharingLog_FileAttachment_Type_entries[] = {
{{&SharingLog_FileAttachment_Type_names[0], 11}, 3},
{{&SharingLog_FileAttachment_Type_names[11], 5}, 4},
{{&SharingLog_FileAttachment_Type_names[16], 12}, 6},
{{&SharingLog_FileAttachment_Type_names[28], 8}, 5},
{{&SharingLog_FileAttachment_Type_names[36], 5}, 1},
{{&SharingLog_FileAttachment_Type_names[41], 17}, 0},
{{&SharingLog_FileAttachment_Type_names[58], 5}, 2},
};
static const int SharingLog_FileAttachment_Type_entries_by_number[] = {
5, // 0 -> UNKNOWN_FILE_TYPE
4, // 1 -> IMAGE
6, // 2 -> VIDEO
0, // 3 -> ANDROID_APP
1, // 4 -> AUDIO
3, // 5 -> DOCUMENT
2, // 6 -> CONTACT_CARD
};
const ::std::string& SharingLog_FileAttachment_Type_Name(SharingLog_FileAttachment_Type value) {
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
SharingLog_FileAttachment_Type_entries, SharingLog_FileAttachment_Type_entries_by_number, 7,
SharingLog_FileAttachment_Type_strings);
(void)kDummy;
int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_FileAttachment_Type_entries,
SharingLog_FileAttachment_Type_entries_by_number,
7, value);
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_FileAttachment_Type_strings[idx].get();
}
bool SharingLog_FileAttachment_Type_Parse(::absl::string_view name, SharingLog_FileAttachment_Type* PROTOBUF_NONNULL value) {
int int_value;
bool success = ::google::protobuf::internal::LookUpEnumValue(
SharingLog_FileAttachment_Type_entries, 7, name, &int_value);
if (success) {
*value = static_cast<SharingLog_FileAttachment_Type>(int_value);
}
return success;
}
PROTOBUF_CONSTINIT const uint32_t SharingLog_RpcCallStatus_RpcDirection_internal_data_[] = {
196608u, 0u, };
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
SharingLog_RpcCallStatus_RpcDirection_strings[3] = {};
static const char SharingLog_RpcCallStatus_RpcDirection_names[] = {
"INCOMING"
"OUTGOING"
"UNKNOWN_RPC_DIRECTION"
};
static const ::google::protobuf::internal::EnumEntry SharingLog_RpcCallStatus_RpcDirection_entries[] = {
{{&SharingLog_RpcCallStatus_RpcDirection_names[0], 8}, 1},
{{&SharingLog_RpcCallStatus_RpcDirection_names[8], 8}, 2},
{{&SharingLog_RpcCallStatus_RpcDirection_names[16], 21}, 0},
};
static const int SharingLog_RpcCallStatus_RpcDirection_entries_by_number[] = {
2, // 0 -> UNKNOWN_RPC_DIRECTION
0, // 1 -> INCOMING
1, // 2 -> OUTGOING
};
const ::std::string& SharingLog_RpcCallStatus_RpcDirection_Name(SharingLog_RpcCallStatus_RpcDirection value) {
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
SharingLog_RpcCallStatus_RpcDirection_entries, SharingLog_RpcCallStatus_RpcDirection_entries_by_number, 3,
SharingLog_RpcCallStatus_RpcDirection_strings);
(void)kDummy;
int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_RpcCallStatus_RpcDirection_entries,
SharingLog_RpcCallStatus_RpcDirection_entries_by_number,
3, value);
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_RpcCallStatus_RpcDirection_strings[idx].get();
}
bool SharingLog_RpcCallStatus_RpcDirection_Parse(::absl::string_view name, SharingLog_RpcCallStatus_RpcDirection* PROTOBUF_NONNULL value) {
int int_value;
bool success = ::google::protobuf::internal::LookUpEnumValue(
SharingLog_RpcCallStatus_RpcDirection_entries, 3, name, &int_value);
if (success) {
*value = static_cast<SharingLog_RpcCallStatus_RpcDirection>(int_value);
}
return success;
}
PROTOBUF_CONSTINIT const uint32_t SharingLog_QrCodeOpenedInWebClient_ClientPlatform_internal_data_[] = {
393216u, 0u, };
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings[6] = {};
static const char SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[] = {
"ANDROID"
"CHROME_OS"
"GENERIC"
"IOS"
"UNKNOWN_CLIENT_PLATFORM"
"WINDOWS"
};
static const ::google::protobuf::internal::EnumEntry SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries[] = {
{{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[0], 7}, 2},
{{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[7], 9}, 4},
{{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[16], 7}, 1},
{{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[23], 3}, 3},
{{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[26], 23}, 0},
{{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[49], 7}, 5},
};
static const int SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number[] = {
4, // 0 -> UNKNOWN_CLIENT_PLATFORM
2, // 1 -> GENERIC
0, // 2 -> ANDROID
3, // 3 -> IOS
1, // 4 -> CHROME_OS
5, // 5 -> WINDOWS
};
const ::std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(SharingLog_QrCodeOpenedInWebClient_ClientPlatform value) {
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number, 6,
SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings);
(void)kDummy;
int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries,
SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number,
6, value);
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings[idx].get();
}
bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Parse(::absl::string_view name, SharingLog_QrCodeOpenedInWebClient_ClientPlatform* PROTOBUF_NONNULL value) {
int int_value;
bool success = ::google::protobuf::internal::LookUpEnumValue(
SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, 6, name, &int_value);
if (success) {
*value = static_cast<SharingLog_QrCodeOpenedInWebClient_ClientPlatform>(int_value);
}
return success;
}
// ===================================================================
class SharingLog_AppInfo::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AppInfo>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_._has_bits_);
};
SharingLog_AppInfo::SharingLog_AppInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AppInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AppInfo)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AppInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
app_version_(arena, from.app_version_),
app_language_(arena, from.app_language_),
update_track_(arena, from.update_track_) {}
SharingLog_AppInfo::SharingLog_AppInfo(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_AppInfo& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AppInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_AppInfo* 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:nearby.sharing.analytics.proto.SharingLog.AppInfo)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AppInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
app_version_(arena),
app_language_(arena),
update_track_(arena) {}
inline void SharingLog_AppInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_AppInfo::~SharingLog_AppInfo() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AppInfo)
SharedDtor(*this);
}
inline void SharingLog_AppInfo::SharedDtor(MessageLite& self) {
SharingLog_AppInfo& this_ = static_cast<SharingLog_AppInfo&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.app_version_.Destroy();
this_._impl_.app_language_.Destroy();
this_._impl_.update_track_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_AppInfo::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AppInfo(arena);
}
constexpr auto SharingLog_AppInfo::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_AppInfo),
alignof(SharingLog_AppInfo));
}
constexpr auto SharingLog_AppInfo::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<50>{
{
&_SharingLog_AppInfo_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AppInfo::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AppInfo>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AppInfo::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AppInfo>(), &SharingLog_AppInfo::ByteSizeLong,
&SharingLog_AppInfo::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AppInfo",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<50> SharingLog_AppInfo_class_data_ =
SharingLog_AppInfo::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AppInfo::GetClassData() const {
return SharingLog_AppInfo_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
SharingLog_AppInfo::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _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
SharingLog_AppInfo_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppInfo>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional string app_version = 1;
{::_pbi::TcParser::FastBS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_version_)}},
// optional string app_language = 2;
{::_pbi::TcParser::FastBS1,
{18, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_language_)}},
// optional string update_track = 3;
{::_pbi::TcParser::FastBS1,
{26, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.update_track_)}},
}}, {{
65535, 65535
}}, {{
// optional string app_version = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_version_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string app_language = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_language_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string update_track = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.update_track_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AppInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AppInfo)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.app_version_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.app_language_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_impl_.update_track_.ClearNonDefaultToEmpty();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AppInfo::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AppInfo& this_ = static_cast<const SharingLog_AppInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AppInfo::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AppInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AppInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string app_version = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_app_version();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional string app_language = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_app_language();
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// optional string update_track = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
const ::std::string& _s = this_._internal_update_track();
target = stream->WriteStringMaybeAliased(3, _s, target);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AppInfo)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AppInfo::ByteSizeLong(const MessageLite& base) {
const SharingLog_AppInfo& this_ = static_cast<const SharingLog_AppInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AppInfo::ByteSizeLong() const {
const SharingLog_AppInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppInfo)
::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 app_version = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_app_version());
}
// optional string app_language = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_app_language());
}
// optional string update_track = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_update_track());
}
}
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 SharingLog_AppInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AppInfo*>(&to_msg);
auto& from = static_cast<const SharingLog_AppInfo&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppInfo)
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_app_version(from._internal_app_version());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_app_language(from._internal_app_language());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_internal_set_update_track(from._internal_update_track());
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AppInfo::CopyFrom(const SharingLog_AppInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AppInfo::InternalSwap(SharingLog_AppInfo* 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_.app_version_, &other->_impl_.app_version_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.app_language_, &other->_impl_.app_language_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.update_track_, &other->_impl_.update_track_, arena);
}
// ===================================================================
class SharingLog_DeviceSettings::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_DeviceSettings>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_._has_bits_);
};
SharingLog_DeviceSettings::SharingLog_DeviceSettings(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DeviceSettings_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
}
SharingLog_DeviceSettings::SharingLog_DeviceSettings(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DeviceSettings& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DeviceSettings_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 SharingLog_DeviceSettings::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DeviceSettings::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, visibility_),
0,
offsetof(Impl_, identity_verification_) -
offsetof(Impl_, visibility_) +
sizeof(Impl_::identity_verification_));
}
SharingLog_DeviceSettings::~SharingLog_DeviceSettings() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
SharedDtor(*this);
}
inline void SharingLog_DeviceSettings::SharedDtor(MessageLite& self) {
SharingLog_DeviceSettings& this_ = static_cast<SharingLog_DeviceSettings&>(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 SharingLog_DeviceSettings::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DeviceSettings(arena);
}
constexpr auto SharingLog_DeviceSettings::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DeviceSettings),
alignof(SharingLog_DeviceSettings));
}
constexpr auto SharingLog_DeviceSettings::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<57>{
{
&_SharingLog_DeviceSettings_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DeviceSettings::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DeviceSettings>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DeviceSettings::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DeviceSettings>(), &SharingLog_DeviceSettings::ByteSizeLong,
&SharingLog_DeviceSettings::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DeviceSettings",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<57> SharingLog_DeviceSettings_class_data_ =
SharingLog_DeviceSettings::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DeviceSettings::GetClassData() const {
return SharingLog_DeviceSettings_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 12, 4, 0, 2>
SharingLog_DeviceSettings::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_._has_bits_),
0, // no _extensions_
12, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294963200, // skipmap
offsetof(decltype(_table_), field_entries),
12, // num_field_entries
4, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_DeviceSettings_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.visibility_)}},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.data_usage_)}},
// optional int32 device_name_size = 3;
{::_pbi::TcParser::FastV32S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.device_name_size_)}},
// optional bool is_show_notification_enabled = 4;
{::_pbi::TcParser::FastV8S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_show_notification_enabled_)}},
// optional bool is_bt_enabled = 5;
{::_pbi::TcParser::FastV8S1,
{40, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_bt_enabled_)}},
// optional bool is_location_enabled = 6;
{::_pbi::TcParser::FastV8S1,
{48, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_location_enabled_)}},
// optional bool is_wifi_enabled = 7;
{::_pbi::TcParser::FastV8S1,
{56, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_wifi_enabled_)}},
// optional int32 first_successful_transfer_date = 8;
{::_pbi::TcParser::FastV32S1,
{64, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.first_successful_transfer_date_)}},
// optional int32 previous_successful_transfer_date = 9;
{::_pbi::TcParser::FastV32S1,
{72, 8, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.previous_successful_transfer_date_)}},
// optional int32 lifetime_transfer_count = 10;
{::_pbi::TcParser::FastV32S1,
{80, 9, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.lifetime_transfer_count_)}},
// optional .location.nearby.proto.sharing.ContactAccess contact_access = 11;
{::_pbi::TcParser::FastEr0S1,
{88, 10, 4,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.contact_access_)}},
// optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12;
{::_pbi::TcParser::FastEr0S1,
{96, 11, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.identity_verification_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.visibility_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.data_usage_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int32 device_name_size = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.device_name_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional bool is_show_notification_enabled = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_show_notification_enabled_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_bt_enabled = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_bt_enabled_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_location_enabled = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_location_enabled_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_wifi_enabled = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_wifi_enabled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional int32 first_successful_transfer_date = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.first_successful_transfer_date_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 previous_successful_transfer_date = 9;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.previous_successful_transfer_date_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 lifetime_transfer_count = 10;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.lifetime_transfer_count_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional .location.nearby.proto.sharing.ContactAccess contact_access = 11;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.contact_access_), _Internal::kHasBitsOffset + 10, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12;
{PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.identity_verification_), _Internal::kHasBitsOffset + 11, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 5},
{0, 3},
{0, 4},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DeviceSettings::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
::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, 0x000000ffU)) {
::memset(&_impl_.visibility_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.first_successful_transfer_date_) -
reinterpret_cast<char*>(&_impl_.visibility_)) + sizeof(_impl_.first_successful_transfer_date_));
}
if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
::memset(&_impl_.previous_successful_transfer_date_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.identity_verification_) -
reinterpret_cast<char*>(&_impl_.previous_successful_transfer_date_)) + sizeof(_impl_.identity_verification_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_DeviceSettings::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DeviceSettings& this_ = static_cast<const SharingLog_DeviceSettings&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DeviceSettings::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DeviceSettings& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_visibility(), target);
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_data_usage(), target);
}
// optional int32 device_name_size = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_device_name_size(), target);
}
// optional bool is_show_notification_enabled = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
4, this_._internal_is_show_notification_enabled(), target);
}
// optional bool is_bt_enabled = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
5, this_._internal_is_bt_enabled(), target);
}
// optional bool is_location_enabled = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
6, this_._internal_is_location_enabled(), target);
}
// optional bool is_wifi_enabled = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
7, this_._internal_is_wifi_enabled(), target);
}
// optional int32 first_successful_transfer_date = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
stream, this_._internal_first_successful_transfer_date(), target);
}
// optional int32 previous_successful_transfer_date = 9;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
stream, this_._internal_previous_successful_transfer_date(), target);
}
// optional int32 lifetime_transfer_count = 10;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>(
stream, this_._internal_lifetime_transfer_count(), target);
}
// optional .location.nearby.proto.sharing.ContactAccess contact_access = 11;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
11, this_._internal_contact_access(), target);
}
// optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
12, this_._internal_identity_verification(), 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:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DeviceSettings::ByteSizeLong(const MessageLite& base) {
const SharingLog_DeviceSettings& this_ = static_cast<const SharingLog_DeviceSettings&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DeviceSettings::ByteSizeLong() const {
const SharingLog_DeviceSettings& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
::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];
total_size += ::absl::popcount(0x00000078U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x00000087U)) {
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_visibility());
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage());
}
// optional int32 device_name_size = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_device_name_size());
}
// optional int32 first_successful_transfer_date = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_first_successful_transfer_date());
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
// optional int32 previous_successful_transfer_date = 9;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_previous_successful_transfer_date());
}
// optional int32 lifetime_transfer_count = 10;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_lifetime_transfer_count());
}
// optional .location.nearby.proto.sharing.ContactAccess contact_access = 11;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_contact_access());
}
// optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_identity_verification());
}
}
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 SharingLog_DeviceSettings::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DeviceSettings*>(&to_msg);
auto& from = static_cast<const SharingLog_DeviceSettings&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.visibility_ = from._impl_.visibility_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.data_usage_ = from._impl_.data_usage_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.device_name_size_ = from._impl_.device_name_size_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.is_show_notification_enabled_ = from._impl_.is_show_notification_enabled_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.is_bt_enabled_ = from._impl_.is_bt_enabled_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.is_location_enabled_ = from._impl_.is_location_enabled_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.is_wifi_enabled_ = from._impl_.is_wifi_enabled_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.first_successful_transfer_date_ = from._impl_.first_successful_transfer_date_;
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
_this->_impl_.previous_successful_transfer_date_ = from._impl_.previous_successful_transfer_date_;
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
_this->_impl_.lifetime_transfer_count_ = from._impl_.lifetime_transfer_count_;
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
_this->_impl_.contact_access_ = from._impl_.contact_access_;
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
_this->_impl_.identity_verification_ = from._impl_.identity_verification_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_DeviceSettings::CopyFrom(const SharingLog_DeviceSettings& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DeviceSettings::InternalSwap(SharingLog_DeviceSettings* 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(SharingLog_DeviceSettings, _impl_.identity_verification_)
+ sizeof(SharingLog_DeviceSettings::_impl_.identity_verification_)
- PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.visibility_)>(
reinterpret_cast<char*>(&_impl_.visibility_),
reinterpret_cast<char*>(&other->_impl_.visibility_));
}
// ===================================================================
class SharingLog_PreferencesUsage::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_PreferencesUsage>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_._has_bits_);
};
SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_PreferencesUsage_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
}
SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_PreferencesUsage& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_PreferencesUsage_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 SharingLog_PreferencesUsage::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_PreferencesUsage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, action_),
0,
offsetof(Impl_, next_sub_action_) -
offsetof(Impl_, action_) +
sizeof(Impl_::next_sub_action_));
}
SharingLog_PreferencesUsage::~SharingLog_PreferencesUsage() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
SharedDtor(*this);
}
inline void SharingLog_PreferencesUsage::SharedDtor(MessageLite& self) {
SharingLog_PreferencesUsage& this_ = static_cast<SharingLog_PreferencesUsage&>(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 SharingLog_PreferencesUsage::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_PreferencesUsage(arena);
}
constexpr auto SharingLog_PreferencesUsage::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_PreferencesUsage),
alignof(SharingLog_PreferencesUsage));
}
constexpr auto SharingLog_PreferencesUsage::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_PreferencesUsage_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_PreferencesUsage::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_PreferencesUsage>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_PreferencesUsage::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_PreferencesUsage>(), &SharingLog_PreferencesUsage::ByteSizeLong,
&SharingLog_PreferencesUsage::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.PreferencesUsage",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_PreferencesUsage_class_data_ =
SharingLog_PreferencesUsage::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_PreferencesUsage::GetClassData() const {
return SharingLog_PreferencesUsage_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 4, 0, 2>
SharingLog_PreferencesUsage::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
4, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_PreferencesUsage_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4;
{::_pbi::TcParser::FastEr0S1,
{32, 3, 11,
PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.next_sub_action_)}},
// optional .location.nearby.proto.sharing.PreferencesAction action = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 11,
PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_)}},
// optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_status_)}},
// optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 2, 11,
PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.prev_sub_action_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.PreferencesAction action = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_status_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.prev_sub_action_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.next_sub_action_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 11},
{0, 2},
{0, 11},
{0, 11},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_PreferencesUsage::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
::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, 0x0000000fU)) {
::memset(&_impl_.action_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.next_sub_action_) -
reinterpret_cast<char*>(&_impl_.action_)) + sizeof(_impl_.next_sub_action_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_PreferencesUsage::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_PreferencesUsage& this_ = static_cast<const SharingLog_PreferencesUsage&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_PreferencesUsage::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_PreferencesUsage& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.PreferencesAction action = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_action(), target);
}
// optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_action_status(), target);
}
// optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_prev_sub_action(), target);
}
// optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this_._internal_next_sub_action(), 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:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_PreferencesUsage::ByteSizeLong(const MessageLite& base) {
const SharingLog_PreferencesUsage& this_ = static_cast<const SharingLog_PreferencesUsage&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_PreferencesUsage::ByteSizeLong() const {
const SharingLog_PreferencesUsage& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional .location.nearby.proto.sharing.PreferencesAction action = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action());
}
// optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action_status());
}
// optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_prev_sub_action());
}
// optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_next_sub_action());
}
}
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 SharingLog_PreferencesUsage::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_PreferencesUsage*>(&to_msg);
auto& from = static_cast<const SharingLog_PreferencesUsage&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.action_ = from._impl_.action_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.action_status_ = from._impl_.action_status_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.prev_sub_action_ = from._impl_.prev_sub_action_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.next_sub_action_ = from._impl_.next_sub_action_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_PreferencesUsage::CopyFrom(const SharingLog_PreferencesUsage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_PreferencesUsage::InternalSwap(SharingLog_PreferencesUsage* 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(SharingLog_PreferencesUsage, _impl_.next_sub_action_)
+ sizeof(SharingLog_PreferencesUsage::_impl_.next_sub_action_)
- PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_)>(
reinterpret_cast<char*>(&_impl_.action_),
reinterpret_cast<char*>(&other->_impl_.action_));
}
// ===================================================================
class SharingLog_UnknownEvent::_Internal {
public:
};
SharingLog_UnknownEvent::SharingLog_UnknownEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_UnknownEvent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
}
SharingLog_UnknownEvent::SharingLog_UnknownEvent(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_UnknownEvent& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_UnknownEvent_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 SharingLog_UnknownEvent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_UnknownEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_UnknownEvent::~SharingLog_UnknownEvent() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
SharedDtor(*this);
}
inline void SharingLog_UnknownEvent::SharedDtor(MessageLite& self) {
SharingLog_UnknownEvent& this_ = static_cast<SharingLog_UnknownEvent&>(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 SharingLog_UnknownEvent::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_UnknownEvent(arena);
}
constexpr auto SharingLog_UnknownEvent::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_UnknownEvent),
alignof(SharingLog_UnknownEvent));
}
constexpr auto SharingLog_UnknownEvent::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<55>{
{
&_SharingLog_UnknownEvent_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_UnknownEvent::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_UnknownEvent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_UnknownEvent::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_UnknownEvent>(), &SharingLog_UnknownEvent::ByteSizeLong,
&SharingLog_UnknownEvent::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_UnknownEvent, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.UnknownEvent",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<55> SharingLog_UnknownEvent_class_data_ =
SharingLog_UnknownEvent::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_UnknownEvent::GetClassData() const {
return SharingLog_UnknownEvent_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_UnknownEvent::_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
SharingLog_UnknownEvent_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_UnknownEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
::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 SharingLog_UnknownEvent::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_UnknownEvent& this_ = static_cast<const SharingLog_UnknownEvent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_UnknownEvent::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_UnknownEvent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
::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:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_UnknownEvent::ByteSizeLong(const MessageLite& base) {
const SharingLog_UnknownEvent& this_ = static_cast<const SharingLog_UnknownEvent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_UnknownEvent::ByteSizeLong() const {
const SharingLog_UnknownEvent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
::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 SharingLog_UnknownEvent::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_UnknownEvent*>(&to_msg);
auto& from = static_cast<const SharingLog_UnknownEvent&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
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 SharingLog_UnknownEvent::CopyFrom(const SharingLog_UnknownEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_UnknownEvent::InternalSwap(SharingLog_UnknownEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_EstablishConnection::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_EstablishConnection>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_._has_bits_);
};
void SharingLog_EstablishConnection::clear_qr_code_receiver_connect_latency() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.qr_code_receiver_connect_latency_ != nullptr) _impl_.qr_code_receiver_connect_latency_->Clear();
ClearHasBit(_impl_._has_bits_[0],
0x00000004U);
}
SharingLog_EstablishConnection::SharingLog_EstablishConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_EstablishConnection_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
}
PROTOBUF_NDEBUG_INLINE SharingLog_EstablishConnection::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_EstablishConnection::SharingLog_EstablishConnection(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_EstablishConnection& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_EstablishConnection_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_EstablishConnection* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
_impl_.qr_code_receiver_connect_latency_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_receiver_connect_latency_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, is_incoming_connection_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::is_incoming_connection_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
}
PROTOBUF_NDEBUG_INLINE SharingLog_EstablishConnection::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_EstablishConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, is_incoming_connection_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::is_incoming_connection_));
}
SharingLog_EstablishConnection::~SharingLog_EstablishConnection() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
SharedDtor(*this);
}
inline void SharingLog_EstablishConnection::SharedDtor(MessageLite& self) {
SharingLog_EstablishConnection& this_ = static_cast<SharingLog_EstablishConnection&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
delete this_._impl_.share_target_info_;
delete this_._impl_.qr_code_receiver_connect_latency_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_EstablishConnection::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_EstablishConnection(arena);
}
constexpr auto SharingLog_EstablishConnection::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_EstablishConnection),
alignof(SharingLog_EstablishConnection));
}
constexpr auto SharingLog_EstablishConnection::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_EstablishConnection_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_EstablishConnection::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_EstablishConnection>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_EstablishConnection::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_EstablishConnection>(), &SharingLog_EstablishConnection::ByteSizeLong,
&SharingLog_EstablishConnection::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.EstablishConnection",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EstablishConnection_class_data_ =
SharingLog_EstablishConnection::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_EstablishConnection::GetClassData() const {
return SharingLog_EstablishConnection_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 10, 3, 0, 2>
SharingLog_EstablishConnection::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_._has_bits_),
0, // no _extensions_
10, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294966272, // skipmap
offsetof(decltype(_table_), field_entries),
10, // num_field_entries
3, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_EstablishConnection_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 4, 10,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.status_)}},
// optional int64 session_id = 2;
{::_pbi::TcParser::FastV64S1,
{16, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.session_id_)}},
// optional int32 transfer_position = 3;
{::_pbi::TcParser::FastV32S1,
{24, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.transfer_position_)}},
// optional int32 concurrent_connections = 4;
{::_pbi::TcParser::FastV32S1,
{32, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.concurrent_connections_)}},
// optional int64 duration_millis = 5;
{::_pbi::TcParser::FastV64S1,
{40, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.duration_millis_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
{::_pbi::TcParser::FastMtS1,
{50, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.share_target_info_)}},
// optional string referrer_name = 7;
{::_pbi::TcParser::FastBS1,
{58, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.referrer_name_)}},
// optional bool qr_code_flow = 8 [deprecated = true];
{::_pbi::TcParser::FastV8S1,
{64, 8, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_flow_)}},
// optional bool is_incoming_connection = 9;
{::_pbi::TcParser::FastV8S1,
{72, 9, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.is_incoming_connection_)}},
// optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10;
{::_pbi::TcParser::FastMtS1,
{82, 2, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_receiver_connect_latency_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.status_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 session_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.session_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int32 transfer_position = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.transfer_position_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 concurrent_connections = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int64 duration_millis = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.duration_millis_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string referrer_name = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional bool qr_code_flow = 8 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_incoming_connection = 9;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.is_incoming_connection_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10;
{PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_receiver_connect_latency_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
{::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
{0, 10},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_EstablishConnection::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.referrer_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.qr_code_receiver_connect_latency_ != nullptr);
_impl_.qr_code_receiver_connect_latency_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.concurrent_connections_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_));
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
::memset(&_impl_.qr_code_flow_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.is_incoming_connection_) -
reinterpret_cast<char*>(&_impl_.qr_code_flow_)) + sizeof(_impl_.is_incoming_connection_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_EstablishConnection::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_EstablishConnection& this_ = static_cast<const SharingLog_EstablishConnection&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_EstablishConnection::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_EstablishConnection& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_status(), target);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_session_id(), target);
}
// optional int32 transfer_position = 3;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_transfer_position(), target);
}
// optional int32 concurrent_connections = 4;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
stream, this_._internal_concurrent_connections(), target);
}
// optional int64 duration_millis = 5;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
stream, this_._internal_duration_millis(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional string referrer_name = 7;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(7, _s, target);
}
// optional bool qr_code_flow = 8 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
8, this_._internal_qr_code_flow(), target);
}
// optional bool is_incoming_connection = 9;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
9, this_._internal_is_incoming_connection(), target);
}
// optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
10, *this_._impl_.qr_code_receiver_connect_latency_, this_._impl_.qr_code_receiver_connect_latency_->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:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_EstablishConnection::ByteSizeLong(const MessageLite& base) {
const SharingLog_EstablishConnection& this_ = static_cast<const SharingLog_EstablishConnection&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_EstablishConnection::ByteSizeLong() const {
const SharingLog_EstablishConnection& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
::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];
total_size += ::absl::popcount(0x00000300U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
// optional string referrer_name = 7;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qr_code_receiver_connect_latency_);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
// optional int32 transfer_position = 3;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_transfer_position());
}
// optional int64 duration_millis = 5;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_duration_millis());
}
// optional int32 concurrent_connections = 4;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_concurrent_connections());
}
}
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 SharingLog_EstablishConnection::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_EstablishConnection*>(&to_msg);
auto& from = static_cast<const SharingLog_EstablishConnection&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.qr_code_receiver_connect_latency_ != nullptr);
if (_this->_impl_.qr_code_receiver_connect_latency_ == nullptr) {
_this->_impl_.qr_code_receiver_connect_latency_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_receiver_connect_latency_);
} else {
_this->_impl_.qr_code_receiver_connect_latency_->MergeFrom(*from._impl_.qr_code_receiver_connect_latency_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.transfer_position_ = from._impl_.transfer_position_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_;
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
_this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_;
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
_this->_impl_.is_incoming_connection_ = from._impl_.is_incoming_connection_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_EstablishConnection::CopyFrom(const SharingLog_EstablishConnection& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_EstablishConnection::InternalSwap(SharingLog_EstablishConnection* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.is_incoming_connection_)
+ sizeof(SharingLog_EstablishConnection::_impl_.is_incoming_connection_)
- PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_AcceptAgreements::_Internal {
public:
};
SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AcceptAgreements_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
}
SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AcceptAgreements& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AcceptAgreements_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 SharingLog_AcceptAgreements::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AcceptAgreements::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_AcceptAgreements::~SharingLog_AcceptAgreements() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
SharedDtor(*this);
}
inline void SharingLog_AcceptAgreements::SharedDtor(MessageLite& self) {
SharingLog_AcceptAgreements& this_ = static_cast<SharingLog_AcceptAgreements&>(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 SharingLog_AcceptAgreements::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AcceptAgreements(arena);
}
constexpr auto SharingLog_AcceptAgreements::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AcceptAgreements),
alignof(SharingLog_AcceptAgreements));
}
constexpr auto SharingLog_AcceptAgreements::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_AcceptAgreements_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AcceptAgreements::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AcceptAgreements>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AcceptAgreements::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AcceptAgreements>(), &SharingLog_AcceptAgreements::ByteSizeLong,
&SharingLog_AcceptAgreements::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AcceptAgreements, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AcceptAgreements",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_AcceptAgreements_class_data_ =
SharingLog_AcceptAgreements::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AcceptAgreements::GetClassData() const {
return SharingLog_AcceptAgreements_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_AcceptAgreements::_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
SharingLog_AcceptAgreements_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AcceptAgreements::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
::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 SharingLog_AcceptAgreements::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AcceptAgreements& this_ = static_cast<const SharingLog_AcceptAgreements&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AcceptAgreements::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AcceptAgreements& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
::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:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AcceptAgreements::ByteSizeLong(const MessageLite& base) {
const SharingLog_AcceptAgreements& this_ = static_cast<const SharingLog_AcceptAgreements&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AcceptAgreements::ByteSizeLong() const {
const SharingLog_AcceptAgreements& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
::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 SharingLog_AcceptAgreements::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AcceptAgreements*>(&to_msg);
auto& from = static_cast<const SharingLog_AcceptAgreements&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
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 SharingLog_AcceptAgreements::CopyFrom(const SharingLog_AcceptAgreements& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AcceptAgreements::InternalSwap(SharingLog_AcceptAgreements* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_DeclineAgreements::_Internal {
public:
};
SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DeclineAgreements_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
}
SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DeclineAgreements& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DeclineAgreements_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 SharingLog_DeclineAgreements::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DeclineAgreements::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_DeclineAgreements::~SharingLog_DeclineAgreements() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
SharedDtor(*this);
}
inline void SharingLog_DeclineAgreements::SharedDtor(MessageLite& self) {
SharingLog_DeclineAgreements& this_ = static_cast<SharingLog_DeclineAgreements&>(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 SharingLog_DeclineAgreements::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DeclineAgreements(arena);
}
constexpr auto SharingLog_DeclineAgreements::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DeclineAgreements),
alignof(SharingLog_DeclineAgreements));
}
constexpr auto SharingLog_DeclineAgreements::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<60>{
{
&_SharingLog_DeclineAgreements_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DeclineAgreements::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DeclineAgreements>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DeclineAgreements::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DeclineAgreements>(), &SharingLog_DeclineAgreements::ByteSizeLong,
&SharingLog_DeclineAgreements::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DeclineAgreements, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DeclineAgreements",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<60> SharingLog_DeclineAgreements_class_data_ =
SharingLog_DeclineAgreements::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DeclineAgreements::GetClassData() const {
return SharingLog_DeclineAgreements_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_DeclineAgreements::_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
SharingLog_DeclineAgreements_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DeclineAgreements::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
::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 SharingLog_DeclineAgreements::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DeclineAgreements& this_ = static_cast<const SharingLog_DeclineAgreements&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DeclineAgreements::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DeclineAgreements& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
::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:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DeclineAgreements::ByteSizeLong(const MessageLite& base) {
const SharingLog_DeclineAgreements& this_ = static_cast<const SharingLog_DeclineAgreements&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DeclineAgreements::ByteSizeLong() const {
const SharingLog_DeclineAgreements& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
::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 SharingLog_DeclineAgreements::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DeclineAgreements*>(&to_msg);
auto& from = static_cast<const SharingLog_DeclineAgreements&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
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 SharingLog_DeclineAgreements::CopyFrom(const SharingLog_DeclineAgreements& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DeclineAgreements::InternalSwap(SharingLog_DeclineAgreements* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_EnableNearbySharing::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_EnableNearbySharing>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_._has_bits_);
};
SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_EnableNearbySharing_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
}
SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_EnableNearbySharing& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_EnableNearbySharing_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 SharingLog_EnableNearbySharing::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_EnableNearbySharing::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, status_),
0,
offsetof(Impl_, has_opted_in_) -
offsetof(Impl_, status_) +
sizeof(Impl_::has_opted_in_));
}
SharingLog_EnableNearbySharing::~SharingLog_EnableNearbySharing() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
SharedDtor(*this);
}
inline void SharingLog_EnableNearbySharing::SharedDtor(MessageLite& self) {
SharingLog_EnableNearbySharing& this_ = static_cast<SharingLog_EnableNearbySharing&>(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 SharingLog_EnableNearbySharing::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_EnableNearbySharing(arena);
}
constexpr auto SharingLog_EnableNearbySharing::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_EnableNearbySharing),
alignof(SharingLog_EnableNearbySharing));
}
constexpr auto SharingLog_EnableNearbySharing::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_EnableNearbySharing_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_EnableNearbySharing::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_EnableNearbySharing>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_EnableNearbySharing::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_EnableNearbySharing>(), &SharingLog_EnableNearbySharing::ByteSizeLong,
&SharingLog_EnableNearbySharing::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EnableNearbySharing_class_data_ =
SharingLog_EnableNearbySharing::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_EnableNearbySharing::GetClassData() const {
return SharingLog_EnableNearbySharing_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
SharingLog_EnableNearbySharing::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_EnableNearbySharing_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool has_opted_in = 2;
{::_pbi::TcParser::FastV8S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.has_opted_in_)}},
// optional .location.nearby.proto.sharing.NearbySharingStatus status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.status_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.NearbySharingStatus status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool has_opted_in = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.has_opted_in_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_EnableNearbySharing::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
::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)) {
::memset(&_impl_.status_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.has_opted_in_) -
reinterpret_cast<char*>(&_impl_.status_)) + sizeof(_impl_.has_opted_in_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_EnableNearbySharing::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_EnableNearbySharing& this_ = static_cast<const SharingLog_EnableNearbySharing&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_EnableNearbySharing::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_EnableNearbySharing& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.NearbySharingStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_status(), target);
}
// optional bool has_opted_in = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_has_opted_in(), 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:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_EnableNearbySharing::ByteSizeLong(const MessageLite& base) {
const SharingLog_EnableNearbySharing& this_ = static_cast<const SharingLog_EnableNearbySharing&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_EnableNearbySharing::ByteSizeLong() const {
const SharingLog_EnableNearbySharing& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
::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];
total_size += static_cast<bool>(0x00000002U & cached_has_bits) * 2;
{
// optional .location.nearby.proto.sharing.NearbySharingStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
}
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 SharingLog_EnableNearbySharing::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_EnableNearbySharing*>(&to_msg);
auto& from = static_cast<const SharingLog_EnableNearbySharing&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.has_opted_in_ = from._impl_.has_opted_in_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_EnableNearbySharing::CopyFrom(const SharingLog_EnableNearbySharing& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_EnableNearbySharing::InternalSwap(SharingLog_EnableNearbySharing* 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(SharingLog_EnableNearbySharing, _impl_.has_opted_in_)
+ sizeof(SharingLog_EnableNearbySharing::_impl_.has_opted_in_)
- PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.status_)>(
reinterpret_cast<char*>(&_impl_.status_),
reinterpret_cast<char*>(&other->_impl_.status_));
}
// ===================================================================
class SharingLog_SetAccount::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SetAccount>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_._has_bits_);
};
SharingLog_SetAccount::SharingLog_SetAccount(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetAccount_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetAccount)
}
SharingLog_SetAccount::SharingLog_SetAccount(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetAccount& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetAccount_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 SharingLog_SetAccount::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SetAccount::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.activity_name_ = {};
}
SharingLog_SetAccount::~SharingLog_SetAccount() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetAccount)
SharedDtor(*this);
}
inline void SharingLog_SetAccount::SharedDtor(MessageLite& self) {
SharingLog_SetAccount& this_ = static_cast<SharingLog_SetAccount&>(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 SharingLog_SetAccount::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SetAccount(arena);
}
constexpr auto SharingLog_SetAccount::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetAccount),
alignof(SharingLog_SetAccount));
}
constexpr auto SharingLog_SetAccount::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<53>{
{
&_SharingLog_SetAccount_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SetAccount::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SetAccount>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SetAccount::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SetAccount>(), &SharingLog_SetAccount::ByteSizeLong,
&SharingLog_SetAccount::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SetAccount",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<53> SharingLog_SetAccount_class_data_ =
SharingLog_SetAccount::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SetAccount::GetClassData() const {
return SharingLog_SetAccount_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_SetAccount::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _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),
SharingLog_SetAccount_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetAccount>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 12,
PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_.activity_name_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_.activity_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 12},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SetAccount::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetAccount)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.activity_name_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SetAccount::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SetAccount& this_ = static_cast<const SharingLog_SetAccount&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SetAccount::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SetAccount& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetAccount)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_activity_name(), 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:nearby.sharing.analytics.proto.SharingLog.SetAccount)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SetAccount::ByteSizeLong(const MessageLite& base) {
const SharingLog_SetAccount& this_ = static_cast<const SharingLog_SetAccount&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SetAccount::ByteSizeLong() const {
const SharingLog_SetAccount& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetAccount)
::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.proto.sharing.ActivityName activity_name = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_activity_name());
}
}
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 SharingLog_SetAccount::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SetAccount*>(&to_msg);
auto& from = static_cast<const SharingLog_SetAccount&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetAccount)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.activity_name_ = from._impl_.activity_name_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SetAccount::CopyFrom(const SharingLog_SetAccount& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetAccount)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SetAccount::InternalSwap(SharingLog_SetAccount* 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_.activity_name_, other->_impl_.activity_name_);
}
// ===================================================================
class SharingLog_SetVisibility::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SetVisibility>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_._has_bits_);
};
SharingLog_SetVisibility::SharingLog_SetVisibility(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetVisibility_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
}
SharingLog_SetVisibility::SharingLog_SetVisibility(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetVisibility& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetVisibility_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 SharingLog_SetVisibility::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SetVisibility::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, visibility_),
0,
offsetof(Impl_, source_activity_name_) -
offsetof(Impl_, visibility_) +
sizeof(Impl_::source_activity_name_));
}
SharingLog_SetVisibility::~SharingLog_SetVisibility() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
SharedDtor(*this);
}
inline void SharingLog_SetVisibility::SharedDtor(MessageLite& self) {
SharingLog_SetVisibility& this_ = static_cast<SharingLog_SetVisibility&>(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 SharingLog_SetVisibility::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SetVisibility(arena);
}
constexpr auto SharingLog_SetVisibility::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetVisibility),
alignof(SharingLog_SetVisibility));
}
constexpr auto SharingLog_SetVisibility::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_SetVisibility_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SetVisibility::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SetVisibility>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SetVisibility::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SetVisibility>(), &SharingLog_SetVisibility::ByteSizeLong,
&SharingLog_SetVisibility::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SetVisibility",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetVisibility_class_data_ =
SharingLog_SetVisibility::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SetVisibility::GetClassData() const {
return SharingLog_SetVisibility_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 3, 0, 2>
SharingLog_SetVisibility::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
3, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SetVisibility_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4;
{::_pbi::TcParser::FastEr0S1,
{32, 3, 12,
PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_activity_name_)}},
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.visibility_)}},
// optional .location.nearby.proto.sharing.Visibility source_visibility = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_visibility_)}},
// optional int64 duration_millis = 3;
{::_pbi::TcParser::FastV64S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.duration_millis_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.visibility_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.Visibility source_visibility = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_visibility_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 duration_millis = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_activity_name_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 5},
{0, 5},
{0, 12},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SetVisibility::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
::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, 0x0000000fU)) {
::memset(&_impl_.visibility_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.source_activity_name_) -
reinterpret_cast<char*>(&_impl_.visibility_)) + sizeof(_impl_.source_activity_name_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SetVisibility::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SetVisibility& this_ = static_cast<const SharingLog_SetVisibility&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SetVisibility::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SetVisibility& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_visibility(), target);
}
// optional .location.nearby.proto.sharing.Visibility source_visibility = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_source_visibility(), target);
}
// optional int64 duration_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_duration_millis(), target);
}
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this_._internal_source_activity_name(), 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:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SetVisibility::ByteSizeLong(const MessageLite& base) {
const SharingLog_SetVisibility& this_ = static_cast<const SharingLog_SetVisibility&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SetVisibility::ByteSizeLong() const {
const SharingLog_SetVisibility& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_visibility());
}
// optional .location.nearby.proto.sharing.Visibility source_visibility = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_visibility());
}
// optional int64 duration_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_duration_millis());
}
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_activity_name());
}
}
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 SharingLog_SetVisibility::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SetVisibility*>(&to_msg);
auto& from = static_cast<const SharingLog_SetVisibility&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.visibility_ = from._impl_.visibility_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.source_visibility_ = from._impl_.source_visibility_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.source_activity_name_ = from._impl_.source_activity_name_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SetVisibility::CopyFrom(const SharingLog_SetVisibility& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SetVisibility::InternalSwap(SharingLog_SetVisibility* 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(SharingLog_SetVisibility, _impl_.source_activity_name_)
+ sizeof(SharingLog_SetVisibility::_impl_.source_activity_name_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.visibility_)>(
reinterpret_cast<char*>(&_impl_.visibility_),
reinterpret_cast<char*>(&other->_impl_.visibility_));
}
// ===================================================================
class SharingLog_SetDataUsage::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SetDataUsage>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_._has_bits_);
};
SharingLog_SetDataUsage::SharingLog_SetDataUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetDataUsage_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
}
SharingLog_SetDataUsage::SharingLog_SetDataUsage(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetDataUsage& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetDataUsage_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 SharingLog_SetDataUsage::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SetDataUsage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, original_preference_),
0,
offsetof(Impl_, preference_) -
offsetof(Impl_, original_preference_) +
sizeof(Impl_::preference_));
}
SharingLog_SetDataUsage::~SharingLog_SetDataUsage() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
SharedDtor(*this);
}
inline void SharingLog_SetDataUsage::SharedDtor(MessageLite& self) {
SharingLog_SetDataUsage& this_ = static_cast<SharingLog_SetDataUsage&>(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 SharingLog_SetDataUsage::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SetDataUsage(arena);
}
constexpr auto SharingLog_SetDataUsage::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetDataUsage),
alignof(SharingLog_SetDataUsage));
}
constexpr auto SharingLog_SetDataUsage::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<55>{
{
&_SharingLog_SetDataUsage_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SetDataUsage::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SetDataUsage>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SetDataUsage::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SetDataUsage>(), &SharingLog_SetDataUsage::ByteSizeLong,
&SharingLog_SetDataUsage::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SetDataUsage",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<55> SharingLog_SetDataUsage_class_data_ =
SharingLog_SetDataUsage::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SetDataUsage::GetClassData() const {
return SharingLog_SetDataUsage_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_SetDataUsage::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SetDataUsage_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.DataUsage preference = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.preference_)}},
// optional .location.nearby.proto.sharing.DataUsage original_preference = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.original_preference_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.DataUsage original_preference = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.original_preference_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.DataUsage preference = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.preference_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 3},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SetDataUsage::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
::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)) {
::memset(&_impl_.original_preference_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.preference_) -
reinterpret_cast<char*>(&_impl_.original_preference_)) + sizeof(_impl_.preference_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SetDataUsage::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SetDataUsage& this_ = static_cast<const SharingLog_SetDataUsage&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SetDataUsage::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SetDataUsage& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.DataUsage original_preference = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_original_preference(), target);
}
// optional .location.nearby.proto.sharing.DataUsage preference = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_preference(), 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:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SetDataUsage::ByteSizeLong(const MessageLite& base) {
const SharingLog_SetDataUsage& this_ = static_cast<const SharingLog_SetDataUsage&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SetDataUsage::ByteSizeLong() const {
const SharingLog_SetDataUsage& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
::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.proto.sharing.DataUsage original_preference = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_original_preference());
}
// optional .location.nearby.proto.sharing.DataUsage preference = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_preference());
}
}
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 SharingLog_SetDataUsage::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SetDataUsage*>(&to_msg);
auto& from = static_cast<const SharingLog_SetDataUsage&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.original_preference_ = from._impl_.original_preference_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.preference_ = from._impl_.preference_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SetDataUsage::CopyFrom(const SharingLog_SetDataUsage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SetDataUsage::InternalSwap(SharingLog_SetDataUsage* 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(SharingLog_SetDataUsage, _impl_.preference_)
+ sizeof(SharingLog_SetDataUsage::_impl_.preference_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.original_preference_)>(
reinterpret_cast<char*>(&_impl_.original_preference_),
reinterpret_cast<char*>(&other->_impl_.original_preference_));
}
// ===================================================================
class SharingLog_ScanForShareTargetsStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ScanForShareTargetsStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_._has_bits_);
};
SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ScanForShareTargetsStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_ScanForShareTargetsStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_ScanForShareTargetsStart* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, use_qr_code_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::use_qr_code_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ScanForShareTargetsStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_ScanForShareTargetsStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
0,
offsetof(Impl_, use_qr_code_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::use_qr_code_));
}
SharingLog_ScanForShareTargetsStart::~SharingLog_ScanForShareTargetsStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
SharedDtor(*this);
}
inline void SharingLog_ScanForShareTargetsStart::SharedDtor(MessageLite& self) {
SharingLog_ScanForShareTargetsStart& this_ = static_cast<SharingLog_ScanForShareTargetsStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ScanForShareTargetsStart(arena);
}
constexpr auto SharingLog_ScanForShareTargetsStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ScanForShareTargetsStart),
alignof(SharingLog_ScanForShareTargetsStart));
}
constexpr auto SharingLog_ScanForShareTargetsStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<67>{
{
&_SharingLog_ScanForShareTargetsStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ScanForShareTargetsStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ScanForShareTargetsStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ScanForShareTargetsStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ScanForShareTargetsStart>(), &SharingLog_ScanForShareTargetsStart::ByteSizeLong,
&SharingLog_ScanForShareTargetsStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<67> SharingLog_ScanForShareTargetsStart_class_data_ =
SharingLog_ScanForShareTargetsStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ScanForShareTargetsStart::GetClassData() const {
return SharingLog_ScanForShareTargetsStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 6, 2, 0, 2>
SharingLog_ScanForShareTargetsStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_._has_bits_),
0, // no _extensions_
6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967232, // skipmap
offsetof(decltype(_table_), field_entries),
6, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ScanForShareTargetsStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.session_id_)}},
// optional .location.nearby.proto.sharing.SessionStatus status = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 2, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.status_)}},
// optional .location.nearby.proto.sharing.ScanType scan_type = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 3, 4,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.scan_type_)}},
// optional int64 flow_id = 4;
{::_pbi::TcParser::FastV64S1,
{32, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.flow_id_)}},
// optional string referrer_name = 5;
{::_pbi::TcParser::FastBS1,
{42, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.referrer_name_)}},
// optional bool use_qr_code = 6;
{::_pbi::TcParser::FastV8S1,
{48, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.use_qr_code_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.SessionStatus status = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.status_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.ScanType scan_type = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.scan_type_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 flow_id = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.flow_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional string referrer_name = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional bool use_qr_code = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.use_qr_code_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 2},
{0, 4},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ScanForShareTargetsStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
::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_.referrer_name_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.use_qr_code_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.use_qr_code_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ScanForShareTargetsStart& this_ = static_cast<const SharingLog_ScanForShareTargetsStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ScanForShareTargetsStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional .location.nearby.proto.sharing.SessionStatus status = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_status(), target);
}
// optional .location.nearby.proto.sharing.ScanType scan_type = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_scan_type(), target);
}
// optional int64 flow_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_flow_id(), target);
}
// optional string referrer_name = 5;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// optional bool use_qr_code = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
6, this_._internal_use_qr_code(), target);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ScanForShareTargetsStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_ScanForShareTargetsStart& this_ = static_cast<const SharingLog_ScanForShareTargetsStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ScanForShareTargetsStart::ByteSizeLong() const {
const SharingLog_ScanForShareTargetsStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
::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];
total_size += static_cast<bool>(0x00000020U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
// optional string referrer_name = 5;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional .location.nearby.proto.sharing.SessionStatus status = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
// optional .location.nearby.proto.sharing.ScanType scan_type = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_scan_type());
}
// optional int64 flow_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_flow_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 SharingLog_ScanForShareTargetsStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ScanForShareTargetsStart*>(&to_msg);
auto& from = static_cast<const SharingLog_ScanForShareTargetsStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
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, 0x0000003fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.scan_type_ = from._impl_.scan_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.flow_id_ = from._impl_.flow_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.use_qr_code_ = from._impl_.use_qr_code_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ScanForShareTargetsStart::CopyFrom(const SharingLog_ScanForShareTargetsStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ScanForShareTargetsStart::InternalSwap(SharingLog_ScanForShareTargetsStart* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.use_qr_code_)
+ sizeof(SharingLog_ScanForShareTargetsStart::_impl_.use_qr_code_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.session_id_)>(
reinterpret_cast<char*>(&_impl_.session_id_),
reinterpret_cast<char*>(&other->_impl_.session_id_));
}
// ===================================================================
class SharingLog_ScanForShareTargetsEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ScanForShareTargetsEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_._has_bits_);
};
SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
}
SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ScanForShareTargetsEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsEnd_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 SharingLog_ScanForShareTargetsEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ScanForShareTargetsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.session_id_ = {};
}
SharingLog_ScanForShareTargetsEnd::~SharingLog_ScanForShareTargetsEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
SharedDtor(*this);
}
inline void SharingLog_ScanForShareTargetsEnd::SharedDtor(MessageLite& self) {
SharingLog_ScanForShareTargetsEnd& this_ = static_cast<SharingLog_ScanForShareTargetsEnd&>(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 SharingLog_ScanForShareTargetsEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ScanForShareTargetsEnd(arena);
}
constexpr auto SharingLog_ScanForShareTargetsEnd::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ScanForShareTargetsEnd),
alignof(SharingLog_ScanForShareTargetsEnd));
}
constexpr auto SharingLog_ScanForShareTargetsEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<65>{
{
&_SharingLog_ScanForShareTargetsEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ScanForShareTargetsEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ScanForShareTargetsEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ScanForShareTargetsEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ScanForShareTargetsEnd>(), &SharingLog_ScanForShareTargetsEnd::ByteSizeLong,
&SharingLog_ScanForShareTargetsEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ScanForShareTargetsEnd_class_data_ =
SharingLog_ScanForShareTargetsEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ScanForShareTargetsEnd::GetClassData() const {
return SharingLog_ScanForShareTargetsEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
SharingLog_ScanForShareTargetsEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _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
SharingLog_ScanForShareTargetsEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_.session_id_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ScanForShareTargetsEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.session_id_ = ::int64_t{0};
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ScanForShareTargetsEnd& this_ = static_cast<const SharingLog_ScanForShareTargetsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ScanForShareTargetsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), 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:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ScanForShareTargetsEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_ScanForShareTargetsEnd& this_ = static_cast<const SharingLog_ScanForShareTargetsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ScanForShareTargetsEnd::ByteSizeLong() const {
const SharingLog_ScanForShareTargetsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
::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 int64 session_id = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_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 SharingLog_ScanForShareTargetsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ScanForShareTargetsEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_ScanForShareTargetsEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ScanForShareTargetsEnd::CopyFrom(const SharingLog_ScanForShareTargetsEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ScanForShareTargetsEnd::InternalSwap(SharingLog_ScanForShareTargetsEnd* 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_id_, other->_impl_.session_id_);
}
// ===================================================================
class SharingLog_AdvertiseDevicePresenceStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AdvertiseDevicePresenceStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_._has_bits_);
};
SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AdvertiseDevicePresenceStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_AdvertiseDevicePresenceStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_AdvertiseDevicePresenceStart* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, qr_code_flow_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::qr_code_flow_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AdvertiseDevicePresenceStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_AdvertiseDevicePresenceStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
0,
offsetof(Impl_, qr_code_flow_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::qr_code_flow_));
}
SharingLog_AdvertiseDevicePresenceStart::~SharingLog_AdvertiseDevicePresenceStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
SharedDtor(*this);
}
inline void SharingLog_AdvertiseDevicePresenceStart::SharedDtor(MessageLite& self) {
SharingLog_AdvertiseDevicePresenceStart& this_ = static_cast<SharingLog_AdvertiseDevicePresenceStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AdvertiseDevicePresenceStart(arena);
}
constexpr auto SharingLog_AdvertiseDevicePresenceStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_AdvertiseDevicePresenceStart),
alignof(SharingLog_AdvertiseDevicePresenceStart));
}
constexpr auto SharingLog_AdvertiseDevicePresenceStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<71>{
{
&_SharingLog_AdvertiseDevicePresenceStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AdvertiseDevicePresenceStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AdvertiseDevicePresenceStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AdvertiseDevicePresenceStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AdvertiseDevicePresenceStart>(), &SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong,
&SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<71> SharingLog_AdvertiseDevicePresenceStart_class_data_ =
SharingLog_AdvertiseDevicePresenceStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AdvertiseDevicePresenceStart::GetClassData() const {
return SharingLog_AdvertiseDevicePresenceStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 8, 4, 0, 2>
SharingLog_AdvertiseDevicePresenceStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_._has_bits_),
0, // no _extensions_
8, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967040, // skipmap
offsetof(decltype(_table_), field_entries),
8, // num_field_entries
4, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_AdvertiseDevicePresenceStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool qr_code_flow = 8;
{::_pbi::TcParser::FastV8S1,
{64, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.qr_code_flow_)}},
// optional int64 session_id = 1 [deprecated = true];
{::_pbi::TcParser::FastV64S1,
{8, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.session_id_)}},
// optional .location.nearby.proto.sharing.Visibility visibility = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 2, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.visibility_)}},
// optional .location.nearby.proto.sharing.SessionStatus status = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 3, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.status_)}},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 4;
{::_pbi::TcParser::FastEr0S1,
{32, 4, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.data_usage_)}},
// optional int32 device_name_size = 5 [deprecated = true];
{::_pbi::TcParser::FastV32S1,
{40, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.device_name_size_)}},
// optional string referrer_name = 6;
{::_pbi::TcParser::FastBS1,
{50, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.referrer_name_)}},
// optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7;
{::_pbi::TcParser::FastEr0S1,
{56, 6, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.advertising_mode_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.Visibility visibility = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.visibility_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.SessionStatus status = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.status_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.data_usage_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int32 device_name_size = 5 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.device_name_size_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional string referrer_name = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.advertising_mode_), _Internal::kHasBitsOffset + 6, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool qr_code_flow = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 5},
{0, 2},
{0, 3},
{0, 5},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AdvertiseDevicePresenceStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
::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_.referrer_name_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.qr_code_flow_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.qr_code_flow_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AdvertiseDevicePresenceStart& this_ = static_cast<const SharingLog_AdvertiseDevicePresenceStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AdvertiseDevicePresenceStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional .location.nearby.proto.sharing.Visibility visibility = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_visibility(), target);
}
// optional .location.nearby.proto.sharing.SessionStatus status = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_status(), target);
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this_._internal_data_usage(), target);
}
// optional int32 device_name_size = 5 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
stream, this_._internal_device_name_size(), target);
}
// optional string referrer_name = 6;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(6, _s, target);
}
// optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
7, this_._internal_advertising_mode(), target);
}
// optional bool qr_code_flow = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
8, this_._internal_qr_code_flow(), 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:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_AdvertiseDevicePresenceStart& this_ = static_cast<const SharingLog_AdvertiseDevicePresenceStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong() const {
const SharingLog_AdvertiseDevicePresenceStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
::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];
total_size += static_cast<bool>(0x00000080U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
// optional string referrer_name = 6;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional int64 session_id = 1 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional .location.nearby.proto.sharing.Visibility visibility = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_visibility());
}
// optional .location.nearby.proto.sharing.SessionStatus status = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage());
}
// optional int32 device_name_size = 5 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_device_name_size());
}
// optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_advertising_mode());
}
}
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 SharingLog_AdvertiseDevicePresenceStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AdvertiseDevicePresenceStart*>(&to_msg);
auto& from = static_cast<const SharingLog_AdvertiseDevicePresenceStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.visibility_ = from._impl_.visibility_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.data_usage_ = from._impl_.data_usage_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.device_name_size_ = from._impl_.device_name_size_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.advertising_mode_ = from._impl_.advertising_mode_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AdvertiseDevicePresenceStart::CopyFrom(const SharingLog_AdvertiseDevicePresenceStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AdvertiseDevicePresenceStart::InternalSwap(SharingLog_AdvertiseDevicePresenceStart* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.qr_code_flow_)
+ sizeof(SharingLog_AdvertiseDevicePresenceStart::_impl_.qr_code_flow_)
- PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.session_id_)>(
reinterpret_cast<char*>(&_impl_.session_id_),
reinterpret_cast<char*>(&other->_impl_.session_id_));
}
// ===================================================================
class SharingLog_AdvertiseDevicePresenceEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AdvertiseDevicePresenceEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_._has_bits_);
};
SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
}
SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AdvertiseDevicePresenceEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceEnd_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 SharingLog_AdvertiseDevicePresenceEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AdvertiseDevicePresenceEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.session_id_ = {};
}
SharingLog_AdvertiseDevicePresenceEnd::~SharingLog_AdvertiseDevicePresenceEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
SharedDtor(*this);
}
inline void SharingLog_AdvertiseDevicePresenceEnd::SharedDtor(MessageLite& self) {
SharingLog_AdvertiseDevicePresenceEnd& this_ = static_cast<SharingLog_AdvertiseDevicePresenceEnd&>(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 SharingLog_AdvertiseDevicePresenceEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AdvertiseDevicePresenceEnd(arena);
}
constexpr auto SharingLog_AdvertiseDevicePresenceEnd::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AdvertiseDevicePresenceEnd),
alignof(SharingLog_AdvertiseDevicePresenceEnd));
}
constexpr auto SharingLog_AdvertiseDevicePresenceEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<69>{
{
&_SharingLog_AdvertiseDevicePresenceEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AdvertiseDevicePresenceEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AdvertiseDevicePresenceEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AdvertiseDevicePresenceEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AdvertiseDevicePresenceEnd>(), &SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong,
&SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<69> SharingLog_AdvertiseDevicePresenceEnd_class_data_ =
SharingLog_AdvertiseDevicePresenceEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AdvertiseDevicePresenceEnd::GetClassData() const {
return SharingLog_AdvertiseDevicePresenceEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
SharingLog_AdvertiseDevicePresenceEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _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
SharingLog_AdvertiseDevicePresenceEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int64 session_id = 1 [deprecated = true];
{::_pbi::TcParser::FastV64S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_.session_id_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AdvertiseDevicePresenceEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.session_id_ = ::int64_t{0};
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AdvertiseDevicePresenceEnd& this_ = static_cast<const SharingLog_AdvertiseDevicePresenceEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AdvertiseDevicePresenceEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), 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:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_AdvertiseDevicePresenceEnd& this_ = static_cast<const SharingLog_AdvertiseDevicePresenceEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong() const {
const SharingLog_AdvertiseDevicePresenceEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
::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 int64 session_id = 1 [deprecated = true];
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_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 SharingLog_AdvertiseDevicePresenceEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AdvertiseDevicePresenceEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_AdvertiseDevicePresenceEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AdvertiseDevicePresenceEnd::CopyFrom(const SharingLog_AdvertiseDevicePresenceEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AdvertiseDevicePresenceEnd::InternalSwap(SharingLog_AdvertiseDevicePresenceEnd* 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_id_, other->_impl_.session_id_);
}
// ===================================================================
class SharingLog_SendFastInitialization::_Internal {
public:
};
SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendFastInitialization_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
}
SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendFastInitialization& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendFastInitialization_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 SharingLog_SendFastInitialization::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SendFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_SendFastInitialization::~SharingLog_SendFastInitialization() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
SharedDtor(*this);
}
inline void SharingLog_SendFastInitialization::SharedDtor(MessageLite& self) {
SharingLog_SendFastInitialization& this_ = static_cast<SharingLog_SendFastInitialization&>(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 SharingLog_SendFastInitialization::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendFastInitialization(arena);
}
constexpr auto SharingLog_SendFastInitialization::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendFastInitialization),
alignof(SharingLog_SendFastInitialization));
}
constexpr auto SharingLog_SendFastInitialization::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<65>{
{
&_SharingLog_SendFastInitialization_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendFastInitialization::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendFastInitialization>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendFastInitialization::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendFastInitialization>(), &SharingLog_SendFastInitialization::ByteSizeLong,
&SharingLog_SendFastInitialization::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendFastInitialization, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendFastInitialization",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<65> SharingLog_SendFastInitialization_class_data_ =
SharingLog_SendFastInitialization::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendFastInitialization::GetClassData() const {
return SharingLog_SendFastInitialization_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_SendFastInitialization::_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
SharingLog_SendFastInitialization_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendFastInitialization::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
::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 SharingLog_SendFastInitialization::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendFastInitialization& this_ = static_cast<const SharingLog_SendFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendFastInitialization::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
::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:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendFastInitialization::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendFastInitialization& this_ = static_cast<const SharingLog_SendFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendFastInitialization::ByteSizeLong() const {
const SharingLog_SendFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
::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 SharingLog_SendFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendFastInitialization*>(&to_msg);
auto& from = static_cast<const SharingLog_SendFastInitialization&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
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 SharingLog_SendFastInitialization::CopyFrom(const SharingLog_SendFastInitialization& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendFastInitialization::InternalSwap(SharingLog_SendFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_ReceiveFastInitialization::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ReceiveFastInitialization>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_._has_bits_);
};
SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveFastInitialization_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
}
SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceiveFastInitialization& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveFastInitialization_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 SharingLog_ReceiveFastInitialization::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ReceiveFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, time_elapse_since_screen_unlock_millis_),
0,
offsetof(Impl_, notifications_filtered_) -
offsetof(Impl_, time_elapse_since_screen_unlock_millis_) +
sizeof(Impl_::notifications_filtered_));
}
SharingLog_ReceiveFastInitialization::~SharingLog_ReceiveFastInitialization() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
SharedDtor(*this);
}
inline void SharingLog_ReceiveFastInitialization::SharedDtor(MessageLite& self) {
SharingLog_ReceiveFastInitialization& this_ = static_cast<SharingLog_ReceiveFastInitialization&>(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 SharingLog_ReceiveFastInitialization::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ReceiveFastInitialization(arena);
}
constexpr auto SharingLog_ReceiveFastInitialization::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ReceiveFastInitialization),
alignof(SharingLog_ReceiveFastInitialization));
}
constexpr auto SharingLog_ReceiveFastInitialization::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_ReceiveFastInitialization_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ReceiveFastInitialization::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ReceiveFastInitialization>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ReceiveFastInitialization::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ReceiveFastInitialization>(), &SharingLog_ReceiveFastInitialization::ByteSizeLong,
&SharingLog_ReceiveFastInitialization::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_ReceiveFastInitialization_class_data_ =
SharingLog_ReceiveFastInitialization::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ReceiveFastInitialization::GetClassData() const {
return SharingLog_ReceiveFastInitialization_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
SharingLog_ReceiveFastInitialization::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _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
SharingLog_ReceiveFastInitialization_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int64 time_elapse_since_screen_unlock_millis = 1;
{::_pbi::TcParser::FastV64S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.time_elapse_since_screen_unlock_millis_)}},
// optional bool notifications_enabled = 2;
{::_pbi::TcParser::FastV8S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_enabled_)}},
// optional bool notifications_filtered = 3;
{::_pbi::TcParser::FastV8S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_filtered_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 time_elapse_since_screen_unlock_millis = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.time_elapse_since_screen_unlock_millis_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional bool notifications_enabled = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_enabled_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool notifications_filtered = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_filtered_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ReceiveFastInitialization::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
::memset(&_impl_.time_elapse_since_screen_unlock_millis_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.notifications_filtered_) -
reinterpret_cast<char*>(&_impl_.time_elapse_since_screen_unlock_millis_)) + sizeof(_impl_.notifications_filtered_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveFastInitialization::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ReceiveFastInitialization& this_ = static_cast<const SharingLog_ReceiveFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveFastInitialization::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ReceiveFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 time_elapse_since_screen_unlock_millis = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_time_elapse_since_screen_unlock_millis(), target);
}
// optional bool notifications_enabled = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_notifications_enabled(), target);
}
// optional bool notifications_filtered = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
3, this_._internal_notifications_filtered(), 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:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ReceiveFastInitialization::ByteSizeLong(const MessageLite& base) {
const SharingLog_ReceiveFastInitialization& this_ = static_cast<const SharingLog_ReceiveFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ReceiveFastInitialization::ByteSizeLong() const {
const SharingLog_ReceiveFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
::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];
total_size += ::absl::popcount(0x00000006U & cached_has_bits) * 2;
{
// optional int64 time_elapse_since_screen_unlock_millis = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_time_elapse_since_screen_unlock_millis());
}
}
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 SharingLog_ReceiveFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ReceiveFastInitialization*>(&to_msg);
auto& from = static_cast<const SharingLog_ReceiveFastInitialization&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
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->_impl_.time_elapse_since_screen_unlock_millis_ = from._impl_.time_elapse_since_screen_unlock_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.notifications_enabled_ = from._impl_.notifications_enabled_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.notifications_filtered_ = from._impl_.notifications_filtered_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ReceiveFastInitialization::CopyFrom(const SharingLog_ReceiveFastInitialization& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ReceiveFastInitialization::InternalSwap(SharingLog_ReceiveFastInitialization* 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(SharingLog_ReceiveFastInitialization, _impl_.notifications_filtered_)
+ sizeof(SharingLog_ReceiveFastInitialization::_impl_.notifications_filtered_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.time_elapse_since_screen_unlock_millis_)>(
reinterpret_cast<char*>(&_impl_.time_elapse_since_screen_unlock_millis_),
reinterpret_cast<char*>(&other->_impl_.time_elapse_since_screen_unlock_millis_));
}
// ===================================================================
class SharingLog_DismissFastInitialization::_Internal {
public:
};
SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DismissFastInitialization_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
}
SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DismissFastInitialization& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DismissFastInitialization_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 SharingLog_DismissFastInitialization::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DismissFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_DismissFastInitialization::~SharingLog_DismissFastInitialization() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
SharedDtor(*this);
}
inline void SharingLog_DismissFastInitialization::SharedDtor(MessageLite& self) {
SharingLog_DismissFastInitialization& this_ = static_cast<SharingLog_DismissFastInitialization&>(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 SharingLog_DismissFastInitialization::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DismissFastInitialization(arena);
}
constexpr auto SharingLog_DismissFastInitialization::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DismissFastInitialization),
alignof(SharingLog_DismissFastInitialization));
}
constexpr auto SharingLog_DismissFastInitialization::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_DismissFastInitialization_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DismissFastInitialization::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DismissFastInitialization>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DismissFastInitialization::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DismissFastInitialization>(), &SharingLog_DismissFastInitialization::ByteSizeLong,
&SharingLog_DismissFastInitialization::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DismissFastInitialization, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DismissFastInitialization_class_data_ =
SharingLog_DismissFastInitialization::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DismissFastInitialization::GetClassData() const {
return SharingLog_DismissFastInitialization_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_DismissFastInitialization::_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
SharingLog_DismissFastInitialization_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DismissFastInitialization::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
::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 SharingLog_DismissFastInitialization::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DismissFastInitialization& this_ = static_cast<const SharingLog_DismissFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DismissFastInitialization::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DismissFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
::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:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DismissFastInitialization::ByteSizeLong(const MessageLite& base) {
const SharingLog_DismissFastInitialization& this_ = static_cast<const SharingLog_DismissFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DismissFastInitialization::ByteSizeLong() const {
const SharingLog_DismissFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
::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 SharingLog_DismissFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DismissFastInitialization*>(&to_msg);
auto& from = static_cast<const SharingLog_DismissFastInitialization&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
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 SharingLog_DismissFastInitialization::CopyFrom(const SharingLog_DismissFastInitialization& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DismissFastInitialization::InternalSwap(SharingLog_DismissFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_AutoDismissFastInitialization::_Internal {
public:
};
SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AutoDismissFastInitialization_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
}
SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AutoDismissFastInitialization& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AutoDismissFastInitialization_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 SharingLog_AutoDismissFastInitialization::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AutoDismissFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_AutoDismissFastInitialization::~SharingLog_AutoDismissFastInitialization() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
SharedDtor(*this);
}
inline void SharingLog_AutoDismissFastInitialization::SharedDtor(MessageLite& self) {
SharingLog_AutoDismissFastInitialization& this_ = static_cast<SharingLog_AutoDismissFastInitialization&>(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 SharingLog_AutoDismissFastInitialization::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AutoDismissFastInitialization(arena);
}
constexpr auto SharingLog_AutoDismissFastInitialization::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AutoDismissFastInitialization),
alignof(SharingLog_AutoDismissFastInitialization));
}
constexpr auto SharingLog_AutoDismissFastInitialization::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<72>{
{
&_SharingLog_AutoDismissFastInitialization_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AutoDismissFastInitialization::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AutoDismissFastInitialization>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AutoDismissFastInitialization::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AutoDismissFastInitialization>(), &SharingLog_AutoDismissFastInitialization::ByteSizeLong,
&SharingLog_AutoDismissFastInitialization::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AutoDismissFastInitialization, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<72> SharingLog_AutoDismissFastInitialization_class_data_ =
SharingLog_AutoDismissFastInitialization::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AutoDismissFastInitialization::GetClassData() const {
return SharingLog_AutoDismissFastInitialization_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_AutoDismissFastInitialization::_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
SharingLog_AutoDismissFastInitialization_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AutoDismissFastInitialization::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
::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 SharingLog_AutoDismissFastInitialization::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AutoDismissFastInitialization& this_ = static_cast<const SharingLog_AutoDismissFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AutoDismissFastInitialization::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AutoDismissFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
::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:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AutoDismissFastInitialization::ByteSizeLong(const MessageLite& base) {
const SharingLog_AutoDismissFastInitialization& this_ = static_cast<const SharingLog_AutoDismissFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AutoDismissFastInitialization::ByteSizeLong() const {
const SharingLog_AutoDismissFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
::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 SharingLog_AutoDismissFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AutoDismissFastInitialization*>(&to_msg);
auto& from = static_cast<const SharingLog_AutoDismissFastInitialization&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
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 SharingLog_AutoDismissFastInitialization::CopyFrom(const SharingLog_AutoDismissFastInitialization& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AutoDismissFastInitialization::InternalSwap(SharingLog_AutoDismissFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_EventMetadata::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_EventMetadata>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_._has_bits_);
};
SharingLog_EventMetadata::SharingLog_EventMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_EventMetadata_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
}
PROTOBUF_NDEBUG_INLINE SharingLog_EventMetadata::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
cloud_sharing_id_(arena, from.cloud_sharing_id_),
cloud_receiver_session_id_(arena, from.cloud_receiver_session_id_),
external_provider_name_(arena, from.external_provider_name_),
external_provider_id_(arena, from.external_provider_id_) {}
SharingLog_EventMetadata::SharingLog_EventMetadata(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_EventMetadata& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_EventMetadata_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_EventMetadata* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, use_case_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, use_case_),
offsetof(Impl_, vendor_id_) -
offsetof(Impl_, use_case_) +
sizeof(Impl_::vendor_id_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
}
PROTOBUF_NDEBUG_INLINE SharingLog_EventMetadata::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
cloud_sharing_id_(arena),
cloud_receiver_session_id_(arena),
external_provider_name_(arena),
external_provider_id_(arena) {}
inline void SharingLog_EventMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, use_case_),
0,
offsetof(Impl_, vendor_id_) -
offsetof(Impl_, use_case_) +
sizeof(Impl_::vendor_id_));
}
SharingLog_EventMetadata::~SharingLog_EventMetadata() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
SharedDtor(*this);
}
inline void SharingLog_EventMetadata::SharedDtor(MessageLite& self) {
SharingLog_EventMetadata& this_ = static_cast<SharingLog_EventMetadata&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.cloud_sharing_id_.Destroy();
this_._impl_.cloud_receiver_session_id_.Destroy();
this_._impl_.external_provider_name_.Destroy();
this_._impl_.external_provider_id_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_EventMetadata::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_EventMetadata(arena);
}
constexpr auto SharingLog_EventMetadata::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_EventMetadata),
alignof(SharingLog_EventMetadata));
}
constexpr auto SharingLog_EventMetadata::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_EventMetadata_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_EventMetadata::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_EventMetadata>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_EventMetadata::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_EventMetadata>(), &SharingLog_EventMetadata::ByteSizeLong,
&SharingLog_EventMetadata::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.EventMetadata",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_EventMetadata_class_data_ =
SharingLog_EventMetadata::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_EventMetadata::GetClassData() const {
return SharingLog_EventMetadata_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 12, 1, 0, 2>
SharingLog_EventMetadata::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_._has_bits_),
0, // no _extensions_
12, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294963200, // skipmap
offsetof(decltype(_table_), field_entries),
12, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_EventMetadata_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.SharingUseCase use_case = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 4, 8,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.use_case_)}},
// optional bool initial_opt_in = 2 [deprecated = true];
{::_pbi::TcParser::FastV8S1,
{16, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_opt_in_)}},
// optional bool opt_in = 3 [deprecated = true];
{::_pbi::TcParser::FastV8S1,
{24, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.opt_in_)}},
// optional bool initial_enable_status = 4 [deprecated = true];
{::_pbi::TcParser::FastV8S1,
{32, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_enable_status_)}},
// optional int64 flow_id = 5;
{::_pbi::TcParser::FastV64S1,
{40, 9, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.flow_id_)}},
// optional int64 session_id = 6;
{::_pbi::TcParser::FastV64S1,
{48, 10, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.session_id_)}},
// optional int32 vendor_id = 7;
{::_pbi::TcParser::FastV32S1,
{56, 11, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.vendor_id_)}},
// optional string cloud_sharing_id = 8;
{::_pbi::TcParser::FastBS1,
{66, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_sharing_id_)}},
// optional string cloud_receiver_session_id = 9;
{::_pbi::TcParser::FastBS1,
{74, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_receiver_session_id_)}},
// optional string external_provider_name = 10;
{::_pbi::TcParser::FastBS1,
{82, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_name_)}},
// optional string external_provider_id = 11;
{::_pbi::TcParser::FastBS1,
{90, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_id_)}},
// optional bool is_direct_share = 12;
{::_pbi::TcParser::FastV8S1,
{96, 8, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.is_direct_share_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.SharingUseCase use_case = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.use_case_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool initial_opt_in = 2 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_opt_in_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool opt_in = 3 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.opt_in_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool initial_enable_status = 4 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_enable_status_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional int64 flow_id = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.flow_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 session_id = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.session_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int32 vendor_id = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.vendor_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional string cloud_sharing_id = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_sharing_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string cloud_receiver_session_id = 9;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_receiver_session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string external_provider_name = 10;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string external_provider_id = 11;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional bool is_direct_share = 12;
{PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.is_direct_share_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 8},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_EventMetadata::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
::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, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.cloud_sharing_id_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.cloud_receiver_session_id_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_impl_.external_provider_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_impl_.external_provider_id_.ClearNonDefaultToEmpty();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
::memset(&_impl_.use_case_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.initial_enable_status_) -
reinterpret_cast<char*>(&_impl_.use_case_)) + sizeof(_impl_.initial_enable_status_));
}
if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
::memset(&_impl_.is_direct_share_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.vendor_id_) -
reinterpret_cast<char*>(&_impl_.is_direct_share_)) + sizeof(_impl_.vendor_id_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_EventMetadata::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_EventMetadata& this_ = static_cast<const SharingLog_EventMetadata&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_EventMetadata::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_EventMetadata& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.SharingUseCase use_case = 1;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_use_case(), target);
}
// optional bool initial_opt_in = 2 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_initial_opt_in(), target);
}
// optional bool opt_in = 3 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
3, this_._internal_opt_in(), target);
}
// optional bool initial_enable_status = 4 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
4, this_._internal_initial_enable_status(), target);
}
// optional int64 flow_id = 5;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
stream, this_._internal_flow_id(), target);
}
// optional int64 session_id = 6;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
stream, this_._internal_session_id(), target);
}
// optional int32 vendor_id = 7;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
stream, this_._internal_vendor_id(), target);
}
// optional string cloud_sharing_id = 8;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_cloud_sharing_id();
target = stream->WriteStringMaybeAliased(8, _s, target);
}
// optional string cloud_receiver_session_id = 9;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_cloud_receiver_session_id();
target = stream->WriteStringMaybeAliased(9, _s, target);
}
// optional string external_provider_name = 10;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
const ::std::string& _s = this_._internal_external_provider_name();
target = stream->WriteStringMaybeAliased(10, _s, target);
}
// optional string external_provider_id = 11;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
const ::std::string& _s = this_._internal_external_provider_id();
target = stream->WriteStringMaybeAliased(11, _s, target);
}
// optional bool is_direct_share = 12;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
12, this_._internal_is_direct_share(), 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:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_EventMetadata::ByteSizeLong(const MessageLite& base) {
const SharingLog_EventMetadata& this_ = static_cast<const SharingLog_EventMetadata&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_EventMetadata::ByteSizeLong() const {
const SharingLog_EventMetadata& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
::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];
total_size += ::absl::popcount(0x000001e0U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
// optional string cloud_sharing_id = 8;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_cloud_sharing_id());
}
// optional string cloud_receiver_session_id = 9;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_cloud_receiver_session_id());
}
// optional string external_provider_name = 10;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_external_provider_name());
}
// optional string external_provider_id = 11;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_external_provider_id());
}
// optional .location.nearby.proto.sharing.SharingUseCase use_case = 1;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_use_case());
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000e00U)) {
// optional int64 flow_id = 5;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_flow_id());
}
// optional int64 session_id = 6;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int32 vendor_id = 7;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_vendor_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 SharingLog_EventMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_EventMetadata*>(&to_msg);
auto& from = static_cast<const SharingLog_EventMetadata&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_cloud_sharing_id(from._internal_cloud_sharing_id());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_cloud_receiver_session_id(from._internal_cloud_receiver_session_id());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_internal_set_external_provider_name(from._internal_external_provider_name());
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_internal_set_external_provider_id(from._internal_external_provider_id());
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.use_case_ = from._impl_.use_case_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.initial_opt_in_ = from._impl_.initial_opt_in_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.opt_in_ = from._impl_.opt_in_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.initial_enable_status_ = from._impl_.initial_enable_status_;
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
_this->_impl_.is_direct_share_ = from._impl_.is_direct_share_;
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
_this->_impl_.flow_id_ = from._impl_.flow_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
_this->_impl_.vendor_id_ = from._impl_.vendor_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_EventMetadata::CopyFrom(const SharingLog_EventMetadata& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_EventMetadata::InternalSwap(SharingLog_EventMetadata* 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_.cloud_sharing_id_, &other->_impl_.cloud_sharing_id_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_receiver_session_id_, &other->_impl_.cloud_receiver_session_id_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.external_provider_name_, &other->_impl_.external_provider_name_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.external_provider_id_, &other->_impl_.external_provider_id_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.vendor_id_)
+ sizeof(SharingLog_EventMetadata::_impl_.vendor_id_)
- PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.use_case_)>(
reinterpret_cast<char*>(&_impl_.use_case_),
reinterpret_cast<char*>(&other->_impl_.use_case_));
}
// ===================================================================
class SharingLog_DiscoverShareTarget::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_DiscoverShareTarget>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_._has_bits_);
};
void SharingLog_DiscoverShareTarget::clear_duration_since_scanning() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.duration_since_scanning_ != nullptr) _impl_.duration_since_scanning_->Clear();
ClearHasBit(_impl_._has_bits_[0],
0x00000008U);
}
SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DiscoverShareTarget_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
}
PROTOBUF_NDEBUG_INLINE SharingLog_DiscoverShareTarget::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_),
cloud_receiver_session_id_(arena, from.cloud_receiver_session_id_) {}
SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_DiscoverShareTarget& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DiscoverShareTarget_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_DiscoverShareTarget* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
_impl_.duration_since_scanning_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, latency_since_activity_start_millis_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::latency_since_activity_start_millis_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
}
PROTOBUF_NDEBUG_INLINE SharingLog_DiscoverShareTarget::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena),
cloud_receiver_session_id_(arena),
latency_since_activity_start_millis_{::int64_t{-1}} {}
inline void SharingLog_DiscoverShareTarget::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, scan_type_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::scan_type_));
}
SharingLog_DiscoverShareTarget::~SharingLog_DiscoverShareTarget() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
SharedDtor(*this);
}
inline void SharingLog_DiscoverShareTarget::SharedDtor(MessageLite& self) {
SharingLog_DiscoverShareTarget& this_ = static_cast<SharingLog_DiscoverShareTarget&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
this_._impl_.cloud_receiver_session_id_.Destroy();
delete this_._impl_.share_target_info_;
delete this_._impl_.duration_since_scanning_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DiscoverShareTarget(arena);
}
constexpr auto SharingLog_DiscoverShareTarget::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_DiscoverShareTarget),
alignof(SharingLog_DiscoverShareTarget));
}
constexpr auto SharingLog_DiscoverShareTarget::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_DiscoverShareTarget_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DiscoverShareTarget::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DiscoverShareTarget>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DiscoverShareTarget::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DiscoverShareTarget>(), &SharingLog_DiscoverShareTarget::ByteSizeLong,
&SharingLog_DiscoverShareTarget::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DiscoverShareTarget_class_data_ =
SharingLog_DiscoverShareTarget::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DiscoverShareTarget::GetClassData() const {
return SharingLog_DiscoverShareTarget_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 8, 3, 0, 2>
SharingLog_DiscoverShareTarget::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_._has_bits_),
0, // no _extensions_
8, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967040, // skipmap
offsetof(decltype(_table_), field_entries),
8, // num_field_entries
3, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_DiscoverShareTarget_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional string cloud_receiver_session_id = 8;
{::_pbi::TcParser::FastBS1,
{66, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.cloud_receiver_session_id_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.share_target_info_)}},
// optional .google.protobuf.Duration duration_since_scanning = 2;
{::_pbi::TcParser::FastMtS1,
{18, 3, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.duration_since_scanning_)}},
// optional int64 session_id = 3;
{::_pbi::TcParser::FastV64S1,
{24, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.session_id_)}},
// optional int64 flow_id = 4;
{::_pbi::TcParser::FastV64S1,
{32, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.flow_id_)}},
// optional string referrer_name = 5;
{::_pbi::TcParser::FastBS1,
{42, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.referrer_name_)}},
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
{::_pbi::TcParser::FastV64S1,
{48, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.latency_since_activity_start_millis_)}},
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
{::_pbi::TcParser::FastEr0S1,
{56, 6, 4,
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.scan_type_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.share_target_info_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .google.protobuf.Duration duration_since_scanning = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.duration_since_scanning_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 session_id = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.session_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 flow_id = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.flow_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional string referrer_name = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.latency_since_activity_start_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.scan_type_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional string cloud_receiver_session_id = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.cloud_receiver_session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
{::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
{0, 4},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DiscoverShareTarget::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
::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, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.referrer_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.cloud_receiver_session_id_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(_impl_.duration_since_scanning_ != nullptr);
_impl_.duration_since_scanning_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.scan_type_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.scan_type_));
_impl_.latency_since_activity_start_millis_ = ::int64_t{-1};
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DiscoverShareTarget& this_ = static_cast<const SharingLog_DiscoverShareTarget&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DiscoverShareTarget& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional .google.protobuf.Duration duration_since_scanning = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.duration_since_scanning_, this_._impl_.duration_since_scanning_->GetCachedSize(), target,
stream);
}
// optional int64 session_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_session_id(), target);
}
// optional int64 flow_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_flow_id(), target);
}
// optional string referrer_name = 5;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
stream, this_._internal_latency_since_activity_start_millis(), target);
}
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
7, this_._internal_scan_type(), target);
}
// optional string cloud_receiver_session_id = 8;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_cloud_receiver_session_id();
target = stream->WriteStringMaybeAliased(8, _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:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DiscoverShareTarget::ByteSizeLong(const MessageLite& base) {
const SharingLog_DiscoverShareTarget& this_ = static_cast<const SharingLog_DiscoverShareTarget&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DiscoverShareTarget::ByteSizeLong() const {
const SharingLog_DiscoverShareTarget& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
::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, 0x000000ffU)) {
// optional string referrer_name = 5;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional string cloud_receiver_session_id = 8;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_cloud_receiver_session_id());
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional .google.protobuf.Duration duration_since_scanning = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.duration_since_scanning_);
}
// optional int64 session_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int64 flow_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_flow_id());
}
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_scan_type());
}
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_latency_since_activity_start_millis());
}
}
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 SharingLog_DiscoverShareTarget::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DiscoverShareTarget*>(&to_msg);
auto& from = static_cast<const SharingLog_DiscoverShareTarget&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_cloud_receiver_session_id(from._internal_cloud_receiver_session_id());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.duration_since_scanning_ != nullptr);
if (_this->_impl_.duration_since_scanning_ == nullptr) {
_this->_impl_.duration_since_scanning_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_);
} else {
_this->_impl_.duration_since_scanning_->MergeFrom(*from._impl_.duration_since_scanning_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.flow_id_ = from._impl_.flow_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.scan_type_ = from._impl_.scan_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.latency_since_activity_start_millis_ = from._impl_.latency_since_activity_start_millis_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_DiscoverShareTarget::CopyFrom(const SharingLog_DiscoverShareTarget& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DiscoverShareTarget::InternalSwap(SharingLog_DiscoverShareTarget* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_receiver_session_id_, &other->_impl_.cloud_receiver_session_id_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.latency_since_activity_start_millis_)
+ sizeof(SharingLog_DiscoverShareTarget::_impl_.latency_since_activity_start_millis_)
- PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_ParsingFailedEndpointId::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ParsingFailedEndpointId>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_._has_bits_);
};
void SharingLog_ParsingFailedEndpointId::clear_duration_since_scanning() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.duration_since_scanning_ != nullptr) _impl_.duration_since_scanning_->Clear();
ClearHasBit(_impl_._has_bits_[0],
0x00000004U);
}
void SharingLog_ParsingFailedEndpointId::clear_duration_since_last_sync() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.duration_since_last_sync_ != nullptr) _impl_.duration_since_last_sync_->Clear();
ClearHasBit(_impl_._has_bits_[0],
0x00000008U);
}
SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ParsingFailedEndpointId_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ParsingFailedEndpointId::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
endpoint_id_(arena, from.endpoint_id_),
referrer_name_(arena, from.referrer_name_) {}
SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_ParsingFailedEndpointId& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ParsingFailedEndpointId_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_ParsingFailedEndpointId* 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_.duration_since_scanning_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_)
: nullptr;
_impl_.duration_since_last_sync_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_last_sync_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, latency_since_activity_start_millis_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::latency_since_activity_start_millis_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ParsingFailedEndpointId::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
endpoint_id_(arena),
referrer_name_(arena),
latency_since_activity_start_millis_{::int64_t{-1}} {}
inline void SharingLog_ParsingFailedEndpointId::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, duration_since_scanning_),
0,
offsetof(Impl_, discovery_mode_) -
offsetof(Impl_, duration_since_scanning_) +
sizeof(Impl_::discovery_mode_));
}
SharingLog_ParsingFailedEndpointId::~SharingLog_ParsingFailedEndpointId() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
SharedDtor(*this);
}
inline void SharingLog_ParsingFailedEndpointId::SharedDtor(MessageLite& self) {
SharingLog_ParsingFailedEndpointId& this_ = static_cast<SharingLog_ParsingFailedEndpointId&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.endpoint_id_.Destroy();
this_._impl_.referrer_name_.Destroy();
delete this_._impl_.duration_since_scanning_;
delete this_._impl_.duration_since_last_sync_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ParsingFailedEndpointId(arena);
}
constexpr auto SharingLog_ParsingFailedEndpointId::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ParsingFailedEndpointId),
alignof(SharingLog_ParsingFailedEndpointId));
}
constexpr auto SharingLog_ParsingFailedEndpointId::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_ParsingFailedEndpointId_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ParsingFailedEndpointId::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ParsingFailedEndpointId>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ParsingFailedEndpointId::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ParsingFailedEndpointId>(), &SharingLog_ParsingFailedEndpointId::ByteSizeLong,
&SharingLog_ParsingFailedEndpointId::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ParsingFailedEndpointId_class_data_ =
SharingLog_ParsingFailedEndpointId::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ParsingFailedEndpointId::GetClassData() const {
return SharingLog_ParsingFailedEndpointId_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 10, 5, 0, 2>
SharingLog_ParsingFailedEndpointId::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_._has_bits_),
0, // no _extensions_
10, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294966272, // skipmap
offsetof(decltype(_table_), field_entries),
10, // num_field_entries
5, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ParsingFailedEndpointId_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional string endpoint_id = 1;
{::_pbi::TcParser::FastBS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.endpoint_id_)}},
// optional .google.protobuf.Duration duration_since_scanning = 2;
{::_pbi::TcParser::FastMtS1,
{18, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_scanning_)}},
// optional int64 session_id = 3;
{::_pbi::TcParser::FastV64S1,
{24, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.session_id_)}},
// optional int64 flow_id = 4;
{::_pbi::TcParser::FastV64S1,
{32, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.flow_id_)}},
// optional string referrer_name = 5;
{::_pbi::TcParser::FastBS1,
{42, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.referrer_name_)}},
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
{::_pbi::TcParser::FastV64S1,
{48, 9, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.latency_since_activity_start_millis_)}},
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
{::_pbi::TcParser::FastEr0S1,
{56, 6, 4,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.scan_type_)}},
// optional .google.protobuf.Duration duration_since_last_sync = 8;
{::_pbi::TcParser::FastMtS1,
{66, 3, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_last_sync_)}},
// optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9;
{::_pbi::TcParser::FastEr0S1,
{72, 7, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.parsing_failed_type_)}},
// optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10;
{::_pbi::TcParser::FastEr0S1,
{80, 8, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.discovery_mode_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional string endpoint_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .google.protobuf.Duration duration_since_scanning = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_scanning_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 session_id = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.session_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 flow_id = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.flow_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional string referrer_name = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.referrer_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.latency_since_activity_start_millis_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.scan_type_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .google.protobuf.Duration duration_since_last_sync = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_last_sync_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.parsing_failed_type_), _Internal::kHasBitsOffset + 7, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10;
{PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.discovery_mode_), _Internal::kHasBitsOffset + 8, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
{::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
{0, 4},
{0, 2},
{0, 5},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ParsingFailedEndpointId::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
::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, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.endpoint_id_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.referrer_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.duration_since_scanning_ != nullptr);
_impl_.duration_since_scanning_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(_impl_.duration_since_last_sync_ != nullptr);
_impl_.duration_since_last_sync_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.parsing_failed_type_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.parsing_failed_type_));
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
_impl_.discovery_mode_ = 0;
_impl_.latency_since_activity_start_millis_ = ::int64_t{-1};
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ParsingFailedEndpointId& this_ = static_cast<const SharingLog_ParsingFailedEndpointId&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ParsingFailedEndpointId& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string endpoint_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_endpoint_id();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional .google.protobuf.Duration duration_since_scanning = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.duration_since_scanning_, this_._impl_.duration_since_scanning_->GetCachedSize(), target,
stream);
}
// optional int64 session_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_session_id(), target);
}
// optional int64 flow_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_flow_id(), target);
}
// optional string referrer_name = 5;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
stream, this_._internal_latency_since_activity_start_millis(), target);
}
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
7, this_._internal_scan_type(), target);
}
// optional .google.protobuf.Duration duration_since_last_sync = 8;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
8, *this_._impl_.duration_since_last_sync_, this_._impl_.duration_since_last_sync_->GetCachedSize(), target,
stream);
}
// optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
9, this_._internal_parsing_failed_type(), target);
}
// optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
10, this_._internal_discovery_mode(), 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:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ParsingFailedEndpointId::ByteSizeLong(const MessageLite& base) {
const SharingLog_ParsingFailedEndpointId& this_ = static_cast<const SharingLog_ParsingFailedEndpointId&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ParsingFailedEndpointId::ByteSizeLong() const {
const SharingLog_ParsingFailedEndpointId& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
::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, 0x000000ffU)) {
// optional string endpoint_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_endpoint_id());
}
// optional string referrer_name = 5;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional .google.protobuf.Duration duration_since_scanning = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.duration_since_scanning_);
}
// optional .google.protobuf.Duration duration_since_last_sync = 8;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.duration_since_last_sync_);
}
// optional int64 session_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int64 flow_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_flow_id());
}
// optional .location.nearby.proto.sharing.ScanType scan_type = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_scan_type());
}
// optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_parsing_failed_type());
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
// optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_discovery_mode());
}
// optional int64 latency_since_activity_start_millis = 6 [default = -1];
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_latency_since_activity_start_millis());
}
}
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 SharingLog_ParsingFailedEndpointId::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ParsingFailedEndpointId*>(&to_msg);
auto& from = static_cast<const SharingLog_ParsingFailedEndpointId&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_endpoint_id(from._internal_endpoint_id());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.duration_since_scanning_ != nullptr);
if (_this->_impl_.duration_since_scanning_ == nullptr) {
_this->_impl_.duration_since_scanning_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_);
} else {
_this->_impl_.duration_since_scanning_->MergeFrom(*from._impl_.duration_since_scanning_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.duration_since_last_sync_ != nullptr);
if (_this->_impl_.duration_since_last_sync_ == nullptr) {
_this->_impl_.duration_since_last_sync_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_last_sync_);
} else {
_this->_impl_.duration_since_last_sync_->MergeFrom(*from._impl_.duration_since_last_sync_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.flow_id_ = from._impl_.flow_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.scan_type_ = from._impl_.scan_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.parsing_failed_type_ = from._impl_.parsing_failed_type_;
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
_this->_impl_.discovery_mode_ = from._impl_.discovery_mode_;
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
_this->_impl_.latency_since_activity_start_millis_ = from._impl_.latency_since_activity_start_millis_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ParsingFailedEndpointId::CopyFrom(const SharingLog_ParsingFailedEndpointId& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ParsingFailedEndpointId::InternalSwap(SharingLog_ParsingFailedEndpointId* 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_.endpoint_id_, &other->_impl_.endpoint_id_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.latency_since_activity_start_millis_)
+ sizeof(SharingLog_ParsingFailedEndpointId::_impl_.latency_since_activity_start_millis_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_scanning_)>(
reinterpret_cast<char*>(&_impl_.duration_since_scanning_),
reinterpret_cast<char*>(&other->_impl_.duration_since_scanning_));
}
// ===================================================================
class SharingLog_DescribeAttachments::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_DescribeAttachments>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_._has_bits_);
};
void SharingLog_DescribeAttachments::clear_download_duration() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.download_duration_ != nullptr) _impl_.download_duration_->Clear();
ClearHasBit(_impl_._has_bits_[0],
0x00000002U);
}
SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DescribeAttachments_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
}
PROTOBUF_NDEBUG_INLINE SharingLog_DescribeAttachments::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_DescribeAttachments& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DescribeAttachments_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_DescribeAttachments* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.download_duration_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.download_duration_)
: nullptr;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
}
PROTOBUF_NDEBUG_INLINE SharingLog_DescribeAttachments::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DescribeAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, download_duration_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::download_duration_));
}
SharingLog_DescribeAttachments::~SharingLog_DescribeAttachments() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
SharedDtor(*this);
}
inline void SharingLog_DescribeAttachments::SharedDtor(MessageLite& self) {
SharingLog_DescribeAttachments& this_ = static_cast<SharingLog_DescribeAttachments&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
delete this_._impl_.download_duration_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_DescribeAttachments::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DescribeAttachments(arena);
}
constexpr auto SharingLog_DescribeAttachments::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DescribeAttachments),
alignof(SharingLog_DescribeAttachments));
}
constexpr auto SharingLog_DescribeAttachments::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_DescribeAttachments_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DescribeAttachments::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DescribeAttachments>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DescribeAttachments::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DescribeAttachments>(), &SharingLog_DescribeAttachments::ByteSizeLong,
&SharingLog_DescribeAttachments::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DescribeAttachments",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DescribeAttachments_class_data_ =
SharingLog_DescribeAttachments::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DescribeAttachments::GetClassData() const {
return SharingLog_DescribeAttachments_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_DescribeAttachments::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_DescribeAttachments_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .google.protobuf.Duration download_duration = 2;
{::_pbi::TcParser::FastMtS1,
{18, 1, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.download_duration_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.attachments_info_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .google.protobuf.Duration download_duration = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.download_duration_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DescribeAttachments::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
::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)) {
ABSL_DCHECK(_impl_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.download_duration_ != nullptr);
_impl_.download_duration_->Clear();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_DescribeAttachments::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DescribeAttachments& this_ = static_cast<const SharingLog_DescribeAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DescribeAttachments::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DescribeAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional .google.protobuf.Duration download_duration = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.download_duration_, this_._impl_.download_duration_->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:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DescribeAttachments::ByteSizeLong(const MessageLite& base) {
const SharingLog_DescribeAttachments& this_ = static_cast<const SharingLog_DescribeAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DescribeAttachments::ByteSizeLong() const {
const SharingLog_DescribeAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
::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 .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional .google.protobuf.Duration download_duration = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.download_duration_);
}
}
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 SharingLog_DescribeAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DescribeAttachments*>(&to_msg);
auto& from = static_cast<const SharingLog_DescribeAttachments&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
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_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.download_duration_ != nullptr);
if (_this->_impl_.download_duration_ == nullptr) {
_this->_impl_.download_duration_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.download_duration_);
} else {
_this->_impl_.download_duration_->MergeFrom(*from._impl_.download_duration_);
}
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_DescribeAttachments::CopyFrom(const SharingLog_DescribeAttachments& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DescribeAttachments::InternalSwap(SharingLog_DescribeAttachments* 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(SharingLog_DescribeAttachments, _impl_.download_duration_)
+ sizeof(SharingLog_DescribeAttachments::_impl_.download_duration_)
- PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_SendIntroduction::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SendIntroduction>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_._has_bits_);
};
SharingLog_SendIntroduction::SharingLog_SendIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendIntroduction_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendIntroduction::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_SendIntroduction::SharingLog_SendIntroduction(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_SendIntroduction& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendIntroduction_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_SendIntroduction* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, concurrent_connections_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::concurrent_connections_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendIntroduction::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SendIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, concurrent_connections_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::concurrent_connections_));
}
SharingLog_SendIntroduction::~SharingLog_SendIntroduction() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
SharedDtor(*this);
}
inline void SharingLog_SendIntroduction::SharedDtor(MessageLite& self) {
SharingLog_SendIntroduction& this_ = static_cast<SharingLog_SendIntroduction&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_SendIntroduction::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendIntroduction(arena);
}
constexpr auto SharingLog_SendIntroduction::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendIntroduction),
alignof(SharingLog_SendIntroduction));
}
constexpr auto SharingLog_SendIntroduction::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_SendIntroduction_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendIntroduction::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendIntroduction>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendIntroduction::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendIntroduction>(), &SharingLog_SendIntroduction::ByteSizeLong,
&SharingLog_SendIntroduction::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendIntroduction",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_SendIntroduction_class_data_ =
SharingLog_SendIntroduction::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendIntroduction::GetClassData() const {
return SharingLog_SendIntroduction_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
SharingLog_SendIntroduction::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SendIntroduction_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int32 concurrent_connections = 4;
{::_pbi::TcParser::FastV32S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.concurrent_connections_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.share_target_info_)}},
// optional int64 session_id = 2;
{::_pbi::TcParser::FastV64S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.session_id_)}},
// optional int32 transfer_position = 3;
{::_pbi::TcParser::FastV32S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.transfer_position_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.share_target_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 session_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int32 transfer_position = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.transfer_position_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 concurrent_connections = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendIntroduction::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
::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_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.concurrent_connections_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SendIntroduction::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendIntroduction& this_ = static_cast<const SharingLog_SendIntroduction&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendIntroduction::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendIntroduction& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_session_id(), target);
}
// optional int32 transfer_position = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_transfer_position(), target);
}
// optional int32 concurrent_connections = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
stream, this_._internal_concurrent_connections(), 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:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendIntroduction::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendIntroduction& this_ = static_cast<const SharingLog_SendIntroduction&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendIntroduction::ByteSizeLong() const {
const SharingLog_SendIntroduction& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int32 transfer_position = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_transfer_position());
}
// optional int32 concurrent_connections = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_concurrent_connections());
}
}
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 SharingLog_SendIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendIntroduction*>(&to_msg);
auto& from = static_cast<const SharingLog_SendIntroduction&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.transfer_position_ = from._impl_.transfer_position_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SendIntroduction::CopyFrom(const SharingLog_SendIntroduction& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendIntroduction::InternalSwap(SharingLog_SendIntroduction* 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(SharingLog_SendIntroduction, _impl_.concurrent_connections_)
+ sizeof(SharingLog_SendIntroduction::_impl_.concurrent_connections_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_ReceiveIntroduction::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ReceiveIntroduction>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_._has_bits_);
};
SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveIntroduction_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveIntroduction::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_ReceiveIntroduction& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveIntroduction_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_ReceiveIntroduction* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
_impl_.session_id_ = from._impl_.session_id_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveIntroduction::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_ReceiveIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, session_id_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::session_id_));
}
SharingLog_ReceiveIntroduction::~SharingLog_ReceiveIntroduction() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
SharedDtor(*this);
}
inline void SharingLog_ReceiveIntroduction::SharedDtor(MessageLite& self) {
SharingLog_ReceiveIntroduction& this_ = static_cast<SharingLog_ReceiveIntroduction&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ReceiveIntroduction(arena);
}
constexpr auto SharingLog_ReceiveIntroduction::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ReceiveIntroduction),
alignof(SharingLog_ReceiveIntroduction));
}
constexpr auto SharingLog_ReceiveIntroduction::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_ReceiveIntroduction_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ReceiveIntroduction::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ReceiveIntroduction>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ReceiveIntroduction::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ReceiveIntroduction>(), &SharingLog_ReceiveIntroduction::ByteSizeLong,
&SharingLog_ReceiveIntroduction::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_ReceiveIntroduction_class_data_ =
SharingLog_ReceiveIntroduction::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ReceiveIntroduction::GetClassData() const {
return SharingLog_ReceiveIntroduction_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
SharingLog_ReceiveIntroduction::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_._has_bits_),
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ReceiveIntroduction_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.session_id_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2;
{::_pbi::TcParser::FastMtS1,
{18, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.share_target_info_)}},
// optional string referrer_name = 3;
{::_pbi::TcParser::FastBS1,
{26, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.referrer_name_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string referrer_name = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ReceiveIntroduction::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
::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_.referrer_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
}
_impl_.session_id_ = ::int64_t{0};
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ReceiveIntroduction& this_ = static_cast<const SharingLog_ReceiveIntroduction&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ReceiveIntroduction& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional string referrer_name = 3;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(3, _s, target);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ReceiveIntroduction::ByteSizeLong(const MessageLite& base) {
const SharingLog_ReceiveIntroduction& this_ = static_cast<const SharingLog_ReceiveIntroduction&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ReceiveIntroduction::ByteSizeLong() const {
const SharingLog_ReceiveIntroduction& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
::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 referrer_name = 3;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_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 SharingLog_ReceiveIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ReceiveIntroduction*>(&to_msg);
auto& from = static_cast<const SharingLog_ReceiveIntroduction&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
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_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ReceiveIntroduction::CopyFrom(const SharingLog_ReceiveIntroduction& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ReceiveIntroduction::InternalSwap(SharingLog_ReceiveIntroduction* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.session_id_)
+ sizeof(SharingLog_ReceiveIntroduction::_impl_.session_id_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_RespondToIntroduction::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_RespondToIntroduction>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_._has_bits_);
};
SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RespondToIntroduction_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
}
SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RespondToIntroduction& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RespondToIntroduction_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 SharingLog_RespondToIntroduction::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_RespondToIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
0,
offsetof(Impl_, qr_code_flow_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::qr_code_flow_));
}
SharingLog_RespondToIntroduction::~SharingLog_RespondToIntroduction() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
SharedDtor(*this);
}
inline void SharingLog_RespondToIntroduction::SharedDtor(MessageLite& self) {
SharingLog_RespondToIntroduction& this_ = static_cast<SharingLog_RespondToIntroduction&>(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 SharingLog_RespondToIntroduction::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_RespondToIntroduction(arena);
}
constexpr auto SharingLog_RespondToIntroduction::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RespondToIntroduction),
alignof(SharingLog_RespondToIntroduction));
}
constexpr auto SharingLog_RespondToIntroduction::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<64>{
{
&_SharingLog_RespondToIntroduction_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_RespondToIntroduction::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_RespondToIntroduction>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_RespondToIntroduction::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_RespondToIntroduction>(), &SharingLog_RespondToIntroduction::ByteSizeLong,
&SharingLog_RespondToIntroduction::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<64> SharingLog_RespondToIntroduction_class_data_ =
SharingLog_RespondToIntroduction::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_RespondToIntroduction::GetClassData() const {
return SharingLog_RespondToIntroduction_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
SharingLog_RespondToIntroduction::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_._has_bits_),
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_RespondToIntroduction_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.action_)}},
// optional int64 session_id = 2;
{::_pbi::TcParser::FastV64S1,
{16, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.session_id_)}},
// optional bool qr_code_flow = 3;
{::_pbi::TcParser::FastV8S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.qr_code_flow_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.action_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 session_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional bool qr_code_flow = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_RespondToIntroduction::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.qr_code_flow_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.qr_code_flow_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_RespondToIntroduction::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_RespondToIntroduction& this_ = static_cast<const SharingLog_RespondToIntroduction&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_RespondToIntroduction::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_RespondToIntroduction& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_action(), target);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_session_id(), target);
}
// optional bool qr_code_flow = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
3, this_._internal_qr_code_flow(), 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:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_RespondToIntroduction::ByteSizeLong(const MessageLite& base) {
const SharingLog_RespondToIntroduction& this_ = static_cast<const SharingLog_RespondToIntroduction&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_RespondToIntroduction::ByteSizeLong() const {
const SharingLog_RespondToIntroduction& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
::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];
total_size += static_cast<bool>(0x00000004U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action());
}
}
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 SharingLog_RespondToIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_RespondToIntroduction*>(&to_msg);
auto& from = static_cast<const SharingLog_RespondToIntroduction&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
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->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.action_ = from._impl_.action_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_RespondToIntroduction::CopyFrom(const SharingLog_RespondToIntroduction& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_RespondToIntroduction::InternalSwap(SharingLog_RespondToIntroduction* 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(SharingLog_RespondToIntroduction, _impl_.qr_code_flow_)
+ sizeof(SharingLog_RespondToIntroduction::_impl_.qr_code_flow_)
- PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.session_id_)>(
reinterpret_cast<char*>(&_impl_.session_id_),
reinterpret_cast<char*>(&other->_impl_.session_id_));
}
// ===================================================================
class SharingLog_SendAttachmentsStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SendAttachmentsStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_._has_bits_);
};
SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_SendAttachmentsStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_SendAttachmentsStart* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, advanced_protection_mismatch_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::advanced_protection_mismatch_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SendAttachmentsStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, advanced_protection_mismatch_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::advanced_protection_mismatch_));
}
SharingLog_SendAttachmentsStart::~SharingLog_SendAttachmentsStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
SharedDtor(*this);
}
inline void SharingLog_SendAttachmentsStart::SharedDtor(MessageLite& self) {
SharingLog_SendAttachmentsStart& this_ = static_cast<SharingLog_SendAttachmentsStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendAttachmentsStart(arena);
}
constexpr auto SharingLog_SendAttachmentsStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendAttachmentsStart),
alignof(SharingLog_SendAttachmentsStart));
}
constexpr auto SharingLog_SendAttachmentsStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<63>{
{
&_SharingLog_SendAttachmentsStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendAttachmentsStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendAttachmentsStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendAttachmentsStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendAttachmentsStart>(), &SharingLog_SendAttachmentsStart::ByteSizeLong,
&SharingLog_SendAttachmentsStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<63> SharingLog_SendAttachmentsStart_class_data_ =
SharingLog_SendAttachmentsStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendAttachmentsStart::GetClassData() const {
return SharingLog_SendAttachmentsStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 8, 2, 0, 2>
SharingLog_SendAttachmentsStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_._has_bits_),
0, // no _extensions_
8, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967040, // skipmap
offsetof(decltype(_table_), field_entries),
8, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SendAttachmentsStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool advanced_protection_mismatch = 8;
{::_pbi::TcParser::FastV8S1,
{64, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_mismatch_)}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.session_id_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
{::_pbi::TcParser::FastMtS1,
{18, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.attachments_info_)}},
// optional int32 transfer_position = 3;
{::_pbi::TcParser::FastV32S1,
{24, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.transfer_position_)}},
// optional int32 concurrent_connections = 4;
{::_pbi::TcParser::FastV32S1,
{32, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.concurrent_connections_)}},
// optional bool qr_code_flow = 5 [deprecated = true];
{::_pbi::TcParser::FastV8S1,
{40, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.qr_code_flow_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
{::_pbi::TcParser::FastMtS1,
{50, 1, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.share_target_info_)}},
// optional bool advanced_protection_enabled = 7;
{::_pbi::TcParser::FastV8S1,
{56, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_enabled_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int32 transfer_position = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.transfer_position_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 concurrent_connections = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional bool qr_code_flow = 5 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional bool advanced_protection_enabled = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_enabled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool advanced_protection_mismatch = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_mismatch_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendAttachmentsStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
::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)) {
ABSL_DCHECK(_impl_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.advanced_protection_mismatch_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.advanced_protection_mismatch_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendAttachmentsStart& this_ = static_cast<const SharingLog_SendAttachmentsStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendAttachmentsStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional int32 transfer_position = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_transfer_position(), target);
}
// optional int32 concurrent_connections = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
stream, this_._internal_concurrent_connections(), target);
}
// optional bool qr_code_flow = 5 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
5, this_._internal_qr_code_flow(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional bool advanced_protection_enabled = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
7, this_._internal_advanced_protection_enabled(), target);
}
// optional bool advanced_protection_mismatch = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
8, this_._internal_advanced_protection_mismatch(), 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:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendAttachmentsStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendAttachmentsStart& this_ = static_cast<const SharingLog_SendAttachmentsStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendAttachmentsStart::ByteSizeLong() const {
const SharingLog_SendAttachmentsStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
::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];
total_size += ::absl::popcount(0x000000e0U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int32 transfer_position = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_transfer_position());
}
// optional int32 concurrent_connections = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_concurrent_connections());
}
}
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 SharingLog_SendAttachmentsStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendAttachmentsStart*>(&to_msg);
auto& from = static_cast<const SharingLog_SendAttachmentsStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.transfer_position_ = from._impl_.transfer_position_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.advanced_protection_enabled_ = from._impl_.advanced_protection_enabled_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.advanced_protection_mismatch_ = from._impl_.advanced_protection_mismatch_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SendAttachmentsStart::CopyFrom(const SharingLog_SendAttachmentsStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendAttachmentsStart::InternalSwap(SharingLog_SendAttachmentsStart* 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(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_mismatch_)
+ sizeof(SharingLog_SendAttachmentsStart::_impl_.advanced_protection_mismatch_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_SendAttachmentsEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SendAttachmentsEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_._has_bits_);
};
SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_SendAttachmentsEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_SendAttachmentsEnd* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, is_mutual_contact_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::is_mutual_contact_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_SendAttachmentsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, is_mutual_contact_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::is_mutual_contact_));
}
SharingLog_SendAttachmentsEnd::~SharingLog_SendAttachmentsEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
SharedDtor(*this);
}
inline void SharingLog_SendAttachmentsEnd::SharedDtor(MessageLite& self) {
SharingLog_SendAttachmentsEnd& this_ = static_cast<SharingLog_SendAttachmentsEnd&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
delete this_._impl_.attachments_info_;
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendAttachmentsEnd(arena);
}
constexpr auto SharingLog_SendAttachmentsEnd::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_SendAttachmentsEnd),
alignof(SharingLog_SendAttachmentsEnd));
}
constexpr auto SharingLog_SendAttachmentsEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<61>{
{
&_SharingLog_SendAttachmentsEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendAttachmentsEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendAttachmentsEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendAttachmentsEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendAttachmentsEnd>(), &SharingLog_SendAttachmentsEnd::ByteSizeLong,
&SharingLog_SendAttachmentsEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<61> SharingLog_SendAttachmentsEnd_class_data_ =
SharingLog_SendAttachmentsEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendAttachmentsEnd::GetClassData() const {
return SharingLog_SendAttachmentsEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 16, 5, 0, 2>
SharingLog_SendAttachmentsEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_._has_bits_),
0, // no _extensions_
16, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294901760, // skipmap
offsetof(decltype(_table_), field_entries),
16, // num_field_entries
5, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SendAttachmentsEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool is_mutual_contact = 16;
{::_pbi::TcParser::FastV8S2,
{384, 15, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.is_mutual_contact_)}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.session_id_)}},
// optional int64 sent_bytes = 2;
{::_pbi::TcParser::FastV64S1,
{16, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.sent_bytes_)}},
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 5, 30,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.status_)}},
// optional int32 transfer_position = 4;
{::_pbi::TcParser::FastV32S1,
{32, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.transfer_position_)}},
// optional int32 concurrent_connections = 5;
{::_pbi::TcParser::FastV32S1,
{40, 8, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.concurrent_connections_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6;
{::_pbi::TcParser::FastMtS1,
{50, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.attachments_info_)}},
// optional int64 duration_millis = 7;
{::_pbi::TcParser::FastV64S1,
{56, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.duration_millis_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8;
{::_pbi::TcParser::FastMtS1,
{66, 2, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.share_target_info_)}},
// optional string referrer_name = 9;
{::_pbi::TcParser::FastBS1,
{74, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.referrer_name_)}},
// optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10;
{::_pbi::TcParser::FastEr0S1,
{80, 9, 18,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_layer_status_)}},
// optional int32 first_successful_transfer_date = 11;
{::_pbi::TcParser::FastV32S1,
{88, 10, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.first_successful_transfer_date_)}},
// optional int32 previous_successful_transfer_date = 12;
{::_pbi::TcParser::FastV32S1,
{96, 11, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.previous_successful_transfer_date_)}},
// optional int32 lifetime_transfer_count = 13;
{::_pbi::TcParser::FastV32S1,
{104, 12, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.lifetime_transfer_count_)}},
// optional int32 connection_medium = 14;
{::_pbi::TcParser::FastV32S1,
{112, 13, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_medium_)}},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
{::_pbi::TcParser::FastEr0S1,
{120, 14, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.data_usage_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 sent_bytes = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.sent_bytes_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.status_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int32 transfer_position = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.transfer_position_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 concurrent_connections = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.attachments_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 duration_millis = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.duration_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.share_target_info_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string referrer_name = 9;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_layer_status_), _Internal::kHasBitsOffset + 9, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int32 first_successful_transfer_date = 11;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.first_successful_transfer_date_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 previous_successful_transfer_date = 12;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.previous_successful_transfer_date_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 lifetime_transfer_count = 13;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.lifetime_transfer_count_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 connection_medium = 14;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_medium_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.data_usage_), _Internal::kHasBitsOffset + 14, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool is_mutual_contact = 16;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.is_mutual_contact_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
{0, 30},
{0, 18},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendAttachmentsEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.referrer_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.duration_millis_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.duration_millis_));
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
::memset(&_impl_.concurrent_connections_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.is_mutual_contact_) -
reinterpret_cast<char*>(&_impl_.concurrent_connections_)) + sizeof(_impl_.is_mutual_contact_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendAttachmentsEnd& this_ = static_cast<const SharingLog_SendAttachmentsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendAttachmentsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional int64 sent_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_sent_bytes(), target);
}
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_status(), target);
}
// optional int32 transfer_position = 4;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
stream, this_._internal_transfer_position(), target);
}
// optional int32 concurrent_connections = 5;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
stream, this_._internal_concurrent_connections(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional int64 duration_millis = 7;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
stream, this_._internal_duration_millis(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
8, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional string referrer_name = 9;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(9, _s, target);
}
// optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
10, this_._internal_connection_layer_status(), target);
}
// optional int32 first_successful_transfer_date = 11;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
stream, this_._internal_first_successful_transfer_date(), target);
}
// optional int32 previous_successful_transfer_date = 12;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>(
stream, this_._internal_previous_successful_transfer_date(), target);
}
// optional int32 lifetime_transfer_count = 13;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>(
stream, this_._internal_lifetime_transfer_count(), target);
}
// optional int32 connection_medium = 14;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>(
stream, this_._internal_connection_medium(), target);
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
15, this_._internal_data_usage(), target);
}
// optional bool is_mutual_contact = 16;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
16, this_._internal_is_mutual_contact(), 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:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendAttachmentsEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendAttachmentsEnd& this_ = static_cast<const SharingLog_SendAttachmentsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendAttachmentsEnd::ByteSizeLong() const {
const SharingLog_SendAttachmentsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
::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];
total_size += static_cast<bool>(0x00008000U & cached_has_bits) * 3;
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
// optional string referrer_name = 9;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int64 sent_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_sent_bytes());
}
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
// optional int32 transfer_position = 4;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_transfer_position());
}
// optional int64 duration_millis = 7;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_duration_millis());
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
// optional int32 concurrent_connections = 5;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_concurrent_connections());
}
// optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_connection_layer_status());
}
// optional int32 first_successful_transfer_date = 11;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_first_successful_transfer_date());
}
// optional int32 previous_successful_transfer_date = 12;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_previous_successful_transfer_date());
}
// optional int32 lifetime_transfer_count = 13;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_lifetime_transfer_count());
}
// optional int32 connection_medium = 14;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_connection_medium());
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage());
}
}
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 SharingLog_SendAttachmentsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendAttachmentsEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_SendAttachmentsEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.sent_bytes_ = from._impl_.sent_bytes_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.transfer_position_ = from._impl_.transfer_position_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
_this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_;
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
_this->_impl_.connection_layer_status_ = from._impl_.connection_layer_status_;
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
_this->_impl_.first_successful_transfer_date_ = from._impl_.first_successful_transfer_date_;
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
_this->_impl_.previous_successful_transfer_date_ = from._impl_.previous_successful_transfer_date_;
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
_this->_impl_.lifetime_transfer_count_ = from._impl_.lifetime_transfer_count_;
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
_this->_impl_.connection_medium_ = from._impl_.connection_medium_;
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
_this->_impl_.data_usage_ = from._impl_.data_usage_;
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
_this->_impl_.is_mutual_contact_ = from._impl_.is_mutual_contact_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SendAttachmentsEnd::CopyFrom(const SharingLog_SendAttachmentsEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendAttachmentsEnd::InternalSwap(SharingLog_SendAttachmentsEnd* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.is_mutual_contact_)
+ sizeof(SharingLog_SendAttachmentsEnd::_impl_.is_mutual_contact_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_ReceiveAttachmentsStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ReceiveAttachmentsStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_._has_bits_);
};
SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_ReceiveAttachmentsStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_ReceiveAttachmentsStart* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
_impl_.session_id_ = from._impl_.session_id_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ReceiveAttachmentsStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, session_id_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::session_id_));
}
SharingLog_ReceiveAttachmentsStart::~SharingLog_ReceiveAttachmentsStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
SharedDtor(*this);
}
inline void SharingLog_ReceiveAttachmentsStart::SharedDtor(MessageLite& self) {
SharingLog_ReceiveAttachmentsStart& this_ = static_cast<SharingLog_ReceiveAttachmentsStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ReceiveAttachmentsStart(arena);
}
constexpr auto SharingLog_ReceiveAttachmentsStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ReceiveAttachmentsStart),
alignof(SharingLog_ReceiveAttachmentsStart));
}
constexpr auto SharingLog_ReceiveAttachmentsStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_ReceiveAttachmentsStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ReceiveAttachmentsStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ReceiveAttachmentsStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ReceiveAttachmentsStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ReceiveAttachmentsStart>(), &SharingLog_ReceiveAttachmentsStart::ByteSizeLong,
&SharingLog_ReceiveAttachmentsStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ReceiveAttachmentsStart_class_data_ =
SharingLog_ReceiveAttachmentsStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ReceiveAttachmentsStart::GetClassData() const {
return SharingLog_ReceiveAttachmentsStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 2, 0, 2>
SharingLog_ReceiveAttachmentsStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _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
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ReceiveAttachmentsStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.session_id_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
{::_pbi::TcParser::FastMtS1,
{18, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.attachments_info_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3;
{::_pbi::TcParser::FastMtS1,
{26, 1, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.share_target_info_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ReceiveAttachmentsStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
::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)) {
ABSL_DCHECK(_impl_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
}
_impl_.session_id_ = ::int64_t{0};
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ReceiveAttachmentsStart& this_ = static_cast<const SharingLog_ReceiveAttachmentsStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ReceiveAttachmentsStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->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:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ReceiveAttachmentsStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_ReceiveAttachmentsStart& this_ = static_cast<const SharingLog_ReceiveAttachmentsStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ReceiveAttachmentsStart::ByteSizeLong() const {
const SharingLog_ReceiveAttachmentsStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
::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 .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_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 SharingLog_ReceiveAttachmentsStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ReceiveAttachmentsStart*>(&to_msg);
auto& from = static_cast<const SharingLog_ReceiveAttachmentsStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
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)) {
ABSL_DCHECK(from._impl_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ReceiveAttachmentsStart::CopyFrom(const SharingLog_ReceiveAttachmentsStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ReceiveAttachmentsStart::InternalSwap(SharingLog_ReceiveAttachmentsStart* 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(SharingLog_ReceiveAttachmentsStart, _impl_.session_id_)
+ sizeof(SharingLog_ReceiveAttachmentsStart::_impl_.session_id_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_ReceiveAttachmentsEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ReceiveAttachmentsEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_._has_bits_);
};
SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_ReceiveAttachmentsEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_ReceiveAttachmentsEnd* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, data_usage_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::data_usage_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_ReceiveAttachmentsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, data_usage_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::data_usage_));
}
SharingLog_ReceiveAttachmentsEnd::~SharingLog_ReceiveAttachmentsEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
SharedDtor(*this);
}
inline void SharingLog_ReceiveAttachmentsEnd::SharedDtor(MessageLite& self) {
SharingLog_ReceiveAttachmentsEnd& this_ = static_cast<SharingLog_ReceiveAttachmentsEnd&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ReceiveAttachmentsEnd(arena);
}
constexpr auto SharingLog_ReceiveAttachmentsEnd::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ReceiveAttachmentsEnd),
alignof(SharingLog_ReceiveAttachmentsEnd));
}
constexpr auto SharingLog_ReceiveAttachmentsEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<64>{
{
&_SharingLog_ReceiveAttachmentsEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ReceiveAttachmentsEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ReceiveAttachmentsEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ReceiveAttachmentsEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ReceiveAttachmentsEnd>(), &SharingLog_ReceiveAttachmentsEnd::ByteSizeLong,
&SharingLog_ReceiveAttachmentsEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<64> SharingLog_ReceiveAttachmentsEnd_class_data_ =
SharingLog_ReceiveAttachmentsEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ReceiveAttachmentsEnd::GetClassData() const {
return SharingLog_ReceiveAttachmentsEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 10, 3, 0, 2>
SharingLog_ReceiveAttachmentsEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_._has_bits_),
0, // no _extensions_
15, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294942464, // skipmap
offsetof(decltype(_table_), field_entries),
10, // num_field_entries
3, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ReceiveAttachmentsEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.session_id_)}},
// optional int64 received_bytes = 2;
{::_pbi::TcParser::FastV64S1,
{16, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.received_bytes_)}},
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 4, 30,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.status_)}},
// optional string referrer_name = 4;
{::_pbi::TcParser::FastBS1,
{34, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.referrer_name_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5;
{::_pbi::TcParser::FastMtS1,
{42, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.share_target_info_)}},
// optional int32 first_successful_transfer_date = 6;
{::_pbi::TcParser::FastV32S1,
{48, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.first_successful_transfer_date_)}},
// optional int32 previous_successful_transfer_date = 7;
{::_pbi::TcParser::FastV32S1,
{56, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.previous_successful_transfer_date_)}},
// optional int32 lifetime_transfer_count = 8;
{::_pbi::TcParser::FastV32S1,
{64, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.lifetime_transfer_count_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
// optional int32 connection_medium = 14;
{::_pbi::TcParser::FastV32S1,
{112, 8, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.connection_medium_)}},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
{::_pbi::TcParser::FastEr0S1,
{120, 9, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.data_usage_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 received_bytes = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.received_bytes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.status_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional string referrer_name = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int32 first_successful_transfer_date = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.first_successful_transfer_date_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 previous_successful_transfer_date = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.previous_successful_transfer_date_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 lifetime_transfer_count = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.lifetime_transfer_count_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 connection_medium = 14;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.connection_medium_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.data_usage_), _Internal::kHasBitsOffset + 9, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
{0, 30},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ReceiveAttachmentsEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
::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_.referrer_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.lifetime_transfer_count_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.lifetime_transfer_count_));
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
::memset(&_impl_.connection_medium_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.data_usage_) -
reinterpret_cast<char*>(&_impl_.connection_medium_)) + sizeof(_impl_.data_usage_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ReceiveAttachmentsEnd& this_ = static_cast<const SharingLog_ReceiveAttachmentsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ReceiveAttachmentsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional int64 received_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_received_bytes(), target);
}
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_status(), target);
}
// optional string referrer_name = 4;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(4, _s, target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
5, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional int32 first_successful_transfer_date = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
stream, this_._internal_first_successful_transfer_date(), target);
}
// optional int32 previous_successful_transfer_date = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
stream, this_._internal_previous_successful_transfer_date(), target);
}
// optional int32 lifetime_transfer_count = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
stream, this_._internal_lifetime_transfer_count(), target);
}
// optional int32 connection_medium = 14;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>(
stream, this_._internal_connection_medium(), target);
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
15, this_._internal_data_usage(), 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:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ReceiveAttachmentsEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_ReceiveAttachmentsEnd& this_ = static_cast<const SharingLog_ReceiveAttachmentsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ReceiveAttachmentsEnd::ByteSizeLong() const {
const SharingLog_ReceiveAttachmentsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
::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, 0x000000ffU)) {
// optional string referrer_name = 4;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int64 received_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_received_bytes());
}
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
// optional int32 first_successful_transfer_date = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_first_successful_transfer_date());
}
// optional int32 previous_successful_transfer_date = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_previous_successful_transfer_date());
}
// optional int32 lifetime_transfer_count = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_lifetime_transfer_count());
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
// optional int32 connection_medium = 14;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_connection_medium());
}
// optional .location.nearby.proto.sharing.DataUsage data_usage = 15;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage());
}
}
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 SharingLog_ReceiveAttachmentsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ReceiveAttachmentsEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_ReceiveAttachmentsEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.received_bytes_ = from._impl_.received_bytes_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.first_successful_transfer_date_ = from._impl_.first_successful_transfer_date_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.previous_successful_transfer_date_ = from._impl_.previous_successful_transfer_date_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.lifetime_transfer_count_ = from._impl_.lifetime_transfer_count_;
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
_this->_impl_.connection_medium_ = from._impl_.connection_medium_;
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
_this->_impl_.data_usage_ = from._impl_.data_usage_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ReceiveAttachmentsEnd::CopyFrom(const SharingLog_ReceiveAttachmentsEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ReceiveAttachmentsEnd::InternalSwap(SharingLog_ReceiveAttachmentsEnd* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.data_usage_)
+ sizeof(SharingLog_ReceiveAttachmentsEnd::_impl_.data_usage_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_CancelConnection::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CancelConnection>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_._has_bits_);
};
SharingLog_CancelConnection::SharingLog_CancelConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CancelConnection_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
}
SharingLog_CancelConnection::SharingLog_CancelConnection(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelConnection& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CancelConnection_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 SharingLog_CancelConnection::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CancelConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
0,
offsetof(Impl_, concurrent_connections_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::concurrent_connections_));
}
SharingLog_CancelConnection::~SharingLog_CancelConnection() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
SharedDtor(*this);
}
inline void SharingLog_CancelConnection::SharedDtor(MessageLite& self) {
SharingLog_CancelConnection& this_ = static_cast<SharingLog_CancelConnection&>(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 SharingLog_CancelConnection::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CancelConnection(arena);
}
constexpr auto SharingLog_CancelConnection::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CancelConnection),
alignof(SharingLog_CancelConnection));
}
constexpr auto SharingLog_CancelConnection::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_CancelConnection_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CancelConnection::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CancelConnection>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CancelConnection::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CancelConnection>(), &SharingLog_CancelConnection::ByteSizeLong,
&SharingLog_CancelConnection::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CancelConnection",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CancelConnection_class_data_ =
SharingLog_CancelConnection::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CancelConnection::GetClassData() const {
return SharingLog_CancelConnection_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
SharingLog_CancelConnection::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _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
SharingLog_CancelConnection_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.session_id_)}},
// optional int32 transfer_position = 2;
{::_pbi::TcParser::FastV32S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.transfer_position_)}},
// optional int32 concurrent_connections = 3;
{::_pbi::TcParser::FastV32S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.concurrent_connections_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int32 transfer_position = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.transfer_position_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 concurrent_connections = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CancelConnection::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.concurrent_connections_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CancelConnection::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CancelConnection& this_ = static_cast<const SharingLog_CancelConnection&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CancelConnection::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CancelConnection& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional int32 transfer_position = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
stream, this_._internal_transfer_position(), target);
}
// optional int32 concurrent_connections = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_concurrent_connections(), 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:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CancelConnection::ByteSizeLong(const MessageLite& base) {
const SharingLog_CancelConnection& this_ = static_cast<const SharingLog_CancelConnection&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CancelConnection::ByteSizeLong() const {
const SharingLog_CancelConnection& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
::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 int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int32 transfer_position = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_transfer_position());
}
// optional int32 concurrent_connections = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_concurrent_connections());
}
}
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 SharingLog_CancelConnection::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CancelConnection*>(&to_msg);
auto& from = static_cast<const SharingLog_CancelConnection&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
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->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.transfer_position_ = from._impl_.transfer_position_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CancelConnection::CopyFrom(const SharingLog_CancelConnection& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CancelConnection::InternalSwap(SharingLog_CancelConnection* 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(SharingLog_CancelConnection, _impl_.concurrent_connections_)
+ sizeof(SharingLog_CancelConnection::_impl_.concurrent_connections_)
- PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.session_id_)>(
reinterpret_cast<char*>(&_impl_.session_id_),
reinterpret_cast<char*>(&other->_impl_.session_id_));
}
// ===================================================================
class SharingLog_CancelSendingAttachments::_Internal {
public:
};
SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CancelSendingAttachments_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
}
SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelSendingAttachments& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CancelSendingAttachments_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 SharingLog_CancelSendingAttachments::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CancelSendingAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_CancelSendingAttachments::~SharingLog_CancelSendingAttachments() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
SharedDtor(*this);
}
inline void SharingLog_CancelSendingAttachments::SharedDtor(MessageLite& self) {
SharingLog_CancelSendingAttachments& this_ = static_cast<SharingLog_CancelSendingAttachments&>(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 SharingLog_CancelSendingAttachments::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CancelSendingAttachments(arena);
}
constexpr auto SharingLog_CancelSendingAttachments::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CancelSendingAttachments),
alignof(SharingLog_CancelSendingAttachments));
}
constexpr auto SharingLog_CancelSendingAttachments::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<67>{
{
&_SharingLog_CancelSendingAttachments_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CancelSendingAttachments::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CancelSendingAttachments>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CancelSendingAttachments::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CancelSendingAttachments>(), &SharingLog_CancelSendingAttachments::ByteSizeLong,
&SharingLog_CancelSendingAttachments::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CancelSendingAttachments, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<67> SharingLog_CancelSendingAttachments_class_data_ =
SharingLog_CancelSendingAttachments::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CancelSendingAttachments::GetClassData() const {
return SharingLog_CancelSendingAttachments_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_CancelSendingAttachments::_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
SharingLog_CancelSendingAttachments_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CancelSendingAttachments::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
::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 SharingLog_CancelSendingAttachments::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CancelSendingAttachments& this_ = static_cast<const SharingLog_CancelSendingAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CancelSendingAttachments::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CancelSendingAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
::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:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CancelSendingAttachments::ByteSizeLong(const MessageLite& base) {
const SharingLog_CancelSendingAttachments& this_ = static_cast<const SharingLog_CancelSendingAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CancelSendingAttachments::ByteSizeLong() const {
const SharingLog_CancelSendingAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
::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 SharingLog_CancelSendingAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CancelSendingAttachments*>(&to_msg);
auto& from = static_cast<const SharingLog_CancelSendingAttachments&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
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 SharingLog_CancelSendingAttachments::CopyFrom(const SharingLog_CancelSendingAttachments& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CancelSendingAttachments::InternalSwap(SharingLog_CancelSendingAttachments* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_CancelReceivingAttachments::_Internal {
public:
};
SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CancelReceivingAttachments_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
}
SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelReceivingAttachments& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CancelReceivingAttachments_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 SharingLog_CancelReceivingAttachments::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CancelReceivingAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_CancelReceivingAttachments::~SharingLog_CancelReceivingAttachments() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
SharedDtor(*this);
}
inline void SharingLog_CancelReceivingAttachments::SharedDtor(MessageLite& self) {
SharingLog_CancelReceivingAttachments& this_ = static_cast<SharingLog_CancelReceivingAttachments&>(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 SharingLog_CancelReceivingAttachments::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CancelReceivingAttachments(arena);
}
constexpr auto SharingLog_CancelReceivingAttachments::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CancelReceivingAttachments),
alignof(SharingLog_CancelReceivingAttachments));
}
constexpr auto SharingLog_CancelReceivingAttachments::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<69>{
{
&_SharingLog_CancelReceivingAttachments_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CancelReceivingAttachments::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CancelReceivingAttachments>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CancelReceivingAttachments::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CancelReceivingAttachments>(), &SharingLog_CancelReceivingAttachments::ByteSizeLong,
&SharingLog_CancelReceivingAttachments::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CancelReceivingAttachments, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<69> SharingLog_CancelReceivingAttachments_class_data_ =
SharingLog_CancelReceivingAttachments::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CancelReceivingAttachments::GetClassData() const {
return SharingLog_CancelReceivingAttachments_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_CancelReceivingAttachments::_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
SharingLog_CancelReceivingAttachments_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CancelReceivingAttachments::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
::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 SharingLog_CancelReceivingAttachments::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CancelReceivingAttachments& this_ = static_cast<const SharingLog_CancelReceivingAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CancelReceivingAttachments::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CancelReceivingAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
::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:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CancelReceivingAttachments::ByteSizeLong(const MessageLite& base) {
const SharingLog_CancelReceivingAttachments& this_ = static_cast<const SharingLog_CancelReceivingAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CancelReceivingAttachments::ByteSizeLong() const {
const SharingLog_CancelReceivingAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
::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 SharingLog_CancelReceivingAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CancelReceivingAttachments*>(&to_msg);
auto& from = static_cast<const SharingLog_CancelReceivingAttachments&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
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 SharingLog_CancelReceivingAttachments::CopyFrom(const SharingLog_CancelReceivingAttachments& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CancelReceivingAttachments::InternalSwap(SharingLog_CancelReceivingAttachments* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_ProcessReceivedAttachmentsEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ProcessReceivedAttachmentsEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_._has_bits_);
};
SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
}
SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ProcessReceivedAttachmentsEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ProcessReceivedAttachmentsEnd_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 SharingLog_ProcessReceivedAttachmentsEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ProcessReceivedAttachmentsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
0,
offsetof(Impl_, status_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::status_));
}
SharingLog_ProcessReceivedAttachmentsEnd::~SharingLog_ProcessReceivedAttachmentsEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
SharedDtor(*this);
}
inline void SharingLog_ProcessReceivedAttachmentsEnd::SharedDtor(MessageLite& self) {
SharingLog_ProcessReceivedAttachmentsEnd& this_ = static_cast<SharingLog_ProcessReceivedAttachmentsEnd&>(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 SharingLog_ProcessReceivedAttachmentsEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ProcessReceivedAttachmentsEnd(arena);
}
constexpr auto SharingLog_ProcessReceivedAttachmentsEnd::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ProcessReceivedAttachmentsEnd),
alignof(SharingLog_ProcessReceivedAttachmentsEnd));
}
constexpr auto SharingLog_ProcessReceivedAttachmentsEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<72>{
{
&_SharingLog_ProcessReceivedAttachmentsEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ProcessReceivedAttachmentsEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ProcessReceivedAttachmentsEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ProcessReceivedAttachmentsEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ProcessReceivedAttachmentsEnd>(), &SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong,
&SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ProcessReceivedAttachmentsEnd_class_data_ =
SharingLog_ProcessReceivedAttachmentsEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ProcessReceivedAttachmentsEnd::GetClassData() const {
return SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
SharingLog_ProcessReceivedAttachmentsEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.status_)}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.session_id_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.status_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 5},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ProcessReceivedAttachmentsEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
::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)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.status_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.status_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ProcessReceivedAttachmentsEnd& this_ = static_cast<const SharingLog_ProcessReceivedAttachmentsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ProcessReceivedAttachmentsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_status(), 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:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_ProcessReceivedAttachmentsEnd& this_ = static_cast<const SharingLog_ProcessReceivedAttachmentsEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong() const {
const SharingLog_ProcessReceivedAttachmentsEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
::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 int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
}
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 SharingLog_ProcessReceivedAttachmentsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ProcessReceivedAttachmentsEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_ProcessReceivedAttachmentsEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.status_ = from._impl_.status_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ProcessReceivedAttachmentsEnd::CopyFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ProcessReceivedAttachmentsEnd::InternalSwap(SharingLog_ProcessReceivedAttachmentsEnd* 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(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.status_)
+ sizeof(SharingLog_ProcessReceivedAttachmentsEnd::_impl_.status_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.session_id_)>(
reinterpret_cast<char*>(&_impl_.session_id_),
reinterpret_cast<char*>(&other->_impl_.session_id_));
}
// ===================================================================
class SharingLog_OpenReceivedAttachments::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_OpenReceivedAttachments>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_._has_bits_);
};
SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_OpenReceivedAttachments_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
}
PROTOBUF_NDEBUG_INLINE SharingLog_OpenReceivedAttachments::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_OpenReceivedAttachments& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_OpenReceivedAttachments_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_OpenReceivedAttachments* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.session_id_ = from._impl_.session_id_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
}
PROTOBUF_NDEBUG_INLINE SharingLog_OpenReceivedAttachments::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_OpenReceivedAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, session_id_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::session_id_));
}
SharingLog_OpenReceivedAttachments::~SharingLog_OpenReceivedAttachments() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
SharedDtor(*this);
}
inline void SharingLog_OpenReceivedAttachments::SharedDtor(MessageLite& self) {
SharingLog_OpenReceivedAttachments& this_ = static_cast<SharingLog_OpenReceivedAttachments&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_OpenReceivedAttachments(arena);
}
constexpr auto SharingLog_OpenReceivedAttachments::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_OpenReceivedAttachments),
alignof(SharingLog_OpenReceivedAttachments));
}
constexpr auto SharingLog_OpenReceivedAttachments::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_OpenReceivedAttachments_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_OpenReceivedAttachments::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_OpenReceivedAttachments>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_OpenReceivedAttachments::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_OpenReceivedAttachments>(), &SharingLog_OpenReceivedAttachments::ByteSizeLong,
&SharingLog_OpenReceivedAttachments::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_OpenReceivedAttachments_class_data_ =
SharingLog_OpenReceivedAttachments::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_OpenReceivedAttachments::GetClassData() const {
return SharingLog_OpenReceivedAttachments_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
SharingLog_OpenReceivedAttachments::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_._has_bits_),
0, // no _extensions_
4, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967283, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_OpenReceivedAttachments_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int64 session_id = 4;
{::_pbi::TcParser::FastV64S1,
{32, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.session_id_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3;
{::_pbi::TcParser::FastMtS1,
{26, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.attachments_info_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 session_id = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_OpenReceivedAttachments::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
::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_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
_impl_.session_id_ = ::int64_t{0};
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_OpenReceivedAttachments& this_ = static_cast<const SharingLog_OpenReceivedAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_OpenReceivedAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional int64 session_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_session_id(), 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:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_OpenReceivedAttachments::ByteSizeLong(const MessageLite& base) {
const SharingLog_OpenReceivedAttachments& this_ = static_cast<const SharingLog_OpenReceivedAttachments&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_OpenReceivedAttachments::ByteSizeLong() const {
const SharingLog_OpenReceivedAttachments& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
::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 .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional int64 session_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_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 SharingLog_OpenReceivedAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_OpenReceivedAttachments*>(&to_msg);
auto& from = static_cast<const SharingLog_OpenReceivedAttachments&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
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_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_OpenReceivedAttachments::CopyFrom(const SharingLog_OpenReceivedAttachments& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_OpenReceivedAttachments::InternalSwap(SharingLog_OpenReceivedAttachments* 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(SharingLog_OpenReceivedAttachments, _impl_.session_id_)
+ sizeof(SharingLog_OpenReceivedAttachments::_impl_.session_id_)
- PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_LaunchSetupActivity::_Internal {
public:
};
SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchSetupActivity_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
}
SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchSetupActivity& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchSetupActivity_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 SharingLog_LaunchSetupActivity::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_LaunchSetupActivity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_LaunchSetupActivity::~SharingLog_LaunchSetupActivity() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
SharedDtor(*this);
}
inline void SharingLog_LaunchSetupActivity::SharedDtor(MessageLite& self) {
SharingLog_LaunchSetupActivity& this_ = static_cast<SharingLog_LaunchSetupActivity&>(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 SharingLog_LaunchSetupActivity::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_LaunchSetupActivity(arena);
}
constexpr auto SharingLog_LaunchSetupActivity::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_LaunchSetupActivity),
alignof(SharingLog_LaunchSetupActivity));
}
constexpr auto SharingLog_LaunchSetupActivity::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_LaunchSetupActivity_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_LaunchSetupActivity::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_LaunchSetupActivity>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_LaunchSetupActivity::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_LaunchSetupActivity>(), &SharingLog_LaunchSetupActivity::ByteSizeLong,
&SharingLog_LaunchSetupActivity::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchSetupActivity, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_LaunchSetupActivity_class_data_ =
SharingLog_LaunchSetupActivity::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_LaunchSetupActivity::GetClassData() const {
return SharingLog_LaunchSetupActivity_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_LaunchSetupActivity::_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
SharingLog_LaunchSetupActivity_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_LaunchSetupActivity::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
::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 SharingLog_LaunchSetupActivity::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_LaunchSetupActivity& this_ = static_cast<const SharingLog_LaunchSetupActivity&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchSetupActivity::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_LaunchSetupActivity& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
::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:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_LaunchSetupActivity::ByteSizeLong(const MessageLite& base) {
const SharingLog_LaunchSetupActivity& this_ = static_cast<const SharingLog_LaunchSetupActivity&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_LaunchSetupActivity::ByteSizeLong() const {
const SharingLog_LaunchSetupActivity& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
::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 SharingLog_LaunchSetupActivity::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_LaunchSetupActivity*>(&to_msg);
auto& from = static_cast<const SharingLog_LaunchSetupActivity&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
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 SharingLog_LaunchSetupActivity::CopyFrom(const SharingLog_LaunchSetupActivity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_LaunchSetupActivity::InternalSwap(SharingLog_LaunchSetupActivity* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_AddContact::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AddContact>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_._has_bits_);
};
SharingLog_AddContact::SharingLog_AddContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AddContact_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AddContact)
}
SharingLog_AddContact::SharingLog_AddContact(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AddContact& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AddContact_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 SharingLog_AddContact::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AddContact::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, was_phone_added_),
0,
offsetof(Impl_, was_email_added_) -
offsetof(Impl_, was_phone_added_) +
sizeof(Impl_::was_email_added_));
}
SharingLog_AddContact::~SharingLog_AddContact() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AddContact)
SharedDtor(*this);
}
inline void SharingLog_AddContact::SharedDtor(MessageLite& self) {
SharingLog_AddContact& this_ = static_cast<SharingLog_AddContact&>(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 SharingLog_AddContact::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AddContact(arena);
}
constexpr auto SharingLog_AddContact::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AddContact),
alignof(SharingLog_AddContact));
}
constexpr auto SharingLog_AddContact::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<53>{
{
&_SharingLog_AddContact_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AddContact::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AddContact>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AddContact::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AddContact>(), &SharingLog_AddContact::ByteSizeLong,
&SharingLog_AddContact::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AddContact",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<53> SharingLog_AddContact_class_data_ =
SharingLog_AddContact::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AddContact::GetClassData() const {
return SharingLog_AddContact_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
SharingLog_AddContact::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
SharingLog_AddContact_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddContact>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool was_email_added = 2;
{::_pbi::TcParser::FastV8S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_email_added_)}},
// optional bool was_phone_added = 1;
{::_pbi::TcParser::FastV8S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_phone_added_)}},
}}, {{
65535, 65535
}}, {{
// optional bool was_phone_added = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_phone_added_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool was_email_added = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_email_added_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AddContact::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AddContact)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.was_phone_added_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.was_email_added_) -
reinterpret_cast<char*>(&_impl_.was_phone_added_)) + sizeof(_impl_.was_email_added_));
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AddContact::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AddContact& this_ = static_cast<const SharingLog_AddContact&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AddContact::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AddContact& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AddContact)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional bool was_phone_added = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
1, this_._internal_was_phone_added(), target);
}
// optional bool was_email_added = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_was_email_added(), 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:nearby.sharing.analytics.proto.SharingLog.AddContact)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AddContact::ByteSizeLong(const MessageLite& base) {
const SharingLog_AddContact& this_ = static_cast<const SharingLog_AddContact&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AddContact::ByteSizeLong() const {
const SharingLog_AddContact& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AddContact)
::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];
total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 2;
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 SharingLog_AddContact::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AddContact*>(&to_msg);
auto& from = static_cast<const SharingLog_AddContact&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AddContact)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.was_phone_added_ = from._impl_.was_phone_added_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.was_email_added_ = from._impl_.was_email_added_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AddContact::CopyFrom(const SharingLog_AddContact& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AddContact)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AddContact::InternalSwap(SharingLog_AddContact* 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(SharingLog_AddContact, _impl_.was_email_added_)
+ sizeof(SharingLog_AddContact::_impl_.was_email_added_)
- PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_phone_added_)>(
reinterpret_cast<char*>(&_impl_.was_phone_added_),
reinterpret_cast<char*>(&other->_impl_.was_phone_added_));
}
// ===================================================================
class SharingLog_RemoveContact::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_RemoveContact>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_._has_bits_);
};
SharingLog_RemoveContact::SharingLog_RemoveContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RemoveContact_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
}
SharingLog_RemoveContact::SharingLog_RemoveContact(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RemoveContact& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RemoveContact_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 SharingLog_RemoveContact::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_RemoveContact::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, was_phone_removed_),
0,
offsetof(Impl_, was_email_removed_) -
offsetof(Impl_, was_phone_removed_) +
sizeof(Impl_::was_email_removed_));
}
SharingLog_RemoveContact::~SharingLog_RemoveContact() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
SharedDtor(*this);
}
inline void SharingLog_RemoveContact::SharedDtor(MessageLite& self) {
SharingLog_RemoveContact& this_ = static_cast<SharingLog_RemoveContact&>(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 SharingLog_RemoveContact::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_RemoveContact(arena);
}
constexpr auto SharingLog_RemoveContact::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RemoveContact),
alignof(SharingLog_RemoveContact));
}
constexpr auto SharingLog_RemoveContact::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_RemoveContact_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_RemoveContact::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_RemoveContact>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_RemoveContact::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_RemoveContact>(), &SharingLog_RemoveContact::ByteSizeLong,
&SharingLog_RemoveContact::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.RemoveContact",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RemoveContact_class_data_ =
SharingLog_RemoveContact::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_RemoveContact::GetClassData() const {
return SharingLog_RemoveContact_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
SharingLog_RemoveContact::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
SharingLog_RemoveContact_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool was_email_removed = 2;
{::_pbi::TcParser::FastV8S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_email_removed_)}},
// optional bool was_phone_removed = 1;
{::_pbi::TcParser::FastV8S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_phone_removed_)}},
}}, {{
65535, 65535
}}, {{
// optional bool was_phone_removed = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_phone_removed_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool was_email_removed = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_email_removed_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_RemoveContact::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.was_phone_removed_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.was_email_removed_) -
reinterpret_cast<char*>(&_impl_.was_phone_removed_)) + sizeof(_impl_.was_email_removed_));
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveContact::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_RemoveContact& this_ = static_cast<const SharingLog_RemoveContact&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveContact::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_RemoveContact& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional bool was_phone_removed = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
1, this_._internal_was_phone_removed(), target);
}
// optional bool was_email_removed = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_was_email_removed(), 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:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_RemoveContact::ByteSizeLong(const MessageLite& base) {
const SharingLog_RemoveContact& this_ = static_cast<const SharingLog_RemoveContact&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_RemoveContact::ByteSizeLong() const {
const SharingLog_RemoveContact& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
::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];
total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 2;
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 SharingLog_RemoveContact::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_RemoveContact*>(&to_msg);
auto& from = static_cast<const SharingLog_RemoveContact&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.was_phone_removed_ = from._impl_.was_phone_removed_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.was_email_removed_ = from._impl_.was_email_removed_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_RemoveContact::CopyFrom(const SharingLog_RemoveContact& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_RemoveContact::InternalSwap(SharingLog_RemoveContact* 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(SharingLog_RemoveContact, _impl_.was_email_removed_)
+ sizeof(SharingLog_RemoveContact::_impl_.was_email_removed_)
- PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_phone_removed_)>(
reinterpret_cast<char*>(&_impl_.was_phone_removed_),
reinterpret_cast<char*>(&other->_impl_.was_phone_removed_));
}
// ===================================================================
class SharingLog_FastShareServerResponse::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_FastShareServerResponse>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_._has_bits_);
};
SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_FastShareServerResponse_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
}
SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FastShareServerResponse& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_FastShareServerResponse_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 SharingLog_FastShareServerResponse::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_FastShareServerResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, status_),
0,
offsetof(Impl_, device_type_) -
offsetof(Impl_, status_) +
sizeof(Impl_::device_type_));
}
SharingLog_FastShareServerResponse::~SharingLog_FastShareServerResponse() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
SharedDtor(*this);
}
inline void SharingLog_FastShareServerResponse::SharedDtor(MessageLite& self) {
SharingLog_FastShareServerResponse& this_ = static_cast<SharingLog_FastShareServerResponse&>(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 SharingLog_FastShareServerResponse::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_FastShareServerResponse(arena);
}
constexpr auto SharingLog_FastShareServerResponse::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_FastShareServerResponse),
alignof(SharingLog_FastShareServerResponse));
}
constexpr auto SharingLog_FastShareServerResponse::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_FastShareServerResponse_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_FastShareServerResponse::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_FastShareServerResponse>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_FastShareServerResponse::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_FastShareServerResponse>(), &SharingLog_FastShareServerResponse::ByteSizeLong,
&SharingLog_FastShareServerResponse::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_FastShareServerResponse_class_data_ =
SharingLog_FastShareServerResponse::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_FastShareServerResponse::GetClassData() const {
return SharingLog_FastShareServerResponse_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
SharingLog_FastShareServerResponse::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_._has_bits_),
0, // no _extensions_
6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967232, // skipmap
offsetof(decltype(_table_), field_entries),
6, // num_field_entries
5, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_FastShareServerResponse_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.ServerResponseState status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 10,
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.status_)}},
// optional .location.nearby.proto.sharing.ServerActionName name = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 12,
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.name_)}},
// optional int64 latency_millis = 3;
{::_pbi::TcParser::FastV64S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.latency_millis_)}},
// optional .location.nearby.proto.sharing.SyncPurpose purpose = 4;
{::_pbi::TcParser::FastEr0S1,
{32, 3, 19,
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.purpose_)}},
// optional .location.nearby.proto.sharing.ClientRole requester = 5;
{::_pbi::TcParser::FastEr0S1,
{40, 4, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.requester_)}},
// optional .location.nearby.proto.sharing.DeviceType device_type = 6;
{::_pbi::TcParser::FastEr0S1,
{48, 5, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.device_type_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ServerResponseState status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.ServerActionName name = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.name_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 latency_millis = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.latency_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.SyncPurpose purpose = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.purpose_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.ClientRole requester = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.requester_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.DeviceType device_type = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.device_type_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 10},
{0, 12},
{0, 19},
{0, 2},
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_FastShareServerResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
::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, 0x0000003fU)) {
::memset(&_impl_.status_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.device_type_) -
reinterpret_cast<char*>(&_impl_.status_)) + sizeof(_impl_.device_type_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_FastShareServerResponse::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_FastShareServerResponse& this_ = static_cast<const SharingLog_FastShareServerResponse&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_FastShareServerResponse::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_FastShareServerResponse& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ServerResponseState status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_status(), target);
}
// optional .location.nearby.proto.sharing.ServerActionName name = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_name(), target);
}
// optional int64 latency_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_latency_millis(), target);
}
// optional .location.nearby.proto.sharing.SyncPurpose purpose = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this_._internal_purpose(), target);
}
// optional .location.nearby.proto.sharing.ClientRole requester = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
5, this_._internal_requester(), target);
}
// optional .location.nearby.proto.sharing.DeviceType device_type = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
6, this_._internal_device_type(), 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:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_FastShareServerResponse::ByteSizeLong(const MessageLite& base) {
const SharingLog_FastShareServerResponse& this_ = static_cast<const SharingLog_FastShareServerResponse&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_FastShareServerResponse::ByteSizeLong() const {
const SharingLog_FastShareServerResponse& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
::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, 0x0000003fU)) {
// optional .location.nearby.proto.sharing.ServerResponseState status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
// optional .location.nearby.proto.sharing.ServerActionName name = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_name());
}
// optional int64 latency_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_latency_millis());
}
// optional .location.nearby.proto.sharing.SyncPurpose purpose = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_purpose());
}
// optional .location.nearby.proto.sharing.ClientRole requester = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_requester());
}
// optional .location.nearby.proto.sharing.DeviceType device_type = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_FastShareServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_FastShareServerResponse*>(&to_msg);
auto& from = static_cast<const SharingLog_FastShareServerResponse&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
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, 0x0000003fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.status_ = from._impl_.status_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.name_ = from._impl_.name_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.latency_millis_ = from._impl_.latency_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.purpose_ = from._impl_.purpose_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.requester_ = from._impl_.requester_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.device_type_ = from._impl_.device_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_FastShareServerResponse::CopyFrom(const SharingLog_FastShareServerResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_FastShareServerResponse::InternalSwap(SharingLog_FastShareServerResponse* 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(SharingLog_FastShareServerResponse, _impl_.device_type_)
+ sizeof(SharingLog_FastShareServerResponse::_impl_.device_type_)
- PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.status_)>(
reinterpret_cast<char*>(&_impl_.status_),
reinterpret_cast<char*>(&other->_impl_.status_));
}
// ===================================================================
class SharingLog_SendStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SendStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_._has_bits_);
};
SharingLog_SendStart::SharingLog_SendStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_SendStart::SharingLog_SendStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_SendStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_SendStart* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, concurrent_connections_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::concurrent_connections_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_SendStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SendStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, concurrent_connections_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::concurrent_connections_));
}
SharingLog_SendStart::~SharingLog_SendStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendStart)
SharedDtor(*this);
}
inline void SharingLog_SendStart::SharedDtor(MessageLite& self) {
SharingLog_SendStart& this_ = static_cast<SharingLog_SendStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_SendStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendStart(arena);
}
constexpr auto SharingLog_SendStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendStart),
alignof(SharingLog_SendStart));
}
constexpr auto SharingLog_SendStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<52>{
{
&_SharingLog_SendStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendStart>(), &SharingLog_SendStart::ByteSizeLong,
&SharingLog_SendStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<52> SharingLog_SendStart_class_data_ =
SharingLog_SendStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendStart::GetClassData() const {
return SharingLog_SendStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
SharingLog_SendStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SendStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4;
{::_pbi::TcParser::FastMtS1,
{34, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.share_target_info_)}},
// optional int64 session_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.session_id_)}},
// optional int32 transfer_position = 2;
{::_pbi::TcParser::FastV32S1,
{16, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.transfer_position_)}},
// optional int32 concurrent_connections = 3;
{::_pbi::TcParser::FastV32S1,
{24, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.concurrent_connections_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 session_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int32 transfer_position = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.transfer_position_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 concurrent_connections = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.share_target_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendStart)
::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_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.concurrent_connections_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SendStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendStart& this_ = static_cast<const SharingLog_SendStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_session_id(), target);
}
// optional int32 transfer_position = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
stream, this_._internal_transfer_position(), target);
}
// optional int32 concurrent_connections = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_concurrent_connections(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->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:nearby.sharing.analytics.proto.SharingLog.SendStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendStart& this_ = static_cast<const SharingLog_SendStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendStart::ByteSizeLong() const {
const SharingLog_SendStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendStart)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int32 transfer_position = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_transfer_position());
}
// optional int32 concurrent_connections = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_concurrent_connections());
}
}
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 SharingLog_SendStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendStart*>(&to_msg);
auto& from = static_cast<const SharingLog_SendStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendStart)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.transfer_position_ = from._impl_.transfer_position_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SendStart::CopyFrom(const SharingLog_SendStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendStart::InternalSwap(SharingLog_SendStart* 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(SharingLog_SendStart, _impl_.concurrent_connections_)
+ sizeof(SharingLog_SendStart::_impl_.concurrent_connections_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_AcceptFastInitialization::_Internal {
public:
};
SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AcceptFastInitialization_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
}
SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AcceptFastInitialization& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AcceptFastInitialization_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 SharingLog_AcceptFastInitialization::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AcceptFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_AcceptFastInitialization::~SharingLog_AcceptFastInitialization() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
SharedDtor(*this);
}
inline void SharingLog_AcceptFastInitialization::SharedDtor(MessageLite& self) {
SharingLog_AcceptFastInitialization& this_ = static_cast<SharingLog_AcceptFastInitialization&>(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 SharingLog_AcceptFastInitialization::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AcceptFastInitialization(arena);
}
constexpr auto SharingLog_AcceptFastInitialization::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AcceptFastInitialization),
alignof(SharingLog_AcceptFastInitialization));
}
constexpr auto SharingLog_AcceptFastInitialization::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<67>{
{
&_SharingLog_AcceptFastInitialization_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AcceptFastInitialization::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AcceptFastInitialization>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AcceptFastInitialization::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AcceptFastInitialization>(), &SharingLog_AcceptFastInitialization::ByteSizeLong,
&SharingLog_AcceptFastInitialization::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AcceptFastInitialization, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<67> SharingLog_AcceptFastInitialization_class_data_ =
SharingLog_AcceptFastInitialization::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AcceptFastInitialization::GetClassData() const {
return SharingLog_AcceptFastInitialization_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_AcceptFastInitialization::_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
SharingLog_AcceptFastInitialization_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AcceptFastInitialization::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
::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 SharingLog_AcceptFastInitialization::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AcceptFastInitialization& this_ = static_cast<const SharingLog_AcceptFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AcceptFastInitialization::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AcceptFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
::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:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AcceptFastInitialization::ByteSizeLong(const MessageLite& base) {
const SharingLog_AcceptFastInitialization& this_ = static_cast<const SharingLog_AcceptFastInitialization&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AcceptFastInitialization::ByteSizeLong() const {
const SharingLog_AcceptFastInitialization& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
::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 SharingLog_AcceptFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AcceptFastInitialization*>(&to_msg);
auto& from = static_cast<const SharingLog_AcceptFastInitialization&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
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 SharingLog_AcceptFastInitialization::CopyFrom(const SharingLog_AcceptFastInitialization& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AcceptFastInitialization::InternalSwap(SharingLog_AcceptFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_LaunchActivity::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_LaunchActivity>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_._has_bits_);
};
SharingLog_LaunchActivity::SharingLog_LaunchActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchActivity_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
}
PROTOBUF_NDEBUG_INLINE SharingLog_LaunchActivity::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
referrer_name_(arena, from.referrer_name_) {}
SharingLog_LaunchActivity::SharingLog_LaunchActivity(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_LaunchActivity& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchActivity_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_LaunchActivity* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, duration_millis_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, duration_millis_),
offsetof(Impl_, source_activity_name_) -
offsetof(Impl_, duration_millis_) +
sizeof(Impl_::source_activity_name_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
}
PROTOBUF_NDEBUG_INLINE SharingLog_LaunchActivity::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
referrer_name_(arena) {}
inline void SharingLog_LaunchActivity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, duration_millis_),
0,
offsetof(Impl_, source_activity_name_) -
offsetof(Impl_, duration_millis_) +
sizeof(Impl_::source_activity_name_));
}
SharingLog_LaunchActivity::~SharingLog_LaunchActivity() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
SharedDtor(*this);
}
inline void SharingLog_LaunchActivity::SharedDtor(MessageLite& self) {
SharingLog_LaunchActivity& this_ = static_cast<SharingLog_LaunchActivity&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.referrer_name_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_LaunchActivity::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_LaunchActivity(arena);
}
constexpr auto SharingLog_LaunchActivity::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_LaunchActivity),
alignof(SharingLog_LaunchActivity));
}
constexpr auto SharingLog_LaunchActivity::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<57>{
{
&_SharingLog_LaunchActivity_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_LaunchActivity::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_LaunchActivity>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_LaunchActivity::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_LaunchActivity>(), &SharingLog_LaunchActivity::ByteSizeLong,
&SharingLog_LaunchActivity::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.LaunchActivity",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<57> SharingLog_LaunchActivity_class_data_ =
SharingLog_LaunchActivity::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_LaunchActivity::GetClassData() const {
return SharingLog_LaunchActivity_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 7, 2, 0, 2>
SharingLog_LaunchActivity::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_._has_bits_),
0, // no _extensions_
7, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967168, // skipmap
offsetof(decltype(_table_), field_entries),
7, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_LaunchActivity_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 2, 12,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.activity_name_)}},
// optional int64 duration_millis = 2;
{::_pbi::TcParser::FastV64S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.duration_millis_)}},
// optional string referrer_name = 3;
{::_pbi::TcParser::FastBS1,
{26, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.referrer_name_)}},
// optional bool previous_transfer_in_progress = 4;
{::_pbi::TcParser::FastV8S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.previous_transfer_in_progress_)}},
// optional bool has_opted_in = 5;
{::_pbi::TcParser::FastV8S1,
{40, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.has_opted_in_)}},
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6;
{::_pbi::TcParser::FastEr0S1,
{48, 6, 12,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.source_activity_name_)}},
// optional bool is_finishing = 7;
{::_pbi::TcParser::FastV8S1,
{56, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.is_finishing_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.activity_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 duration_millis = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.duration_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional string referrer_name = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional bool previous_transfer_in_progress = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.previous_transfer_in_progress_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool has_opted_in = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.has_opted_in_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.source_activity_name_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool is_finishing = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.is_finishing_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 12},
{0, 12},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_LaunchActivity::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
::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_.referrer_name_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000007eU)) {
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.source_activity_name_) -
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.source_activity_name_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchActivity::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_LaunchActivity& this_ = static_cast<const SharingLog_LaunchActivity&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchActivity::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_LaunchActivity& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_activity_name(), target);
}
// optional int64 duration_millis = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_duration_millis(), target);
}
// optional string referrer_name = 3;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_referrer_name();
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// optional bool previous_transfer_in_progress = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
4, this_._internal_previous_transfer_in_progress(), target);
}
// optional bool has_opted_in = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
5, this_._internal_has_opted_in(), target);
}
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
6, this_._internal_source_activity_name(), target);
}
// optional bool is_finishing = 7;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
7, this_._internal_is_finishing(), 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:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_LaunchActivity::ByteSizeLong(const MessageLite& base) {
const SharingLog_LaunchActivity& this_ = static_cast<const SharingLog_LaunchActivity&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_LaunchActivity::ByteSizeLong() const {
const SharingLog_LaunchActivity& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
::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];
total_size += ::absl::popcount(0x00000038U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x00000047U)) {
// optional string referrer_name = 3;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_referrer_name());
}
// optional int64 duration_millis = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_duration_millis());
}
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_activity_name());
}
// optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_activity_name());
}
}
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 SharingLog_LaunchActivity::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_LaunchActivity*>(&to_msg);
auto& from = static_cast<const SharingLog_LaunchActivity&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
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, 0x0000007fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_referrer_name(from._internal_referrer_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.activity_name_ = from._impl_.activity_name_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.previous_transfer_in_progress_ = from._impl_.previous_transfer_in_progress_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.has_opted_in_ = from._impl_.has_opted_in_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.is_finishing_ = from._impl_.is_finishing_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.source_activity_name_ = from._impl_.source_activity_name_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_LaunchActivity::CopyFrom(const SharingLog_LaunchActivity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_LaunchActivity::InternalSwap(SharingLog_LaunchActivity* 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_.referrer_name_, &other->_impl_.referrer_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.source_activity_name_)
+ sizeof(SharingLog_LaunchActivity::_impl_.source_activity_name_)
- PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.duration_millis_)>(
reinterpret_cast<char*>(&_impl_.duration_millis_),
reinterpret_cast<char*>(&other->_impl_.duration_millis_));
}
// ===================================================================
class SharingLog_DismissPrivacyNotification::_Internal {
public:
};
SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DismissPrivacyNotification_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
}
SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DismissPrivacyNotification& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DismissPrivacyNotification_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 SharingLog_DismissPrivacyNotification::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DismissPrivacyNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_DismissPrivacyNotification::~SharingLog_DismissPrivacyNotification() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
SharedDtor(*this);
}
inline void SharingLog_DismissPrivacyNotification::SharedDtor(MessageLite& self) {
SharingLog_DismissPrivacyNotification& this_ = static_cast<SharingLog_DismissPrivacyNotification&>(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 SharingLog_DismissPrivacyNotification::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DismissPrivacyNotification(arena);
}
constexpr auto SharingLog_DismissPrivacyNotification::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DismissPrivacyNotification),
alignof(SharingLog_DismissPrivacyNotification));
}
constexpr auto SharingLog_DismissPrivacyNotification::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<69>{
{
&_SharingLog_DismissPrivacyNotification_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DismissPrivacyNotification::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DismissPrivacyNotification>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DismissPrivacyNotification::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DismissPrivacyNotification>(), &SharingLog_DismissPrivacyNotification::ByteSizeLong,
&SharingLog_DismissPrivacyNotification::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DismissPrivacyNotification, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DismissPrivacyNotification_class_data_ =
SharingLog_DismissPrivacyNotification::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DismissPrivacyNotification::GetClassData() const {
return SharingLog_DismissPrivacyNotification_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_DismissPrivacyNotification::_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
SharingLog_DismissPrivacyNotification_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DismissPrivacyNotification::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
::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 SharingLog_DismissPrivacyNotification::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DismissPrivacyNotification& this_ = static_cast<const SharingLog_DismissPrivacyNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DismissPrivacyNotification::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DismissPrivacyNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
::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:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DismissPrivacyNotification::ByteSizeLong(const MessageLite& base) {
const SharingLog_DismissPrivacyNotification& this_ = static_cast<const SharingLog_DismissPrivacyNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DismissPrivacyNotification::ByteSizeLong() const {
const SharingLog_DismissPrivacyNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
::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 SharingLog_DismissPrivacyNotification::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DismissPrivacyNotification*>(&to_msg);
auto& from = static_cast<const SharingLog_DismissPrivacyNotification&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
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 SharingLog_DismissPrivacyNotification::CopyFrom(const SharingLog_DismissPrivacyNotification& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DismissPrivacyNotification::InternalSwap(SharingLog_DismissPrivacyNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_TapPrivacyNotification::_Internal {
public:
};
SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapPrivacyNotification_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
}
SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapPrivacyNotification& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapPrivacyNotification_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 SharingLog_TapPrivacyNotification::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TapPrivacyNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_TapPrivacyNotification::~SharingLog_TapPrivacyNotification() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
SharedDtor(*this);
}
inline void SharingLog_TapPrivacyNotification::SharedDtor(MessageLite& self) {
SharingLog_TapPrivacyNotification& this_ = static_cast<SharingLog_TapPrivacyNotification&>(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 SharingLog_TapPrivacyNotification::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TapPrivacyNotification(arena);
}
constexpr auto SharingLog_TapPrivacyNotification::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapPrivacyNotification),
alignof(SharingLog_TapPrivacyNotification));
}
constexpr auto SharingLog_TapPrivacyNotification::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<65>{
{
&_SharingLog_TapPrivacyNotification_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TapPrivacyNotification::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TapPrivacyNotification>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TapPrivacyNotification::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TapPrivacyNotification>(), &SharingLog_TapPrivacyNotification::ByteSizeLong,
&SharingLog_TapPrivacyNotification::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TapPrivacyNotification, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<65> SharingLog_TapPrivacyNotification_class_data_ =
SharingLog_TapPrivacyNotification::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TapPrivacyNotification::GetClassData() const {
return SharingLog_TapPrivacyNotification_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_TapPrivacyNotification::_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
SharingLog_TapPrivacyNotification_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TapPrivacyNotification::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
::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 SharingLog_TapPrivacyNotification::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TapPrivacyNotification& this_ = static_cast<const SharingLog_TapPrivacyNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TapPrivacyNotification::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TapPrivacyNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
::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:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TapPrivacyNotification::ByteSizeLong(const MessageLite& base) {
const SharingLog_TapPrivacyNotification& this_ = static_cast<const SharingLog_TapPrivacyNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TapPrivacyNotification::ByteSizeLong() const {
const SharingLog_TapPrivacyNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
::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 SharingLog_TapPrivacyNotification::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TapPrivacyNotification*>(&to_msg);
auto& from = static_cast<const SharingLog_TapPrivacyNotification&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
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 SharingLog_TapPrivacyNotification::CopyFrom(const SharingLog_TapPrivacyNotification& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TapPrivacyNotification::InternalSwap(SharingLog_TapPrivacyNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_TapHelp::_Internal {
public:
};
SharingLog_TapHelp::SharingLog_TapHelp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapHelp_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapHelp)
}
SharingLog_TapHelp::SharingLog_TapHelp(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapHelp& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapHelp_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 SharingLog_TapHelp::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TapHelp::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_TapHelp::~SharingLog_TapHelp() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapHelp)
SharedDtor(*this);
}
inline void SharingLog_TapHelp::SharedDtor(MessageLite& self) {
SharingLog_TapHelp& this_ = static_cast<SharingLog_TapHelp&>(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 SharingLog_TapHelp::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TapHelp(arena);
}
constexpr auto SharingLog_TapHelp::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapHelp),
alignof(SharingLog_TapHelp));
}
constexpr auto SharingLog_TapHelp::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<50>{
{
&_SharingLog_TapHelp_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TapHelp::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TapHelp>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TapHelp::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TapHelp>(), &SharingLog_TapHelp::ByteSizeLong,
&SharingLog_TapHelp::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TapHelp, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TapHelp",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<50> SharingLog_TapHelp_class_data_ =
SharingLog_TapHelp::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TapHelp::GetClassData() const {
return SharingLog_TapHelp_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_TapHelp::_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
SharingLog_TapHelp_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapHelp>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TapHelp::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapHelp)
::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 SharingLog_TapHelp::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TapHelp& this_ = static_cast<const SharingLog_TapHelp&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TapHelp::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TapHelp& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapHelp)
::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:nearby.sharing.analytics.proto.SharingLog.TapHelp)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TapHelp::ByteSizeLong(const MessageLite& base) {
const SharingLog_TapHelp& this_ = static_cast<const SharingLog_TapHelp&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TapHelp::ByteSizeLong() const {
const SharingLog_TapHelp& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapHelp)
::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 SharingLog_TapHelp::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TapHelp*>(&to_msg);
auto& from = static_cast<const SharingLog_TapHelp&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapHelp)
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 SharingLog_TapHelp::CopyFrom(const SharingLog_TapHelp& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapHelp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TapHelp::InternalSwap(SharingLog_TapHelp* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_TapFeedback::_Internal {
public:
};
SharingLog_TapFeedback::SharingLog_TapFeedback(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapFeedback_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
}
SharingLog_TapFeedback::SharingLog_TapFeedback(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapFeedback& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapFeedback_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 SharingLog_TapFeedback::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TapFeedback::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_TapFeedback::~SharingLog_TapFeedback() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
SharedDtor(*this);
}
inline void SharingLog_TapFeedback::SharedDtor(MessageLite& self) {
SharingLog_TapFeedback& this_ = static_cast<SharingLog_TapFeedback&>(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 SharingLog_TapFeedback::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TapFeedback(arena);
}
constexpr auto SharingLog_TapFeedback::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapFeedback),
alignof(SharingLog_TapFeedback));
}
constexpr auto SharingLog_TapFeedback::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<54>{
{
&_SharingLog_TapFeedback_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TapFeedback::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TapFeedback>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TapFeedback::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TapFeedback>(), &SharingLog_TapFeedback::ByteSizeLong,
&SharingLog_TapFeedback::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TapFeedback, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TapFeedback",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<54> SharingLog_TapFeedback_class_data_ =
SharingLog_TapFeedback::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TapFeedback::GetClassData() const {
return SharingLog_TapFeedback_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_TapFeedback::_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
SharingLog_TapFeedback_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TapFeedback::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
::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 SharingLog_TapFeedback::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TapFeedback& this_ = static_cast<const SharingLog_TapFeedback&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TapFeedback::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TapFeedback& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
::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:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TapFeedback::ByteSizeLong(const MessageLite& base) {
const SharingLog_TapFeedback& this_ = static_cast<const SharingLog_TapFeedback&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TapFeedback::ByteSizeLong() const {
const SharingLog_TapFeedback& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
::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 SharingLog_TapFeedback::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TapFeedback*>(&to_msg);
auto& from = static_cast<const SharingLog_TapFeedback&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
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 SharingLog_TapFeedback::CopyFrom(const SharingLog_TapFeedback& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TapFeedback::InternalSwap(SharingLog_TapFeedback* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_AddQuickSettingsTile::_Internal {
public:
};
SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AddQuickSettingsTile_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
}
SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AddQuickSettingsTile& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AddQuickSettingsTile_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 SharingLog_AddQuickSettingsTile::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AddQuickSettingsTile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_AddQuickSettingsTile::~SharingLog_AddQuickSettingsTile() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
SharedDtor(*this);
}
inline void SharingLog_AddQuickSettingsTile::SharedDtor(MessageLite& self) {
SharingLog_AddQuickSettingsTile& this_ = static_cast<SharingLog_AddQuickSettingsTile&>(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 SharingLog_AddQuickSettingsTile::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AddQuickSettingsTile(arena);
}
constexpr auto SharingLog_AddQuickSettingsTile::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AddQuickSettingsTile),
alignof(SharingLog_AddQuickSettingsTile));
}
constexpr auto SharingLog_AddQuickSettingsTile::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<63>{
{
&_SharingLog_AddQuickSettingsTile_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AddQuickSettingsTile::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AddQuickSettingsTile>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AddQuickSettingsTile::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AddQuickSettingsTile>(), &SharingLog_AddQuickSettingsTile::ByteSizeLong,
&SharingLog_AddQuickSettingsTile::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AddQuickSettingsTile, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<63> SharingLog_AddQuickSettingsTile_class_data_ =
SharingLog_AddQuickSettingsTile::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AddQuickSettingsTile::GetClassData() const {
return SharingLog_AddQuickSettingsTile_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_AddQuickSettingsTile::_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
SharingLog_AddQuickSettingsTile_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AddQuickSettingsTile::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
::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 SharingLog_AddQuickSettingsTile::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AddQuickSettingsTile& this_ = static_cast<const SharingLog_AddQuickSettingsTile&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AddQuickSettingsTile::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AddQuickSettingsTile& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
::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:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AddQuickSettingsTile::ByteSizeLong(const MessageLite& base) {
const SharingLog_AddQuickSettingsTile& this_ = static_cast<const SharingLog_AddQuickSettingsTile&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AddQuickSettingsTile::ByteSizeLong() const {
const SharingLog_AddQuickSettingsTile& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
::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 SharingLog_AddQuickSettingsTile::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AddQuickSettingsTile*>(&to_msg);
auto& from = static_cast<const SharingLog_AddQuickSettingsTile&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
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 SharingLog_AddQuickSettingsTile::CopyFrom(const SharingLog_AddQuickSettingsTile& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AddQuickSettingsTile::InternalSwap(SharingLog_AddQuickSettingsTile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_RemoveQuickSettingsTile::_Internal {
public:
};
SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RemoveQuickSettingsTile_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
}
SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RemoveQuickSettingsTile& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RemoveQuickSettingsTile_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 SharingLog_RemoveQuickSettingsTile::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_RemoveQuickSettingsTile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_RemoveQuickSettingsTile::~SharingLog_RemoveQuickSettingsTile() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
SharedDtor(*this);
}
inline void SharingLog_RemoveQuickSettingsTile::SharedDtor(MessageLite& self) {
SharingLog_RemoveQuickSettingsTile& this_ = static_cast<SharingLog_RemoveQuickSettingsTile&>(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 SharingLog_RemoveQuickSettingsTile::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_RemoveQuickSettingsTile(arena);
}
constexpr auto SharingLog_RemoveQuickSettingsTile::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RemoveQuickSettingsTile),
alignof(SharingLog_RemoveQuickSettingsTile));
}
constexpr auto SharingLog_RemoveQuickSettingsTile::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_RemoveQuickSettingsTile_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_RemoveQuickSettingsTile::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_RemoveQuickSettingsTile>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_RemoveQuickSettingsTile::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_RemoveQuickSettingsTile>(), &SharingLog_RemoveQuickSettingsTile::ByteSizeLong,
&SharingLog_RemoveQuickSettingsTile::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_RemoveQuickSettingsTile, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_RemoveQuickSettingsTile_class_data_ =
SharingLog_RemoveQuickSettingsTile::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_RemoveQuickSettingsTile::GetClassData() const {
return SharingLog_RemoveQuickSettingsTile_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_RemoveQuickSettingsTile::_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
SharingLog_RemoveQuickSettingsTile_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_RemoveQuickSettingsTile::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
::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 SharingLog_RemoveQuickSettingsTile::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_RemoveQuickSettingsTile& this_ = static_cast<const SharingLog_RemoveQuickSettingsTile&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveQuickSettingsTile::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_RemoveQuickSettingsTile& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
::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:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_RemoveQuickSettingsTile::ByteSizeLong(const MessageLite& base) {
const SharingLog_RemoveQuickSettingsTile& this_ = static_cast<const SharingLog_RemoveQuickSettingsTile&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_RemoveQuickSettingsTile::ByteSizeLong() const {
const SharingLog_RemoveQuickSettingsTile& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
::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 SharingLog_RemoveQuickSettingsTile::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_RemoveQuickSettingsTile*>(&to_msg);
auto& from = static_cast<const SharingLog_RemoveQuickSettingsTile&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
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 SharingLog_RemoveQuickSettingsTile::CopyFrom(const SharingLog_RemoveQuickSettingsTile& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_RemoveQuickSettingsTile::InternalSwap(SharingLog_RemoveQuickSettingsTile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_LaunchPhoneConsent::_Internal {
public:
};
SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchPhoneConsent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
}
SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchPhoneConsent& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchPhoneConsent_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 SharingLog_LaunchPhoneConsent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_LaunchPhoneConsent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_LaunchPhoneConsent::~SharingLog_LaunchPhoneConsent() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
SharedDtor(*this);
}
inline void SharingLog_LaunchPhoneConsent::SharedDtor(MessageLite& self) {
SharingLog_LaunchPhoneConsent& this_ = static_cast<SharingLog_LaunchPhoneConsent&>(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 SharingLog_LaunchPhoneConsent::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_LaunchPhoneConsent(arena);
}
constexpr auto SharingLog_LaunchPhoneConsent::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_LaunchPhoneConsent),
alignof(SharingLog_LaunchPhoneConsent));
}
constexpr auto SharingLog_LaunchPhoneConsent::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<61>{
{
&_SharingLog_LaunchPhoneConsent_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_LaunchPhoneConsent::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_LaunchPhoneConsent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_LaunchPhoneConsent::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_LaunchPhoneConsent>(), &SharingLog_LaunchPhoneConsent::ByteSizeLong,
&SharingLog_LaunchPhoneConsent::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchPhoneConsent, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<61> SharingLog_LaunchPhoneConsent_class_data_ =
SharingLog_LaunchPhoneConsent::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_LaunchPhoneConsent::GetClassData() const {
return SharingLog_LaunchPhoneConsent_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_LaunchPhoneConsent::_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
SharingLog_LaunchPhoneConsent_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_LaunchPhoneConsent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
::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 SharingLog_LaunchPhoneConsent::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_LaunchPhoneConsent& this_ = static_cast<const SharingLog_LaunchPhoneConsent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchPhoneConsent::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_LaunchPhoneConsent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
::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:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_LaunchPhoneConsent::ByteSizeLong(const MessageLite& base) {
const SharingLog_LaunchPhoneConsent& this_ = static_cast<const SharingLog_LaunchPhoneConsent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_LaunchPhoneConsent::ByteSizeLong() const {
const SharingLog_LaunchPhoneConsent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
::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 SharingLog_LaunchPhoneConsent::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_LaunchPhoneConsent*>(&to_msg);
auto& from = static_cast<const SharingLog_LaunchPhoneConsent&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
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 SharingLog_LaunchPhoneConsent::CopyFrom(const SharingLog_LaunchPhoneConsent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_LaunchPhoneConsent::InternalSwap(SharingLog_LaunchPhoneConsent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_DisplayPhoneConsent::_Internal {
public:
};
SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DisplayPhoneConsent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
}
SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DisplayPhoneConsent& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DisplayPhoneConsent_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 SharingLog_DisplayPhoneConsent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DisplayPhoneConsent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_DisplayPhoneConsent::~SharingLog_DisplayPhoneConsent() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
SharedDtor(*this);
}
inline void SharingLog_DisplayPhoneConsent::SharedDtor(MessageLite& self) {
SharingLog_DisplayPhoneConsent& this_ = static_cast<SharingLog_DisplayPhoneConsent&>(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 SharingLog_DisplayPhoneConsent::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DisplayPhoneConsent(arena);
}
constexpr auto SharingLog_DisplayPhoneConsent::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DisplayPhoneConsent),
alignof(SharingLog_DisplayPhoneConsent));
}
constexpr auto SharingLog_DisplayPhoneConsent::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_DisplayPhoneConsent_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DisplayPhoneConsent::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DisplayPhoneConsent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DisplayPhoneConsent::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DisplayPhoneConsent>(), &SharingLog_DisplayPhoneConsent::ByteSizeLong,
&SharingLog_DisplayPhoneConsent::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DisplayPhoneConsent, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DisplayPhoneConsent_class_data_ =
SharingLog_DisplayPhoneConsent::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DisplayPhoneConsent::GetClassData() const {
return SharingLog_DisplayPhoneConsent_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_DisplayPhoneConsent::_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
SharingLog_DisplayPhoneConsent_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DisplayPhoneConsent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
::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 SharingLog_DisplayPhoneConsent::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DisplayPhoneConsent& this_ = static_cast<const SharingLog_DisplayPhoneConsent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DisplayPhoneConsent::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DisplayPhoneConsent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
::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:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DisplayPhoneConsent::ByteSizeLong(const MessageLite& base) {
const SharingLog_DisplayPhoneConsent& this_ = static_cast<const SharingLog_DisplayPhoneConsent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DisplayPhoneConsent::ByteSizeLong() const {
const SharingLog_DisplayPhoneConsent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
::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 SharingLog_DisplayPhoneConsent::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DisplayPhoneConsent*>(&to_msg);
auto& from = static_cast<const SharingLog_DisplayPhoneConsent&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
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 SharingLog_DisplayPhoneConsent::CopyFrom(const SharingLog_DisplayPhoneConsent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DisplayPhoneConsent::InternalSwap(SharingLog_DisplayPhoneConsent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_TapQuickSettingsTile::_Internal {
public:
};
SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsTile_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
}
SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQuickSettingsTile& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsTile_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 SharingLog_TapQuickSettingsTile::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TapQuickSettingsTile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_TapQuickSettingsTile::~SharingLog_TapQuickSettingsTile() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
SharedDtor(*this);
}
inline void SharingLog_TapQuickSettingsTile::SharedDtor(MessageLite& self) {
SharingLog_TapQuickSettingsTile& this_ = static_cast<SharingLog_TapQuickSettingsTile&>(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 SharingLog_TapQuickSettingsTile::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TapQuickSettingsTile(arena);
}
constexpr auto SharingLog_TapQuickSettingsTile::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapQuickSettingsTile),
alignof(SharingLog_TapQuickSettingsTile));
}
constexpr auto SharingLog_TapQuickSettingsTile::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<63>{
{
&_SharingLog_TapQuickSettingsTile_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TapQuickSettingsTile::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TapQuickSettingsTile>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TapQuickSettingsTile::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TapQuickSettingsTile>(), &SharingLog_TapQuickSettingsTile::ByteSizeLong,
&SharingLog_TapQuickSettingsTile::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TapQuickSettingsTile, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<63> SharingLog_TapQuickSettingsTile_class_data_ =
SharingLog_TapQuickSettingsTile::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TapQuickSettingsTile::GetClassData() const {
return SharingLog_TapQuickSettingsTile_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_TapQuickSettingsTile::_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
SharingLog_TapQuickSettingsTile_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TapQuickSettingsTile::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
::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 SharingLog_TapQuickSettingsTile::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TapQuickSettingsTile& this_ = static_cast<const SharingLog_TapQuickSettingsTile&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TapQuickSettingsTile::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TapQuickSettingsTile& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
::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:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TapQuickSettingsTile::ByteSizeLong(const MessageLite& base) {
const SharingLog_TapQuickSettingsTile& this_ = static_cast<const SharingLog_TapQuickSettingsTile&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TapQuickSettingsTile::ByteSizeLong() const {
const SharingLog_TapQuickSettingsTile& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
::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 SharingLog_TapQuickSettingsTile::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TapQuickSettingsTile*>(&to_msg);
auto& from = static_cast<const SharingLog_TapQuickSettingsTile&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
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 SharingLog_TapQuickSettingsTile::CopyFrom(const SharingLog_TapQuickSettingsTile& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TapQuickSettingsTile::InternalSwap(SharingLog_TapQuickSettingsTile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_TapQuickSettingsFileShare::_Internal {
public:
};
SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsFileShare_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
}
SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQuickSettingsFileShare& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsFileShare_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 SharingLog_TapQuickSettingsFileShare::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TapQuickSettingsFileShare::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_TapQuickSettingsFileShare::~SharingLog_TapQuickSettingsFileShare() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
SharedDtor(*this);
}
inline void SharingLog_TapQuickSettingsFileShare::SharedDtor(MessageLite& self) {
SharingLog_TapQuickSettingsFileShare& this_ = static_cast<SharingLog_TapQuickSettingsFileShare&>(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 SharingLog_TapQuickSettingsFileShare::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TapQuickSettingsFileShare(arena);
}
constexpr auto SharingLog_TapQuickSettingsFileShare::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapQuickSettingsFileShare),
alignof(SharingLog_TapQuickSettingsFileShare));
}
constexpr auto SharingLog_TapQuickSettingsFileShare::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_TapQuickSettingsFileShare_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TapQuickSettingsFileShare::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TapQuickSettingsFileShare>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TapQuickSettingsFileShare::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TapQuickSettingsFileShare>(), &SharingLog_TapQuickSettingsFileShare::ByteSizeLong,
&SharingLog_TapQuickSettingsFileShare::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TapQuickSettingsFileShare, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_TapQuickSettingsFileShare_class_data_ =
SharingLog_TapQuickSettingsFileShare::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TapQuickSettingsFileShare::GetClassData() const {
return SharingLog_TapQuickSettingsFileShare_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_TapQuickSettingsFileShare::_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
SharingLog_TapQuickSettingsFileShare_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TapQuickSettingsFileShare::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
::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 SharingLog_TapQuickSettingsFileShare::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TapQuickSettingsFileShare& this_ = static_cast<const SharingLog_TapQuickSettingsFileShare&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TapQuickSettingsFileShare::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TapQuickSettingsFileShare& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
::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:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TapQuickSettingsFileShare::ByteSizeLong(const MessageLite& base) {
const SharingLog_TapQuickSettingsFileShare& this_ = static_cast<const SharingLog_TapQuickSettingsFileShare&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TapQuickSettingsFileShare::ByteSizeLong() const {
const SharingLog_TapQuickSettingsFileShare& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
::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 SharingLog_TapQuickSettingsFileShare::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TapQuickSettingsFileShare*>(&to_msg);
auto& from = static_cast<const SharingLog_TapQuickSettingsFileShare&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
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 SharingLog_TapQuickSettingsFileShare::CopyFrom(const SharingLog_TapQuickSettingsFileShare& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TapQuickSettingsFileShare::InternalSwap(SharingLog_TapQuickSettingsFileShare* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_DisplayPrivacyNotification::_Internal {
public:
};
SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DisplayPrivacyNotification_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
}
SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DisplayPrivacyNotification& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DisplayPrivacyNotification_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 SharingLog_DisplayPrivacyNotification::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DisplayPrivacyNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_DisplayPrivacyNotification::~SharingLog_DisplayPrivacyNotification() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
SharedDtor(*this);
}
inline void SharingLog_DisplayPrivacyNotification::SharedDtor(MessageLite& self) {
SharingLog_DisplayPrivacyNotification& this_ = static_cast<SharingLog_DisplayPrivacyNotification&>(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 SharingLog_DisplayPrivacyNotification::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DisplayPrivacyNotification(arena);
}
constexpr auto SharingLog_DisplayPrivacyNotification::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DisplayPrivacyNotification),
alignof(SharingLog_DisplayPrivacyNotification));
}
constexpr auto SharingLog_DisplayPrivacyNotification::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<69>{
{
&_SharingLog_DisplayPrivacyNotification_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DisplayPrivacyNotification::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DisplayPrivacyNotification>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DisplayPrivacyNotification::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DisplayPrivacyNotification>(), &SharingLog_DisplayPrivacyNotification::ByteSizeLong,
&SharingLog_DisplayPrivacyNotification::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DisplayPrivacyNotification, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DisplayPrivacyNotification_class_data_ =
SharingLog_DisplayPrivacyNotification::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DisplayPrivacyNotification::GetClassData() const {
return SharingLog_DisplayPrivacyNotification_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_DisplayPrivacyNotification::_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
SharingLog_DisplayPrivacyNotification_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DisplayPrivacyNotification::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
::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 SharingLog_DisplayPrivacyNotification::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DisplayPrivacyNotification& this_ = static_cast<const SharingLog_DisplayPrivacyNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DisplayPrivacyNotification::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DisplayPrivacyNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
::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:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DisplayPrivacyNotification::ByteSizeLong(const MessageLite& base) {
const SharingLog_DisplayPrivacyNotification& this_ = static_cast<const SharingLog_DisplayPrivacyNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DisplayPrivacyNotification::ByteSizeLong() const {
const SharingLog_DisplayPrivacyNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
::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 SharingLog_DisplayPrivacyNotification::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DisplayPrivacyNotification*>(&to_msg);
auto& from = static_cast<const SharingLog_DisplayPrivacyNotification&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
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 SharingLog_DisplayPrivacyNotification::CopyFrom(const SharingLog_DisplayPrivacyNotification& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DisplayPrivacyNotification::InternalSwap(SharingLog_DisplayPrivacyNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_DefaultOptIn::_Internal {
public:
};
SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DefaultOptIn_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
}
SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DefaultOptIn& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DefaultOptIn_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 SharingLog_DefaultOptIn::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DefaultOptIn::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_DefaultOptIn::~SharingLog_DefaultOptIn() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
SharedDtor(*this);
}
inline void SharingLog_DefaultOptIn::SharedDtor(MessageLite& self) {
SharingLog_DefaultOptIn& this_ = static_cast<SharingLog_DefaultOptIn&>(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 SharingLog_DefaultOptIn::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DefaultOptIn(arena);
}
constexpr auto SharingLog_DefaultOptIn::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DefaultOptIn),
alignof(SharingLog_DefaultOptIn));
}
constexpr auto SharingLog_DefaultOptIn::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<55>{
{
&_SharingLog_DefaultOptIn_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DefaultOptIn::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DefaultOptIn>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DefaultOptIn::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DefaultOptIn>(), &SharingLog_DefaultOptIn::ByteSizeLong,
&SharingLog_DefaultOptIn::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DefaultOptIn, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DefaultOptIn",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<55> SharingLog_DefaultOptIn_class_data_ =
SharingLog_DefaultOptIn::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DefaultOptIn::GetClassData() const {
return SharingLog_DefaultOptIn_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_DefaultOptIn::_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
SharingLog_DefaultOptIn_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DefaultOptIn::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
::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 SharingLog_DefaultOptIn::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DefaultOptIn& this_ = static_cast<const SharingLog_DefaultOptIn&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DefaultOptIn::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DefaultOptIn& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
::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:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DefaultOptIn::ByteSizeLong(const MessageLite& base) {
const SharingLog_DefaultOptIn& this_ = static_cast<const SharingLog_DefaultOptIn&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DefaultOptIn::ByteSizeLong() const {
const SharingLog_DefaultOptIn& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
::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 SharingLog_DefaultOptIn::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DefaultOptIn*>(&to_msg);
auto& from = static_cast<const SharingLog_DefaultOptIn&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
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 SharingLog_DefaultOptIn::CopyFrom(const SharingLog_DefaultOptIn& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DefaultOptIn::InternalSwap(SharingLog_DefaultOptIn* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_SetDeviceName::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SetDeviceName>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_._has_bits_);
};
SharingLog_SetDeviceName::SharingLog_SetDeviceName(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetDeviceName_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
}
SharingLog_SetDeviceName::SharingLog_SetDeviceName(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetDeviceName& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetDeviceName_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 SharingLog_SetDeviceName::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SetDeviceName::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.device_name_size_ = {};
}
SharingLog_SetDeviceName::~SharingLog_SetDeviceName() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
SharedDtor(*this);
}
inline void SharingLog_SetDeviceName::SharedDtor(MessageLite& self) {
SharingLog_SetDeviceName& this_ = static_cast<SharingLog_SetDeviceName&>(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 SharingLog_SetDeviceName::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SetDeviceName(arena);
}
constexpr auto SharingLog_SetDeviceName::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetDeviceName),
alignof(SharingLog_SetDeviceName));
}
constexpr auto SharingLog_SetDeviceName::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_SetDeviceName_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SetDeviceName::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SetDeviceName>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SetDeviceName::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SetDeviceName>(), &SharingLog_SetDeviceName::ByteSizeLong,
&SharingLog_SetDeviceName::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SetDeviceName",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetDeviceName_class_data_ =
SharingLog_SetDeviceName::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SetDeviceName::GetClassData() const {
return SharingLog_SetDeviceName_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
SharingLog_SetDeviceName::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _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
SharingLog_SetDeviceName_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int32 device_name_size = 1;
{::_pbi::TcParser::FastV32S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_.device_name_size_)}},
}}, {{
65535, 65535
}}, {{
// optional int32 device_name_size = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_.device_name_size_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SetDeviceName::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.device_name_size_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SetDeviceName::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SetDeviceName& this_ = static_cast<const SharingLog_SetDeviceName&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SetDeviceName::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SetDeviceName& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int32 device_name_size = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
stream, this_._internal_device_name_size(), target);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SetDeviceName::ByteSizeLong(const MessageLite& base) {
const SharingLog_SetDeviceName& this_ = static_cast<const SharingLog_SetDeviceName&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SetDeviceName::ByteSizeLong() const {
const SharingLog_SetDeviceName& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
::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 int32 device_name_size = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_device_name_size());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_SetDeviceName::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SetDeviceName*>(&to_msg);
auto& from = static_cast<const SharingLog_SetDeviceName&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.device_name_size_ = from._impl_.device_name_size_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SetDeviceName::CopyFrom(const SharingLog_SetDeviceName& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SetDeviceName::InternalSwap(SharingLog_SetDeviceName* 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_.device_name_size_, other->_impl_.device_name_size_);
}
// ===================================================================
class SharingLog_RequestSettingPermissions::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_RequestSettingPermissions>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_._has_bits_);
};
SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RequestSettingPermissions_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
}
SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RequestSettingPermissions& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RequestSettingPermissions_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 SharingLog_RequestSettingPermissions::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_RequestSettingPermissions::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, permission_type_),
0,
offsetof(Impl_, permission_request_result_) -
offsetof(Impl_, permission_type_) +
sizeof(Impl_::permission_request_result_));
}
SharingLog_RequestSettingPermissions::~SharingLog_RequestSettingPermissions() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
SharedDtor(*this);
}
inline void SharingLog_RequestSettingPermissions::SharedDtor(MessageLite& self) {
SharingLog_RequestSettingPermissions& this_ = static_cast<SharingLog_RequestSettingPermissions&>(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 SharingLog_RequestSettingPermissions::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_RequestSettingPermissions(arena);
}
constexpr auto SharingLog_RequestSettingPermissions::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RequestSettingPermissions),
alignof(SharingLog_RequestSettingPermissions));
}
constexpr auto SharingLog_RequestSettingPermissions::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_RequestSettingPermissions_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_RequestSettingPermissions::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_RequestSettingPermissions>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_RequestSettingPermissions::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_RequestSettingPermissions>(), &SharingLog_RequestSettingPermissions::ByteSizeLong,
&SharingLog_RequestSettingPermissions::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_RequestSettingPermissions_class_data_ =
SharingLog_RequestSettingPermissions::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_RequestSettingPermissions::GetClassData() const {
return SharingLog_RequestSettingPermissions_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_RequestSettingPermissions::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_RequestSettingPermissions_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_request_result_)}},
// optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_type_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_request_result_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 5},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_RequestSettingPermissions::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
::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)) {
::memset(&_impl_.permission_type_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.permission_request_result_) -
reinterpret_cast<char*>(&_impl_.permission_type_)) + sizeof(_impl_.permission_request_result_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_RequestSettingPermissions::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_RequestSettingPermissions& this_ = static_cast<const SharingLog_RequestSettingPermissions&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_RequestSettingPermissions::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_RequestSettingPermissions& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_permission_type(), target);
}
// optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_permission_request_result(), 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:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_RequestSettingPermissions::ByteSizeLong(const MessageLite& base) {
const SharingLog_RequestSettingPermissions& this_ = static_cast<const SharingLog_RequestSettingPermissions&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_RequestSettingPermissions::ByteSizeLong() const {
const SharingLog_RequestSettingPermissions& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
::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.proto.sharing.PermissionRequestType permission_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_permission_type());
}
// optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_permission_request_result());
}
}
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 SharingLog_RequestSettingPermissions::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_RequestSettingPermissions*>(&to_msg);
auto& from = static_cast<const SharingLog_RequestSettingPermissions&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.permission_type_ = from._impl_.permission_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.permission_request_result_ = from._impl_.permission_request_result_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_RequestSettingPermissions::CopyFrom(const SharingLog_RequestSettingPermissions& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_RequestSettingPermissions::InternalSwap(SharingLog_RequestSettingPermissions* 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(SharingLog_RequestSettingPermissions, _impl_.permission_request_result_)
+ sizeof(SharingLog_RequestSettingPermissions::_impl_.permission_request_result_)
- PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_type_)>(
reinterpret_cast<char*>(&_impl_.permission_type_),
reinterpret_cast<char*>(&other->_impl_.permission_type_));
}
// ===================================================================
class SharingLog_LaunchConsent::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_LaunchConsent>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_._has_bits_);
};
SharingLog_LaunchConsent::SharingLog_LaunchConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchConsent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
}
SharingLog_LaunchConsent::SharingLog_LaunchConsent(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchConsent& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_LaunchConsent_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 SharingLog_LaunchConsent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_LaunchConsent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, consent_type_),
0,
offsetof(Impl_, status_) -
offsetof(Impl_, consent_type_) +
sizeof(Impl_::status_));
}
SharingLog_LaunchConsent::~SharingLog_LaunchConsent() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
SharedDtor(*this);
}
inline void SharingLog_LaunchConsent::SharedDtor(MessageLite& self) {
SharingLog_LaunchConsent& this_ = static_cast<SharingLog_LaunchConsent&>(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 SharingLog_LaunchConsent::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_LaunchConsent(arena);
}
constexpr auto SharingLog_LaunchConsent::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_LaunchConsent),
alignof(SharingLog_LaunchConsent));
}
constexpr auto SharingLog_LaunchConsent::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_LaunchConsent_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_LaunchConsent::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_LaunchConsent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_LaunchConsent::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_LaunchConsent>(), &SharingLog_LaunchConsent::ByteSizeLong,
&SharingLog_LaunchConsent::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.LaunchConsent",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_LaunchConsent_class_data_ =
SharingLog_LaunchConsent::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_LaunchConsent::GetClassData() const {
return SharingLog_LaunchConsent_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_LaunchConsent::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_LaunchConsent_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.status_)}},
// optional .location.nearby.proto.sharing.ConsentType consent_type = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.consent_type_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ConsentType consent_type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.consent_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.status_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 2},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_LaunchConsent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
::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)) {
::memset(&_impl_.consent_type_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.status_) -
reinterpret_cast<char*>(&_impl_.consent_type_)) + sizeof(_impl_.status_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchConsent::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_LaunchConsent& this_ = static_cast<const SharingLog_LaunchConsent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchConsent::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_LaunchConsent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ConsentType consent_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_consent_type(), target);
}
// optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_status(), 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:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_LaunchConsent::ByteSizeLong(const MessageLite& base) {
const SharingLog_LaunchConsent& this_ = static_cast<const SharingLog_LaunchConsent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_LaunchConsent::ByteSizeLong() const {
const SharingLog_LaunchConsent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
::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.proto.sharing.ConsentType consent_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_consent_type());
}
// optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
}
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 SharingLog_LaunchConsent::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_LaunchConsent*>(&to_msg);
auto& from = static_cast<const SharingLog_LaunchConsent&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.consent_type_ = from._impl_.consent_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.status_ = from._impl_.status_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_LaunchConsent::CopyFrom(const SharingLog_LaunchConsent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_LaunchConsent::InternalSwap(SharingLog_LaunchConsent* 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(SharingLog_LaunchConsent, _impl_.status_)
+ sizeof(SharingLog_LaunchConsent::_impl_.status_)
- PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.consent_type_)>(
reinterpret_cast<char*>(&_impl_.consent_type_),
reinterpret_cast<char*>(&other->_impl_.consent_type_));
}
// ===================================================================
class SharingLog_InstallAPKStatus::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_InstallAPKStatus>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_._has_bits_);
};
SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_InstallAPKStatus_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
}
PROTOBUF_NDEBUG_INLINE SharingLog_InstallAPKStatus::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
status_{visibility, arena, from.status_},
_status_cached_byte_size_{0},
source_{visibility, arena, from.source_},
_source_cached_byte_size_{0} {}
SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_InstallAPKStatus& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_InstallAPKStatus_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_InstallAPKStatus* 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:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
}
PROTOBUF_NDEBUG_INLINE SharingLog_InstallAPKStatus::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
status_{visibility, arena},
_status_cached_byte_size_{0},
source_{visibility, arena},
_source_cached_byte_size_{0} {}
inline void SharingLog_InstallAPKStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_InstallAPKStatus::~SharingLog_InstallAPKStatus() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
SharedDtor(*this);
}
inline void SharingLog_InstallAPKStatus::SharedDtor(MessageLite& self) {
SharingLog_InstallAPKStatus& this_ = static_cast<SharingLog_InstallAPKStatus&>(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 SharingLog_InstallAPKStatus::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_InstallAPKStatus(arena);
}
constexpr auto SharingLog_InstallAPKStatus::InternalNewImpl_() {
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.status_) +
decltype(SharingLog_InstallAPKStatus::_impl_.status_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.source_) +
decltype(SharingLog_InstallAPKStatus::_impl_.source_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
});
if (arena_bits.has_value()) {
return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(SharingLog_InstallAPKStatus), alignof(SharingLog_InstallAPKStatus), *arena_bits);
} else {
return ::google::protobuf::internal::MessageCreator(&SharingLog_InstallAPKStatus::PlacementNew_,
sizeof(SharingLog_InstallAPKStatus),
alignof(SharingLog_InstallAPKStatus));
}
}
constexpr auto SharingLog_InstallAPKStatus::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_InstallAPKStatus_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_InstallAPKStatus::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_InstallAPKStatus>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_InstallAPKStatus::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_InstallAPKStatus>(), &SharingLog_InstallAPKStatus::ByteSizeLong,
&SharingLog_InstallAPKStatus::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_InstallAPKStatus_class_data_ =
SharingLog_InstallAPKStatus::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_InstallAPKStatus::GetClassData() const {
return SharingLog_InstallAPKStatus_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_InstallAPKStatus::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_InstallAPKStatus_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
{::_pbi::TcParser::FastEr0P1,
{18, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.source_)}},
// repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true];
{::_pbi::TcParser::FastEr0P1,
{10, 0, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.status_)}},
}}, {{
65535, 65535
}}, {{
// repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.source_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
}},
{{
{0, 2},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_InstallAPKStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
::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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_impl_.status_.Clear();
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
_impl_.source_.Clear();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_InstallAPKStatus& this_ = static_cast<const SharingLog_InstallAPKStatus&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_InstallAPKStatus& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
{
::size_t byte_size = this_._impl_._status_cached_byte_size_.Get();
if (byte_size > 0) {
target = stream->WriteEnumPacked(
1, this_._internal_status(), byte_size, target);
}
}
}
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
{
::size_t byte_size = this_._impl_._source_cached_byte_size_.Get();
if (byte_size > 0) {
target = stream->WriteEnumPacked(
2, this_._internal_source(), byte_size, target);
}
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_InstallAPKStatus::ByteSizeLong(const MessageLite& base) {
const SharingLog_InstallAPKStatus& this_ = static_cast<const SharingLog_InstallAPKStatus&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_InstallAPKStatus::ByteSizeLong() const {
const SharingLog_InstallAPKStatus& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
::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)) {
// repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
this_._internal_status(), 1, this_._impl_._status_cached_byte_size_);
}
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
this_._internal_source(), 1, this_._impl_._source_cached_byte_size_);
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_InstallAPKStatus::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_InstallAPKStatus*>(&to_msg);
auto& from = static_cast<const SharingLog_InstallAPKStatus&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_status()->MergeFrom(from._internal_status());
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
_this->_internal_mutable_source()->MergeFrom(from._internal_source());
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_InstallAPKStatus::CopyFrom(const SharingLog_InstallAPKStatus& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_InstallAPKStatus::InternalSwap(SharingLog_InstallAPKStatus* 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_.status_.InternalSwap(&other->_impl_.status_);
_impl_.source_.InternalSwap(&other->_impl_.source_);
}
// ===================================================================
class SharingLog_VerifyAPKStatus::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_VerifyAPKStatus>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_._has_bits_);
};
SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_VerifyAPKStatus_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
}
PROTOBUF_NDEBUG_INLINE SharingLog_VerifyAPKStatus::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
status_{visibility, arena, from.status_},
_status_cached_byte_size_{0},
source_{visibility, arena, from.source_},
_source_cached_byte_size_{0} {}
SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_VerifyAPKStatus& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_VerifyAPKStatus_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_VerifyAPKStatus* 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:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
}
PROTOBUF_NDEBUG_INLINE SharingLog_VerifyAPKStatus::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
status_{visibility, arena},
_status_cached_byte_size_{0},
source_{visibility, arena},
_source_cached_byte_size_{0} {}
inline void SharingLog_VerifyAPKStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_VerifyAPKStatus::~SharingLog_VerifyAPKStatus() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
SharedDtor(*this);
}
inline void SharingLog_VerifyAPKStatus::SharedDtor(MessageLite& self) {
SharingLog_VerifyAPKStatus& this_ = static_cast<SharingLog_VerifyAPKStatus&>(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 SharingLog_VerifyAPKStatus::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_VerifyAPKStatus(arena);
}
constexpr auto SharingLog_VerifyAPKStatus::InternalNewImpl_() {
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.status_) +
decltype(SharingLog_VerifyAPKStatus::_impl_.status_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.source_) +
decltype(SharingLog_VerifyAPKStatus::_impl_.source_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
});
if (arena_bits.has_value()) {
return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(SharingLog_VerifyAPKStatus), alignof(SharingLog_VerifyAPKStatus), *arena_bits);
} else {
return ::google::protobuf::internal::MessageCreator(&SharingLog_VerifyAPKStatus::PlacementNew_,
sizeof(SharingLog_VerifyAPKStatus),
alignof(SharingLog_VerifyAPKStatus));
}
}
constexpr auto SharingLog_VerifyAPKStatus::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<58>{
{
&_SharingLog_VerifyAPKStatus_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_VerifyAPKStatus::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_VerifyAPKStatus>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_VerifyAPKStatus::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_VerifyAPKStatus>(), &SharingLog_VerifyAPKStatus::ByteSizeLong,
&SharingLog_VerifyAPKStatus::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<58> SharingLog_VerifyAPKStatus_class_data_ =
SharingLog_VerifyAPKStatus::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_VerifyAPKStatus::GetClassData() const {
return SharingLog_VerifyAPKStatus_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_VerifyAPKStatus::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_VerifyAPKStatus_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
{::_pbi::TcParser::FastEr0P1,
{18, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.source_)}},
// repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true];
{::_pbi::TcParser::FastEr0P1,
{10, 0, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.status_)}},
}}, {{
65535, 65535
}}, {{
// repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
{PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.source_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
}},
{{
{0, 3},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_VerifyAPKStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
::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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_impl_.status_.Clear();
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
_impl_.source_.Clear();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_VerifyAPKStatus& this_ = static_cast<const SharingLog_VerifyAPKStatus&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_VerifyAPKStatus& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
{
::size_t byte_size = this_._impl_._status_cached_byte_size_.Get();
if (byte_size > 0) {
target = stream->WriteEnumPacked(
1, this_._internal_status(), byte_size, target);
}
}
}
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
{
::size_t byte_size = this_._impl_._source_cached_byte_size_.Get();
if (byte_size > 0) {
target = stream->WriteEnumPacked(
2, this_._internal_source(), byte_size, target);
}
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_VerifyAPKStatus::ByteSizeLong(const MessageLite& base) {
const SharingLog_VerifyAPKStatus& this_ = static_cast<const SharingLog_VerifyAPKStatus&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_VerifyAPKStatus::ByteSizeLong() const {
const SharingLog_VerifyAPKStatus& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
::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)) {
// repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
this_._internal_status(), 1, this_._impl_._status_cached_byte_size_);
}
// repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true];
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
this_._internal_source(), 1, this_._impl_._source_cached_byte_size_);
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_VerifyAPKStatus::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_VerifyAPKStatus*>(&to_msg);
auto& from = static_cast<const SharingLog_VerifyAPKStatus&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_status()->MergeFrom(from._internal_status());
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
_this->_internal_mutable_source()->MergeFrom(from._internal_source());
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_VerifyAPKStatus::CopyFrom(const SharingLog_VerifyAPKStatus& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_VerifyAPKStatus::InternalSwap(SharingLog_VerifyAPKStatus* 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_.status_.InternalSwap(&other->_impl_.status_);
_impl_.source_.InternalSwap(&other->_impl_.source_);
}
// ===================================================================
class SharingLog_ToggleShowNotification::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ToggleShowNotification>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_._has_bits_);
};
SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ToggleShowNotification_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
}
SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ToggleShowNotification& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ToggleShowNotification_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 SharingLog_ToggleShowNotification::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ToggleShowNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, previous_status_),
0,
offsetof(Impl_, current_status_) -
offsetof(Impl_, previous_status_) +
sizeof(Impl_::current_status_));
}
SharingLog_ToggleShowNotification::~SharingLog_ToggleShowNotification() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
SharedDtor(*this);
}
inline void SharingLog_ToggleShowNotification::SharedDtor(MessageLite& self) {
SharingLog_ToggleShowNotification& this_ = static_cast<SharingLog_ToggleShowNotification&>(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 SharingLog_ToggleShowNotification::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ToggleShowNotification(arena);
}
constexpr auto SharingLog_ToggleShowNotification::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ToggleShowNotification),
alignof(SharingLog_ToggleShowNotification));
}
constexpr auto SharingLog_ToggleShowNotification::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<65>{
{
&_SharingLog_ToggleShowNotification_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ToggleShowNotification::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ToggleShowNotification>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ToggleShowNotification::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ToggleShowNotification>(), &SharingLog_ToggleShowNotification::ByteSizeLong,
&SharingLog_ToggleShowNotification::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ToggleShowNotification_class_data_ =
SharingLog_ToggleShowNotification::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ToggleShowNotification::GetClassData() const {
return SharingLog_ToggleShowNotification_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_ToggleShowNotification::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ToggleShowNotification_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.current_status_)}},
// optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.previous_status_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.previous_status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.current_status_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 2},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ToggleShowNotification::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
::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)) {
::memset(&_impl_.previous_status_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.current_status_) -
reinterpret_cast<char*>(&_impl_.previous_status_)) + sizeof(_impl_.current_status_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ToggleShowNotification::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ToggleShowNotification& this_ = static_cast<const SharingLog_ToggleShowNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ToggleShowNotification::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ToggleShowNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_previous_status(), target);
}
// optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_current_status(), 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:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ToggleShowNotification::ByteSizeLong(const MessageLite& base) {
const SharingLog_ToggleShowNotification& this_ = static_cast<const SharingLog_ToggleShowNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ToggleShowNotification::ByteSizeLong() const {
const SharingLog_ToggleShowNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
::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.proto.sharing.ShowNotificationStatus previous_status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_previous_status());
}
// optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_current_status());
}
}
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 SharingLog_ToggleShowNotification::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ToggleShowNotification*>(&to_msg);
auto& from = static_cast<const SharingLog_ToggleShowNotification&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.previous_status_ = from._impl_.previous_status_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.current_status_ = from._impl_.current_status_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ToggleShowNotification::CopyFrom(const SharingLog_ToggleShowNotification& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ToggleShowNotification::InternalSwap(SharingLog_ToggleShowNotification* 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(SharingLog_ToggleShowNotification, _impl_.current_status_)
+ sizeof(SharingLog_ToggleShowNotification::_impl_.current_status_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.previous_status_)>(
reinterpret_cast<char*>(&_impl_.previous_status_),
reinterpret_cast<char*>(&other->_impl_.previous_status_));
}
// ===================================================================
class SharingLog_DecryptCertificateFailure::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_DecryptCertificateFailure>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_._has_bits_);
};
SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DecryptCertificateFailure_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
}
SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DecryptCertificateFailure& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_DecryptCertificateFailure_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 SharingLog_DecryptCertificateFailure::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_DecryptCertificateFailure::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.status_ = {};
}
SharingLog_DecryptCertificateFailure::~SharingLog_DecryptCertificateFailure() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
SharedDtor(*this);
}
inline void SharingLog_DecryptCertificateFailure::SharedDtor(MessageLite& self) {
SharingLog_DecryptCertificateFailure& this_ = static_cast<SharingLog_DecryptCertificateFailure&>(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 SharingLog_DecryptCertificateFailure::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_DecryptCertificateFailure(arena);
}
constexpr auto SharingLog_DecryptCertificateFailure::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DecryptCertificateFailure),
alignof(SharingLog_DecryptCertificateFailure));
}
constexpr auto SharingLog_DecryptCertificateFailure::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_DecryptCertificateFailure_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_DecryptCertificateFailure::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_DecryptCertificateFailure>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_DecryptCertificateFailure::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_DecryptCertificateFailure>(), &SharingLog_DecryptCertificateFailure::ByteSizeLong,
&SharingLog_DecryptCertificateFailure::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DecryptCertificateFailure_class_data_ =
SharingLog_DecryptCertificateFailure::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_DecryptCertificateFailure::GetClassData() const {
return SharingLog_DecryptCertificateFailure_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_DecryptCertificateFailure::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _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),
SharingLog_DecryptCertificateFailure_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_.status_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_DecryptCertificateFailure::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.status_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_DecryptCertificateFailure::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_DecryptCertificateFailure& this_ = static_cast<const SharingLog_DecryptCertificateFailure&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_DecryptCertificateFailure::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_DecryptCertificateFailure& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_status(), 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:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_DecryptCertificateFailure::ByteSizeLong(const MessageLite& base) {
const SharingLog_DecryptCertificateFailure& this_ = static_cast<const SharingLog_DecryptCertificateFailure&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_DecryptCertificateFailure::ByteSizeLong() const {
const SharingLog_DecryptCertificateFailure& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
::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.proto.sharing.DecryptCertificateFailureStatus status = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
}
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 SharingLog_DecryptCertificateFailure::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_DecryptCertificateFailure*>(&to_msg);
auto& from = static_cast<const SharingLog_DecryptCertificateFailure&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.status_ = from._impl_.status_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_DecryptCertificateFailure::CopyFrom(const SharingLog_DecryptCertificateFailure& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_DecryptCertificateFailure::InternalSwap(SharingLog_DecryptCertificateFailure* 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_.status_, other->_impl_.status_);
}
// ===================================================================
class SharingLog_ShowAllowPermissionAutoAccess::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ShowAllowPermissionAutoAccess>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_._has_bits_);
};
SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ShowAllowPermissionAutoAccess_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
}
SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShowAllowPermissionAutoAccess& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ShowAllowPermissionAutoAccess_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 SharingLog_ShowAllowPermissionAutoAccess::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ShowAllowPermissionAutoAccess::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, activity_name_),
0,
offsetof(Impl_, is_bt_missing_) -
offsetof(Impl_, activity_name_) +
sizeof(Impl_::is_bt_missing_));
}
SharingLog_ShowAllowPermissionAutoAccess::~SharingLog_ShowAllowPermissionAutoAccess() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
SharedDtor(*this);
}
inline void SharingLog_ShowAllowPermissionAutoAccess::SharedDtor(MessageLite& self) {
SharingLog_ShowAllowPermissionAutoAccess& this_ = static_cast<SharingLog_ShowAllowPermissionAutoAccess&>(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 SharingLog_ShowAllowPermissionAutoAccess::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ShowAllowPermissionAutoAccess(arena);
}
constexpr auto SharingLog_ShowAllowPermissionAutoAccess::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ShowAllowPermissionAutoAccess),
alignof(SharingLog_ShowAllowPermissionAutoAccess));
}
constexpr auto SharingLog_ShowAllowPermissionAutoAccess::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<72>{
{
&_SharingLog_ShowAllowPermissionAutoAccess_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ShowAllowPermissionAutoAccess::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ShowAllowPermissionAutoAccess>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ShowAllowPermissionAutoAccess::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ShowAllowPermissionAutoAccess>(), &SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong,
&SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ShowAllowPermissionAutoAccess_class_data_ =
SharingLog_ShowAllowPermissionAutoAccess::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ShowAllowPermissionAutoAccess::GetClassData() const {
return SharingLog_ShowAllowPermissionAutoAccess_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
SharingLog_ShowAllowPermissionAutoAccess::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ShowAllowPermissionAutoAccess_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool is_bt_missing = 4;
{::_pbi::TcParser::FastV8S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_bt_missing_)}},
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 12,
PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.activity_name_)}},
// optional bool allowed_auto_access = 2;
{::_pbi::TcParser::FastV8S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.allowed_auto_access_)}},
// optional bool is_wifi_missing = 3;
{::_pbi::TcParser::FastV8S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_wifi_missing_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.activity_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool allowed_auto_access = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.allowed_auto_access_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_wifi_missing = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_wifi_missing_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_bt_missing = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_bt_missing_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 12},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ShowAllowPermissionAutoAccess::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
::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, 0x0000000fU)) {
::memset(&_impl_.activity_name_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.is_bt_missing_) -
reinterpret_cast<char*>(&_impl_.activity_name_)) + sizeof(_impl_.is_bt_missing_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ShowAllowPermissionAutoAccess& this_ = static_cast<const SharingLog_ShowAllowPermissionAutoAccess&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ShowAllowPermissionAutoAccess& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_activity_name(), target);
}
// optional bool allowed_auto_access = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_allowed_auto_access(), target);
}
// optional bool is_wifi_missing = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
3, this_._internal_is_wifi_missing(), target);
}
// optional bool is_bt_missing = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
4, this_._internal_is_bt_missing(), 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:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong(const MessageLite& base) {
const SharingLog_ShowAllowPermissionAutoAccess& this_ = static_cast<const SharingLog_ShowAllowPermissionAutoAccess&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong() const {
const SharingLog_ShowAllowPermissionAutoAccess& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
::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];
total_size += ::absl::popcount(0x0000000eU & cached_has_bits) * 2;
{
// optional .location.nearby.proto.sharing.ActivityName activity_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_activity_name());
}
}
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 SharingLog_ShowAllowPermissionAutoAccess::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ShowAllowPermissionAutoAccess*>(&to_msg);
auto& from = static_cast<const SharingLog_ShowAllowPermissionAutoAccess&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.activity_name_ = from._impl_.activity_name_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.allowed_auto_access_ = from._impl_.allowed_auto_access_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.is_wifi_missing_ = from._impl_.is_wifi_missing_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.is_bt_missing_ = from._impl_.is_bt_missing_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ShowAllowPermissionAutoAccess::CopyFrom(const SharingLog_ShowAllowPermissionAutoAccess& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ShowAllowPermissionAutoAccess::InternalSwap(SharingLog_ShowAllowPermissionAutoAccess* 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(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_bt_missing_)
+ sizeof(SharingLog_ShowAllowPermissionAutoAccess::_impl_.is_bt_missing_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.activity_name_)>(
reinterpret_cast<char*>(&_impl_.activity_name_),
reinterpret_cast<char*>(&other->_impl_.activity_name_));
}
// ===================================================================
class SharingLog_TapQrCode::_Internal {
public:
};
SharingLog_TapQrCode::SharingLog_TapQrCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapQrCode_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
}
SharingLog_TapQrCode::SharingLog_TapQrCode(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQrCode& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TapQrCode_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 SharingLog_TapQrCode::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TapQrCode::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_TapQrCode::~SharingLog_TapQrCode() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
SharedDtor(*this);
}
inline void SharingLog_TapQrCode::SharedDtor(MessageLite& self) {
SharingLog_TapQrCode& this_ = static_cast<SharingLog_TapQrCode&>(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 SharingLog_TapQrCode::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TapQrCode(arena);
}
constexpr auto SharingLog_TapQrCode::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapQrCode),
alignof(SharingLog_TapQrCode));
}
constexpr auto SharingLog_TapQrCode::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<52>{
{
&_SharingLog_TapQrCode_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TapQrCode::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TapQrCode>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TapQrCode::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TapQrCode>(), &SharingLog_TapQrCode::ByteSizeLong,
&SharingLog_TapQrCode::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TapQrCode, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TapQrCode",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<52> SharingLog_TapQrCode_class_data_ =
SharingLog_TapQrCode::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TapQrCode::GetClassData() const {
return SharingLog_TapQrCode_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_TapQrCode::_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
SharingLog_TapQrCode_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TapQrCode::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
::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 SharingLog_TapQrCode::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TapQrCode& this_ = static_cast<const SharingLog_TapQrCode&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TapQrCode::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TapQrCode& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
::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:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TapQrCode::ByteSizeLong(const MessageLite& base) {
const SharingLog_TapQrCode& this_ = static_cast<const SharingLog_TapQrCode&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TapQrCode::ByteSizeLong() const {
const SharingLog_TapQrCode& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
::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 SharingLog_TapQrCode::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TapQrCode*>(&to_msg);
auto& from = static_cast<const SharingLog_TapQrCode&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
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 SharingLog_TapQrCode::CopyFrom(const SharingLog_TapQrCode& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TapQrCode::InternalSwap(SharingLog_TapQrCode* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_QrCodeLinkShown::_Internal {
public:
};
SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_QrCodeLinkShown_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
}
SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_QrCodeLinkShown& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_QrCodeLinkShown_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 SharingLog_QrCodeLinkShown::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_QrCodeLinkShown::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_QrCodeLinkShown::~SharingLog_QrCodeLinkShown() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
SharedDtor(*this);
}
inline void SharingLog_QrCodeLinkShown::SharedDtor(MessageLite& self) {
SharingLog_QrCodeLinkShown& this_ = static_cast<SharingLog_QrCodeLinkShown&>(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 SharingLog_QrCodeLinkShown::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_QrCodeLinkShown(arena);
}
constexpr auto SharingLog_QrCodeLinkShown::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_QrCodeLinkShown),
alignof(SharingLog_QrCodeLinkShown));
}
constexpr auto SharingLog_QrCodeLinkShown::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<58>{
{
&_SharingLog_QrCodeLinkShown_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_QrCodeLinkShown::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_QrCodeLinkShown>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_QrCodeLinkShown::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_QrCodeLinkShown>(), &SharingLog_QrCodeLinkShown::ByteSizeLong,
&SharingLog_QrCodeLinkShown::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeLinkShown, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<58> SharingLog_QrCodeLinkShown_class_data_ =
SharingLog_QrCodeLinkShown::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_QrCodeLinkShown::GetClassData() const {
return SharingLog_QrCodeLinkShown_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_QrCodeLinkShown::_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
SharingLog_QrCodeLinkShown_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_QrCodeLinkShown::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
::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 SharingLog_QrCodeLinkShown::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_QrCodeLinkShown& this_ = static_cast<const SharingLog_QrCodeLinkShown&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeLinkShown::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_QrCodeLinkShown& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
::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:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_QrCodeLinkShown::ByteSizeLong(const MessageLite& base) {
const SharingLog_QrCodeLinkShown& this_ = static_cast<const SharingLog_QrCodeLinkShown&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_QrCodeLinkShown::ByteSizeLong() const {
const SharingLog_QrCodeLinkShown& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
::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 SharingLog_QrCodeLinkShown::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_QrCodeLinkShown*>(&to_msg);
auto& from = static_cast<const SharingLog_QrCodeLinkShown&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
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 SharingLog_QrCodeLinkShown::CopyFrom(const SharingLog_QrCodeLinkShown& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_QrCodeLinkShown::InternalSwap(SharingLog_QrCodeLinkShown* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_FastInitDiscoverDevice::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_FastInitDiscoverDevice>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_._has_bits_);
};
SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_FastInitDiscoverDevice_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
}
SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FastInitDiscoverDevice& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_FastInitDiscoverDevice_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 SharingLog_FastInitDiscoverDevice::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_FastInitDiscoverDevice::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, fast_init_type_),
0,
offsetof(Impl_, fast_init_state_) -
offsetof(Impl_, fast_init_type_) +
sizeof(Impl_::fast_init_state_));
}
SharingLog_FastInitDiscoverDevice::~SharingLog_FastInitDiscoverDevice() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
SharedDtor(*this);
}
inline void SharingLog_FastInitDiscoverDevice::SharedDtor(MessageLite& self) {
SharingLog_FastInitDiscoverDevice& this_ = static_cast<SharingLog_FastInitDiscoverDevice&>(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 SharingLog_FastInitDiscoverDevice::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_FastInitDiscoverDevice(arena);
}
constexpr auto SharingLog_FastInitDiscoverDevice::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_FastInitDiscoverDevice),
alignof(SharingLog_FastInitDiscoverDevice));
}
constexpr auto SharingLog_FastInitDiscoverDevice::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<65>{
{
&_SharingLog_FastInitDiscoverDevice_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_FastInitDiscoverDevice::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_FastInitDiscoverDevice>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_FastInitDiscoverDevice::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_FastInitDiscoverDevice>(), &SharingLog_FastInitDiscoverDevice::ByteSizeLong,
&SharingLog_FastInitDiscoverDevice::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<65> SharingLog_FastInitDiscoverDevice_class_data_ =
SharingLog_FastInitDiscoverDevice::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_FastInitDiscoverDevice::GetClassData() const {
return SharingLog_FastInitDiscoverDevice_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_FastInitDiscoverDevice::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_._has_bits_),
0, // no _extensions_
3, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967289, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_FastInitDiscoverDevice_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 0, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_type_)}},
// optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_state_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_state_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 2},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_FastInitDiscoverDevice::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
::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)) {
::memset(&_impl_.fast_init_type_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.fast_init_state_) -
reinterpret_cast<char*>(&_impl_.fast_init_type_)) + sizeof(_impl_.fast_init_state_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_FastInitDiscoverDevice::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_FastInitDiscoverDevice& this_ = static_cast<const SharingLog_FastInitDiscoverDevice&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_FastInitDiscoverDevice::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_FastInitDiscoverDevice& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_fast_init_type(), target);
}
// optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_fast_init_state(), 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:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_FastInitDiscoverDevice::ByteSizeLong(const MessageLite& base) {
const SharingLog_FastInitDiscoverDevice& this_ = static_cast<const SharingLog_FastInitDiscoverDevice&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_FastInitDiscoverDevice::ByteSizeLong() const {
const SharingLog_FastInitDiscoverDevice& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
::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.proto.sharing.FastInitType fast_init_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_fast_init_type());
}
// optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_fast_init_state());
}
}
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 SharingLog_FastInitDiscoverDevice::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_FastInitDiscoverDevice*>(&to_msg);
auto& from = static_cast<const SharingLog_FastInitDiscoverDevice&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.fast_init_type_ = from._impl_.fast_init_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.fast_init_state_ = from._impl_.fast_init_state_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_FastInitDiscoverDevice::CopyFrom(const SharingLog_FastInitDiscoverDevice& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_FastInitDiscoverDevice::InternalSwap(SharingLog_FastInitDiscoverDevice* 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(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_state_)
+ sizeof(SharingLog_FastInitDiscoverDevice::_impl_.fast_init_state_)
- PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_type_)>(
reinterpret_cast<char*>(&_impl_.fast_init_type_),
reinterpret_cast<char*>(&other->_impl_.fast_init_type_));
}
// ===================================================================
class SharingLog_ShareTargetInfo::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ShareTargetInfo>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_._has_bits_);
};
SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ShareTargetInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
}
SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShareTargetInfo& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ShareTargetInfo_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 SharingLog_ShareTargetInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ShareTargetInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, device_type_),
0,
offsetof(Impl_, is_external_) -
offsetof(Impl_, device_type_) +
sizeof(Impl_::is_external_));
}
SharingLog_ShareTargetInfo::~SharingLog_ShareTargetInfo() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
SharedDtor(*this);
}
inline void SharingLog_ShareTargetInfo::SharedDtor(MessageLite& self) {
SharingLog_ShareTargetInfo& this_ = static_cast<SharingLog_ShareTargetInfo&>(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 SharingLog_ShareTargetInfo::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ShareTargetInfo(arena);
}
constexpr auto SharingLog_ShareTargetInfo::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ShareTargetInfo),
alignof(SharingLog_ShareTargetInfo));
}
constexpr auto SharingLog_ShareTargetInfo::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<58>{
{
&_SharingLog_ShareTargetInfo_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ShareTargetInfo::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ShareTargetInfo>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ShareTargetInfo::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ShareTargetInfo>(), &SharingLog_ShareTargetInfo::ByteSizeLong,
&SharingLog_ShareTargetInfo::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ShareTargetInfo_class_data_ =
SharingLog_ShareTargetInfo::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ShareTargetInfo::GetClassData() const {
return SharingLog_ShareTargetInfo_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 5, 3, 0, 2>
SharingLog_ShareTargetInfo::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_._has_bits_),
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
3, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_ShareTargetInfo_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.DeviceType device_type = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_type_)}},
// optional .location.nearby.proto.sharing.OSType os_type = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.os_type_)}},
// optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 2, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_relationship_)}},
// optional bool has_matching_qr_code = 4;
{::_pbi::TcParser::FastV8S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.has_matching_qr_code_)}},
// optional bool is_external = 5;
{::_pbi::TcParser::FastV8S1,
{40, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.is_external_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.DeviceType device_type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.OSType os_type = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.os_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_relationship_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool has_matching_qr_code = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.has_matching_qr_code_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional bool is_external = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.is_external_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 6},
{0, 5},
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ShareTargetInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
::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, 0x0000001fU)) {
::memset(&_impl_.device_type_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.is_external_) -
reinterpret_cast<char*>(&_impl_.device_type_)) + sizeof(_impl_.is_external_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ShareTargetInfo::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ShareTargetInfo& this_ = static_cast<const SharingLog_ShareTargetInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ShareTargetInfo::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ShareTargetInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.DeviceType device_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_device_type(), target);
}
// optional .location.nearby.proto.sharing.OSType os_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_os_type(), target);
}
// optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_device_relationship(), target);
}
// optional bool has_matching_qr_code = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
4, this_._internal_has_matching_qr_code(), target);
}
// optional bool is_external = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
5, this_._internal_is_external(), 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:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ShareTargetInfo::ByteSizeLong(const MessageLite& base) {
const SharingLog_ShareTargetInfo& this_ = static_cast<const SharingLog_ShareTargetInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ShareTargetInfo::ByteSizeLong() const {
const SharingLog_ShareTargetInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
::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];
total_size += ::absl::popcount(0x00000018U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
// optional .location.nearby.proto.sharing.DeviceType device_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
}
// optional .location.nearby.proto.sharing.OSType os_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_os_type());
}
// optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_device_relationship());
}
}
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 SharingLog_ShareTargetInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ShareTargetInfo*>(&to_msg);
auto& from = static_cast<const SharingLog_ShareTargetInfo&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
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, 0x0000001fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.device_type_ = from._impl_.device_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.os_type_ = from._impl_.os_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.device_relationship_ = from._impl_.device_relationship_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.has_matching_qr_code_ = from._impl_.has_matching_qr_code_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.is_external_ = from._impl_.is_external_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ShareTargetInfo::CopyFrom(const SharingLog_ShareTargetInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ShareTargetInfo::InternalSwap(SharingLog_ShareTargetInfo* 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(SharingLog_ShareTargetInfo, _impl_.is_external_)
+ sizeof(SharingLog_ShareTargetInfo::_impl_.is_external_)
- PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_type_)>(
reinterpret_cast<char*>(&_impl_.device_type_),
reinterpret_cast<char*>(&other->_impl_.device_type_));
}
// ===================================================================
class SharingLog_AttachmentsInfo::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AttachmentsInfo>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_._has_bits_);
};
SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AttachmentsInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AttachmentsInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
text_attachment_{visibility, arena, from.text_attachment_},
file_attachment_{visibility, arena, from.file_attachment_},
wifi_credentials_attachment_{visibility, arena, from.wifi_credentials_attachment_},
app_attachment_{visibility, arena, from.app_attachment_},
stream_attachment_{visibility, arena, from.stream_attachment_},
required_app_(arena, from.required_app_) {}
SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_AttachmentsInfo& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AttachmentsInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_AttachmentsInfo* 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:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AttachmentsInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
text_attachment_{visibility, arena},
file_attachment_{visibility, arena},
wifi_credentials_attachment_{visibility, arena},
app_attachment_{visibility, arena},
stream_attachment_{visibility, arena},
required_app_(arena) {}
inline void SharingLog_AttachmentsInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_AttachmentsInfo::~SharingLog_AttachmentsInfo() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
SharedDtor(*this);
}
inline void SharingLog_AttachmentsInfo::SharedDtor(MessageLite& self) {
SharingLog_AttachmentsInfo& this_ = static_cast<SharingLog_AttachmentsInfo&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.required_app_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AttachmentsInfo(arena);
}
constexpr auto SharingLog_AttachmentsInfo::InternalNewImpl_() {
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.text_attachment_) +
decltype(SharingLog_AttachmentsInfo::_impl_.text_attachment_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.file_attachment_) +
decltype(SharingLog_AttachmentsInfo::_impl_.file_attachment_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.wifi_credentials_attachment_) +
decltype(SharingLog_AttachmentsInfo::_impl_.wifi_credentials_attachment_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.app_attachment_) +
decltype(SharingLog_AttachmentsInfo::_impl_.app_attachment_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.stream_attachment_) +
decltype(SharingLog_AttachmentsInfo::_impl_.stream_attachment_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
});
if (arena_bits.has_value()) {
return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(SharingLog_AttachmentsInfo), alignof(SharingLog_AttachmentsInfo), *arena_bits);
} else {
return ::google::protobuf::internal::MessageCreator(&SharingLog_AttachmentsInfo::PlacementNew_,
sizeof(SharingLog_AttachmentsInfo),
alignof(SharingLog_AttachmentsInfo));
}
}
constexpr auto SharingLog_AttachmentsInfo::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<58>{
{
&_SharingLog_AttachmentsInfo_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AttachmentsInfo::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AttachmentsInfo>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AttachmentsInfo::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AttachmentsInfo>(), &SharingLog_AttachmentsInfo::ByteSizeLong,
&SharingLog_AttachmentsInfo::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<58> SharingLog_AttachmentsInfo_class_data_ =
SharingLog_AttachmentsInfo::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AttachmentsInfo::GetClassData() const {
return SharingLog_AttachmentsInfo_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
SharingLog_AttachmentsInfo::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_._has_bits_),
0, // no _extensions_
6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967232, // skipmap
offsetof(decltype(_table_), field_entries),
6, // num_field_entries
5, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_AttachmentsInfo_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1;
{::_pbi::TcParser::FastMtR1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.text_attachment_)}},
// repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2;
{::_pbi::TcParser::FastMtR1,
{18, 1, 1,
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.file_attachment_)}},
// optional string required_app = 3;
{::_pbi::TcParser::FastBS1,
{26, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.required_app_)}},
// repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4;
{::_pbi::TcParser::FastMtR1,
{34, 2, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.wifi_credentials_attachment_)}},
// repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5;
{::_pbi::TcParser::FastMtR1,
{42, 3, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.app_attachment_)}},
// repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6;
{::_pbi::TcParser::FastMtR1,
{50, 4, 4,
PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.stream_attachment_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.text_attachment_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.file_attachment_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string required_app = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.required_app_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.wifi_credentials_attachment_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.app_attachment_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.stream_attachment_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AttachmentsInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
::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, 0x0000003fU)) {
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_impl_.text_attachment_.Clear();
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
_impl_.file_attachment_.Clear();
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
_impl_.wifi_credentials_attachment_.Clear();
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
_impl_.app_attachment_.Clear();
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
_impl_.stream_attachment_.Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_impl_.required_app_.ClearNonDefaultToEmpty();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AttachmentsInfo& this_ = static_cast<const SharingLog_AttachmentsInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AttachmentsInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_text_attachment_size());
i < n; i++) {
const auto& repfield = this_._internal_text_attachment().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, repfield, repfield.GetCachedSize(),
target, stream);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_file_attachment_size());
i < n; i++) {
const auto& repfield = this_._internal_file_attachment().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, repfield, repfield.GetCachedSize(),
target, stream);
}
}
// optional string required_app = 3;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
const ::std::string& _s = this_._internal_required_app();
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_wifi_credentials_attachment_size());
i < n; i++) {
const auto& repfield = this_._internal_wifi_credentials_attachment().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4, repfield, repfield.GetCachedSize(),
target, stream);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_app_attachment_size());
i < n; i++) {
const auto& repfield = this_._internal_app_attachment().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
5, repfield, repfield.GetCachedSize(),
target, stream);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_stream_attachment_size());
i < n; i++) {
const auto& repfield = this_._internal_stream_attachment().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6, 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:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AttachmentsInfo::ByteSizeLong(const MessageLite& base) {
const SharingLog_AttachmentsInfo& this_ = static_cast<const SharingLog_AttachmentsInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AttachmentsInfo::ByteSizeLong() const {
const SharingLog_AttachmentsInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
::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, 0x0000003fU)) {
// repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
total_size += 1UL * this_._internal_text_attachment_size();
for (const auto& msg : this_._internal_text_attachment()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
total_size += 1UL * this_._internal_file_attachment_size();
for (const auto& msg : this_._internal_file_attachment()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
total_size += 1UL * this_._internal_wifi_credentials_attachment_size();
for (const auto& msg : this_._internal_wifi_credentials_attachment()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
total_size += 1UL * this_._internal_app_attachment_size();
for (const auto& msg : this_._internal_app_attachment()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
total_size += 1UL * this_._internal_stream_attachment_size();
for (const auto& msg : this_._internal_stream_attachment()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// optional string required_app = 3;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_required_app());
}
}
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 SharingLog_AttachmentsInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AttachmentsInfo*>(&to_msg);
auto& from = static_cast<const SharingLog_AttachmentsInfo&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
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, 0x0000003fU)) {
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_text_attachment()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_text_attachment());
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
_this->_internal_mutable_file_attachment()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_file_attachment());
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
_this->_internal_mutable_wifi_credentials_attachment()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_wifi_credentials_attachment());
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
_this->_internal_mutable_app_attachment()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_app_attachment());
}
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
_this->_internal_mutable_stream_attachment()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_stream_attachment());
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_internal_set_required_app(from._internal_required_app());
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AttachmentsInfo::CopyFrom(const SharingLog_AttachmentsInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AttachmentsInfo::InternalSwap(SharingLog_AttachmentsInfo* 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]);
_impl_.text_attachment_.InternalSwap(&other->_impl_.text_attachment_);
_impl_.file_attachment_.InternalSwap(&other->_impl_.file_attachment_);
_impl_.wifi_credentials_attachment_.InternalSwap(&other->_impl_.wifi_credentials_attachment_);
_impl_.app_attachment_.InternalSwap(&other->_impl_.app_attachment_);
_impl_.stream_attachment_.InternalSwap(&other->_impl_.stream_attachment_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.required_app_, &other->_impl_.required_app_, arena);
}
// ===================================================================
class SharingLog_TextAttachment::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_TextAttachment>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_._has_bits_);
};
SharingLog_TextAttachment::SharingLog_TextAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TextAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
}
SharingLog_TextAttachment::SharingLog_TextAttachment(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TextAttachment& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_TextAttachment_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 SharingLog_TextAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_TextAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, size_bytes_),
0,
offsetof(Impl_, batch_id_) -
offsetof(Impl_, size_bytes_) +
sizeof(Impl_::batch_id_));
}
SharingLog_TextAttachment::~SharingLog_TextAttachment() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
SharedDtor(*this);
}
inline void SharingLog_TextAttachment::SharedDtor(MessageLite& self) {
SharingLog_TextAttachment& this_ = static_cast<SharingLog_TextAttachment&>(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 SharingLog_TextAttachment::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_TextAttachment(arena);
}
constexpr auto SharingLog_TextAttachment::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TextAttachment),
alignof(SharingLog_TextAttachment));
}
constexpr auto SharingLog_TextAttachment::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<57>{
{
&_SharingLog_TextAttachment_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_TextAttachment::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_TextAttachment>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_TextAttachment::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_TextAttachment>(), &SharingLog_TextAttachment::ByteSizeLong,
&SharingLog_TextAttachment::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.TextAttachment",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<57> SharingLog_TextAttachment_class_data_ =
SharingLog_TextAttachment::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_TextAttachment::GetClassData() const {
return SharingLog_TextAttachment_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 2, 0, 2>
SharingLog_TextAttachment::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_TextAttachment_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
{::_pbi::TcParser::FastEr0S1,
{32, 2, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.source_type_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 1, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.type_)}},
// optional int64 size_bytes = 2;
{::_pbi::TcParser::FastV64S1,
{16, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.size_bytes_)}},
// optional int64 batch_id = 3;
{::_pbi::TcParser::FastV64S1,
{24, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.batch_id_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 size_bytes = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.size_bytes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 batch_id = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 3},
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_TextAttachment::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
::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, 0x0000000fU)) {
::memset(&_impl_.size_bytes_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.batch_id_) -
reinterpret_cast<char*>(&_impl_.size_bytes_)) + sizeof(_impl_.batch_id_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_TextAttachment::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_TextAttachment& this_ = static_cast<const SharingLog_TextAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_TextAttachment::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_TextAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_type(), target);
}
// optional int64 size_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_size_bytes(), target);
}
// optional int64 batch_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_batch_id(), target);
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this_._internal_source_type(), 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:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_TextAttachment::ByteSizeLong(const MessageLite& base) {
const SharingLog_TextAttachment& this_ = static_cast<const SharingLog_TextAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_TextAttachment::ByteSizeLong() const {
const SharingLog_TextAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional int64 size_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_size_bytes());
}
// optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_type());
}
// optional int64 batch_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_batch_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 SharingLog_TextAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_TextAttachment*>(&to_msg);
auto& from = static_cast<const SharingLog_TextAttachment&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.size_bytes_ = from._impl_.size_bytes_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.type_ = from._impl_.type_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.source_type_ = from._impl_.source_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.batch_id_ = from._impl_.batch_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_TextAttachment::CopyFrom(const SharingLog_TextAttachment& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_TextAttachment::InternalSwap(SharingLog_TextAttachment* 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(SharingLog_TextAttachment, _impl_.batch_id_)
+ sizeof(SharingLog_TextAttachment::_impl_.batch_id_)
- PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.size_bytes_)>(
reinterpret_cast<char*>(&_impl_.size_bytes_),
reinterpret_cast<char*>(&other->_impl_.size_bytes_));
}
// ===================================================================
class SharingLog_FileAttachment::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_FileAttachment>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_._has_bits_);
};
SharingLog_FileAttachment::SharingLog_FileAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_FileAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
}
SharingLog_FileAttachment::SharingLog_FileAttachment(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FileAttachment& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_FileAttachment_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 SharingLog_FileAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_FileAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, size_bytes_),
0,
offsetof(Impl_, batch_id_) -
offsetof(Impl_, size_bytes_) +
sizeof(Impl_::batch_id_));
}
SharingLog_FileAttachment::~SharingLog_FileAttachment() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
SharedDtor(*this);
}
inline void SharingLog_FileAttachment::SharedDtor(MessageLite& self) {
SharingLog_FileAttachment& this_ = static_cast<SharingLog_FileAttachment&>(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 SharingLog_FileAttachment::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_FileAttachment(arena);
}
constexpr auto SharingLog_FileAttachment::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_FileAttachment),
alignof(SharingLog_FileAttachment));
}
constexpr auto SharingLog_FileAttachment::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<57>{
{
&_SharingLog_FileAttachment_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_FileAttachment::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_FileAttachment>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_FileAttachment::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_FileAttachment>(), &SharingLog_FileAttachment::ByteSizeLong,
&SharingLog_FileAttachment::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.FileAttachment",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<57> SharingLog_FileAttachment_class_data_ =
SharingLog_FileAttachment::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_FileAttachment::GetClassData() const {
return SharingLog_FileAttachment_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 5, 2, 0, 2>
SharingLog_FileAttachment::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_._has_bits_),
0, // no _extensions_
6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967236, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_FileAttachment_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 1, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.type_)}},
// optional int64 size_bytes = 2;
{::_pbi::TcParser::FastV64S1,
{16, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.size_bytes_)}},
{::_pbi::TcParser::MiniParse, {}},
// optional int64 offset_bytes = 4;
{::_pbi::TcParser::FastV64S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.offset_bytes_)}},
// optional int64 batch_id = 5;
{::_pbi::TcParser::FastV64S1,
{40, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.batch_id_)}},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6;
{::_pbi::TcParser::FastEr0S1,
{48, 2, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.source_type_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 size_bytes = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.size_bytes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 offset_bytes = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.offset_bytes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 batch_id = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 6},
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_FileAttachment::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
::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, 0x0000001fU)) {
::memset(&_impl_.size_bytes_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.batch_id_) -
reinterpret_cast<char*>(&_impl_.size_bytes_)) + sizeof(_impl_.batch_id_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_FileAttachment::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_FileAttachment& this_ = static_cast<const SharingLog_FileAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_FileAttachment::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_FileAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_type(), target);
}
// optional int64 size_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_size_bytes(), target);
}
// optional int64 offset_bytes = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_offset_bytes(), target);
}
// optional int64 batch_id = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
stream, this_._internal_batch_id(), target);
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
6, this_._internal_source_type(), 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:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_FileAttachment::ByteSizeLong(const MessageLite& base) {
const SharingLog_FileAttachment& this_ = static_cast<const SharingLog_FileAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_FileAttachment::ByteSizeLong() const {
const SharingLog_FileAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
::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, 0x0000001fU)) {
// optional int64 size_bytes = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_size_bytes());
}
// optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_type());
}
// optional int64 offset_bytes = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_offset_bytes());
}
// optional int64 batch_id = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_batch_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 SharingLog_FileAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_FileAttachment*>(&to_msg);
auto& from = static_cast<const SharingLog_FileAttachment&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
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, 0x0000001fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.size_bytes_ = from._impl_.size_bytes_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.type_ = from._impl_.type_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.source_type_ = from._impl_.source_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.offset_bytes_ = from._impl_.offset_bytes_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.batch_id_ = from._impl_.batch_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_FileAttachment::CopyFrom(const SharingLog_FileAttachment& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_FileAttachment::InternalSwap(SharingLog_FileAttachment* 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(SharingLog_FileAttachment, _impl_.batch_id_)
+ sizeof(SharingLog_FileAttachment::_impl_.batch_id_)
- PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.size_bytes_)>(
reinterpret_cast<char*>(&_impl_.size_bytes_),
reinterpret_cast<char*>(&other->_impl_.size_bytes_));
}
// ===================================================================
class SharingLog_WifiCredentialsAttachment::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_WifiCredentialsAttachment>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_._has_bits_);
};
SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_WifiCredentialsAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
}
SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_WifiCredentialsAttachment& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_WifiCredentialsAttachment_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 SharingLog_WifiCredentialsAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_WifiCredentialsAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, batch_id_),
0,
offsetof(Impl_, source_type_) -
offsetof(Impl_, batch_id_) +
sizeof(Impl_::source_type_));
}
SharingLog_WifiCredentialsAttachment::~SharingLog_WifiCredentialsAttachment() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
SharedDtor(*this);
}
inline void SharingLog_WifiCredentialsAttachment::SharedDtor(MessageLite& self) {
SharingLog_WifiCredentialsAttachment& this_ = static_cast<SharingLog_WifiCredentialsAttachment&>(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 SharingLog_WifiCredentialsAttachment::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_WifiCredentialsAttachment(arena);
}
constexpr auto SharingLog_WifiCredentialsAttachment::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_WifiCredentialsAttachment),
alignof(SharingLog_WifiCredentialsAttachment));
}
constexpr auto SharingLog_WifiCredentialsAttachment::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_WifiCredentialsAttachment_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_WifiCredentialsAttachment::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_WifiCredentialsAttachment>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_WifiCredentialsAttachment::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_WifiCredentialsAttachment>(), &SharingLog_WifiCredentialsAttachment::ByteSizeLong,
&SharingLog_WifiCredentialsAttachment::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_WifiCredentialsAttachment_class_data_ =
SharingLog_WifiCredentialsAttachment::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_WifiCredentialsAttachment::GetClassData() const {
return SharingLog_WifiCredentialsAttachment_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
SharingLog_WifiCredentialsAttachment::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_._has_bits_),
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_WifiCredentialsAttachment_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional int32 security_type = 1;
{::_pbi::TcParser::FastV32S1,
{8, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.security_type_)}},
// optional int64 batch_id = 2;
{::_pbi::TcParser::FastV64S1,
{16, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.batch_id_)}},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 2, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.source_type_)}},
}}, {{
65535, 65535
}}, {{
// optional int32 security_type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.security_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int64 batch_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_WifiCredentialsAttachment::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
::memset(&_impl_.batch_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.source_type_) -
reinterpret_cast<char*>(&_impl_.batch_id_)) + sizeof(_impl_.source_type_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_WifiCredentialsAttachment::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_WifiCredentialsAttachment& this_ = static_cast<const SharingLog_WifiCredentialsAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_WifiCredentialsAttachment::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_WifiCredentialsAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int32 security_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
stream, this_._internal_security_type(), target);
}
// optional int64 batch_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_batch_id(), target);
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_source_type(), 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:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_WifiCredentialsAttachment::ByteSizeLong(const MessageLite& base) {
const SharingLog_WifiCredentialsAttachment& this_ = static_cast<const SharingLog_WifiCredentialsAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_WifiCredentialsAttachment::ByteSizeLong() const {
const SharingLog_WifiCredentialsAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
::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 int64 batch_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_batch_id());
}
// optional int32 security_type = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_security_type());
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_WifiCredentialsAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_WifiCredentialsAttachment*>(&to_msg);
auto& from = static_cast<const SharingLog_WifiCredentialsAttachment&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
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->_impl_.batch_id_ = from._impl_.batch_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.security_type_ = from._impl_.security_type_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.source_type_ = from._impl_.source_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_WifiCredentialsAttachment::CopyFrom(const SharingLog_WifiCredentialsAttachment& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_WifiCredentialsAttachment::InternalSwap(SharingLog_WifiCredentialsAttachment* 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(SharingLog_WifiCredentialsAttachment, _impl_.source_type_)
+ sizeof(SharingLog_WifiCredentialsAttachment::_impl_.source_type_)
- PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.batch_id_)>(
reinterpret_cast<char*>(&_impl_.batch_id_),
reinterpret_cast<char*>(&other->_impl_.batch_id_));
}
// ===================================================================
class SharingLog_AppAttachment::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AppAttachment>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_._has_bits_);
};
SharingLog_AppAttachment::SharingLog_AppAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AppAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AppAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
package_name_(arena, from.package_name_) {}
SharingLog_AppAttachment::SharingLog_AppAttachment(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_AppAttachment& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AppAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_AppAttachment* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, size_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, size_),
offsetof(Impl_, source_type_) -
offsetof(Impl_, size_) +
sizeof(Impl_::source_type_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
}
PROTOBUF_NDEBUG_INLINE SharingLog_AppAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
package_name_(arena) {}
inline void SharingLog_AppAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, size_),
0,
offsetof(Impl_, source_type_) -
offsetof(Impl_, size_) +
sizeof(Impl_::source_type_));
}
SharingLog_AppAttachment::~SharingLog_AppAttachment() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
SharedDtor(*this);
}
inline void SharingLog_AppAttachment::SharedDtor(MessageLite& self) {
SharingLog_AppAttachment& this_ = static_cast<SharingLog_AppAttachment&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.package_name_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_AppAttachment::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AppAttachment(arena);
}
constexpr auto SharingLog_AppAttachment::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_AppAttachment),
alignof(SharingLog_AppAttachment));
}
constexpr auto SharingLog_AppAttachment::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_AppAttachment_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AppAttachment::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AppAttachment>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AppAttachment::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AppAttachment>(), &SharingLog_AppAttachment::ByteSizeLong,
&SharingLog_AppAttachment::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AppAttachment",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_AppAttachment_class_data_ =
SharingLog_AppAttachment::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AppAttachment::GetClassData() const {
return SharingLog_AppAttachment_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
SharingLog_AppAttachment::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_AppAttachment_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
{::_pbi::TcParser::FastEr0S1,
{32, 3, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.source_type_)}},
// optional string package_name = 1;
{::_pbi::TcParser::FastBS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.package_name_)}},
// optional int64 size = 2;
{::_pbi::TcParser::FastV64S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.size_)}},
// optional int64 batch_id = 3;
{::_pbi::TcParser::FastV64S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.batch_id_)}},
}}, {{
65535, 65535
}}, {{
// optional string package_name = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.package_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional int64 size = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.size_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 batch_id = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AppAttachment::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
::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_.package_name_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
::memset(&_impl_.size_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.source_type_) -
reinterpret_cast<char*>(&_impl_.size_)) + sizeof(_impl_.source_type_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AppAttachment::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AppAttachment& this_ = static_cast<const SharingLog_AppAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AppAttachment::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AppAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string package_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_package_name();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional int64 size = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_size(), target);
}
// optional int64 batch_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_batch_id(), target);
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this_._internal_source_type(), 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:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AppAttachment::ByteSizeLong(const MessageLite& base) {
const SharingLog_AppAttachment& this_ = static_cast<const SharingLog_AppAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AppAttachment::ByteSizeLong() const {
const SharingLog_AppAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional string package_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_package_name());
}
// optional int64 size = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_size());
}
// optional int64 batch_id = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_batch_id());
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_AppAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AppAttachment*>(&to_msg);
auto& from = static_cast<const SharingLog_AppAttachment&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_package_name(from._internal_package_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.size_ = from._impl_.size_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.batch_id_ = from._impl_.batch_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.source_type_ = from._impl_.source_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AppAttachment::CopyFrom(const SharingLog_AppAttachment& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AppAttachment::InternalSwap(SharingLog_AppAttachment* 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_.package_name_, &other->_impl_.package_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.source_type_)
+ sizeof(SharingLog_AppAttachment::_impl_.source_type_)
- PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.size_)>(
reinterpret_cast<char*>(&_impl_.size_),
reinterpret_cast<char*>(&other->_impl_.size_));
}
// ===================================================================
class SharingLog_StreamAttachment::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_StreamAttachment>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_._has_bits_);
};
SharingLog_StreamAttachment::SharingLog_StreamAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_StreamAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
}
PROTOBUF_NDEBUG_INLINE SharingLog_StreamAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
package_name_(arena, from.package_name_) {}
SharingLog_StreamAttachment::SharingLog_StreamAttachment(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_StreamAttachment& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_StreamAttachment_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_StreamAttachment* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, batch_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, batch_id_),
offsetof(Impl_, source_type_) -
offsetof(Impl_, batch_id_) +
sizeof(Impl_::source_type_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
}
PROTOBUF_NDEBUG_INLINE SharingLog_StreamAttachment::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
package_name_(arena) {}
inline void SharingLog_StreamAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, batch_id_),
0,
offsetof(Impl_, source_type_) -
offsetof(Impl_, batch_id_) +
sizeof(Impl_::source_type_));
}
SharingLog_StreamAttachment::~SharingLog_StreamAttachment() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
SharedDtor(*this);
}
inline void SharingLog_StreamAttachment::SharedDtor(MessageLite& self) {
SharingLog_StreamAttachment& this_ = static_cast<SharingLog_StreamAttachment&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.package_name_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_StreamAttachment::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_StreamAttachment(arena);
}
constexpr auto SharingLog_StreamAttachment::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_StreamAttachment),
alignof(SharingLog_StreamAttachment));
}
constexpr auto SharingLog_StreamAttachment::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_StreamAttachment_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_StreamAttachment::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_StreamAttachment>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_StreamAttachment::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_StreamAttachment>(), &SharingLog_StreamAttachment::ByteSizeLong,
&SharingLog_StreamAttachment::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.StreamAttachment",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_StreamAttachment_class_data_ =
SharingLog_StreamAttachment::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_StreamAttachment::GetClassData() const {
return SharingLog_StreamAttachment_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
SharingLog_StreamAttachment::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_._has_bits_),
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_StreamAttachment_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional string package_name = 1;
{::_pbi::TcParser::FastBS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.package_name_)}},
// optional int64 batch_id = 2;
{::_pbi::TcParser::FastV64S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.batch_id_)}},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
{::_pbi::TcParser::FastEr0S1,
{24, 2, 6,
PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.source_type_)}},
}}, {{
65535, 65535
}}, {{
// optional string package_name = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.package_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional int64 batch_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 6},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_StreamAttachment::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
::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_.package_name_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
::memset(&_impl_.batch_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.source_type_) -
reinterpret_cast<char*>(&_impl_.batch_id_)) + sizeof(_impl_.source_type_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_StreamAttachment::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_StreamAttachment& this_ = static_cast<const SharingLog_StreamAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_StreamAttachment::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_StreamAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string package_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_package_name();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional int64 batch_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_batch_id(), target);
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this_._internal_source_type(), 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:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_StreamAttachment::ByteSizeLong(const MessageLite& base) {
const SharingLog_StreamAttachment& this_ = static_cast<const SharingLog_StreamAttachment&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_StreamAttachment::ByteSizeLong() const {
const SharingLog_StreamAttachment& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
::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 package_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_package_name());
}
// optional int64 batch_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_batch_id());
}
// optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_source_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_StreamAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_StreamAttachment*>(&to_msg);
auto& from = static_cast<const SharingLog_StreamAttachment&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
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_package_name(from._internal_package_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.batch_id_ = from._impl_.batch_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.source_type_ = from._impl_.source_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_StreamAttachment::CopyFrom(const SharingLog_StreamAttachment& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_StreamAttachment::InternalSwap(SharingLog_StreamAttachment* 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_.package_name_, &other->_impl_.package_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.source_type_)
+ sizeof(SharingLog_StreamAttachment::_impl_.source_type_)
- PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.batch_id_)>(
reinterpret_cast<char*>(&_impl_.batch_id_),
reinterpret_cast<char*>(&other->_impl_.batch_id_));
}
// ===================================================================
class SharingLog_CloudAttachmentInfo::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudAttachmentInfo>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_._has_bits_);
static constexpr ::int32_t kOneofCaseOffset =
PROTOBUF_FIELD_OFFSET(::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo, _impl_._oneof_case_);
};
void SharingLog_CloudAttachmentInfo::set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE text_attachment) {
::google::protobuf::Arena* message_arena = GetArena();
clear_CloudAttachment();
if (text_attachment) {
::google::protobuf::Arena* submessage_arena = text_attachment->GetArena();
if (message_arena != submessage_arena) {
text_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, text_attachment, submessage_arena);
}
set_has_text_attachment();
_impl_.CloudAttachment_.text_attachment_ = text_attachment;
}
// @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment)
}
void SharingLog_CloudAttachmentInfo::set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE file_attachment) {
::google::protobuf::Arena* message_arena = GetArena();
clear_CloudAttachment();
if (file_attachment) {
::google::protobuf::Arena* submessage_arena = file_attachment->GetArena();
if (message_arena != submessage_arena) {
file_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, file_attachment, submessage_arena);
}
set_has_file_attachment();
_impl_.CloudAttachment_.file_attachment_ = file_attachment;
}
// @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment)
}
void SharingLog_CloudAttachmentInfo::set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE wifi_credentials_attachment) {
::google::protobuf::Arena* message_arena = GetArena();
clear_CloudAttachment();
if (wifi_credentials_attachment) {
::google::protobuf::Arena* submessage_arena = wifi_credentials_attachment->GetArena();
if (message_arena != submessage_arena) {
wifi_credentials_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, wifi_credentials_attachment, submessage_arena);
}
set_has_wifi_credentials_attachment();
_impl_.CloudAttachment_.wifi_credentials_attachment_ = wifi_credentials_attachment;
}
// @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment)
}
void SharingLog_CloudAttachmentInfo::set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE app_attachment) {
::google::protobuf::Arena* message_arena = GetArena();
clear_CloudAttachment();
if (app_attachment) {
::google::protobuf::Arena* submessage_arena = app_attachment->GetArena();
if (message_arena != submessage_arena) {
app_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, app_attachment, submessage_arena);
}
set_has_app_attachment();
_impl_.CloudAttachment_.app_attachment_ = app_attachment;
}
// @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment)
}
void SharingLog_CloudAttachmentInfo::set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE stream_attachment) {
::google::protobuf::Arena* message_arena = GetArena();
clear_CloudAttachment();
if (stream_attachment) {
::google::protobuf::Arena* submessage_arena = stream_attachment->GetArena();
if (message_arena != submessage_arena) {
stream_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, stream_attachment, submessage_arena);
}
set_has_stream_attachment();
_impl_.CloudAttachment_.stream_attachment_ = stream_attachment;
}
// @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment)
}
SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudAttachmentInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudAttachmentInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
CloudAttachment_{},
_oneof_case_{from._oneof_case_[0]} {}
SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudAttachmentInfo& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudAttachmentInfo_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudAttachmentInfo* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, transferred_bytes_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, transferred_bytes_),
offsetof(Impl_, status_) -
offsetof(Impl_, transferred_bytes_) +
sizeof(Impl_::status_));
switch (CloudAttachment_case()) {
case CLOUDATTACHMENT_NOT_SET:
break;
case kTextAttachment:
_impl_.CloudAttachment_.text_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.text_attachment_);
break;
case kFileAttachment:
_impl_.CloudAttachment_.file_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.file_attachment_);
break;
case kWifiCredentialsAttachment:
_impl_.CloudAttachment_.wifi_credentials_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.wifi_credentials_attachment_);
break;
case kAppAttachment:
_impl_.CloudAttachment_.app_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.app_attachment_);
break;
case kStreamAttachment:
_impl_.CloudAttachment_.stream_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.stream_attachment_);
break;
}
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudAttachmentInfo::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
CloudAttachment_{},
_oneof_case_{} {}
inline void SharingLog_CloudAttachmentInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, transferred_bytes_),
0,
offsetof(Impl_, status_) -
offsetof(Impl_, transferred_bytes_) +
sizeof(Impl_::status_));
}
SharingLog_CloudAttachmentInfo::~SharingLog_CloudAttachmentInfo() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
SharedDtor(*this);
}
inline void SharingLog_CloudAttachmentInfo::SharedDtor(MessageLite& self) {
SharingLog_CloudAttachmentInfo& this_ = static_cast<SharingLog_CloudAttachmentInfo&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
if (this_.has_CloudAttachment()) {
this_.clear_CloudAttachment();
}
this_._impl_.~Impl_();
}
void SharingLog_CloudAttachmentInfo::clear_CloudAttachment() {
// @@protoc_insertion_point(one_of_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
::google::protobuf::internal::TSanWrite(&_impl_);
switch (CloudAttachment_case()) {
case kTextAttachment: {
if (GetArena() == nullptr) {
delete _impl_.CloudAttachment_.text_attachment_;
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
if (_impl_.CloudAttachment_.text_attachment_ != nullptr) {
_impl_.CloudAttachment_.text_attachment_->Clear();
}
}
break;
}
case kFileAttachment: {
if (GetArena() == nullptr) {
delete _impl_.CloudAttachment_.file_attachment_;
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
if (_impl_.CloudAttachment_.file_attachment_ != nullptr) {
_impl_.CloudAttachment_.file_attachment_->Clear();
}
}
break;
}
case kWifiCredentialsAttachment: {
if (GetArena() == nullptr) {
delete _impl_.CloudAttachment_.wifi_credentials_attachment_;
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
if (_impl_.CloudAttachment_.wifi_credentials_attachment_ != nullptr) {
_impl_.CloudAttachment_.wifi_credentials_attachment_->Clear();
}
}
break;
}
case kAppAttachment: {
if (GetArena() == nullptr) {
delete _impl_.CloudAttachment_.app_attachment_;
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
if (_impl_.CloudAttachment_.app_attachment_ != nullptr) {
_impl_.CloudAttachment_.app_attachment_->Clear();
}
}
break;
}
case kStreamAttachment: {
if (GetArena() == nullptr) {
delete _impl_.CloudAttachment_.stream_attachment_;
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
if (_impl_.CloudAttachment_.stream_attachment_ != nullptr) {
_impl_.CloudAttachment_.stream_attachment_->Clear();
}
}
break;
}
case CLOUDATTACHMENT_NOT_SET: {
break;
}
}
_impl_._oneof_case_[0] = CLOUDATTACHMENT_NOT_SET;
}
inline void* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudAttachmentInfo(arena);
}
constexpr auto SharingLog_CloudAttachmentInfo::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudAttachmentInfo),
alignof(SharingLog_CloudAttachmentInfo));
}
constexpr auto SharingLog_CloudAttachmentInfo::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<62>{
{
&_SharingLog_CloudAttachmentInfo_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudAttachmentInfo::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudAttachmentInfo>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudAttachmentInfo::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudAttachmentInfo>(), &SharingLog_CloudAttachmentInfo::ByteSizeLong,
&SharingLog_CloudAttachmentInfo::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<62> SharingLog_CloudAttachmentInfo_class_data_ =
SharingLog_CloudAttachmentInfo::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudAttachmentInfo::GetClassData() const {
return SharingLog_CloudAttachmentInfo_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 8, 6, 0, 2>
SharingLog_CloudAttachmentInfo::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_._has_bits_),
0, // no _extensions_
8, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967040, // skipmap
offsetof(decltype(_table_), field_entries),
8, // num_field_entries
6, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_CloudAttachmentInfo_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int64 duration_millis = 8;
{::_pbi::TcParser::FastV64S1,
{64, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.duration_millis_)}},
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 2, 30,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.status_)}},
{::_pbi::TcParser::MiniParse, {}},
// optional int64 transferred_bytes = 7;
{::_pbi::TcParser::FastV64S1,
{56, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.transferred_bytes_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.status_), _Internal::kHasBitsOffset + 2, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.text_attachment_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
// .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.file_attachment_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
// .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.wifi_credentials_attachment_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
// .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.app_attachment_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
// .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.stream_attachment_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 transferred_bytes = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.transferred_bytes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 duration_millis = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.duration_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>()},
{0, 30},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudAttachmentInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
::memset(&_impl_.transferred_bytes_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.status_) -
reinterpret_cast<char*>(&_impl_.transferred_bytes_)) + sizeof(_impl_.status_));
}
clear_CloudAttachment();
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudAttachmentInfo& this_ = static_cast<const SharingLog_CloudAttachmentInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudAttachmentInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_status(), target);
}
switch (this_.CloudAttachment_case()) {
case kTextAttachment: {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.CloudAttachment_.text_attachment_, this_._impl_.CloudAttachment_.text_attachment_->GetCachedSize(), target,
stream);
break;
}
case kFileAttachment: {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3, *this_._impl_.CloudAttachment_.file_attachment_, this_._impl_.CloudAttachment_.file_attachment_->GetCachedSize(), target,
stream);
break;
}
case kWifiCredentialsAttachment: {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4, *this_._impl_.CloudAttachment_.wifi_credentials_attachment_, this_._impl_.CloudAttachment_.wifi_credentials_attachment_->GetCachedSize(), target,
stream);
break;
}
case kAppAttachment: {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
5, *this_._impl_.CloudAttachment_.app_attachment_, this_._impl_.CloudAttachment_.app_attachment_->GetCachedSize(), target,
stream);
break;
}
case kStreamAttachment: {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6, *this_._impl_.CloudAttachment_.stream_attachment_, this_._impl_.CloudAttachment_.stream_attachment_->GetCachedSize(), target,
stream);
break;
}
default:
break;
}
// optional int64 transferred_bytes = 7;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
stream, this_._internal_transferred_bytes(), target);
}
// optional int64 duration_millis = 8;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
stream, this_._internal_duration_millis(), 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:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudAttachmentInfo::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudAttachmentInfo& this_ = static_cast<const SharingLog_CloudAttachmentInfo&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudAttachmentInfo::ByteSizeLong() const {
const SharingLog_CloudAttachmentInfo& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
::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 int64 transferred_bytes = 7;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_transferred_bytes());
}
// optional int64 duration_millis = 8;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_duration_millis());
}
// optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
}
}
switch (this_.CloudAttachment_case()) {
// .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2;
case kTextAttachment: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.text_attachment_);
break;
}
// .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3;
case kFileAttachment: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.file_attachment_);
break;
}
// .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4;
case kWifiCredentialsAttachment: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.wifi_credentials_attachment_);
break;
}
// .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5;
case kAppAttachment: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.app_attachment_);
break;
}
// .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6;
case kStreamAttachment: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.stream_attachment_);
break;
}
case CLOUDATTACHMENT_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 SharingLog_CloudAttachmentInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudAttachmentInfo*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudAttachmentInfo&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
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->_impl_.transferred_bytes_ = from._impl_.transferred_bytes_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.status_ = from._impl_.status_;
}
}
_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_CloudAttachment();
}
_this->_impl_._oneof_case_[0] = oneof_from_case;
}
switch (oneof_from_case) {
case kTextAttachment: {
if (oneof_needs_init) {
_this->_impl_.CloudAttachment_.text_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.text_attachment_);
} else {
_this->_impl_.CloudAttachment_.text_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.text_attachment_);
}
break;
}
case kFileAttachment: {
if (oneof_needs_init) {
_this->_impl_.CloudAttachment_.file_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.file_attachment_);
} else {
_this->_impl_.CloudAttachment_.file_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.file_attachment_);
}
break;
}
case kWifiCredentialsAttachment: {
if (oneof_needs_init) {
_this->_impl_.CloudAttachment_.wifi_credentials_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.wifi_credentials_attachment_);
} else {
_this->_impl_.CloudAttachment_.wifi_credentials_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.wifi_credentials_attachment_);
}
break;
}
case kAppAttachment: {
if (oneof_needs_init) {
_this->_impl_.CloudAttachment_.app_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.app_attachment_);
} else {
_this->_impl_.CloudAttachment_.app_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.app_attachment_);
}
break;
}
case kStreamAttachment: {
if (oneof_needs_init) {
_this->_impl_.CloudAttachment_.stream_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.stream_attachment_);
} else {
_this->_impl_.CloudAttachment_.stream_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.stream_attachment_);
}
break;
}
case CLOUDATTACHMENT_NOT_SET:
break;
}
}
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudAttachmentInfo::CopyFrom(const SharingLog_CloudAttachmentInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudAttachmentInfo::InternalSwap(SharingLog_CloudAttachmentInfo* 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(SharingLog_CloudAttachmentInfo, _impl_.status_)
+ sizeof(SharingLog_CloudAttachmentInfo::_impl_.status_)
- PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.transferred_bytes_)>(
reinterpret_cast<char*>(&_impl_.transferred_bytes_),
reinterpret_cast<char*>(&other->_impl_.transferred_bytes_));
swap(_impl_.CloudAttachment_, other->_impl_.CloudAttachment_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
// ===================================================================
class SharingLog_AppCrash::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_AppCrash>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_._has_bits_);
};
SharingLog_AppCrash::SharingLog_AppCrash(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AppCrash_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AppCrash)
}
SharingLog_AppCrash::SharingLog_AppCrash(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AppCrash& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_AppCrash_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 SharingLog_AppCrash::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_AppCrash::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.crash_reason_ = {};
}
SharingLog_AppCrash::~SharingLog_AppCrash() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AppCrash)
SharedDtor(*this);
}
inline void SharingLog_AppCrash::SharedDtor(MessageLite& self) {
SharingLog_AppCrash& this_ = static_cast<SharingLog_AppCrash&>(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 SharingLog_AppCrash::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_AppCrash(arena);
}
constexpr auto SharingLog_AppCrash::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AppCrash),
alignof(SharingLog_AppCrash));
}
constexpr auto SharingLog_AppCrash::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<51>{
{
&_SharingLog_AppCrash_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_AppCrash::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_AppCrash>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_AppCrash::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_AppCrash>(), &SharingLog_AppCrash::ByteSizeLong,
&SharingLog_AppCrash::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.AppCrash",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<51> SharingLog_AppCrash_class_data_ =
SharingLog_AppCrash::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_AppCrash::GetClassData() const {
return SharingLog_AppCrash_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_AppCrash::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _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),
SharingLog_AppCrash_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppCrash>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_.crash_reason_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_.crash_reason_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 0},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_AppCrash::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AppCrash)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.crash_reason_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_AppCrash::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_AppCrash& this_ = static_cast<const SharingLog_AppCrash&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_AppCrash::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_AppCrash& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AppCrash)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_crash_reason(), 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:nearby.sharing.analytics.proto.SharingLog.AppCrash)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_AppCrash::ByteSizeLong(const MessageLite& base) {
const SharingLog_AppCrash& this_ = static_cast<const SharingLog_AppCrash&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_AppCrash::ByteSizeLong() const {
const SharingLog_AppCrash& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppCrash)
::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.proto.sharing.AppCrashReason crash_reason = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_crash_reason());
}
}
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 SharingLog_AppCrash::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_AppCrash*>(&to_msg);
auto& from = static_cast<const SharingLog_AppCrash&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppCrash)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.crash_reason_ = from._impl_.crash_reason_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_AppCrash::CopyFrom(const SharingLog_AppCrash& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppCrash)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_AppCrash::InternalSwap(SharingLog_AppCrash* 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_.crash_reason_, other->_impl_.crash_reason_);
}
// ===================================================================
class SharingLog_SetupWizard::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SetupWizard>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_._has_bits_);
};
SharingLog_SetupWizard::SharingLog_SetupWizard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetupWizard_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
}
SharingLog_SetupWizard::SharingLog_SetupWizard(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetupWizard& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SetupWizard_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 SharingLog_SetupWizard::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SetupWizard::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, visibility_),
0,
offsetof(Impl_, previous_visibility_) -
offsetof(Impl_, visibility_) +
sizeof(Impl_::previous_visibility_));
}
SharingLog_SetupWizard::~SharingLog_SetupWizard() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
SharedDtor(*this);
}
inline void SharingLog_SetupWizard::SharedDtor(MessageLite& self) {
SharingLog_SetupWizard& this_ = static_cast<SharingLog_SetupWizard&>(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 SharingLog_SetupWizard::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SetupWizard(arena);
}
constexpr auto SharingLog_SetupWizard::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetupWizard),
alignof(SharingLog_SetupWizard));
}
constexpr auto SharingLog_SetupWizard::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<54>{
{
&_SharingLog_SetupWizard_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SetupWizard::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SetupWizard>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SetupWizard::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SetupWizard>(), &SharingLog_SetupWizard::ByteSizeLong,
&SharingLog_SetupWizard::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SetupWizard",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<54> SharingLog_SetupWizard_class_data_ =
SharingLog_SetupWizard::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SetupWizard::GetClassData() const {
return SharingLog_SetupWizard_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_SetupWizard::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_SetupWizard_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.Visibility previous_visibility = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.previous_visibility_)}},
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.visibility_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.visibility_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .location.nearby.proto.sharing.Visibility previous_visibility = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.previous_visibility_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 5},
{0, 5},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SetupWizard::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
::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)) {
::memset(&_impl_.visibility_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.previous_visibility_) -
reinterpret_cast<char*>(&_impl_.visibility_)) + sizeof(_impl_.previous_visibility_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SetupWizard::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SetupWizard& this_ = static_cast<const SharingLog_SetupWizard&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SetupWizard::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SetupWizard& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.Visibility visibility = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_visibility(), target);
}
// optional .location.nearby.proto.sharing.Visibility previous_visibility = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_previous_visibility(), 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:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SetupWizard::ByteSizeLong(const MessageLite& base) {
const SharingLog_SetupWizard& this_ = static_cast<const SharingLog_SetupWizard&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SetupWizard::ByteSizeLong() const {
const SharingLog_SetupWizard& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
::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.proto.sharing.Visibility visibility = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_visibility());
}
// optional .location.nearby.proto.sharing.Visibility previous_visibility = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_previous_visibility());
}
}
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 SharingLog_SetupWizard::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SetupWizard*>(&to_msg);
auto& from = static_cast<const SharingLog_SetupWizard&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.visibility_ = from._impl_.visibility_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.previous_visibility_ = from._impl_.previous_visibility_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SetupWizard::CopyFrom(const SharingLog_SetupWizard& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SetupWizard::InternalSwap(SharingLog_SetupWizard* 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(SharingLog_SetupWizard, _impl_.previous_visibility_)
+ sizeof(SharingLog_SetupWizard::_impl_.previous_visibility_)
- PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.visibility_)>(
reinterpret_cast<char*>(&_impl_.visibility_),
reinterpret_cast<char*>(&other->_impl_.visibility_));
}
// ===================================================================
class SharingLog_SendDesktopNotification::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SendDesktopNotification>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_._has_bits_);
};
SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopNotification_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
}
SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendDesktopNotification& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopNotification_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 SharingLog_SendDesktopNotification::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SendDesktopNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.event_ = {};
}
SharingLog_SendDesktopNotification::~SharingLog_SendDesktopNotification() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
SharedDtor(*this);
}
inline void SharingLog_SendDesktopNotification::SharedDtor(MessageLite& self) {
SharingLog_SendDesktopNotification& this_ = static_cast<SharingLog_SendDesktopNotification&>(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 SharingLog_SendDesktopNotification::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendDesktopNotification(arena);
}
constexpr auto SharingLog_SendDesktopNotification::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendDesktopNotification),
alignof(SharingLog_SendDesktopNotification));
}
constexpr auto SharingLog_SendDesktopNotification::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_SendDesktopNotification_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendDesktopNotification::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendDesktopNotification>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendDesktopNotification::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendDesktopNotification>(), &SharingLog_SendDesktopNotification::ByteSizeLong,
&SharingLog_SendDesktopNotification::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_SendDesktopNotification_class_data_ =
SharingLog_SendDesktopNotification::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendDesktopNotification::GetClassData() const {
return SharingLog_SendDesktopNotification_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_SendDesktopNotification::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _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),
SharingLog_SendDesktopNotification_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.DesktopNotification event = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_.event_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.DesktopNotification event = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_.event_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 5},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendDesktopNotification::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.event_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopNotification::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendDesktopNotification& this_ = static_cast<const SharingLog_SendDesktopNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopNotification::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendDesktopNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.DesktopNotification event = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_event(), 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:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendDesktopNotification::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendDesktopNotification& this_ = static_cast<const SharingLog_SendDesktopNotification&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendDesktopNotification::ByteSizeLong() const {
const SharingLog_SendDesktopNotification& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
::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.proto.sharing.DesktopNotification event = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_event());
}
}
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 SharingLog_SendDesktopNotification::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendDesktopNotification*>(&to_msg);
auto& from = static_cast<const SharingLog_SendDesktopNotification&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.event_ = from._impl_.event_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SendDesktopNotification::CopyFrom(const SharingLog_SendDesktopNotification& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendDesktopNotification::InternalSwap(SharingLog_SendDesktopNotification* 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_.event_, other->_impl_.event_);
}
// ===================================================================
class SharingLog_SendDesktopTransferEvent::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_SendDesktopTransferEvent>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_._has_bits_);
};
SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopTransferEvent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
}
SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendDesktopTransferEvent& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopTransferEvent_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 SharingLog_SendDesktopTransferEvent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_SendDesktopTransferEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.event_ = {};
}
SharingLog_SendDesktopTransferEvent::~SharingLog_SendDesktopTransferEvent() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
SharedDtor(*this);
}
inline void SharingLog_SendDesktopTransferEvent::SharedDtor(MessageLite& self) {
SharingLog_SendDesktopTransferEvent& this_ = static_cast<SharingLog_SendDesktopTransferEvent&>(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 SharingLog_SendDesktopTransferEvent::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_SendDesktopTransferEvent(arena);
}
constexpr auto SharingLog_SendDesktopTransferEvent::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendDesktopTransferEvent),
alignof(SharingLog_SendDesktopTransferEvent));
}
constexpr auto SharingLog_SendDesktopTransferEvent::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<67>{
{
&_SharingLog_SendDesktopTransferEvent_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_SendDesktopTransferEvent::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_SendDesktopTransferEvent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_SendDesktopTransferEvent::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_SendDesktopTransferEvent>(), &SharingLog_SendDesktopTransferEvent::ByteSizeLong,
&SharingLog_SendDesktopTransferEvent::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<67> SharingLog_SendDesktopTransferEvent_class_data_ =
SharingLog_SendDesktopTransferEvent::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_SendDesktopTransferEvent::GetClassData() const {
return SharingLog_SendDesktopTransferEvent_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_SendDesktopTransferEvent::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _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),
SharingLog_SendDesktopTransferEvent_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 9,
PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_.event_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_.event_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 9},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_SendDesktopTransferEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.event_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopTransferEvent::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_SendDesktopTransferEvent& this_ = static_cast<const SharingLog_SendDesktopTransferEvent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopTransferEvent::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_SendDesktopTransferEvent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_event(), 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:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_SendDesktopTransferEvent::ByteSizeLong(const MessageLite& base) {
const SharingLog_SendDesktopTransferEvent& this_ = static_cast<const SharingLog_SendDesktopTransferEvent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_SendDesktopTransferEvent::ByteSizeLong() const {
const SharingLog_SendDesktopTransferEvent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
::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.proto.sharing.DesktopTransferEventType event = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_event());
}
}
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 SharingLog_SendDesktopTransferEvent::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_SendDesktopTransferEvent*>(&to_msg);
auto& from = static_cast<const SharingLog_SendDesktopTransferEvent&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.event_ = from._impl_.event_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_SendDesktopTransferEvent::CopyFrom(const SharingLog_SendDesktopTransferEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_SendDesktopTransferEvent::InternalSwap(SharingLog_SendDesktopTransferEvent* 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_.event_, other->_impl_.event_);
}
// ===================================================================
class SharingLog_ShowWaitingForAccept::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ShowWaitingForAccept>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_._has_bits_);
};
SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ShowWaitingForAccept_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
}
SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShowWaitingForAccept& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ShowWaitingForAccept_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 SharingLog_ShowWaitingForAccept::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ShowWaitingForAccept::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.button_status_ = {};
}
SharingLog_ShowWaitingForAccept::~SharingLog_ShowWaitingForAccept() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
SharedDtor(*this);
}
inline void SharingLog_ShowWaitingForAccept::SharedDtor(MessageLite& self) {
SharingLog_ShowWaitingForAccept& this_ = static_cast<SharingLog_ShowWaitingForAccept&>(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 SharingLog_ShowWaitingForAccept::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ShowWaitingForAccept(arena);
}
constexpr auto SharingLog_ShowWaitingForAccept::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ShowWaitingForAccept),
alignof(SharingLog_ShowWaitingForAccept));
}
constexpr auto SharingLog_ShowWaitingForAccept::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<63>{
{
&_SharingLog_ShowWaitingForAccept_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ShowWaitingForAccept::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ShowWaitingForAccept>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ShowWaitingForAccept::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ShowWaitingForAccept>(), &SharingLog_ShowWaitingForAccept::ByteSizeLong,
&SharingLog_ShowWaitingForAccept::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<63> SharingLog_ShowWaitingForAccept_class_data_ =
SharingLog_ShowWaitingForAccept::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ShowWaitingForAccept::GetClassData() const {
return SharingLog_ShowWaitingForAccept_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_ShowWaitingForAccept::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _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),
SharingLog_ShowWaitingForAccept_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.ButtonStatus button_status = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 3,
PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_.button_status_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.ButtonStatus button_status = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_.button_status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 3},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ShowWaitingForAccept::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.button_status_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ShowWaitingForAccept::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ShowWaitingForAccept& this_ = static_cast<const SharingLog_ShowWaitingForAccept&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ShowWaitingForAccept::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ShowWaitingForAccept& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.ButtonStatus button_status = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_button_status(), 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:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ShowWaitingForAccept::ByteSizeLong(const MessageLite& base) {
const SharingLog_ShowWaitingForAccept& this_ = static_cast<const SharingLog_ShowWaitingForAccept&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ShowWaitingForAccept::ByteSizeLong() const {
const SharingLog_ShowWaitingForAccept& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
::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.proto.sharing.ButtonStatus button_status = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_button_status());
}
}
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 SharingLog_ShowWaitingForAccept::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ShowWaitingForAccept*>(&to_msg);
auto& from = static_cast<const SharingLog_ShowWaitingForAccept&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.button_status_ = from._impl_.button_status_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ShowWaitingForAccept::CopyFrom(const SharingLog_ShowWaitingForAccept& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ShowWaitingForAccept::InternalSwap(SharingLog_ShowWaitingForAccept* 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_.button_status_, other->_impl_.button_status_);
}
// ===================================================================
class SharingLog_HighQualityMediumSetup::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_HighQualityMediumSetup>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_._has_bits_);
};
SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_HighQualityMediumSetup_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
}
PROTOBUF_NDEBUG_INLINE SharingLog_HighQualityMediumSetup::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_HighQualityMediumSetup& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_HighQualityMediumSetup_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_HighQualityMediumSetup* 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_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, session_id_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, session_id_),
offsetof(Impl_, instant_connection_result_) -
offsetof(Impl_, session_id_) +
sizeof(Impl_::instant_connection_result_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
}
PROTOBUF_NDEBUG_INLINE SharingLog_HighQualityMediumSetup::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_HighQualityMediumSetup::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, share_target_info_),
0,
offsetof(Impl_, instant_connection_result_) -
offsetof(Impl_, share_target_info_) +
sizeof(Impl_::instant_connection_result_));
}
SharingLog_HighQualityMediumSetup::~SharingLog_HighQualityMediumSetup() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
SharedDtor(*this);
}
inline void SharingLog_HighQualityMediumSetup::SharedDtor(MessageLite& self) {
SharingLog_HighQualityMediumSetup& this_ = static_cast<SharingLog_HighQualityMediumSetup&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.share_target_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_HighQualityMediumSetup(arena);
}
constexpr auto SharingLog_HighQualityMediumSetup::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_HighQualityMediumSetup),
alignof(SharingLog_HighQualityMediumSetup));
}
constexpr auto SharingLog_HighQualityMediumSetup::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<65>{
{
&_SharingLog_HighQualityMediumSetup_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_HighQualityMediumSetup::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_HighQualityMediumSetup>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_HighQualityMediumSetup::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_HighQualityMediumSetup>(), &SharingLog_HighQualityMediumSetup::ByteSizeLong,
&SharingLog_HighQualityMediumSetup::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<65> SharingLog_HighQualityMediumSetup_class_data_ =
SharingLog_HighQualityMediumSetup::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_HighQualityMediumSetup::GetClassData() const {
return SharingLog_HighQualityMediumSetup_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 8, 1, 0, 2>
SharingLog_HighQualityMediumSetup::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_._has_bits_),
0, // no _extensions_
8, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967040, // skipmap
offsetof(decltype(_table_), field_entries),
8, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_HighQualityMediumSetup_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int32 instant_connection_result = 8;
{::_pbi::TcParser::FastV32S1,
{64, 7, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.instant_connection_result_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.share_target_info_)}},
// optional int64 session_id = 2;
{::_pbi::TcParser::FastV64S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.session_id_)}},
// optional int64 duration_millis = 3;
{::_pbi::TcParser::FastV64S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.duration_millis_)}},
// optional bool is_timeout = 4;
{::_pbi::TcParser::FastV8S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.is_timeout_)}},
// optional int32 original_quality = 5;
{::_pbi::TcParser::FastV32S1,
{40, 4, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.original_quality_)}},
// optional int32 connection_medium = 6;
{::_pbi::TcParser::FastV32S1,
{48, 5, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_medium_)}},
// optional int32 connection_mode = 7;
{::_pbi::TcParser::FastV32S1,
{56, 6, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_mode_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.share_target_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional int64 session_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 duration_millis = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional bool is_timeout = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.is_timeout_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
// optional int32 original_quality = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.original_quality_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 connection_medium = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_medium_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 connection_mode = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_mode_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 instant_connection_result = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.instant_connection_result_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_HighQualityMediumSetup::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
::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_.share_target_info_ != nullptr);
_impl_.share_target_info_->Clear();
}
if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) {
::memset(&_impl_.session_id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.instant_connection_result_) -
reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.instant_connection_result_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_HighQualityMediumSetup& this_ = static_cast<const SharingLog_HighQualityMediumSetup&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_HighQualityMediumSetup& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target,
stream);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
stream, this_._internal_session_id(), target);
}
// optional int64 duration_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_duration_millis(), target);
}
// optional bool is_timeout = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
4, this_._internal_is_timeout(), target);
}
// optional int32 original_quality = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
stream, this_._internal_original_quality(), target);
}
// optional int32 connection_medium = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
stream, this_._internal_connection_medium(), target);
}
// optional int32 connection_mode = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
stream, this_._internal_connection_mode(), target);
}
// optional int32 instant_connection_result = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
stream, this_._internal_instant_connection_result(), 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:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_HighQualityMediumSetup::ByteSizeLong(const MessageLite& base) {
const SharingLog_HighQualityMediumSetup& this_ = static_cast<const SharingLog_HighQualityMediumSetup&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_HighQualityMediumSetup::ByteSizeLong() const {
const SharingLog_HighQualityMediumSetup& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
::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];
total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 2;
if (BatchCheckHasBit(cached_has_bits, 0x000000f7U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_);
}
// optional int64 session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_session_id());
}
// optional int64 duration_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_duration_millis());
}
// optional int32 original_quality = 5;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_original_quality());
}
// optional int32 connection_medium = 6;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_connection_medium());
}
// optional int32 connection_mode = 7;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_connection_mode());
}
// optional int32 instant_connection_result = 8;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_instant_connection_result());
}
}
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 SharingLog_HighQualityMediumSetup::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_HighQualityMediumSetup*>(&to_msg);
auto& from = static_cast<const SharingLog_HighQualityMediumSetup&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.share_target_info_ != nullptr);
if (_this->_impl_.share_target_info_ == nullptr) {
_this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_);
} else {
_this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.session_id_ = from._impl_.session_id_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.is_timeout_ = from._impl_.is_timeout_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.original_quality_ = from._impl_.original_quality_;
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
_this->_impl_.connection_medium_ = from._impl_.connection_medium_;
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
_this->_impl_.connection_mode_ = from._impl_.connection_mode_;
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
_this->_impl_.instant_connection_result_ = from._impl_.instant_connection_result_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_HighQualityMediumSetup::CopyFrom(const SharingLog_HighQualityMediumSetup& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_HighQualityMediumSetup::InternalSwap(SharingLog_HighQualityMediumSetup* 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(SharingLog_HighQualityMediumSetup, _impl_.instant_connection_result_)
+ sizeof(SharingLog_HighQualityMediumSetup::_impl_.instant_connection_result_)
- PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.share_target_info_)>(
reinterpret_cast<char*>(&_impl_.share_target_info_),
reinterpret_cast<char*>(&other->_impl_.share_target_info_));
}
// ===================================================================
class SharingLog_RpcCallStatus::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_RpcCallStatus>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_._has_bits_);
};
SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RpcCallStatus_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
}
PROTOBUF_NDEBUG_INLINE SharingLog_RpcCallStatus::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
rpc_name_(arena, from.rpc_name_) {}
SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_RpcCallStatus& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_RpcCallStatus_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_RpcCallStatus* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, direction_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, direction_),
offsetof(Impl_, latency_millis_) -
offsetof(Impl_, direction_) +
sizeof(Impl_::latency_millis_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
}
PROTOBUF_NDEBUG_INLINE SharingLog_RpcCallStatus::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
rpc_name_(arena) {}
inline void SharingLog_RpcCallStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, direction_),
0,
offsetof(Impl_, latency_millis_) -
offsetof(Impl_, direction_) +
sizeof(Impl_::latency_millis_));
}
SharingLog_RpcCallStatus::~SharingLog_RpcCallStatus() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
SharedDtor(*this);
}
inline void SharingLog_RpcCallStatus::SharedDtor(MessageLite& self) {
SharingLog_RpcCallStatus& this_ = static_cast<SharingLog_RpcCallStatus&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.rpc_name_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_RpcCallStatus::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_RpcCallStatus(arena);
}
constexpr auto SharingLog_RpcCallStatus::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_RpcCallStatus),
alignof(SharingLog_RpcCallStatus));
}
constexpr auto SharingLog_RpcCallStatus::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<56>{
{
&_SharingLog_RpcCallStatus_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_RpcCallStatus::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_RpcCallStatus>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_RpcCallStatus::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_RpcCallStatus>(), &SharingLog_RpcCallStatus::ByteSizeLong,
&SharingLog_RpcCallStatus::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.RpcCallStatus",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RpcCallStatus_class_data_ =
SharingLog_RpcCallStatus::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_RpcCallStatus::GetClassData() const {
return SharingLog_RpcCallStatus_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
SharingLog_RpcCallStatus::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_RpcCallStatus_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int64 latency_millis = 4;
{::_pbi::TcParser::FastV64S1,
{32, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.latency_millis_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.direction_)}},
// optional string rpc_name = 2;
{::_pbi::TcParser::FastBS1,
{18, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.rpc_name_)}},
// optional int32 error_code = 3;
{::_pbi::TcParser::FastV32S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.error_code_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.direction_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional string rpc_name = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.rpc_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional int32 error_code = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.error_code_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int64 latency_millis = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.latency_millis_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
}},
{{
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_RpcCallStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
::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_.rpc_name_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
::memset(&_impl_.direction_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.latency_millis_) -
reinterpret_cast<char*>(&_impl_.direction_)) + sizeof(_impl_.latency_millis_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_RpcCallStatus::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_RpcCallStatus& this_ = static_cast<const SharingLog_RpcCallStatus&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_RpcCallStatus::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_RpcCallStatus& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_direction(), target);
}
// optional string rpc_name = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_rpc_name();
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// optional int32 error_code = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_error_code(), target);
}
// optional int64 latency_millis = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_latency_millis(), 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:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_RpcCallStatus::ByteSizeLong(const MessageLite& base) {
const SharingLog_RpcCallStatus& this_ = static_cast<const SharingLog_RpcCallStatus&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_RpcCallStatus::ByteSizeLong() const {
const SharingLog_RpcCallStatus& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional string rpc_name = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_rpc_name());
}
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_direction());
}
// optional int32 error_code = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_error_code());
}
// optional int64 latency_millis = 4;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_latency_millis());
}
}
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 SharingLog_RpcCallStatus::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_RpcCallStatus*>(&to_msg);
auto& from = static_cast<const SharingLog_RpcCallStatus&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_rpc_name(from._internal_rpc_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.direction_ = from._impl_.direction_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.error_code_ = from._impl_.error_code_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.latency_millis_ = from._impl_.latency_millis_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_RpcCallStatus::CopyFrom(const SharingLog_RpcCallStatus& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_RpcCallStatus::InternalSwap(SharingLog_RpcCallStatus* 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_.rpc_name_, &other->_impl_.rpc_name_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.latency_millis_)
+ sizeof(SharingLog_RpcCallStatus::_impl_.latency_millis_)
- PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.direction_)>(
reinterpret_cast<char*>(&_impl_.direction_),
reinterpret_cast<char*>(&other->_impl_.direction_));
}
// ===================================================================
class SharingLog_StartQrCodeSession::_Internal {
public:
};
SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_StartQrCodeSession_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
}
SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_StartQrCodeSession& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_StartQrCodeSession_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 SharingLog_StartQrCodeSession::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_StartQrCodeSession::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
SharingLog_StartQrCodeSession::~SharingLog_StartQrCodeSession() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
SharedDtor(*this);
}
inline void SharingLog_StartQrCodeSession::SharedDtor(MessageLite& self) {
SharingLog_StartQrCodeSession& this_ = static_cast<SharingLog_StartQrCodeSession&>(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 SharingLog_StartQrCodeSession::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_StartQrCodeSession(arena);
}
constexpr auto SharingLog_StartQrCodeSession::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_StartQrCodeSession),
alignof(SharingLog_StartQrCodeSession));
}
constexpr auto SharingLog_StartQrCodeSession::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<61>{
{
&_SharingLog_StartQrCodeSession_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_StartQrCodeSession::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_StartQrCodeSession>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_StartQrCodeSession::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_StartQrCodeSession>(), &SharingLog_StartQrCodeSession::ByteSizeLong,
&SharingLog_StartQrCodeSession::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_StartQrCodeSession, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<61> SharingLog_StartQrCodeSession_class_data_ =
SharingLog_StartQrCodeSession::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_StartQrCodeSession::GetClassData() const {
return SharingLog_StartQrCodeSession_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
SharingLog_StartQrCodeSession::_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
SharingLog_StartQrCodeSession_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, // no field_entries, or aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_StartQrCodeSession::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
::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 SharingLog_StartQrCodeSession::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_StartQrCodeSession& this_ = static_cast<const SharingLog_StartQrCodeSession&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_StartQrCodeSession::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_StartQrCodeSession& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
::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:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_StartQrCodeSession::ByteSizeLong(const MessageLite& base) {
const SharingLog_StartQrCodeSession& this_ = static_cast<const SharingLog_StartQrCodeSession&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_StartQrCodeSession::ByteSizeLong() const {
const SharingLog_StartQrCodeSession& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
::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 SharingLog_StartQrCodeSession::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_StartQrCodeSession*>(&to_msg);
auto& from = static_cast<const SharingLog_StartQrCodeSession&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
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 SharingLog_StartQrCodeSession::CopyFrom(const SharingLog_StartQrCodeSession& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_StartQrCodeSession::InternalSwap(SharingLog_StartQrCodeSession* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
// ===================================================================
class SharingLog_QrCodeOpenedInWebClient::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_QrCodeOpenedInWebClient>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_._has_bits_);
};
SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_QrCodeOpenedInWebClient_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
}
SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_QrCodeOpenedInWebClient& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_QrCodeOpenedInWebClient_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 SharingLog_QrCodeOpenedInWebClient::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_QrCodeOpenedInWebClient::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, client_platform_),
0,
offsetof(Impl_, is_retry_) -
offsetof(Impl_, client_platform_) +
sizeof(Impl_::is_retry_));
}
SharingLog_QrCodeOpenedInWebClient::~SharingLog_QrCodeOpenedInWebClient() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
SharedDtor(*this);
}
inline void SharingLog_QrCodeOpenedInWebClient::SharedDtor(MessageLite& self) {
SharingLog_QrCodeOpenedInWebClient& this_ = static_cast<SharingLog_QrCodeOpenedInWebClient&>(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 SharingLog_QrCodeOpenedInWebClient::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_QrCodeOpenedInWebClient(arena);
}
constexpr auto SharingLog_QrCodeOpenedInWebClient::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_QrCodeOpenedInWebClient),
alignof(SharingLog_QrCodeOpenedInWebClient));
}
constexpr auto SharingLog_QrCodeOpenedInWebClient::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<66>{
{
&_SharingLog_QrCodeOpenedInWebClient_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_QrCodeOpenedInWebClient::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_QrCodeOpenedInWebClient>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_QrCodeOpenedInWebClient::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_QrCodeOpenedInWebClient>(), &SharingLog_QrCodeOpenedInWebClient::ByteSizeLong,
&SharingLog_QrCodeOpenedInWebClient::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<66> SharingLog_QrCodeOpenedInWebClient_class_data_ =
SharingLog_QrCodeOpenedInWebClient::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_QrCodeOpenedInWebClient::GetClassData() const {
return SharingLog_QrCodeOpenedInWebClient_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
SharingLog_QrCodeOpenedInWebClient::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_QrCodeOpenedInWebClient_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional bool is_retry = 2;
{::_pbi::TcParser::FastV8S1,
{16, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.is_retry_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 5,
PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.client_platform_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.client_platform_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional bool is_retry = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.is_retry_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
}},
{{
{0, 5},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_QrCodeOpenedInWebClient::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
::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)) {
::memset(&_impl_.client_platform_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.is_retry_) -
reinterpret_cast<char*>(&_impl_.client_platform_)) + sizeof(_impl_.is_retry_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeOpenedInWebClient::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_QrCodeOpenedInWebClient& this_ = static_cast<const SharingLog_QrCodeOpenedInWebClient&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeOpenedInWebClient::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_QrCodeOpenedInWebClient& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_client_platform(), target);
}
// optional bool is_retry = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this_._internal_is_retry(), 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:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_QrCodeOpenedInWebClient::ByteSizeLong(const MessageLite& base) {
const SharingLog_QrCodeOpenedInWebClient& this_ = static_cast<const SharingLog_QrCodeOpenedInWebClient&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_QrCodeOpenedInWebClient::ByteSizeLong() const {
const SharingLog_QrCodeOpenedInWebClient& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
::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];
total_size += static_cast<bool>(0x00000002U & cached_has_bits) * 2;
{
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_client_platform());
}
}
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 SharingLog_QrCodeOpenedInWebClient::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_QrCodeOpenedInWebClient*>(&to_msg);
auto& from = static_cast<const SharingLog_QrCodeOpenedInWebClient&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.client_platform_ = from._impl_.client_platform_;
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.is_retry_ = from._impl_.is_retry_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_QrCodeOpenedInWebClient::CopyFrom(const SharingLog_QrCodeOpenedInWebClient& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_QrCodeOpenedInWebClient::InternalSwap(SharingLog_QrCodeOpenedInWebClient* 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(SharingLog_QrCodeOpenedInWebClient, _impl_.is_retry_)
+ sizeof(SharingLog_QrCodeOpenedInWebClient::_impl_.is_retry_)
- PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.client_platform_)>(
reinterpret_cast<char*>(&_impl_.client_platform_),
reinterpret_cast<char*>(&other->_impl_.client_platform_));
}
// ===================================================================
class SharingLog_HatsJointEvent::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_HatsJointEvent>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_._has_bits_);
};
SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_HatsJointEvent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
}
PROTOBUF_NDEBUG_INLINE SharingLog_HatsJointEvent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
hats_session_id_(arena, from.hats_session_id_) {}
SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_HatsJointEvent& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_HatsJointEvent_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_HatsJointEvent* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
_impl_.flow_id_ = from._impl_.flow_id_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
}
PROTOBUF_NDEBUG_INLINE SharingLog_HatsJointEvent::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
hats_session_id_(arena) {}
inline void SharingLog_HatsJointEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.flow_id_ = {};
}
SharingLog_HatsJointEvent::~SharingLog_HatsJointEvent() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
SharedDtor(*this);
}
inline void SharingLog_HatsJointEvent::SharedDtor(MessageLite& self) {
SharingLog_HatsJointEvent& this_ = static_cast<SharingLog_HatsJointEvent&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.hats_session_id_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_HatsJointEvent::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_HatsJointEvent(arena);
}
constexpr auto SharingLog_HatsJointEvent::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_HatsJointEvent),
alignof(SharingLog_HatsJointEvent));
}
constexpr auto SharingLog_HatsJointEvent::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<57>{
{
&_SharingLog_HatsJointEvent_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_HatsJointEvent::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_HatsJointEvent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_HatsJointEvent::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_HatsJointEvent>(), &SharingLog_HatsJointEvent::ByteSizeLong,
&SharingLog_HatsJointEvent::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.HatsJointEvent",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<57> SharingLog_HatsJointEvent_class_data_ =
SharingLog_HatsJointEvent::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_HatsJointEvent::GetClassData() const {
return SharingLog_HatsJointEvent_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
SharingLog_HatsJointEvent::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
SharingLog_HatsJointEvent_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional string hats_session_id = 2;
{::_pbi::TcParser::FastBS1,
{18, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.hats_session_id_)}},
// optional int64 flow_id = 1;
{::_pbi::TcParser::FastV64S1,
{8, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.flow_id_)}},
}}, {{
65535, 65535
}}, {{
// optional int64 flow_id = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.flow_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional string hats_session_id = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.hats_session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_HatsJointEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
::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_.hats_session_id_.ClearNonDefaultToEmpty();
}
_impl_.flow_id_ = ::int64_t{0};
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_HatsJointEvent::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_HatsJointEvent& this_ = static_cast<const SharingLog_HatsJointEvent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_HatsJointEvent::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_HatsJointEvent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int64 flow_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
stream, this_._internal_flow_id(), target);
}
// optional string hats_session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_hats_session_id();
target = stream->WriteStringMaybeAliased(2, _s, target);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_HatsJointEvent::ByteSizeLong(const MessageLite& base) {
const SharingLog_HatsJointEvent& this_ = static_cast<const SharingLog_HatsJointEvent&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_HatsJointEvent::ByteSizeLong() const {
const SharingLog_HatsJointEvent& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
::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 string hats_session_id = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_hats_session_id());
}
// optional int64 flow_id = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_flow_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 SharingLog_HatsJointEvent::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_HatsJointEvent*>(&to_msg);
auto& from = static_cast<const SharingLog_HatsJointEvent&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_hats_session_id(from._internal_hats_session_id());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.flow_id_ = from._impl_.flow_id_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_HatsJointEvent::CopyFrom(const SharingLog_HatsJointEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_HatsJointEvent::InternalSwap(SharingLog_HatsJointEvent* 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_.hats_session_id_, &other->_impl_.hats_session_id_, arena);
swap(_impl_.flow_id_, other->_impl_.flow_id_);
}
// ===================================================================
class SharingLog_ReceivePreviews::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_ReceivePreviews>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_._has_bits_);
};
SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceivePreviews_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
}
SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceivePreviews& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_ReceivePreviews_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 SharingLog_ReceivePreviews::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_ReceivePreviews::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.num_previews_ = {};
}
SharingLog_ReceivePreviews::~SharingLog_ReceivePreviews() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
SharedDtor(*this);
}
inline void SharingLog_ReceivePreviews::SharedDtor(MessageLite& self) {
SharingLog_ReceivePreviews& this_ = static_cast<SharingLog_ReceivePreviews&>(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 SharingLog_ReceivePreviews::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_ReceivePreviews(arena);
}
constexpr auto SharingLog_ReceivePreviews::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ReceivePreviews),
alignof(SharingLog_ReceivePreviews));
}
constexpr auto SharingLog_ReceivePreviews::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<58>{
{
&_SharingLog_ReceivePreviews_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_ReceivePreviews::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_ReceivePreviews>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_ReceivePreviews::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_ReceivePreviews>(), &SharingLog_ReceivePreviews::ByteSizeLong,
&SharingLog_ReceivePreviews::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.ReceivePreviews",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ReceivePreviews_class_data_ =
SharingLog_ReceivePreviews::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_ReceivePreviews::GetClassData() const {
return SharingLog_ReceivePreviews_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
SharingLog_ReceivePreviews::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _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
SharingLog_ReceivePreviews_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional int32 num_previews = 1;
{::_pbi::TcParser::FastV32S1,
{8, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_.num_previews_)}},
}}, {{
65535, 65535
}}, {{
// optional int32 num_previews = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_.num_previews_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_ReceivePreviews::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.num_previews_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceivePreviews::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_ReceivePreviews& this_ = static_cast<const SharingLog_ReceivePreviews&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_ReceivePreviews::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_ReceivePreviews& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int32 num_previews = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
stream, this_._internal_num_previews(), 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:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_ReceivePreviews::ByteSizeLong(const MessageLite& base) {
const SharingLog_ReceivePreviews& this_ = static_cast<const SharingLog_ReceivePreviews&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_ReceivePreviews::ByteSizeLong() const {
const SharingLog_ReceivePreviews& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
::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 int32 num_previews = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_num_previews());
}
}
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 SharingLog_ReceivePreviews::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_ReceivePreviews*>(&to_msg);
auto& from = static_cast<const SharingLog_ReceivePreviews&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.num_previews_ = from._impl_.num_previews_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_ReceivePreviews::CopyFrom(const SharingLog_ReceivePreviews& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_ReceivePreviews::InternalSwap(SharingLog_ReceivePreviews* 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_.num_previews_, other->_impl_.num_previews_);
}
// ===================================================================
class SharingLog_CloudCreateSharingRequest::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudCreateSharingRequest>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_._has_bits_);
};
SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudCreateSharingRequest_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudCreateSharingRequest::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudCreateSharingRequest& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudCreateSharingRequest_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudCreateSharingRequest* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachment_download_latency_millis_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, attachment_download_latency_millis_),
offsetof(Impl_, result_) -
offsetof(Impl_, attachment_download_latency_millis_) +
sizeof(Impl_::result_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudCreateSharingRequest::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CloudCreateSharingRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, result_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::result_));
}
SharingLog_CloudCreateSharingRequest::~SharingLog_CloudCreateSharingRequest() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
SharedDtor(*this);
}
inline void SharingLog_CloudCreateSharingRequest::SharedDtor(MessageLite& self) {
SharingLog_CloudCreateSharingRequest& this_ = static_cast<SharingLog_CloudCreateSharingRequest&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudCreateSharingRequest(arena);
}
constexpr auto SharingLog_CloudCreateSharingRequest::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudCreateSharingRequest),
alignof(SharingLog_CloudCreateSharingRequest));
}
constexpr auto SharingLog_CloudCreateSharingRequest::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<68>{
{
&_SharingLog_CloudCreateSharingRequest_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudCreateSharingRequest::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudCreateSharingRequest>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudCreateSharingRequest::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudCreateSharingRequest>(), &SharingLog_CloudCreateSharingRequest::ByteSizeLong,
&SharingLog_CloudCreateSharingRequest::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<68> SharingLog_CloudCreateSharingRequest_class_data_ =
SharingLog_CloudCreateSharingRequest::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudCreateSharingRequest::GetClassData() const {
return SharingLog_CloudCreateSharingRequest_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 5, 2, 0, 2>
SharingLog_CloudCreateSharingRequest::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_._has_bits_),
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_CloudCreateSharingRequest_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachments_info_)}},
// optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 4, 10,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.result_)}},
// optional int64 attachment_download_latency_millis = 3;
{::_pbi::TcParser::FastV64S1,
{24, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachment_download_latency_millis_)}},
// optional int64 preview_thumbnail_latency_millis = 4;
{::_pbi::TcParser::FastV64S1,
{32, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.preview_thumbnail_latency_millis_)}},
// optional int64 rpc_latency_millis = 5;
{::_pbi::TcParser::FastV64S1,
{40, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.rpc_latency_millis_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.result_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional int64 attachment_download_latency_millis = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachment_download_latency_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 preview_thumbnail_latency_millis = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.preview_thumbnail_latency_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional int64 rpc_latency_millis = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.rpc_latency_millis_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{0, 10},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudCreateSharingRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
::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_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000001eU)) {
::memset(&_impl_.attachment_download_latency_millis_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.result_) -
reinterpret_cast<char*>(&_impl_.attachment_download_latency_millis_)) + sizeof(_impl_.result_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudCreateSharingRequest& this_ = static_cast<const SharingLog_CloudCreateSharingRequest&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudCreateSharingRequest& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_result(), target);
}
// optional int64 attachment_download_latency_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_attachment_download_latency_millis(), target);
}
// optional int64 preview_thumbnail_latency_millis = 4;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
stream, this_._internal_preview_thumbnail_latency_millis(), target);
}
// optional int64 rpc_latency_millis = 5;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
stream, this_._internal_rpc_latency_millis(), 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:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudCreateSharingRequest::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudCreateSharingRequest& this_ = static_cast<const SharingLog_CloudCreateSharingRequest&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudCreateSharingRequest::ByteSizeLong() const {
const SharingLog_CloudCreateSharingRequest& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
::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, 0x0000001fU)) {
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional int64 attachment_download_latency_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_attachment_download_latency_millis());
}
// optional int64 preview_thumbnail_latency_millis = 4;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_preview_thumbnail_latency_millis());
}
// optional int64 rpc_latency_millis = 5;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_rpc_latency_millis());
}
// optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_result());
}
}
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 SharingLog_CloudCreateSharingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudCreateSharingRequest*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudCreateSharingRequest&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
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, 0x0000001fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.attachment_download_latency_millis_ = from._impl_.attachment_download_latency_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.preview_thumbnail_latency_millis_ = from._impl_.preview_thumbnail_latency_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.rpc_latency_millis_ = from._impl_.rpc_latency_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.result_ = from._impl_.result_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudCreateSharingRequest::CopyFrom(const SharingLog_CloudCreateSharingRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudCreateSharingRequest::InternalSwap(SharingLog_CloudCreateSharingRequest* 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(SharingLog_CloudCreateSharingRequest, _impl_.result_)
+ sizeof(SharingLog_CloudCreateSharingRequest::_impl_.result_)
- PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_CloudRegisterReceiver::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudRegisterReceiver>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_._has_bits_);
};
SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudRegisterReceiver_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
}
SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudRegisterReceiver& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudRegisterReceiver_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 SharingLog_CloudRegisterReceiver::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CloudRegisterReceiver::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.result_ = {};
}
SharingLog_CloudRegisterReceiver::~SharingLog_CloudRegisterReceiver() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
SharedDtor(*this);
}
inline void SharingLog_CloudRegisterReceiver::SharedDtor(MessageLite& self) {
SharingLog_CloudRegisterReceiver& this_ = static_cast<SharingLog_CloudRegisterReceiver&>(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 SharingLog_CloudRegisterReceiver::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudRegisterReceiver(arena);
}
constexpr auto SharingLog_CloudRegisterReceiver::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudRegisterReceiver),
alignof(SharingLog_CloudRegisterReceiver));
}
constexpr auto SharingLog_CloudRegisterReceiver::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<64>{
{
&_SharingLog_CloudRegisterReceiver_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudRegisterReceiver::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudRegisterReceiver>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudRegisterReceiver::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudRegisterReceiver>(), &SharingLog_CloudRegisterReceiver::ByteSizeLong,
&SharingLog_CloudRegisterReceiver::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudRegisterReceiver_class_data_ =
SharingLog_CloudRegisterReceiver::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudRegisterReceiver::GetClassData() const {
return SharingLog_CloudRegisterReceiver_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
SharingLog_CloudRegisterReceiver::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _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),
SharingLog_CloudRegisterReceiver_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 0, 16,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_.result_)}},
}}, {{
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{0, 16},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudRegisterReceiver::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.result_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudRegisterReceiver::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudRegisterReceiver& this_ = static_cast<const SharingLog_CloudRegisterReceiver&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudRegisterReceiver::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudRegisterReceiver& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_result(), 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:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudRegisterReceiver::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudRegisterReceiver& this_ = static_cast<const SharingLog_CloudRegisterReceiver&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudRegisterReceiver::ByteSizeLong() const {
const SharingLog_CloudRegisterReceiver& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
::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.proto.sharing.CloudRegisterReceiverResult result = 1;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_result());
}
}
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 SharingLog_CloudRegisterReceiver::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudRegisterReceiver*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudRegisterReceiver&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_impl_.result_ = from._impl_.result_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudRegisterReceiver::CopyFrom(const SharingLog_CloudRegisterReceiver& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudRegisterReceiver::InternalSwap(SharingLog_CloudRegisterReceiver* 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_.result_, other->_impl_.result_);
}
// ===================================================================
class SharingLog_CloudUploadStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudUploadStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_._has_bits_);
};
SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudUploadStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudUploadStart* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.action_type_ = from._impl_.action_type_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CloudUploadStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, action_type_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::action_type_));
}
SharingLog_CloudUploadStart::~SharingLog_CloudUploadStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
SharedDtor(*this);
}
inline void SharingLog_CloudUploadStart::SharedDtor(MessageLite& self) {
SharingLog_CloudUploadStart& this_ = static_cast<SharingLog_CloudUploadStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_CloudUploadStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudUploadStart(arena);
}
constexpr auto SharingLog_CloudUploadStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudUploadStart),
alignof(SharingLog_CloudUploadStart));
}
constexpr auto SharingLog_CloudUploadStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_CloudUploadStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudUploadStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudUploadStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudUploadStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudUploadStart>(), &SharingLog_CloudUploadStart::ByteSizeLong,
&SharingLog_CloudUploadStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudUploadStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudUploadStart_class_data_ =
SharingLog_CloudUploadStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudUploadStart::GetClassData() const {
return SharingLog_CloudUploadStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_CloudUploadStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_CloudUploadStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.action_type_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.attachments_info_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudUploadStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
::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_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
_impl_.action_type_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudUploadStart& this_ = static_cast<const SharingLog_CloudUploadStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudUploadStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_action_type(), 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:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudUploadStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudUploadStart& this_ = static_cast<const SharingLog_CloudUploadStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudUploadStart::ByteSizeLong() const {
const SharingLog_CloudUploadStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
::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 .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_CloudUploadStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudUploadStart*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudUploadStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
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_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.action_type_ = from._impl_.action_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudUploadStart::CopyFrom(const SharingLog_CloudUploadStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudUploadStart::InternalSwap(SharingLog_CloudUploadStart* 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(SharingLog_CloudUploadStart, _impl_.action_type_)
+ sizeof(SharingLog_CloudUploadStart::_impl_.action_type_)
- PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_CloudUploadEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudUploadEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_._has_bits_);
};
SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
upload_infos_{visibility, arena, from.upload_infos_} {}
SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudUploadEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudUploadEnd* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
_impl_.action_type_ = from._impl_.action_type_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
upload_infos_{visibility, arena} {}
inline void SharingLog_CloudUploadEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.action_type_ = {};
}
SharingLog_CloudUploadEnd::~SharingLog_CloudUploadEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
SharedDtor(*this);
}
inline void SharingLog_CloudUploadEnd::SharedDtor(MessageLite& self) {
SharingLog_CloudUploadEnd& this_ = static_cast<SharingLog_CloudUploadEnd&>(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 SharingLog_CloudUploadEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudUploadEnd(arena);
}
constexpr auto SharingLog_CloudUploadEnd::InternalNewImpl_() {
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.upload_infos_) +
decltype(SharingLog_CloudUploadEnd::_impl_.upload_infos_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
});
if (arena_bits.has_value()) {
return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(SharingLog_CloudUploadEnd), alignof(SharingLog_CloudUploadEnd), *arena_bits);
} else {
return ::google::protobuf::internal::MessageCreator(&SharingLog_CloudUploadEnd::PlacementNew_,
sizeof(SharingLog_CloudUploadEnd),
alignof(SharingLog_CloudUploadEnd));
}
}
constexpr auto SharingLog_CloudUploadEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<57>{
{
&_SharingLog_CloudUploadEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudUploadEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudUploadEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudUploadEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudUploadEnd>(), &SharingLog_CloudUploadEnd::ByteSizeLong,
&SharingLog_CloudUploadEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<57> SharingLog_CloudUploadEnd_class_data_ =
SharingLog_CloudUploadEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudUploadEnd::GetClassData() const {
return SharingLog_CloudUploadEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_CloudUploadEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_CloudUploadEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.action_type_)}},
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1;
{::_pbi::TcParser::FastMtR1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.upload_infos_)}},
}}, {{
65535, 65535
}}, {{
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.upload_infos_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>()},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudUploadEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
::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_.upload_infos_.Clear();
}
_impl_.action_type_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudUploadEnd& this_ = static_cast<const SharingLog_CloudUploadEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudUploadEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_upload_infos_size());
i < n; i++) {
const auto& repfield = this_._internal_upload_infos().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, repfield, repfield.GetCachedSize(),
target, stream);
}
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_action_type(), 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:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudUploadEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudUploadEnd& this_ = static_cast<const SharingLog_CloudUploadEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudUploadEnd::ByteSizeLong() const {
const SharingLog_CloudUploadEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
::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)) {
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
total_size += 1UL * this_._internal_upload_infos_size();
for (const auto& msg : this_._internal_upload_infos()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_CloudUploadEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudUploadEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudUploadEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_upload_infos()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_upload_infos());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.action_type_ = from._impl_.action_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudUploadEnd::CopyFrom(const SharingLog_CloudUploadEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudUploadEnd::InternalSwap(SharingLog_CloudUploadEnd* 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_.upload_infos_.InternalSwap(&other->_impl_.upload_infos_);
swap(_impl_.action_type_, other->_impl_.action_type_);
}
// ===================================================================
class SharingLog_CloudDownloadStart::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudDownloadStart>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_._has_bits_);
};
SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0} {}
SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudDownloadStart& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadStart_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudDownloadStart* 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_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_)
: nullptr;
_impl_.action_type_ = from._impl_.action_type_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadStart::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0} {}
inline void SharingLog_CloudDownloadStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, attachments_info_),
0,
offsetof(Impl_, action_type_) -
offsetof(Impl_, attachments_info_) +
sizeof(Impl_::action_type_));
}
SharingLog_CloudDownloadStart::~SharingLog_CloudDownloadStart() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
SharedDtor(*this);
}
inline void SharingLog_CloudDownloadStart::SharedDtor(MessageLite& self) {
SharingLog_CloudDownloadStart& this_ = static_cast<SharingLog_CloudDownloadStart&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.attachments_info_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudDownloadStart(arena);
}
constexpr auto SharingLog_CloudDownloadStart::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudDownloadStart),
alignof(SharingLog_CloudDownloadStart));
}
constexpr auto SharingLog_CloudDownloadStart::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<61>{
{
&_SharingLog_CloudDownloadStart_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudDownloadStart::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudDownloadStart>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudDownloadStart::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudDownloadStart>(), &SharingLog_CloudDownloadStart::ByteSizeLong,
&SharingLog_CloudDownloadStart::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<61> SharingLog_CloudDownloadStart_class_data_ =
SharingLog_CloudDownloadStart::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudDownloadStart::GetClassData() const {
return SharingLog_CloudDownloadStart_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_CloudDownloadStart::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_CloudDownloadStart_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.action_type_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.attachments_info_)}},
}}, {{
65535, 65535
}}, {{
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudDownloadStart::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
::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_.attachments_info_ != nullptr);
_impl_.attachments_info_->Clear();
}
_impl_.action_type_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudDownloadStart& this_ = static_cast<const SharingLog_CloudDownloadStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudDownloadStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target,
stream);
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_action_type(), 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:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudDownloadStart::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudDownloadStart& this_ = static_cast<const SharingLog_CloudDownloadStart&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudDownloadStart::ByteSizeLong() const {
const SharingLog_CloudDownloadStart& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
::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 .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_);
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_CloudDownloadStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudDownloadStart*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudDownloadStart&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
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_.attachments_info_ != nullptr);
if (_this->_impl_.attachments_info_ == nullptr) {
_this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_);
} else {
_this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.action_type_ = from._impl_.action_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudDownloadStart::CopyFrom(const SharingLog_CloudDownloadStart& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudDownloadStart::InternalSwap(SharingLog_CloudDownloadStart* 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(SharingLog_CloudDownloadStart, _impl_.action_type_)
+ sizeof(SharingLog_CloudDownloadStart::_impl_.action_type_)
- PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.attachments_info_)>(
reinterpret_cast<char*>(&_impl_.attachments_info_),
reinterpret_cast<char*>(&other->_impl_.attachments_info_));
}
// ===================================================================
class SharingLog_CloudDownloadEnd::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudDownloadEnd>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_._has_bits_);
};
SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
download_infos_{visibility, arena, from.download_infos_} {}
SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudDownloadEnd& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadEnd_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudDownloadEnd* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
_impl_.action_type_ = from._impl_.action_type_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadEnd::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
download_infos_{visibility, arena} {}
inline void SharingLog_CloudDownloadEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.action_type_ = {};
}
SharingLog_CloudDownloadEnd::~SharingLog_CloudDownloadEnd() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
SharedDtor(*this);
}
inline void SharingLog_CloudDownloadEnd::SharedDtor(MessageLite& self) {
SharingLog_CloudDownloadEnd& this_ = static_cast<SharingLog_CloudDownloadEnd&>(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 SharingLog_CloudDownloadEnd::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudDownloadEnd(arena);
}
constexpr auto SharingLog_CloudDownloadEnd::InternalNewImpl_() {
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.download_infos_) +
decltype(SharingLog_CloudDownloadEnd::_impl_.download_infos_)::
InternalGetArenaOffset(
::google::protobuf::MessageLite::internal_visibility()),
});
if (arena_bits.has_value()) {
return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(SharingLog_CloudDownloadEnd), alignof(SharingLog_CloudDownloadEnd), *arena_bits);
} else {
return ::google::protobuf::internal::MessageCreator(&SharingLog_CloudDownloadEnd::PlacementNew_,
sizeof(SharingLog_CloudDownloadEnd),
alignof(SharingLog_CloudDownloadEnd));
}
}
constexpr auto SharingLog_CloudDownloadEnd::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<59>{
{
&_SharingLog_CloudDownloadEnd_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudDownloadEnd::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudDownloadEnd>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudDownloadEnd::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudDownloadEnd>(), &SharingLog_CloudDownloadEnd::ByteSizeLong,
&SharingLog_CloudDownloadEnd::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudDownloadEnd_class_data_ =
SharingLog_CloudDownloadEnd::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudDownloadEnd::GetClassData() const {
return SharingLog_CloudDownloadEnd_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
SharingLog_CloudDownloadEnd::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_._has_bits_),
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_CloudDownloadEnd_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{::_pbi::TcParser::FastEr0S1,
{16, 1, 2,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.action_type_)}},
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1;
{::_pbi::TcParser::FastMtR1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.download_infos_)}},
}}, {{
65535, 65535
}}, {{
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.download_infos_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>()},
{0, 2},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudDownloadEnd::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
::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_.download_infos_.Clear();
}
_impl_.action_type_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudDownloadEnd& this_ = static_cast<const SharingLog_CloudDownloadEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudDownloadEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_download_infos_size());
i < n; i++) {
const auto& repfield = this_._internal_download_infos().Get(i);
target =
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1, repfield, repfield.GetCachedSize(),
target, stream);
}
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this_._internal_action_type(), 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:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudDownloadEnd::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudDownloadEnd& this_ = static_cast<const SharingLog_CloudDownloadEnd&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudDownloadEnd::ByteSizeLong() const {
const SharingLog_CloudDownloadEnd& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
::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)) {
// repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1;
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
total_size += 1UL * this_._internal_download_infos_size();
for (const auto& msg : this_._internal_download_infos()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// optional .location.nearby.proto.sharing.CloudActionType action_type = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_action_type());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_CloudDownloadEnd::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudDownloadEnd*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudDownloadEnd&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_download_infos()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_download_infos());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.action_type_ = from._impl_.action_type_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudDownloadEnd::CopyFrom(const SharingLog_CloudDownloadEnd& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudDownloadEnd::InternalSwap(SharingLog_CloudDownloadEnd* 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_.download_infos_.InternalSwap(&other->_impl_.download_infos_);
swap(_impl_.action_type_, other->_impl_.action_type_);
}
// ===================================================================
class SharingLog_CloudSharingRpcResult::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog_CloudSharingRpcResult>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_._has_bits_);
};
SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudSharingRpcResult_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudSharingRpcResult::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
rpc_name_(arena, from.rpc_name_),
cloud_sharing_id_(arena, from.cloud_sharing_id_) {}
SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog_CloudSharingRpcResult& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_CloudSharingRpcResult_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog_CloudSharingRpcResult* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, latency_millis_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, latency_millis_),
offsetof(Impl_, status_code_) -
offsetof(Impl_, latency_millis_) +
sizeof(Impl_::status_code_));
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
}
PROTOBUF_NDEBUG_INLINE SharingLog_CloudSharingRpcResult::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
rpc_name_(arena),
cloud_sharing_id_(arena) {}
inline void SharingLog_CloudSharingRpcResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, latency_millis_),
0,
offsetof(Impl_, status_code_) -
offsetof(Impl_, latency_millis_) +
sizeof(Impl_::status_code_));
}
SharingLog_CloudSharingRpcResult::~SharingLog_CloudSharingRpcResult() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
SharedDtor(*this);
}
inline void SharingLog_CloudSharingRpcResult::SharedDtor(MessageLite& self) {
SharingLog_CloudSharingRpcResult& this_ = static_cast<SharingLog_CloudSharingRpcResult&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.rpc_name_.Destroy();
this_._impl_.cloud_sharing_id_.Destroy();
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog_CloudSharingRpcResult(arena);
}
constexpr auto SharingLog_CloudSharingRpcResult::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_CloudSharingRpcResult),
alignof(SharingLog_CloudSharingRpcResult));
}
constexpr auto SharingLog_CloudSharingRpcResult::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<64>{
{
&_SharingLog_CloudSharingRpcResult_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog_CloudSharingRpcResult::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog_CloudSharingRpcResult>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog_CloudSharingRpcResult::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog_CloudSharingRpcResult>(), &SharingLog_CloudSharingRpcResult::ByteSizeLong,
&SharingLog_CloudSharingRpcResult::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudSharingRpcResult_class_data_ =
SharingLog_CloudSharingRpcResult::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog_CloudSharingRpcResult::GetClassData() const {
return SharingLog_CloudSharingRpcResult_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 0, 0, 2>
SharingLog_CloudSharingRpcResult::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967280, // skipmap
offsetof(decltype(_table_), field_entries),
4, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
SharingLog_CloudSharingRpcResult_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional string cloud_sharing_id = 4;
{::_pbi::TcParser::FastBS1,
{34, 1, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.cloud_sharing_id_)}},
// optional string rpc_name = 1;
{::_pbi::TcParser::FastBS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.rpc_name_)}},
// optional int32 status_code = 2;
{::_pbi::TcParser::FastV32S1,
{16, 3, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.status_code_)}},
// optional int64 latency_millis = 3;
{::_pbi::TcParser::FastV64S1,
{24, 2, 0,
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.latency_millis_)}},
}}, {{
65535, 65535
}}, {{
// optional string rpc_name = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.rpc_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional int32 status_code = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.status_code_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int64 latency_millis = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.latency_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
// optional string cloud_sharing_id = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.cloud_sharing_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
}},
};
PROTOBUF_NOINLINE void SharingLog_CloudSharingRpcResult::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
::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_.rpc_name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.cloud_sharing_id_.ClearNonDefaultToEmpty();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
::memset(&_impl_.latency_millis_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.status_code_) -
reinterpret_cast<char*>(&_impl_.latency_millis_)) + sizeof(_impl_.status_code_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog_CloudSharingRpcResult& this_ = static_cast<const SharingLog_CloudSharingRpcResult&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog_CloudSharingRpcResult& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string rpc_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_rpc_name();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional int32 status_code = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
stream, this_._internal_status_code(), target);
}
// optional int64 latency_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
stream, this_._internal_latency_millis(), target);
}
// optional string cloud_sharing_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_cloud_sharing_id();
target = stream->WriteStringMaybeAliased(4, _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:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog_CloudSharingRpcResult::ByteSizeLong(const MessageLite& base) {
const SharingLog_CloudSharingRpcResult& this_ = static_cast<const SharingLog_CloudSharingRpcResult&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog_CloudSharingRpcResult::ByteSizeLong() const {
const SharingLog_CloudSharingRpcResult& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional string rpc_name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_rpc_name());
}
// optional string cloud_sharing_id = 4;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_cloud_sharing_id());
}
// optional int64 latency_millis = 3;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this_._internal_latency_millis());
}
// optional int32 status_code = 2;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_status_code());
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
}
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
return total_size;
}
void SharingLog_CloudSharingRpcResult::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog_CloudSharingRpcResult*>(&to_msg);
auto& from = static_cast<const SharingLog_CloudSharingRpcResult&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_rpc_name(from._internal_rpc_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_cloud_sharing_id(from._internal_cloud_sharing_id());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.latency_millis_ = from._impl_.latency_millis_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.status_code_ = from._impl_.status_code_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog_CloudSharingRpcResult::CopyFrom(const SharingLog_CloudSharingRpcResult& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog_CloudSharingRpcResult::InternalSwap(SharingLog_CloudSharingRpcResult* 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_.rpc_name_, &other->_impl_.rpc_name_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_sharing_id_, &other->_impl_.cloud_sharing_id_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.status_code_)
+ sizeof(SharingLog_CloudSharingRpcResult::_impl_.status_code_)
- PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.latency_millis_)>(
reinterpret_cast<char*>(&_impl_.latency_millis_),
reinterpret_cast<char*>(&other->_impl_.latency_millis_));
}
// ===================================================================
class SharingLog::_Internal {
public:
using HasBits =
decltype(::std::declval<SharingLog>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(SharingLog, _impl_._has_bits_);
};
SharingLog::SharingLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog)
}
PROTOBUF_NDEBUG_INLINE SharingLog::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog& from_msg)
: _has_bits_{from._has_bits_},
_cached_size_{0},
version_(arena, from.version_),
files_migration_phase_(arena, from.files_migration_phase_),
app_version_(arena, from.app_version_) {}
SharingLog::SharingLog(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const SharingLog& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::MessageLite(arena, SharingLog_class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::MessageLite(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharingLog* 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_.unknown_event_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unknown_event_)
: nullptr;
_impl_.accept_agreements_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_agreements_)
: nullptr;
_impl_.enable_nearby_sharing_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.enable_nearby_sharing_)
: nullptr;
_impl_.set_visibility_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_visibility_)
: nullptr;
_impl_.describe_attachments_ = (CheckHasBit(cached_has_bits, 0x00000010U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.describe_attachments_)
: nullptr;
_impl_.scan_for_share_targets_start_ = (CheckHasBit(cached_has_bits, 0x00000020U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_start_)
: nullptr;
_impl_.scan_for_share_targets_end_ = (CheckHasBit(cached_has_bits, 0x00000040U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_end_)
: nullptr;
_impl_.advertise_device_presence_start_ = (CheckHasBit(cached_has_bits, 0x00000080U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_start_)
: nullptr;
_impl_.advertise_device_presence_end_ = (CheckHasBit(cached_has_bits, 0x00000100U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_end_)
: nullptr;
_impl_.send_initialization_ = (CheckHasBit(cached_has_bits, 0x00000200U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_initialization_)
: nullptr;
_impl_.receive_initialization_ = (CheckHasBit(cached_has_bits, 0x00000400U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_initialization_)
: nullptr;
_impl_.discover_share_target_ = (CheckHasBit(cached_has_bits, 0x00000800U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.discover_share_target_)
: nullptr;
_impl_.send_introduction_ = (CheckHasBit(cached_has_bits, 0x00001000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_introduction_)
: nullptr;
_impl_.receive_introduction_ = (CheckHasBit(cached_has_bits, 0x00002000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_introduction_)
: nullptr;
_impl_.respond_introduction_ = (CheckHasBit(cached_has_bits, 0x00004000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.respond_introduction_)
: nullptr;
_impl_.send_attachments_start_ = (CheckHasBit(cached_has_bits, 0x00008000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_start_)
: nullptr;
_impl_.send_attachments_end_ = (CheckHasBit(cached_has_bits, 0x00010000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_end_)
: nullptr;
_impl_.receive_attachments_start_ = (CheckHasBit(cached_has_bits, 0x00020000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_start_)
: nullptr;
_impl_.receive_attachments_end_ = (CheckHasBit(cached_has_bits, 0x00040000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_end_)
: nullptr;
_impl_.cancel_sending_attachments_ = (CheckHasBit(cached_has_bits, 0x00080000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_sending_attachments_)
: nullptr;
_impl_.cancel_receiving_attachments_ = (CheckHasBit(cached_has_bits, 0x00100000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_receiving_attachments_)
: nullptr;
_impl_.open_received_attachments_ = (CheckHasBit(cached_has_bits, 0x00200000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.open_received_attachments_)
: nullptr;
_impl_.launch_activity_ = (CheckHasBit(cached_has_bits, 0x00400000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_activity_)
: nullptr;
_impl_.add_contact_ = (CheckHasBit(cached_has_bits, 0x00800000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_contact_)
: nullptr;
_impl_.remove_contact_ = (CheckHasBit(cached_has_bits, 0x01000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_contact_)
: nullptr;
_impl_.fast_share_server_response_ = (CheckHasBit(cached_has_bits, 0x02000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_share_server_response_)
: nullptr;
_impl_.send_start_ = (CheckHasBit(cached_has_bits, 0x04000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_start_)
: nullptr;
_impl_.accept_fast_initialization_ = (CheckHasBit(cached_has_bits, 0x08000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_fast_initialization_)
: nullptr;
_impl_.set_data_usage_ = (CheckHasBit(cached_has_bits, 0x10000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_data_usage_)
: nullptr;
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, event_type_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, event_type_),
offsetof(Impl_, log_source_) -
offsetof(Impl_, event_type_) +
sizeof(Impl_::log_source_));
cached_has_bits = _impl_._has_bits_[1];
_impl_.dismiss_fast_initialization_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_fast_initialization_)
: nullptr;
_impl_.cancel_connection_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_connection_)
: nullptr;
_impl_.dismiss_privacy_notification_ = (CheckHasBit(cached_has_bits, 0x00000010U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_privacy_notification_)
: nullptr;
_impl_.tap_privacy_notification_ = (CheckHasBit(cached_has_bits, 0x00000020U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_privacy_notification_)
: nullptr;
_impl_.tap_help_ = (CheckHasBit(cached_has_bits, 0x00000040U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_help_)
: nullptr;
_impl_.tap_feedback_ = (CheckHasBit(cached_has_bits, 0x00000080U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_feedback_)
: nullptr;
_impl_.add_quick_settings_tile_ = (CheckHasBit(cached_has_bits, 0x00000100U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_quick_settings_tile_)
: nullptr;
_impl_.remove_quick_settings_tile_ = (CheckHasBit(cached_has_bits, 0x00000200U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_quick_settings_tile_)
: nullptr;
_impl_.launch_phone_consent_ = (CheckHasBit(cached_has_bits, 0x00000400U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_phone_consent_)
: nullptr;
_impl_.tap_quick_settings_tile_ = (CheckHasBit(cached_has_bits, 0x00000800U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_tile_)
: nullptr;
_impl_.install_apk_status_ = (CheckHasBit(cached_has_bits, 0x00001000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.install_apk_status_)
: nullptr;
_impl_.verify_apk_status_ = (CheckHasBit(cached_has_bits, 0x00002000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.verify_apk_status_)
: nullptr;
_impl_.launch_consent_ = (CheckHasBit(cached_has_bits, 0x00004000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_consent_)
: nullptr;
_impl_.process_received_attachments_end_ = (CheckHasBit(cached_has_bits, 0x00008000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.process_received_attachments_end_)
: nullptr;
_impl_.toggle_show_notification_ = (CheckHasBit(cached_has_bits, 0x00010000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.toggle_show_notification_)
: nullptr;
_impl_.set_device_name_ = (CheckHasBit(cached_has_bits, 0x00020000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_device_name_)
: nullptr;
_impl_.decline_agreements_ = (CheckHasBit(cached_has_bits, 0x00040000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decline_agreements_)
: nullptr;
_impl_.request_setting_permissions_ = (CheckHasBit(cached_has_bits, 0x00080000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_setting_permissions_)
: nullptr;
_impl_.device_settings_ = (CheckHasBit(cached_has_bits, 0x00100000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.device_settings_)
: nullptr;
_impl_.establish_connection_ = (CheckHasBit(cached_has_bits, 0x00200000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.establish_connection_)
: nullptr;
_impl_.auto_dismiss_fast_initialization_ = (CheckHasBit(cached_has_bits, 0x00400000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_dismiss_fast_initialization_)
: nullptr;
_impl_.event_metadata_ = (CheckHasBit(cached_has_bits, 0x00800000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.event_metadata_)
: nullptr;
_impl_.app_crash_ = (CheckHasBit(cached_has_bits, 0x01000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_crash_)
: nullptr;
_impl_.tap_quick_settings_file_share_ = (CheckHasBit(cached_has_bits, 0x02000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_file_share_)
: nullptr;
_impl_.app_info_ = (CheckHasBit(cached_has_bits, 0x04000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_info_)
: nullptr;
_impl_.display_privacy_notification_ = (CheckHasBit(cached_has_bits, 0x08000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_privacy_notification_)
: nullptr;
_impl_.display_phone_consent_ = (CheckHasBit(cached_has_bits, 0x10000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_phone_consent_)
: nullptr;
_impl_.preferences_usage_ = (CheckHasBit(cached_has_bits, 0x20000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preferences_usage_)
: nullptr;
_impl_.default_opt_in_ = (CheckHasBit(cached_has_bits, 0x40000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.default_opt_in_)
: nullptr;
_impl_.setup_wizard_ = (CheckHasBit(cached_has_bits, 0x80000000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.setup_wizard_)
: nullptr;
cached_has_bits = _impl_._has_bits_[2];
_impl_.tap_qr_code_ = (CheckHasBit(cached_has_bits, 0x00000001U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_qr_code_)
: nullptr;
_impl_.qr_code_link_shown_ = (CheckHasBit(cached_has_bits, 0x00000002U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_link_shown_)
: nullptr;
_impl_.parsing_failed_endpoint_id_ = (CheckHasBit(cached_has_bits, 0x00000004U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.parsing_failed_endpoint_id_)
: nullptr;
_impl_.fast_init_discover_device_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_init_discover_device_)
: nullptr;
_impl_.send_desktop_notification_ = (CheckHasBit(cached_has_bits, 0x00000010U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_notification_)
: nullptr;
_impl_.send_desktop_transfer_event_ = (CheckHasBit(cached_has_bits, 0x00000020U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_transfer_event_)
: nullptr;
_impl_.set_account_ = (CheckHasBit(cached_has_bits, 0x00000040U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_account_)
: nullptr;
_impl_.decrypt_certificate_failure_ = (CheckHasBit(cached_has_bits, 0x00000080U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decrypt_certificate_failure_)
: nullptr;
_impl_.show_allow_permission_auto_access_ = (CheckHasBit(cached_has_bits, 0x00000100U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_allow_permission_auto_access_)
: nullptr;
_impl_.show_waiting_for_accept_ = (CheckHasBit(cached_has_bits, 0x00000200U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_waiting_for_accept_)
: nullptr;
_impl_.high_quality_medium_setup_ = (CheckHasBit(cached_has_bits, 0x00000400U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.high_quality_medium_setup_)
: nullptr;
_impl_.rpc_call_status_ = (CheckHasBit(cached_has_bits, 0x00000800U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rpc_call_status_)
: nullptr;
_impl_.start_qr_code_session_ = (CheckHasBit(cached_has_bits, 0x00001000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.start_qr_code_session_)
: nullptr;
_impl_.qr_code_opened_in_web_client_ = (CheckHasBit(cached_has_bits, 0x00002000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_opened_in_web_client_)
: nullptr;
_impl_.hats_joint_event_ = (CheckHasBit(cached_has_bits, 0x00004000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.hats_joint_event_)
: nullptr;
_impl_.receive_previews_ = (CheckHasBit(cached_has_bits, 0x00008000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_previews_)
: nullptr;
_impl_.cloud_create_sharing_request_ = (CheckHasBit(cached_has_bits, 0x00010000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_create_sharing_request_)
: nullptr;
_impl_.cloud_register_receiver_ = (CheckHasBit(cached_has_bits, 0x00020000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_register_receiver_)
: nullptr;
_impl_.cloud_upload_start_ = (CheckHasBit(cached_has_bits, 0x00040000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_start_)
: nullptr;
_impl_.cloud_upload_end_ = (CheckHasBit(cached_has_bits, 0x00080000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_end_)
: nullptr;
_impl_.cloud_download_start_ = (CheckHasBit(cached_has_bits, 0x00100000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_start_)
: nullptr;
_impl_.cloud_download_end_ = (CheckHasBit(cached_has_bits, 0x00200000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_end_)
: nullptr;
_impl_.cloud_sharing_rpc_result_ = (CheckHasBit(cached_has_bits, 0x00400000U))
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_sharing_rpc_result_)
: nullptr;
_impl_.event_category_ = from._impl_.event_category_;
// @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog)
}
PROTOBUF_NDEBUG_INLINE SharingLog::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: _cached_size_{0},
version_(arena),
files_migration_phase_(arena),
app_version_(arena) {}
inline void SharingLog::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, unknown_event_),
0,
offsetof(Impl_, log_source_) -
offsetof(Impl_, unknown_event_) +
sizeof(Impl_::log_source_));
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, dismiss_fast_initialization_),
0,
offsetof(Impl_, event_category_) -
offsetof(Impl_, dismiss_fast_initialization_) +
sizeof(Impl_::event_category_));
}
SharingLog::~SharingLog() {
// @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog)
SharedDtor(*this);
}
inline void SharingLog::SharedDtor(MessageLite& self) {
SharingLog& this_ = static_cast<SharingLog&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::std::string>();
ABSL_DCHECK(this_.GetArena() == nullptr);
delete this_._impl_.unknown_event_;
delete this_._impl_.accept_agreements_;
delete this_._impl_.enable_nearby_sharing_;
delete this_._impl_.set_visibility_;
delete this_._impl_.describe_attachments_;
delete this_._impl_.scan_for_share_targets_start_;
delete this_._impl_.scan_for_share_targets_end_;
delete this_._impl_.advertise_device_presence_start_;
delete this_._impl_.advertise_device_presence_end_;
delete this_._impl_.send_initialization_;
delete this_._impl_.receive_initialization_;
delete this_._impl_.discover_share_target_;
delete this_._impl_.send_introduction_;
delete this_._impl_.receive_introduction_;
delete this_._impl_.respond_introduction_;
delete this_._impl_.send_attachments_start_;
delete this_._impl_.send_attachments_end_;
delete this_._impl_.receive_attachments_start_;
delete this_._impl_.receive_attachments_end_;
delete this_._impl_.cancel_sending_attachments_;
delete this_._impl_.cancel_receiving_attachments_;
delete this_._impl_.open_received_attachments_;
delete this_._impl_.launch_activity_;
delete this_._impl_.add_contact_;
delete this_._impl_.remove_contact_;
delete this_._impl_.fast_share_server_response_;
delete this_._impl_.send_start_;
delete this_._impl_.accept_fast_initialization_;
delete this_._impl_.set_data_usage_;
this_._impl_.version_.Destroy();
this_._impl_.files_migration_phase_.Destroy();
this_._impl_.app_version_.Destroy();
delete this_._impl_.dismiss_fast_initialization_;
delete this_._impl_.cancel_connection_;
delete this_._impl_.dismiss_privacy_notification_;
delete this_._impl_.tap_privacy_notification_;
delete this_._impl_.tap_help_;
delete this_._impl_.tap_feedback_;
delete this_._impl_.add_quick_settings_tile_;
delete this_._impl_.remove_quick_settings_tile_;
delete this_._impl_.launch_phone_consent_;
delete this_._impl_.tap_quick_settings_tile_;
delete this_._impl_.install_apk_status_;
delete this_._impl_.verify_apk_status_;
delete this_._impl_.launch_consent_;
delete this_._impl_.process_received_attachments_end_;
delete this_._impl_.toggle_show_notification_;
delete this_._impl_.set_device_name_;
delete this_._impl_.decline_agreements_;
delete this_._impl_.request_setting_permissions_;
delete this_._impl_.device_settings_;
delete this_._impl_.establish_connection_;
delete this_._impl_.auto_dismiss_fast_initialization_;
delete this_._impl_.event_metadata_;
delete this_._impl_.app_crash_;
delete this_._impl_.tap_quick_settings_file_share_;
delete this_._impl_.app_info_;
delete this_._impl_.display_privacy_notification_;
delete this_._impl_.display_phone_consent_;
delete this_._impl_.preferences_usage_;
delete this_._impl_.default_opt_in_;
delete this_._impl_.setup_wizard_;
delete this_._impl_.tap_qr_code_;
delete this_._impl_.qr_code_link_shown_;
delete this_._impl_.parsing_failed_endpoint_id_;
delete this_._impl_.fast_init_discover_device_;
delete this_._impl_.send_desktop_notification_;
delete this_._impl_.send_desktop_transfer_event_;
delete this_._impl_.set_account_;
delete this_._impl_.decrypt_certificate_failure_;
delete this_._impl_.show_allow_permission_auto_access_;
delete this_._impl_.show_waiting_for_accept_;
delete this_._impl_.high_quality_medium_setup_;
delete this_._impl_.rpc_call_status_;
delete this_._impl_.start_qr_code_session_;
delete this_._impl_.qr_code_opened_in_web_client_;
delete this_._impl_.hats_joint_event_;
delete this_._impl_.receive_previews_;
delete this_._impl_.cloud_create_sharing_request_;
delete this_._impl_.cloud_register_receiver_;
delete this_._impl_.cloud_upload_start_;
delete this_._impl_.cloud_upload_end_;
delete this_._impl_.cloud_download_start_;
delete this_._impl_.cloud_download_end_;
delete this_._impl_.cloud_sharing_rpc_result_;
this_._impl_.~Impl_();
}
inline void* PROTOBUF_NONNULL SharingLog::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) SharingLog(arena);
}
constexpr auto SharingLog::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog),
alignof(SharingLog));
}
constexpr auto SharingLog::InternalGenerateClassData_() {
return ::google::protobuf::internal::ClassDataLite<42>{
{
&_SharingLog_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&SharingLog::MergeImpl,
::google::protobuf::MessageLite::GetNewImpl<SharingLog>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&SharingLog::SharedDtor,
::google::protobuf::MessageLite::GetClearImpl<SharingLog>(), &SharingLog::ByteSizeLong,
&SharingLog::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_._cached_size_),
true,
},
"nearby.sharing.analytics.proto.SharingLog",
};
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite<42> SharingLog_class_data_ =
SharingLog::InternalGenerateClassData_();
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SharingLog::GetClassData() const {
return SharingLog_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<5, 88, 85, 0, 13>
SharingLog::_table_ = {
{
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_._has_bits_),
0, // no _extensions_
89, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
0, // skipmap
offsetof(decltype(_table_), field_entries),
88, // num_field_entries
85, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
SharingLog_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallbackLite, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional .location.nearby.proto.sharing.EventType event_type = 1;
{::_pbi::TcParser::FastEr0S1,
{8, 29, 80,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_type_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2;
{::_pbi::TcParser::FastMtS1,
{18, 0, 0,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.unknown_event_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3;
{::_pbi::TcParser::FastMtS1,
{26, 1, 1,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_agreements_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4;
{::_pbi::TcParser::FastMtS1,
{34, 2, 2,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.enable_nearby_sharing_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5;
{::_pbi::TcParser::FastMtS1,
{42, 3, 3,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_visibility_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6;
{::_pbi::TcParser::FastMtS1,
{50, 4, 4,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.describe_attachments_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7;
{::_pbi::TcParser::FastMtS1,
{58, 5, 5,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_start_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8;
{::_pbi::TcParser::FastMtS1,
{66, 6, 6,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_end_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9;
{::_pbi::TcParser::FastMtS1,
{74, 7, 7,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_start_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10;
{::_pbi::TcParser::FastMtS1,
{82, 8, 8,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_end_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11;
{::_pbi::TcParser::FastMtS1,
{90, 9, 9,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_initialization_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12;
{::_pbi::TcParser::FastMtS1,
{98, 10, 10,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_initialization_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13;
{::_pbi::TcParser::FastMtS1,
{106, 11, 11,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.discover_share_target_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14;
{::_pbi::TcParser::FastMtS1,
{114, 12, 12,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_introduction_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15;
{::_pbi::TcParser::FastMtS1,
{122, 13, 13,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_introduction_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16;
{::_pbi::TcParser::FastMtS2,
{386, 14, 14,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.respond_introduction_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17;
{::_pbi::TcParser::FastMtS2,
{394, 15, 15,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_start_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18;
{::_pbi::TcParser::FastMtS2,
{402, 16, 16,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_end_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19;
{::_pbi::TcParser::FastMtS2,
{410, 17, 17,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_start_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20;
{::_pbi::TcParser::FastMtS2,
{418, 18, 18,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_end_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21;
{::_pbi::TcParser::FastMtS2,
{426, 19, 19,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_sending_attachments_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22;
{::_pbi::TcParser::FastMtS2,
{434, 20, 20,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_receiving_attachments_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23;
{::_pbi::TcParser::FastMtS2,
{442, 21, 21,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.open_received_attachments_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24;
{::_pbi::TcParser::FastMtS2,
{450, 22, 22,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_activity_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25;
{::_pbi::TcParser::FastMtS2,
{458, 23, 23,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.add_contact_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26;
{::_pbi::TcParser::FastMtS2,
{466, 24, 24,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.remove_contact_)}},
// optional .location.nearby.proto.sharing.LogSource log_source = 27;
{::_pbi::TcParser::FastEr0S2,
{472, 30, 9,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.log_source_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28;
{::_pbi::TcParser::FastMtS2,
{482, 25, 25,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.fast_share_server_response_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29;
{::_pbi::TcParser::FastMtS2,
{490, 26, 26,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_start_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30;
{::_pbi::TcParser::FastMtS2,
{498, 27, 27,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_fast_initialization_)}},
// optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31;
{::_pbi::TcParser::FastMtS2,
{506, 28, 28,
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_data_usage_)}},
}}, {{
33, 0, 4,
0, 32,
0, 48,
64, 64,
65024, 79,
65535, 65535
}}, {{
// optional .location.nearby.proto.sharing.EventType event_type = 1;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_type_), _Internal::kHasBitsOffset + 29, 82, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.unknown_event_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_agreements_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.enable_nearby_sharing_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_visibility_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.describe_attachments_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_start_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_end_), _Internal::kHasBitsOffset + 6, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_start_), _Internal::kHasBitsOffset + 7, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_end_), _Internal::kHasBitsOffset + 8, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_initialization_), _Internal::kHasBitsOffset + 9, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_initialization_), _Internal::kHasBitsOffset + 10, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.discover_share_target_), _Internal::kHasBitsOffset + 11, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_introduction_), _Internal::kHasBitsOffset + 12, 12, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_introduction_), _Internal::kHasBitsOffset + 13, 13, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.respond_introduction_), _Internal::kHasBitsOffset + 14, 14, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_start_), _Internal::kHasBitsOffset + 15, 15, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_end_), _Internal::kHasBitsOffset + 16, 16, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_start_), _Internal::kHasBitsOffset + 17, 17, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_end_), _Internal::kHasBitsOffset + 18, 18, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_sending_attachments_), _Internal::kHasBitsOffset + 19, 19, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_receiving_attachments_), _Internal::kHasBitsOffset + 20, 20, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.open_received_attachments_), _Internal::kHasBitsOffset + 21, 21, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_activity_), _Internal::kHasBitsOffset + 22, 22, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.add_contact_), _Internal::kHasBitsOffset + 23, 23, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.remove_contact_), _Internal::kHasBitsOffset + 24, 24, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .location.nearby.proto.sharing.LogSource log_source = 27;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.log_source_), _Internal::kHasBitsOffset + 30, 83, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.fast_share_server_response_), _Internal::kHasBitsOffset + 25, 25, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_start_), _Internal::kHasBitsOffset + 26, 26, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_fast_initialization_), _Internal::kHasBitsOffset + 27, 27, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_data_usage_), _Internal::kHasBitsOffset + 28, 28, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string version = 32;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.version_), _Internal::kHasBitsOffset + 31, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .location.nearby.proto.sharing.EventCategory event_category = 33;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_category_), _Internal::kHasBitsOffset + 87, 84, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
// optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.dismiss_fast_initialization_), _Internal::kHasBitsOffset + 34, 29, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_connection_), _Internal::kHasBitsOffset + 35, 30, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.dismiss_privacy_notification_), _Internal::kHasBitsOffset + 36, 31, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_privacy_notification_), _Internal::kHasBitsOffset + 37, 32, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_help_), _Internal::kHasBitsOffset + 38, 33, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_feedback_), _Internal::kHasBitsOffset + 39, 34, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.add_quick_settings_tile_), _Internal::kHasBitsOffset + 40, 35, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.remove_quick_settings_tile_), _Internal::kHasBitsOffset + 41, 36, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_phone_consent_), _Internal::kHasBitsOffset + 42, 37, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_quick_settings_tile_), _Internal::kHasBitsOffset + 43, 38, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.install_apk_status_), _Internal::kHasBitsOffset + 44, 39, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.verify_apk_status_), _Internal::kHasBitsOffset + 45, 40, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_consent_), _Internal::kHasBitsOffset + 46, 41, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.process_received_attachments_end_), _Internal::kHasBitsOffset + 47, 42, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.toggle_show_notification_), _Internal::kHasBitsOffset + 48, 43, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_device_name_), _Internal::kHasBitsOffset + 49, 44, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string files_migration_phase = 50;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.files_migration_phase_), _Internal::kHasBitsOffset + 32, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.decline_agreements_), _Internal::kHasBitsOffset + 50, 45, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.request_setting_permissions_), _Internal::kHasBitsOffset + 51, 46, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.device_settings_), _Internal::kHasBitsOffset + 52, 47, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.establish_connection_), _Internal::kHasBitsOffset + 53, 48, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.auto_dismiss_fast_initialization_), _Internal::kHasBitsOffset + 54, 49, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_metadata_), _Internal::kHasBitsOffset + 55, 50, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional string app_version = 57 [deprecated = true];
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.app_version_), _Internal::kHasBitsOffset + 33, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.app_crash_), _Internal::kHasBitsOffset + 56, 51, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_quick_settings_file_share_), _Internal::kHasBitsOffset + 57, 52, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.app_info_), _Internal::kHasBitsOffset + 58, 53, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.display_privacy_notification_), _Internal::kHasBitsOffset + 59, 54, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.display_phone_consent_), _Internal::kHasBitsOffset + 60, 55, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.preferences_usage_), _Internal::kHasBitsOffset + 61, 56, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.default_opt_in_), _Internal::kHasBitsOffset + 62, 57, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.setup_wizard_), _Internal::kHasBitsOffset + 63, 58, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_qr_code_), _Internal::kHasBitsOffset + 64, 59, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.qr_code_link_shown_), _Internal::kHasBitsOffset + 65, 60, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.parsing_failed_endpoint_id_), _Internal::kHasBitsOffset + 66, 61, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.fast_init_discover_device_), _Internal::kHasBitsOffset + 67, 62, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_desktop_notification_), _Internal::kHasBitsOffset + 68, 63, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_desktop_transfer_event_), _Internal::kHasBitsOffset + 69, 64, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_account_), _Internal::kHasBitsOffset + 70, 65, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.decrypt_certificate_failure_), _Internal::kHasBitsOffset + 71, 66, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.show_allow_permission_auto_access_), _Internal::kHasBitsOffset + 72, 67, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.show_waiting_for_accept_), _Internal::kHasBitsOffset + 73, 68, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.high_quality_medium_setup_), _Internal::kHasBitsOffset + 74, 69, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.rpc_call_status_), _Internal::kHasBitsOffset + 75, 70, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.start_qr_code_session_), _Internal::kHasBitsOffset + 76, 71, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.qr_code_opened_in_web_client_), _Internal::kHasBitsOffset + 77, 72, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.hats_joint_event_), _Internal::kHasBitsOffset + 78, 73, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_previews_), _Internal::kHasBitsOffset + 79, 74, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_create_sharing_request_), _Internal::kHasBitsOffset + 80, 75, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_register_receiver_), _Internal::kHasBitsOffset + 81, 76, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_upload_start_), _Internal::kHasBitsOffset + 82, 77, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_upload_end_), _Internal::kHasBitsOffset + 83, 78, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_download_start_), _Internal::kHasBitsOffset + 84, 79, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_download_end_), _Internal::kHasBitsOffset + 85, 80, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89;
{PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_sharing_rpc_result_), _Internal::kHasBitsOffset + 86, 81, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddContact>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapHelp>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppCrash>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppInfo>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetAccount>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>()},
{::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>()},
{0, 80},
{0, 9},
{0, 4},
}},
{{
}},
};
PROTOBUF_NOINLINE void SharingLog::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog)
::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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(_impl_.unknown_event_ != nullptr);
_impl_.unknown_event_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.accept_agreements_ != nullptr);
_impl_.accept_agreements_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.enable_nearby_sharing_ != nullptr);
_impl_.enable_nearby_sharing_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(_impl_.set_visibility_ != nullptr);
_impl_.set_visibility_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
ABSL_DCHECK(_impl_.describe_attachments_ != nullptr);
_impl_.describe_attachments_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
ABSL_DCHECK(_impl_.scan_for_share_targets_start_ != nullptr);
_impl_.scan_for_share_targets_start_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
ABSL_DCHECK(_impl_.scan_for_share_targets_end_ != nullptr);
_impl_.scan_for_share_targets_end_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
ABSL_DCHECK(_impl_.advertise_device_presence_start_ != nullptr);
_impl_.advertise_device_presence_start_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
ABSL_DCHECK(_impl_.advertise_device_presence_end_ != nullptr);
_impl_.advertise_device_presence_end_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
ABSL_DCHECK(_impl_.send_initialization_ != nullptr);
_impl_.send_initialization_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
ABSL_DCHECK(_impl_.receive_initialization_ != nullptr);
_impl_.receive_initialization_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
ABSL_DCHECK(_impl_.discover_share_target_ != nullptr);
_impl_.discover_share_target_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
ABSL_DCHECK(_impl_.send_introduction_ != nullptr);
_impl_.send_introduction_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
ABSL_DCHECK(_impl_.receive_introduction_ != nullptr);
_impl_.receive_introduction_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
ABSL_DCHECK(_impl_.respond_introduction_ != nullptr);
_impl_.respond_introduction_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
ABSL_DCHECK(_impl_.send_attachments_start_ != nullptr);
_impl_.send_attachments_start_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
ABSL_DCHECK(_impl_.send_attachments_end_ != nullptr);
_impl_.send_attachments_end_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
ABSL_DCHECK(_impl_.receive_attachments_start_ != nullptr);
_impl_.receive_attachments_start_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
ABSL_DCHECK(_impl_.receive_attachments_end_ != nullptr);
_impl_.receive_attachments_end_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
ABSL_DCHECK(_impl_.cancel_sending_attachments_ != nullptr);
_impl_.cancel_sending_attachments_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
ABSL_DCHECK(_impl_.cancel_receiving_attachments_ != nullptr);
_impl_.cancel_receiving_attachments_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
ABSL_DCHECK(_impl_.open_received_attachments_ != nullptr);
_impl_.open_received_attachments_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
ABSL_DCHECK(_impl_.launch_activity_ != nullptr);
_impl_.launch_activity_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
ABSL_DCHECK(_impl_.add_contact_ != nullptr);
_impl_.add_contact_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x1f000000U)) {
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
ABSL_DCHECK(_impl_.remove_contact_ != nullptr);
_impl_.remove_contact_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
ABSL_DCHECK(_impl_.fast_share_server_response_ != nullptr);
_impl_.fast_share_server_response_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
ABSL_DCHECK(_impl_.send_start_ != nullptr);
_impl_.send_start_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
ABSL_DCHECK(_impl_.accept_fast_initialization_ != nullptr);
_impl_.accept_fast_initialization_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
ABSL_DCHECK(_impl_.set_data_usage_ != nullptr);
_impl_.set_data_usage_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0xe0000000U)) {
::memset(&_impl_.event_type_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.log_source_) -
reinterpret_cast<char*>(&_impl_.event_type_)) + sizeof(_impl_.log_source_));
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
_impl_.version_.ClearNonDefaultToEmpty();
}
}
cached_has_bits = _impl_._has_bits_[1];
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.files_migration_phase_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.app_version_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.dismiss_fast_initialization_ != nullptr);
_impl_.dismiss_fast_initialization_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(_impl_.cancel_connection_ != nullptr);
_impl_.cancel_connection_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
ABSL_DCHECK(_impl_.dismiss_privacy_notification_ != nullptr);
_impl_.dismiss_privacy_notification_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
ABSL_DCHECK(_impl_.tap_privacy_notification_ != nullptr);
_impl_.tap_privacy_notification_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
ABSL_DCHECK(_impl_.tap_help_ != nullptr);
_impl_.tap_help_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
ABSL_DCHECK(_impl_.tap_feedback_ != nullptr);
_impl_.tap_feedback_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
ABSL_DCHECK(_impl_.add_quick_settings_tile_ != nullptr);
_impl_.add_quick_settings_tile_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
ABSL_DCHECK(_impl_.remove_quick_settings_tile_ != nullptr);
_impl_.remove_quick_settings_tile_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
ABSL_DCHECK(_impl_.launch_phone_consent_ != nullptr);
_impl_.launch_phone_consent_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
ABSL_DCHECK(_impl_.tap_quick_settings_tile_ != nullptr);
_impl_.tap_quick_settings_tile_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
ABSL_DCHECK(_impl_.install_apk_status_ != nullptr);
_impl_.install_apk_status_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
ABSL_DCHECK(_impl_.verify_apk_status_ != nullptr);
_impl_.verify_apk_status_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
ABSL_DCHECK(_impl_.launch_consent_ != nullptr);
_impl_.launch_consent_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
ABSL_DCHECK(_impl_.process_received_attachments_end_ != nullptr);
_impl_.process_received_attachments_end_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
ABSL_DCHECK(_impl_.toggle_show_notification_ != nullptr);
_impl_.toggle_show_notification_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
ABSL_DCHECK(_impl_.set_device_name_ != nullptr);
_impl_.set_device_name_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
ABSL_DCHECK(_impl_.decline_agreements_ != nullptr);
_impl_.decline_agreements_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
ABSL_DCHECK(_impl_.request_setting_permissions_ != nullptr);
_impl_.request_setting_permissions_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
ABSL_DCHECK(_impl_.device_settings_ != nullptr);
_impl_.device_settings_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
ABSL_DCHECK(_impl_.establish_connection_ != nullptr);
_impl_.establish_connection_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
ABSL_DCHECK(_impl_.auto_dismiss_fast_initialization_ != nullptr);
_impl_.auto_dismiss_fast_initialization_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
ABSL_DCHECK(_impl_.event_metadata_ != nullptr);
_impl_.event_metadata_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
ABSL_DCHECK(_impl_.app_crash_ != nullptr);
_impl_.app_crash_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
ABSL_DCHECK(_impl_.tap_quick_settings_file_share_ != nullptr);
_impl_.tap_quick_settings_file_share_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
ABSL_DCHECK(_impl_.app_info_ != nullptr);
_impl_.app_info_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
ABSL_DCHECK(_impl_.display_privacy_notification_ != nullptr);
_impl_.display_privacy_notification_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
ABSL_DCHECK(_impl_.display_phone_consent_ != nullptr);
_impl_.display_phone_consent_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
ABSL_DCHECK(_impl_.preferences_usage_ != nullptr);
_impl_.preferences_usage_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
ABSL_DCHECK(_impl_.default_opt_in_ != nullptr);
_impl_.default_opt_in_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
ABSL_DCHECK(_impl_.setup_wizard_ != nullptr);
_impl_.setup_wizard_->Clear();
}
}
cached_has_bits = _impl_._has_bits_[2];
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(_impl_.tap_qr_code_ != nullptr);
_impl_.tap_qr_code_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(_impl_.qr_code_link_shown_ != nullptr);
_impl_.qr_code_link_shown_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(_impl_.parsing_failed_endpoint_id_ != nullptr);
_impl_.parsing_failed_endpoint_id_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(_impl_.fast_init_discover_device_ != nullptr);
_impl_.fast_init_discover_device_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
ABSL_DCHECK(_impl_.send_desktop_notification_ != nullptr);
_impl_.send_desktop_notification_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
ABSL_DCHECK(_impl_.send_desktop_transfer_event_ != nullptr);
_impl_.send_desktop_transfer_event_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
ABSL_DCHECK(_impl_.set_account_ != nullptr);
_impl_.set_account_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
ABSL_DCHECK(_impl_.decrypt_certificate_failure_ != nullptr);
_impl_.decrypt_certificate_failure_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
ABSL_DCHECK(_impl_.show_allow_permission_auto_access_ != nullptr);
_impl_.show_allow_permission_auto_access_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
ABSL_DCHECK(_impl_.show_waiting_for_accept_ != nullptr);
_impl_.show_waiting_for_accept_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
ABSL_DCHECK(_impl_.high_quality_medium_setup_ != nullptr);
_impl_.high_quality_medium_setup_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
ABSL_DCHECK(_impl_.rpc_call_status_ != nullptr);
_impl_.rpc_call_status_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
ABSL_DCHECK(_impl_.start_qr_code_session_ != nullptr);
_impl_.start_qr_code_session_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
ABSL_DCHECK(_impl_.qr_code_opened_in_web_client_ != nullptr);
_impl_.qr_code_opened_in_web_client_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
ABSL_DCHECK(_impl_.hats_joint_event_ != nullptr);
_impl_.hats_joint_event_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
ABSL_DCHECK(_impl_.receive_previews_ != nullptr);
_impl_.receive_previews_->Clear();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x007f0000U)) {
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
ABSL_DCHECK(_impl_.cloud_create_sharing_request_ != nullptr);
_impl_.cloud_create_sharing_request_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
ABSL_DCHECK(_impl_.cloud_register_receiver_ != nullptr);
_impl_.cloud_register_receiver_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
ABSL_DCHECK(_impl_.cloud_upload_start_ != nullptr);
_impl_.cloud_upload_start_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
ABSL_DCHECK(_impl_.cloud_upload_end_ != nullptr);
_impl_.cloud_upload_end_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
ABSL_DCHECK(_impl_.cloud_download_start_ != nullptr);
_impl_.cloud_download_start_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
ABSL_DCHECK(_impl_.cloud_download_end_ != nullptr);
_impl_.cloud_download_end_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
ABSL_DCHECK(_impl_.cloud_sharing_rpc_result_ != nullptr);
_impl_.cloud_sharing_rpc_result_->Clear();
}
}
_impl_.event_category_ = 0;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::std::string>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SharingLog::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const SharingLog& this_ = static_cast<const SharingLog&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SharingLog::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const SharingLog& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional .location.nearby.proto.sharing.EventType event_type = 1;
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this_._internal_event_type(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2, *this_._impl_.unknown_event_, this_._impl_.unknown_event_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3, *this_._impl_.accept_agreements_, this_._impl_.accept_agreements_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4, *this_._impl_.enable_nearby_sharing_, this_._impl_.enable_nearby_sharing_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
5, *this_._impl_.set_visibility_, this_._impl_.set_visibility_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6, *this_._impl_.describe_attachments_, this_._impl_.describe_attachments_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
7, *this_._impl_.scan_for_share_targets_start_, this_._impl_.scan_for_share_targets_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
8, *this_._impl_.scan_for_share_targets_end_, this_._impl_.scan_for_share_targets_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
9, *this_._impl_.advertise_device_presence_start_, this_._impl_.advertise_device_presence_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
10, *this_._impl_.advertise_device_presence_end_, this_._impl_.advertise_device_presence_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
11, *this_._impl_.send_initialization_, this_._impl_.send_initialization_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
12, *this_._impl_.receive_initialization_, this_._impl_.receive_initialization_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
13, *this_._impl_.discover_share_target_, this_._impl_.discover_share_target_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
14, *this_._impl_.send_introduction_, this_._impl_.send_introduction_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
15, *this_._impl_.receive_introduction_, this_._impl_.receive_introduction_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
16, *this_._impl_.respond_introduction_, this_._impl_.respond_introduction_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
17, *this_._impl_.send_attachments_start_, this_._impl_.send_attachments_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18;
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
18, *this_._impl_.send_attachments_end_, this_._impl_.send_attachments_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19;
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
19, *this_._impl_.receive_attachments_start_, this_._impl_.receive_attachments_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20;
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
20, *this_._impl_.receive_attachments_end_, this_._impl_.receive_attachments_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21;
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
21, *this_._impl_.cancel_sending_attachments_, this_._impl_.cancel_sending_attachments_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22;
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
22, *this_._impl_.cancel_receiving_attachments_, this_._impl_.cancel_receiving_attachments_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23;
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
23, *this_._impl_.open_received_attachments_, this_._impl_.open_received_attachments_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24;
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
24, *this_._impl_.launch_activity_, this_._impl_.launch_activity_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25;
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
25, *this_._impl_.add_contact_, this_._impl_.add_contact_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26;
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
26, *this_._impl_.remove_contact_, this_._impl_.remove_contact_->GetCachedSize(), target,
stream);
}
// optional .location.nearby.proto.sharing.LogSource log_source = 27;
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
27, this_._internal_log_source(), target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28;
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
28, *this_._impl_.fast_share_server_response_, this_._impl_.fast_share_server_response_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29;
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
29, *this_._impl_.send_start_, this_._impl_.send_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30;
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
30, *this_._impl_.accept_fast_initialization_, this_._impl_.accept_fast_initialization_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31;
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
31, *this_._impl_.set_data_usage_, this_._impl_.set_data_usage_->GetCachedSize(), target,
stream);
}
// optional string version = 32;
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
const ::std::string& _s = this_._internal_version();
target = stream->WriteStringMaybeAliased(32, _s, target);
}
cached_has_bits = this_._impl_._has_bits_[2];
// optional .location.nearby.proto.sharing.EventCategory event_category = 33;
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
33, this_._internal_event_category(), target);
}
cached_has_bits = this_._impl_._has_bits_[1];
// optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
34, *this_._impl_.dismiss_fast_initialization_, this_._impl_.dismiss_fast_initialization_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
35, *this_._impl_.cancel_connection_, this_._impl_.cancel_connection_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
36, *this_._impl_.dismiss_privacy_notification_, this_._impl_.dismiss_privacy_notification_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
37, *this_._impl_.tap_privacy_notification_, this_._impl_.tap_privacy_notification_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
38, *this_._impl_.tap_help_, this_._impl_.tap_help_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
39, *this_._impl_.tap_feedback_, this_._impl_.tap_feedback_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
40, *this_._impl_.add_quick_settings_tile_, this_._impl_.add_quick_settings_tile_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
41, *this_._impl_.remove_quick_settings_tile_, this_._impl_.remove_quick_settings_tile_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
42, *this_._impl_.launch_phone_consent_, this_._impl_.launch_phone_consent_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
43, *this_._impl_.tap_quick_settings_tile_, this_._impl_.tap_quick_settings_tile_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
44, *this_._impl_.install_apk_status_, this_._impl_.install_apk_status_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
45, *this_._impl_.verify_apk_status_, this_._impl_.verify_apk_status_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
46, *this_._impl_.launch_consent_, this_._impl_.launch_consent_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
47, *this_._impl_.process_received_attachments_end_, this_._impl_.process_received_attachments_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48;
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
48, *this_._impl_.toggle_show_notification_, this_._impl_.toggle_show_notification_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49;
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
49, *this_._impl_.set_device_name_, this_._impl_.set_device_name_->GetCachedSize(), target,
stream);
}
// optional string files_migration_phase = 50;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_files_migration_phase();
target = stream->WriteStringMaybeAliased(50, _s, target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51;
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
51, *this_._impl_.decline_agreements_, this_._impl_.decline_agreements_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52;
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
52, *this_._impl_.request_setting_permissions_, this_._impl_.request_setting_permissions_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53;
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
53, *this_._impl_.device_settings_, this_._impl_.device_settings_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54;
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
54, *this_._impl_.establish_connection_, this_._impl_.establish_connection_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55;
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
55, *this_._impl_.auto_dismiss_fast_initialization_, this_._impl_.auto_dismiss_fast_initialization_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56;
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
56, *this_._impl_.event_metadata_, this_._impl_.event_metadata_->GetCachedSize(), target,
stream);
}
// optional string app_version = 57 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_app_version();
target = stream->WriteStringMaybeAliased(57, _s, target);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58;
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
58, *this_._impl_.app_crash_, this_._impl_.app_crash_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59;
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
59, *this_._impl_.tap_quick_settings_file_share_, this_._impl_.tap_quick_settings_file_share_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60;
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
60, *this_._impl_.app_info_, this_._impl_.app_info_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61;
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
61, *this_._impl_.display_privacy_notification_, this_._impl_.display_privacy_notification_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62;
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
62, *this_._impl_.display_phone_consent_, this_._impl_.display_phone_consent_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63;
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
63, *this_._impl_.preferences_usage_, this_._impl_.preferences_usage_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64;
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
64, *this_._impl_.default_opt_in_, this_._impl_.default_opt_in_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65;
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
65, *this_._impl_.setup_wizard_, this_._impl_.setup_wizard_->GetCachedSize(), target,
stream);
}
cached_has_bits = this_._impl_._has_bits_[2];
// optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
66, *this_._impl_.tap_qr_code_, this_._impl_.tap_qr_code_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
67, *this_._impl_.qr_code_link_shown_, this_._impl_.qr_code_link_shown_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
68, *this_._impl_.parsing_failed_endpoint_id_, this_._impl_.parsing_failed_endpoint_id_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
69, *this_._impl_.fast_init_discover_device_, this_._impl_.fast_init_discover_device_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
70, *this_._impl_.send_desktop_notification_, this_._impl_.send_desktop_notification_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
72, *this_._impl_.send_desktop_transfer_event_, this_._impl_.send_desktop_transfer_event_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
73, *this_._impl_.set_account_, this_._impl_.set_account_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
74, *this_._impl_.decrypt_certificate_failure_, this_._impl_.decrypt_certificate_failure_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
75, *this_._impl_.show_allow_permission_auto_access_, this_._impl_.show_allow_permission_auto_access_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
76, *this_._impl_.show_waiting_for_accept_, this_._impl_.show_waiting_for_accept_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
77, *this_._impl_.high_quality_medium_setup_, this_._impl_.high_quality_medium_setup_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
78, *this_._impl_.rpc_call_status_, this_._impl_.rpc_call_status_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
79, *this_._impl_.start_qr_code_session_, this_._impl_.start_qr_code_session_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
80, *this_._impl_.qr_code_opened_in_web_client_, this_._impl_.qr_code_opened_in_web_client_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
81, *this_._impl_.hats_joint_event_, this_._impl_.hats_joint_event_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
82, *this_._impl_.receive_previews_, this_._impl_.receive_previews_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83;
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
83, *this_._impl_.cloud_create_sharing_request_, this_._impl_.cloud_create_sharing_request_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84;
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
84, *this_._impl_.cloud_register_receiver_, this_._impl_.cloud_register_receiver_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85;
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
85, *this_._impl_.cloud_upload_start_, this_._impl_.cloud_upload_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86;
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
86, *this_._impl_.cloud_upload_end_, this_._impl_.cloud_upload_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87;
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
87, *this_._impl_.cloud_download_start_, this_._impl_.cloud_download_start_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88;
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
88, *this_._impl_.cloud_download_end_, this_._impl_.cloud_download_end_->GetCachedSize(), target,
stream);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89;
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
89, *this_._impl_.cloud_sharing_rpc_result_, this_._impl_.cloud_sharing_rpc_result_->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:nearby.sharing.analytics.proto.SharingLog)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SharingLog::ByteSizeLong(const MessageLite& base) {
const SharingLog& this_ = static_cast<const SharingLog&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t SharingLog::ByteSizeLong() const {
const SharingLog& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog)
::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, 0x000000ffU)) {
// optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.unknown_event_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.accept_agreements_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.enable_nearby_sharing_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_visibility_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.describe_attachments_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scan_for_share_targets_start_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scan_for_share_targets_end_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertise_device_presence_start_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertise_device_presence_end_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_initialization_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_initialization_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.discover_share_target_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_introduction_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_introduction_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.respond_introduction_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_attachments_start_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18;
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_attachments_end_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19;
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_attachments_start_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20;
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_attachments_end_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21;
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_sending_attachments_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22;
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_receiving_attachments_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23;
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.open_received_attachments_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24;
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.launch_activity_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25;
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.add_contact_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26;
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.remove_contact_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28;
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fast_share_server_response_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29;
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_start_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30;
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.accept_fast_initialization_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31;
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_data_usage_);
}
// optional .location.nearby.proto.sharing.EventType event_type = 1;
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this_._internal_event_type());
}
// optional .location.nearby.proto.sharing.LogSource log_source = 27;
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
total_size += 2 +
::_pbi::WireFormatLite::EnumSize(this_._internal_log_source());
}
// optional string version = 32;
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_version());
}
}
cached_has_bits = this_._impl_._has_bits_[1];
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
// optional string files_migration_phase = 50;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_files_migration_phase());
}
// optional string app_version = 57 [deprecated = true];
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_app_version());
}
// optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dismiss_fast_initialization_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_connection_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dismiss_privacy_notification_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_privacy_notification_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_help_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_feedback_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.add_quick_settings_tile_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.remove_quick_settings_tile_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.launch_phone_consent_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_quick_settings_tile_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.install_apk_status_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.verify_apk_status_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.launch_consent_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.process_received_attachments_end_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48;
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.toggle_show_notification_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49;
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_device_name_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51;
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.decline_agreements_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52;
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_setting_permissions_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53;
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.device_settings_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54;
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.establish_connection_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55;
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auto_dismiss_fast_initialization_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56;
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_metadata_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58;
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.app_crash_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59;
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_quick_settings_file_share_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60;
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.app_info_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61;
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.display_privacy_notification_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62;
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.display_phone_consent_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63;
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.preferences_usage_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64;
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.default_opt_in_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65;
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.setup_wizard_);
}
}
cached_has_bits = this_._impl_._has_bits_[2];
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
// optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_qr_code_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qr_code_link_shown_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.parsing_failed_endpoint_id_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fast_init_discover_device_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_desktop_notification_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72;
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_desktop_transfer_event_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73;
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_account_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74;
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.decrypt_certificate_failure_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75;
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.show_allow_permission_auto_access_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76;
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.show_waiting_for_accept_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77;
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.high_quality_medium_setup_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78;
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rpc_call_status_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79;
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.start_qr_code_session_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80;
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qr_code_opened_in_web_client_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81;
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.hats_joint_event_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82;
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_previews_);
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
// optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83;
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_create_sharing_request_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84;
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_register_receiver_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85;
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_upload_start_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86;
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_upload_end_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87;
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_download_start_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88;
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_download_end_);
}
// optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89;
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_sharing_rpc_result_);
}
// optional .location.nearby.proto.sharing.EventCategory event_category = 33;
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
total_size += 2 +
::_pbi::WireFormatLite::EnumSize(this_._internal_event_category());
}
}
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 SharingLog::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this =
static_cast<SharingLog*>(&to_msg);
auto& from = static_cast<const SharingLog&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog)
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, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.unknown_event_ != nullptr);
if (_this->_impl_.unknown_event_ == nullptr) {
_this->_impl_.unknown_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unknown_event_);
} else {
_this->_impl_.unknown_event_->MergeFrom(*from._impl_.unknown_event_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.accept_agreements_ != nullptr);
if (_this->_impl_.accept_agreements_ == nullptr) {
_this->_impl_.accept_agreements_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_agreements_);
} else {
_this->_impl_.accept_agreements_->MergeFrom(*from._impl_.accept_agreements_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.enable_nearby_sharing_ != nullptr);
if (_this->_impl_.enable_nearby_sharing_ == nullptr) {
_this->_impl_.enable_nearby_sharing_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.enable_nearby_sharing_);
} else {
_this->_impl_.enable_nearby_sharing_->MergeFrom(*from._impl_.enable_nearby_sharing_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.set_visibility_ != nullptr);
if (_this->_impl_.set_visibility_ == nullptr) {
_this->_impl_.set_visibility_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_visibility_);
} else {
_this->_impl_.set_visibility_->MergeFrom(*from._impl_.set_visibility_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
ABSL_DCHECK(from._impl_.describe_attachments_ != nullptr);
if (_this->_impl_.describe_attachments_ == nullptr) {
_this->_impl_.describe_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.describe_attachments_);
} else {
_this->_impl_.describe_attachments_->MergeFrom(*from._impl_.describe_attachments_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
ABSL_DCHECK(from._impl_.scan_for_share_targets_start_ != nullptr);
if (_this->_impl_.scan_for_share_targets_start_ == nullptr) {
_this->_impl_.scan_for_share_targets_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_start_);
} else {
_this->_impl_.scan_for_share_targets_start_->MergeFrom(*from._impl_.scan_for_share_targets_start_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
ABSL_DCHECK(from._impl_.scan_for_share_targets_end_ != nullptr);
if (_this->_impl_.scan_for_share_targets_end_ == nullptr) {
_this->_impl_.scan_for_share_targets_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_end_);
} else {
_this->_impl_.scan_for_share_targets_end_->MergeFrom(*from._impl_.scan_for_share_targets_end_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
ABSL_DCHECK(from._impl_.advertise_device_presence_start_ != nullptr);
if (_this->_impl_.advertise_device_presence_start_ == nullptr) {
_this->_impl_.advertise_device_presence_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_start_);
} else {
_this->_impl_.advertise_device_presence_start_->MergeFrom(*from._impl_.advertise_device_presence_start_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
ABSL_DCHECK(from._impl_.advertise_device_presence_end_ != nullptr);
if (_this->_impl_.advertise_device_presence_end_ == nullptr) {
_this->_impl_.advertise_device_presence_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_end_);
} else {
_this->_impl_.advertise_device_presence_end_->MergeFrom(*from._impl_.advertise_device_presence_end_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
ABSL_DCHECK(from._impl_.send_initialization_ != nullptr);
if (_this->_impl_.send_initialization_ == nullptr) {
_this->_impl_.send_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_initialization_);
} else {
_this->_impl_.send_initialization_->MergeFrom(*from._impl_.send_initialization_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
ABSL_DCHECK(from._impl_.receive_initialization_ != nullptr);
if (_this->_impl_.receive_initialization_ == nullptr) {
_this->_impl_.receive_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_initialization_);
} else {
_this->_impl_.receive_initialization_->MergeFrom(*from._impl_.receive_initialization_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
ABSL_DCHECK(from._impl_.discover_share_target_ != nullptr);
if (_this->_impl_.discover_share_target_ == nullptr) {
_this->_impl_.discover_share_target_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.discover_share_target_);
} else {
_this->_impl_.discover_share_target_->MergeFrom(*from._impl_.discover_share_target_);
}
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
ABSL_DCHECK(from._impl_.send_introduction_ != nullptr);
if (_this->_impl_.send_introduction_ == nullptr) {
_this->_impl_.send_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_introduction_);
} else {
_this->_impl_.send_introduction_->MergeFrom(*from._impl_.send_introduction_);
}
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
ABSL_DCHECK(from._impl_.receive_introduction_ != nullptr);
if (_this->_impl_.receive_introduction_ == nullptr) {
_this->_impl_.receive_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_introduction_);
} else {
_this->_impl_.receive_introduction_->MergeFrom(*from._impl_.receive_introduction_);
}
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
ABSL_DCHECK(from._impl_.respond_introduction_ != nullptr);
if (_this->_impl_.respond_introduction_ == nullptr) {
_this->_impl_.respond_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.respond_introduction_);
} else {
_this->_impl_.respond_introduction_->MergeFrom(*from._impl_.respond_introduction_);
}
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
ABSL_DCHECK(from._impl_.send_attachments_start_ != nullptr);
if (_this->_impl_.send_attachments_start_ == nullptr) {
_this->_impl_.send_attachments_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_start_);
} else {
_this->_impl_.send_attachments_start_->MergeFrom(*from._impl_.send_attachments_start_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
ABSL_DCHECK(from._impl_.send_attachments_end_ != nullptr);
if (_this->_impl_.send_attachments_end_ == nullptr) {
_this->_impl_.send_attachments_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_end_);
} else {
_this->_impl_.send_attachments_end_->MergeFrom(*from._impl_.send_attachments_end_);
}
}
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
ABSL_DCHECK(from._impl_.receive_attachments_start_ != nullptr);
if (_this->_impl_.receive_attachments_start_ == nullptr) {
_this->_impl_.receive_attachments_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_start_);
} else {
_this->_impl_.receive_attachments_start_->MergeFrom(*from._impl_.receive_attachments_start_);
}
}
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
ABSL_DCHECK(from._impl_.receive_attachments_end_ != nullptr);
if (_this->_impl_.receive_attachments_end_ == nullptr) {
_this->_impl_.receive_attachments_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_end_);
} else {
_this->_impl_.receive_attachments_end_->MergeFrom(*from._impl_.receive_attachments_end_);
}
}
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
ABSL_DCHECK(from._impl_.cancel_sending_attachments_ != nullptr);
if (_this->_impl_.cancel_sending_attachments_ == nullptr) {
_this->_impl_.cancel_sending_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_sending_attachments_);
} else {
_this->_impl_.cancel_sending_attachments_->MergeFrom(*from._impl_.cancel_sending_attachments_);
}
}
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
ABSL_DCHECK(from._impl_.cancel_receiving_attachments_ != nullptr);
if (_this->_impl_.cancel_receiving_attachments_ == nullptr) {
_this->_impl_.cancel_receiving_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_receiving_attachments_);
} else {
_this->_impl_.cancel_receiving_attachments_->MergeFrom(*from._impl_.cancel_receiving_attachments_);
}
}
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
ABSL_DCHECK(from._impl_.open_received_attachments_ != nullptr);
if (_this->_impl_.open_received_attachments_ == nullptr) {
_this->_impl_.open_received_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.open_received_attachments_);
} else {
_this->_impl_.open_received_attachments_->MergeFrom(*from._impl_.open_received_attachments_);
}
}
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
ABSL_DCHECK(from._impl_.launch_activity_ != nullptr);
if (_this->_impl_.launch_activity_ == nullptr) {
_this->_impl_.launch_activity_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_activity_);
} else {
_this->_impl_.launch_activity_->MergeFrom(*from._impl_.launch_activity_);
}
}
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
ABSL_DCHECK(from._impl_.add_contact_ != nullptr);
if (_this->_impl_.add_contact_ == nullptr) {
_this->_impl_.add_contact_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_contact_);
} else {
_this->_impl_.add_contact_->MergeFrom(*from._impl_.add_contact_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
ABSL_DCHECK(from._impl_.remove_contact_ != nullptr);
if (_this->_impl_.remove_contact_ == nullptr) {
_this->_impl_.remove_contact_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_contact_);
} else {
_this->_impl_.remove_contact_->MergeFrom(*from._impl_.remove_contact_);
}
}
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
ABSL_DCHECK(from._impl_.fast_share_server_response_ != nullptr);
if (_this->_impl_.fast_share_server_response_ == nullptr) {
_this->_impl_.fast_share_server_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_share_server_response_);
} else {
_this->_impl_.fast_share_server_response_->MergeFrom(*from._impl_.fast_share_server_response_);
}
}
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
ABSL_DCHECK(from._impl_.send_start_ != nullptr);
if (_this->_impl_.send_start_ == nullptr) {
_this->_impl_.send_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_start_);
} else {
_this->_impl_.send_start_->MergeFrom(*from._impl_.send_start_);
}
}
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
ABSL_DCHECK(from._impl_.accept_fast_initialization_ != nullptr);
if (_this->_impl_.accept_fast_initialization_ == nullptr) {
_this->_impl_.accept_fast_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_fast_initialization_);
} else {
_this->_impl_.accept_fast_initialization_->MergeFrom(*from._impl_.accept_fast_initialization_);
}
}
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
ABSL_DCHECK(from._impl_.set_data_usage_ != nullptr);
if (_this->_impl_.set_data_usage_ == nullptr) {
_this->_impl_.set_data_usage_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_data_usage_);
} else {
_this->_impl_.set_data_usage_->MergeFrom(*from._impl_.set_data_usage_);
}
}
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
_this->_impl_.event_type_ = from._impl_.event_type_;
}
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
_this->_impl_.log_source_ = from._impl_.log_source_;
}
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
_this->_internal_set_version(from._internal_version());
}
}
cached_has_bits = from._impl_._has_bits_[1];
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_files_migration_phase(from._internal_files_migration_phase());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_app_version(from._internal_app_version());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.dismiss_fast_initialization_ != nullptr);
if (_this->_impl_.dismiss_fast_initialization_ == nullptr) {
_this->_impl_.dismiss_fast_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_fast_initialization_);
} else {
_this->_impl_.dismiss_fast_initialization_->MergeFrom(*from._impl_.dismiss_fast_initialization_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.cancel_connection_ != nullptr);
if (_this->_impl_.cancel_connection_ == nullptr) {
_this->_impl_.cancel_connection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_connection_);
} else {
_this->_impl_.cancel_connection_->MergeFrom(*from._impl_.cancel_connection_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
ABSL_DCHECK(from._impl_.dismiss_privacy_notification_ != nullptr);
if (_this->_impl_.dismiss_privacy_notification_ == nullptr) {
_this->_impl_.dismiss_privacy_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_privacy_notification_);
} else {
_this->_impl_.dismiss_privacy_notification_->MergeFrom(*from._impl_.dismiss_privacy_notification_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
ABSL_DCHECK(from._impl_.tap_privacy_notification_ != nullptr);
if (_this->_impl_.tap_privacy_notification_ == nullptr) {
_this->_impl_.tap_privacy_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_privacy_notification_);
} else {
_this->_impl_.tap_privacy_notification_->MergeFrom(*from._impl_.tap_privacy_notification_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
ABSL_DCHECK(from._impl_.tap_help_ != nullptr);
if (_this->_impl_.tap_help_ == nullptr) {
_this->_impl_.tap_help_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_help_);
} else {
_this->_impl_.tap_help_->MergeFrom(*from._impl_.tap_help_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
ABSL_DCHECK(from._impl_.tap_feedback_ != nullptr);
if (_this->_impl_.tap_feedback_ == nullptr) {
_this->_impl_.tap_feedback_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_feedback_);
} else {
_this->_impl_.tap_feedback_->MergeFrom(*from._impl_.tap_feedback_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
ABSL_DCHECK(from._impl_.add_quick_settings_tile_ != nullptr);
if (_this->_impl_.add_quick_settings_tile_ == nullptr) {
_this->_impl_.add_quick_settings_tile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_quick_settings_tile_);
} else {
_this->_impl_.add_quick_settings_tile_->MergeFrom(*from._impl_.add_quick_settings_tile_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
ABSL_DCHECK(from._impl_.remove_quick_settings_tile_ != nullptr);
if (_this->_impl_.remove_quick_settings_tile_ == nullptr) {
_this->_impl_.remove_quick_settings_tile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_quick_settings_tile_);
} else {
_this->_impl_.remove_quick_settings_tile_->MergeFrom(*from._impl_.remove_quick_settings_tile_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
ABSL_DCHECK(from._impl_.launch_phone_consent_ != nullptr);
if (_this->_impl_.launch_phone_consent_ == nullptr) {
_this->_impl_.launch_phone_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_phone_consent_);
} else {
_this->_impl_.launch_phone_consent_->MergeFrom(*from._impl_.launch_phone_consent_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
ABSL_DCHECK(from._impl_.tap_quick_settings_tile_ != nullptr);
if (_this->_impl_.tap_quick_settings_tile_ == nullptr) {
_this->_impl_.tap_quick_settings_tile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_tile_);
} else {
_this->_impl_.tap_quick_settings_tile_->MergeFrom(*from._impl_.tap_quick_settings_tile_);
}
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
ABSL_DCHECK(from._impl_.install_apk_status_ != nullptr);
if (_this->_impl_.install_apk_status_ == nullptr) {
_this->_impl_.install_apk_status_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.install_apk_status_);
} else {
_this->_impl_.install_apk_status_->MergeFrom(*from._impl_.install_apk_status_);
}
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
ABSL_DCHECK(from._impl_.verify_apk_status_ != nullptr);
if (_this->_impl_.verify_apk_status_ == nullptr) {
_this->_impl_.verify_apk_status_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.verify_apk_status_);
} else {
_this->_impl_.verify_apk_status_->MergeFrom(*from._impl_.verify_apk_status_);
}
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
ABSL_DCHECK(from._impl_.launch_consent_ != nullptr);
if (_this->_impl_.launch_consent_ == nullptr) {
_this->_impl_.launch_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_consent_);
} else {
_this->_impl_.launch_consent_->MergeFrom(*from._impl_.launch_consent_);
}
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
ABSL_DCHECK(from._impl_.process_received_attachments_end_ != nullptr);
if (_this->_impl_.process_received_attachments_end_ == nullptr) {
_this->_impl_.process_received_attachments_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.process_received_attachments_end_);
} else {
_this->_impl_.process_received_attachments_end_->MergeFrom(*from._impl_.process_received_attachments_end_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
ABSL_DCHECK(from._impl_.toggle_show_notification_ != nullptr);
if (_this->_impl_.toggle_show_notification_ == nullptr) {
_this->_impl_.toggle_show_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.toggle_show_notification_);
} else {
_this->_impl_.toggle_show_notification_->MergeFrom(*from._impl_.toggle_show_notification_);
}
}
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
ABSL_DCHECK(from._impl_.set_device_name_ != nullptr);
if (_this->_impl_.set_device_name_ == nullptr) {
_this->_impl_.set_device_name_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_device_name_);
} else {
_this->_impl_.set_device_name_->MergeFrom(*from._impl_.set_device_name_);
}
}
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
ABSL_DCHECK(from._impl_.decline_agreements_ != nullptr);
if (_this->_impl_.decline_agreements_ == nullptr) {
_this->_impl_.decline_agreements_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decline_agreements_);
} else {
_this->_impl_.decline_agreements_->MergeFrom(*from._impl_.decline_agreements_);
}
}
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
ABSL_DCHECK(from._impl_.request_setting_permissions_ != nullptr);
if (_this->_impl_.request_setting_permissions_ == nullptr) {
_this->_impl_.request_setting_permissions_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_setting_permissions_);
} else {
_this->_impl_.request_setting_permissions_->MergeFrom(*from._impl_.request_setting_permissions_);
}
}
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
ABSL_DCHECK(from._impl_.device_settings_ != nullptr);
if (_this->_impl_.device_settings_ == nullptr) {
_this->_impl_.device_settings_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.device_settings_);
} else {
_this->_impl_.device_settings_->MergeFrom(*from._impl_.device_settings_);
}
}
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
ABSL_DCHECK(from._impl_.establish_connection_ != nullptr);
if (_this->_impl_.establish_connection_ == nullptr) {
_this->_impl_.establish_connection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.establish_connection_);
} else {
_this->_impl_.establish_connection_->MergeFrom(*from._impl_.establish_connection_);
}
}
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
ABSL_DCHECK(from._impl_.auto_dismiss_fast_initialization_ != nullptr);
if (_this->_impl_.auto_dismiss_fast_initialization_ == nullptr) {
_this->_impl_.auto_dismiss_fast_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_dismiss_fast_initialization_);
} else {
_this->_impl_.auto_dismiss_fast_initialization_->MergeFrom(*from._impl_.auto_dismiss_fast_initialization_);
}
}
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
ABSL_DCHECK(from._impl_.event_metadata_ != nullptr);
if (_this->_impl_.event_metadata_ == nullptr) {
_this->_impl_.event_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.event_metadata_);
} else {
_this->_impl_.event_metadata_->MergeFrom(*from._impl_.event_metadata_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
if (CheckHasBit(cached_has_bits, 0x01000000U)) {
ABSL_DCHECK(from._impl_.app_crash_ != nullptr);
if (_this->_impl_.app_crash_ == nullptr) {
_this->_impl_.app_crash_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_crash_);
} else {
_this->_impl_.app_crash_->MergeFrom(*from._impl_.app_crash_);
}
}
if (CheckHasBit(cached_has_bits, 0x02000000U)) {
ABSL_DCHECK(from._impl_.tap_quick_settings_file_share_ != nullptr);
if (_this->_impl_.tap_quick_settings_file_share_ == nullptr) {
_this->_impl_.tap_quick_settings_file_share_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_file_share_);
} else {
_this->_impl_.tap_quick_settings_file_share_->MergeFrom(*from._impl_.tap_quick_settings_file_share_);
}
}
if (CheckHasBit(cached_has_bits, 0x04000000U)) {
ABSL_DCHECK(from._impl_.app_info_ != nullptr);
if (_this->_impl_.app_info_ == nullptr) {
_this->_impl_.app_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_info_);
} else {
_this->_impl_.app_info_->MergeFrom(*from._impl_.app_info_);
}
}
if (CheckHasBit(cached_has_bits, 0x08000000U)) {
ABSL_DCHECK(from._impl_.display_privacy_notification_ != nullptr);
if (_this->_impl_.display_privacy_notification_ == nullptr) {
_this->_impl_.display_privacy_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_privacy_notification_);
} else {
_this->_impl_.display_privacy_notification_->MergeFrom(*from._impl_.display_privacy_notification_);
}
}
if (CheckHasBit(cached_has_bits, 0x10000000U)) {
ABSL_DCHECK(from._impl_.display_phone_consent_ != nullptr);
if (_this->_impl_.display_phone_consent_ == nullptr) {
_this->_impl_.display_phone_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_phone_consent_);
} else {
_this->_impl_.display_phone_consent_->MergeFrom(*from._impl_.display_phone_consent_);
}
}
if (CheckHasBit(cached_has_bits, 0x20000000U)) {
ABSL_DCHECK(from._impl_.preferences_usage_ != nullptr);
if (_this->_impl_.preferences_usage_ == nullptr) {
_this->_impl_.preferences_usage_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preferences_usage_);
} else {
_this->_impl_.preferences_usage_->MergeFrom(*from._impl_.preferences_usage_);
}
}
if (CheckHasBit(cached_has_bits, 0x40000000U)) {
ABSL_DCHECK(from._impl_.default_opt_in_ != nullptr);
if (_this->_impl_.default_opt_in_ == nullptr) {
_this->_impl_.default_opt_in_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.default_opt_in_);
} else {
_this->_impl_.default_opt_in_->MergeFrom(*from._impl_.default_opt_in_);
}
}
if (CheckHasBit(cached_has_bits, 0x80000000U)) {
ABSL_DCHECK(from._impl_.setup_wizard_ != nullptr);
if (_this->_impl_.setup_wizard_ == nullptr) {
_this->_impl_.setup_wizard_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.setup_wizard_);
} else {
_this->_impl_.setup_wizard_->MergeFrom(*from._impl_.setup_wizard_);
}
}
}
cached_has_bits = from._impl_._has_bits_[2];
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
ABSL_DCHECK(from._impl_.tap_qr_code_ != nullptr);
if (_this->_impl_.tap_qr_code_ == nullptr) {
_this->_impl_.tap_qr_code_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_qr_code_);
} else {
_this->_impl_.tap_qr_code_->MergeFrom(*from._impl_.tap_qr_code_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
ABSL_DCHECK(from._impl_.qr_code_link_shown_ != nullptr);
if (_this->_impl_.qr_code_link_shown_ == nullptr) {
_this->_impl_.qr_code_link_shown_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_link_shown_);
} else {
_this->_impl_.qr_code_link_shown_->MergeFrom(*from._impl_.qr_code_link_shown_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
ABSL_DCHECK(from._impl_.parsing_failed_endpoint_id_ != nullptr);
if (_this->_impl_.parsing_failed_endpoint_id_ == nullptr) {
_this->_impl_.parsing_failed_endpoint_id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.parsing_failed_endpoint_id_);
} else {
_this->_impl_.parsing_failed_endpoint_id_->MergeFrom(*from._impl_.parsing_failed_endpoint_id_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.fast_init_discover_device_ != nullptr);
if (_this->_impl_.fast_init_discover_device_ == nullptr) {
_this->_impl_.fast_init_discover_device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_init_discover_device_);
} else {
_this->_impl_.fast_init_discover_device_->MergeFrom(*from._impl_.fast_init_discover_device_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
ABSL_DCHECK(from._impl_.send_desktop_notification_ != nullptr);
if (_this->_impl_.send_desktop_notification_ == nullptr) {
_this->_impl_.send_desktop_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_notification_);
} else {
_this->_impl_.send_desktop_notification_->MergeFrom(*from._impl_.send_desktop_notification_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
ABSL_DCHECK(from._impl_.send_desktop_transfer_event_ != nullptr);
if (_this->_impl_.send_desktop_transfer_event_ == nullptr) {
_this->_impl_.send_desktop_transfer_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_transfer_event_);
} else {
_this->_impl_.send_desktop_transfer_event_->MergeFrom(*from._impl_.send_desktop_transfer_event_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
ABSL_DCHECK(from._impl_.set_account_ != nullptr);
if (_this->_impl_.set_account_ == nullptr) {
_this->_impl_.set_account_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_account_);
} else {
_this->_impl_.set_account_->MergeFrom(*from._impl_.set_account_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
ABSL_DCHECK(from._impl_.decrypt_certificate_failure_ != nullptr);
if (_this->_impl_.decrypt_certificate_failure_ == nullptr) {
_this->_impl_.decrypt_certificate_failure_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decrypt_certificate_failure_);
} else {
_this->_impl_.decrypt_certificate_failure_->MergeFrom(*from._impl_.decrypt_certificate_failure_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
ABSL_DCHECK(from._impl_.show_allow_permission_auto_access_ != nullptr);
if (_this->_impl_.show_allow_permission_auto_access_ == nullptr) {
_this->_impl_.show_allow_permission_auto_access_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_allow_permission_auto_access_);
} else {
_this->_impl_.show_allow_permission_auto_access_->MergeFrom(*from._impl_.show_allow_permission_auto_access_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
ABSL_DCHECK(from._impl_.show_waiting_for_accept_ != nullptr);
if (_this->_impl_.show_waiting_for_accept_ == nullptr) {
_this->_impl_.show_waiting_for_accept_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_waiting_for_accept_);
} else {
_this->_impl_.show_waiting_for_accept_->MergeFrom(*from._impl_.show_waiting_for_accept_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
ABSL_DCHECK(from._impl_.high_quality_medium_setup_ != nullptr);
if (_this->_impl_.high_quality_medium_setup_ == nullptr) {
_this->_impl_.high_quality_medium_setup_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.high_quality_medium_setup_);
} else {
_this->_impl_.high_quality_medium_setup_->MergeFrom(*from._impl_.high_quality_medium_setup_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
ABSL_DCHECK(from._impl_.rpc_call_status_ != nullptr);
if (_this->_impl_.rpc_call_status_ == nullptr) {
_this->_impl_.rpc_call_status_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rpc_call_status_);
} else {
_this->_impl_.rpc_call_status_->MergeFrom(*from._impl_.rpc_call_status_);
}
}
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
ABSL_DCHECK(from._impl_.start_qr_code_session_ != nullptr);
if (_this->_impl_.start_qr_code_session_ == nullptr) {
_this->_impl_.start_qr_code_session_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.start_qr_code_session_);
} else {
_this->_impl_.start_qr_code_session_->MergeFrom(*from._impl_.start_qr_code_session_);
}
}
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
ABSL_DCHECK(from._impl_.qr_code_opened_in_web_client_ != nullptr);
if (_this->_impl_.qr_code_opened_in_web_client_ == nullptr) {
_this->_impl_.qr_code_opened_in_web_client_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_opened_in_web_client_);
} else {
_this->_impl_.qr_code_opened_in_web_client_->MergeFrom(*from._impl_.qr_code_opened_in_web_client_);
}
}
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
ABSL_DCHECK(from._impl_.hats_joint_event_ != nullptr);
if (_this->_impl_.hats_joint_event_ == nullptr) {
_this->_impl_.hats_joint_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.hats_joint_event_);
} else {
_this->_impl_.hats_joint_event_->MergeFrom(*from._impl_.hats_joint_event_);
}
}
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
ABSL_DCHECK(from._impl_.receive_previews_ != nullptr);
if (_this->_impl_.receive_previews_ == nullptr) {
_this->_impl_.receive_previews_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_previews_);
} else {
_this->_impl_.receive_previews_->MergeFrom(*from._impl_.receive_previews_);
}
}
}
if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
ABSL_DCHECK(from._impl_.cloud_create_sharing_request_ != nullptr);
if (_this->_impl_.cloud_create_sharing_request_ == nullptr) {
_this->_impl_.cloud_create_sharing_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_create_sharing_request_);
} else {
_this->_impl_.cloud_create_sharing_request_->MergeFrom(*from._impl_.cloud_create_sharing_request_);
}
}
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
ABSL_DCHECK(from._impl_.cloud_register_receiver_ != nullptr);
if (_this->_impl_.cloud_register_receiver_ == nullptr) {
_this->_impl_.cloud_register_receiver_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_register_receiver_);
} else {
_this->_impl_.cloud_register_receiver_->MergeFrom(*from._impl_.cloud_register_receiver_);
}
}
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
ABSL_DCHECK(from._impl_.cloud_upload_start_ != nullptr);
if (_this->_impl_.cloud_upload_start_ == nullptr) {
_this->_impl_.cloud_upload_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_start_);
} else {
_this->_impl_.cloud_upload_start_->MergeFrom(*from._impl_.cloud_upload_start_);
}
}
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
ABSL_DCHECK(from._impl_.cloud_upload_end_ != nullptr);
if (_this->_impl_.cloud_upload_end_ == nullptr) {
_this->_impl_.cloud_upload_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_end_);
} else {
_this->_impl_.cloud_upload_end_->MergeFrom(*from._impl_.cloud_upload_end_);
}
}
if (CheckHasBit(cached_has_bits, 0x00100000U)) {
ABSL_DCHECK(from._impl_.cloud_download_start_ != nullptr);
if (_this->_impl_.cloud_download_start_ == nullptr) {
_this->_impl_.cloud_download_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_start_);
} else {
_this->_impl_.cloud_download_start_->MergeFrom(*from._impl_.cloud_download_start_);
}
}
if (CheckHasBit(cached_has_bits, 0x00200000U)) {
ABSL_DCHECK(from._impl_.cloud_download_end_ != nullptr);
if (_this->_impl_.cloud_download_end_ == nullptr) {
_this->_impl_.cloud_download_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_end_);
} else {
_this->_impl_.cloud_download_end_->MergeFrom(*from._impl_.cloud_download_end_);
}
}
if (CheckHasBit(cached_has_bits, 0x00400000U)) {
ABSL_DCHECK(from._impl_.cloud_sharing_rpc_result_ != nullptr);
if (_this->_impl_.cloud_sharing_rpc_result_ == nullptr) {
_this->_impl_.cloud_sharing_rpc_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_sharing_rpc_result_);
} else {
_this->_impl_.cloud_sharing_rpc_result_->MergeFrom(*from._impl_.cloud_sharing_rpc_result_);
}
}
if (CheckHasBit(cached_has_bits, 0x00800000U)) {
_this->_impl_.event_category_ = from._impl_.event_category_;
}
}
_this->_impl_._has_bits_.Or(from._impl_._has_bits_);
_this->_internal_metadata_.MergeFrom<::std::string>(
from._internal_metadata_);
}
void SharingLog::CopyFrom(const SharingLog& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SharingLog::InternalSwap(SharingLog* 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]);
swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]);
swap(_impl_._has_bits_[2], other->_impl_._has_bits_[2]);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.log_source_)
+ sizeof(SharingLog::_impl_.log_source_)
- PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.unknown_event_)>(
reinterpret_cast<char*>(&_impl_.unknown_event_),
reinterpret_cast<char*>(&other->_impl_.unknown_event_));
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.files_migration_phase_, &other->_impl_.files_migration_phase_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.app_version_, &other->_impl_.app_version_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_category_)
+ sizeof(SharingLog::_impl_.event_category_)
- PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.dismiss_fast_initialization_)>(
reinterpret_cast<char*>(&_impl_.dismiss_fast_initialization_),
reinterpret_cast<char*>(&other->_impl_.dismiss_fast_initialization_));
}
// @@protoc_insertion_point(namespace_scope)
} // namespace proto
} // namespace analytics
} // namespace sharing
} // namespace nearby
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"