mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
11071 lines
526 KiB
C++
11071 lines
526 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// NO CHECKED-IN PROTOBUF GENCODE
|
|
// source: internal/proto/analytics/connections_log.proto
|
|
// Protobuf C++ Version: 6.33.3
|
|
|
|
#include "internal/proto/analytics/connections_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 location {
|
|
namespace nearby {
|
|
namespace analytics {
|
|
namespace proto {
|
|
|
|
inline constexpr ConnectionsLog_RawUwbRangingEvent::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
distance_{0},
|
|
azimuth_angle_{0},
|
|
polar_angle_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_RawUwbRangingEvent::ConnectionsLog_RawUwbRangingEvent(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_RawUwbRangingEvent_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_RawUwbRangingEventDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_RawUwbRangingEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_RawUwbRangingEventDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_RawUwbRangingEvent _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_RawUwbRangingEventDefaultTypeInternal _ConnectionsLog_RawUwbRangingEvent_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_OperationResultWithMedium::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)},
|
|
update_index_{0},
|
|
result_category_{static_cast< ::location::nearby::proto::connections::OperationResultCategory >(0)},
|
|
result_code_{static_cast< ::location::nearby::proto::connections::OperationResultCode >(0)},
|
|
connection_mode_{static_cast< ::location::nearby::proto::connections::ConnectionMode >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_OperationResultWithMedium::ConnectionsLog_OperationResultWithMedium(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_OperationResultWithMedium_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_OperationResultWithMediumDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_OperationResultWithMediumDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_OperationResultWithMediumDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_OperationResultWithMedium _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_OperationResultWithMediumDefaultTypeInternal _ConnectionsLog_OperationResultWithMedium_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_OperationResult::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
result_category_{static_cast< ::location::nearby::proto::connections::OperationResultCategory >(0)},
|
|
result_code_{static_cast< ::location::nearby::proto::connections::OperationResultCode >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_OperationResult::ConnectionsLog_OperationResult(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_OperationResult_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_OperationResultDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_OperationResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_OperationResultDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_OperationResult _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_OperationResultDefaultTypeInternal _ConnectionsLog_OperationResult_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_ErrorCode::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
service_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
connection_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
direction_{static_cast< ::location::nearby::proto::connections::ConnectionAttemptDirection >(0)},
|
|
medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)},
|
|
event_{static_cast< ::location::nearby::errorcode::proto::Event >(0)},
|
|
description_{static_cast< ::location::nearby::errorcode::proto::Description >(0)},
|
|
flow_id_{::int64_t{0}},
|
|
ErrorCodeDetail_{},
|
|
_oneof_case_{} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ErrorCode::ConnectionsLog_ErrorCode(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_ErrorCode_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_ErrorCodeDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ErrorCodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_ErrorCodeDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_ErrorCode _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_ErrorCodeDefaultTypeInternal _ConnectionsLog_ErrorCode_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_DiscoveryMetadata::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
connected_ap_frequency_{0},
|
|
supports_extended_ble_advertisements_{false},
|
|
supports_nfc_technology_{false},
|
|
power_level_{static_cast< ::location::nearby::proto::connections::PowerLevel >(-1)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_DiscoveryMetadata_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_DiscoveryMetadataDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_DiscoveryMetadataDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_DiscoveryMetadata _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DiscoveryMetadataDefaultTypeInternal _ConnectionsLog_DiscoveryMetadata_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_DiscoveredEndpoint::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
latency_millis_{::int64_t{0}},
|
|
medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveredEndpoint::ConnectionsLog_DiscoveredEndpoint(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_DiscoveredEndpoint_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_DiscoveredEndpointDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveredEndpointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_DiscoveredEndpointDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_DiscoveredEndpoint _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DiscoveredEndpointDefaultTypeInternal _ConnectionsLog_DiscoveredEndpoint_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_DisconnectionReasonDetail::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
is_local_disconnection_{false},
|
|
disconnection_reason_{static_cast< ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DisconnectionReasonDetail::ConnectionsLog_DisconnectionReasonDetail(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_DisconnectionReasonDetail_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_DisconnectionReasonDetail _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal _ConnectionsLog_DisconnectionReasonDetail_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_DeviceInfo::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
device_model_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
country_code_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
manufacturer_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
device_platform_{static_cast< ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DeviceInfo::ConnectionsLog_DeviceInfo(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_DeviceInfo_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_DeviceInfoDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DeviceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_DeviceInfoDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_DeviceInfo _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DeviceInfoDefaultTypeInternal _ConnectionsLog_DeviceInfo_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_DctPayloadTransferStats::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
type_{static_cast< ::location::nearby::proto::connections::DctPayloadType >(0)},
|
|
num_parts_success_{0},
|
|
is_multipart_{false},
|
|
is_resumption_{false},
|
|
num_parts_failure_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DctPayloadTransferStats::ConnectionsLog_DctPayloadTransferStats(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_DctPayloadTransferStats_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_DctPayloadTransferStats _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal _ConnectionsLog_DctPayloadTransferStats_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_ConnectionRequest::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
duration_millis_{::int64_t{0}},
|
|
request_delay_millis_{::int64_t{0}},
|
|
local_response_{static_cast< ::location::nearby::proto::connections::ConnectionRequestResponse >(0)},
|
|
remote_response_{static_cast< ::location::nearby::proto::connections::ConnectionRequestResponse >(0)},
|
|
client_flow_id_{::int64_t{0}} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionRequest::ConnectionsLog_ConnectionRequest(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_ConnectionRequest_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_ConnectionRequestDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_ConnectionRequestDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_ConnectionRequest _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_ConnectionRequestDefaultTypeInternal _ConnectionsLog_ConnectionRequest_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_ConnectionAttemptMetadata::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
network_operator_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
country_code_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
technology_{static_cast< ::location::nearby::proto::connections::ConnectionTechnology >(0)},
|
|
band_{static_cast< ::location::nearby::proto::connections::ConnectionBand >(0)},
|
|
frequency_{0},
|
|
try_counts_{0},
|
|
max_tx_speed_{0},
|
|
is_tdls_used_{false},
|
|
wifi_hotspot_status_{false},
|
|
is_mcc_mode_{false},
|
|
max_rx_speed_{0},
|
|
wifi_channel_width_{0},
|
|
send_buffer_size_{0},
|
|
receive_buffer_size_{0},
|
|
connected_ap_frequency_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_ConnectionAttemptMetadata_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_ConnectionAttemptMetadata _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal _ConnectionsLog_ConnectionAttemptMetadata_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_AdvertisingMetadata::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
connected_ap_frequency_{0},
|
|
supports_extended_ble_advertisements_{false},
|
|
supports_nfc_technology_{false},
|
|
multiple_advertisement_supported_{false},
|
|
supports_dual_band_{false},
|
|
supports_wifi_aware_{false},
|
|
endpoint_info_size_{0},
|
|
power_level_{static_cast< ::location::nearby::proto::connections::PowerLevel >(-1)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_AdvertisingMetadata_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_AdvertisingMetadataDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_AdvertisingMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_AdvertisingMetadataDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_AdvertisingMetadata _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_AdvertisingMetadataDefaultTypeInternal _ConnectionsLog_AdvertisingMetadata_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_UwbRangingProcess::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
uwb_ranging_data_{},
|
|
duration_millis_{::int64_t{0}},
|
|
number_of_ranging_data_{0},
|
|
distance_min_{0},
|
|
distance_max_{0},
|
|
distance_ave_{0},
|
|
distance_variance_{0},
|
|
azimuth_min_{0},
|
|
azimuth_max_{0},
|
|
azimuth_ave_{0},
|
|
azimuth_variance_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_UwbRangingProcess::ConnectionsLog_UwbRangingProcess(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_UwbRangingProcess_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_UwbRangingProcessDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_UwbRangingProcessDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_UwbRangingProcessDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_UwbRangingProcess _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_UwbRangingProcessDefaultTypeInternal _ConnectionsLog_UwbRangingProcess_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_Payload::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
operation_result_{nullptr},
|
|
dct_payload_transfer_stats_{nullptr},
|
|
duration_millis_{::int64_t{0}},
|
|
total_size_bytes_{::int64_t{0}},
|
|
type_{static_cast< ::location::nearby::proto::connections::PayloadType >(0)},
|
|
num_chunks_{0},
|
|
num_bytes_transferred_{::int64_t{0}},
|
|
status_{static_cast< ::location::nearby::proto::connections::PayloadStatus >(0)},
|
|
num_successful_auto_resume_{0},
|
|
num_failed_auto_resume_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_Payload::ConnectionsLog_Payload(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_Payload_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_PayloadDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_PayloadDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_PayloadDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_Payload _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_PayloadDefaultTypeInternal _ConnectionsLog_Payload_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_ConnectionAttempt::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
connection_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
connection_attempt_metadata_{nullptr},
|
|
operation_result_{nullptr},
|
|
duration_millis_{::int64_t{0}},
|
|
type_{static_cast< ::location::nearby::proto::connections::ConnectionAttemptType >(0)},
|
|
direction_{static_cast< ::location::nearby::proto::connections::ConnectionAttemptDirection >(0)},
|
|
medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)},
|
|
attempt_result_{static_cast< ::location::nearby::proto::connections::ConnectionAttemptResult >(0)},
|
|
client_flow_id_{::int64_t{0}},
|
|
connection_mode_{static_cast< ::location::nearby::proto::connections::ConnectionMode >(0)},
|
|
device_type_{static_cast< ::location::nearby::proto::connections::DeviceType >(0)},
|
|
wifi_connection_latency_millis_{::int64_t{0}},
|
|
device_attestation_latency_millis_{::int64_t{0}},
|
|
supported_service_{static_cast< ::location::nearby::proto::connections::SupportedService >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_ConnectionAttempt_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_ConnectionAttemptDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttemptDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_ConnectionAttemptDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_ConnectionAttempt _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_ConnectionAttemptDefaultTypeInternal _ConnectionsLog_ConnectionAttempt_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_BandwidthUpgradeAttempt::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
connection_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
operation_result_{nullptr},
|
|
duration_millis_{::int64_t{0}},
|
|
direction_{static_cast< ::location::nearby::proto::connections::ConnectionAttemptDirection >(0)},
|
|
from_medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)},
|
|
to_medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)},
|
|
upgrade_result_{static_cast< ::location::nearby::proto::connections::BandwidthUpgradeResult >(0)},
|
|
client_flow_id_{::int64_t{0}},
|
|
error_stage_{static_cast< ::location::nearby::proto::connections::BandwidthUpgradeErrorStage >(0)},
|
|
device_type_{static_cast< ::location::nearby::proto::connections::DeviceType >(0)},
|
|
supported_service_{static_cast< ::location::nearby::proto::connections::SupportedService >(0)},
|
|
num_interfaces_{0},
|
|
num_ipv6_only_interfaces_{0} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_BandwidthUpgradeAttempt_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_BandwidthUpgradeAttempt _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal _ConnectionsLog_BandwidthUpgradeAttempt_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_AdvertisingPhase::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
medium_{},
|
|
received_connection_request_{},
|
|
adv_dis_result_{},
|
|
advertising_metadata_{nullptr},
|
|
duration_millis_{::int64_t{0}},
|
|
client_flow_id_{::int64_t{0}},
|
|
stop_reason_{static_cast< ::location::nearby::proto::connections::StopAdvertisingReason >(0)},
|
|
device_type_{static_cast< ::location::nearby::proto::connections::DeviceType >(0)},
|
|
supported_service_{static_cast< ::location::nearby::proto::connections::SupportedService >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_AdvertisingPhase_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_AdvertisingPhaseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_AdvertisingPhaseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_AdvertisingPhaseDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_AdvertisingPhase _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_AdvertisingPhaseDefaultTypeInternal _ConnectionsLog_AdvertisingPhase_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_EstablishedConnection::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
sent_payload_{},
|
|
received_payload_{},
|
|
connection_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
operation_result_{nullptr},
|
|
remote_device_info_{nullptr},
|
|
disconnection_reason_detail_{nullptr},
|
|
duration_millis_{::int64_t{0}},
|
|
medium_{static_cast< ::location::nearby::proto::connections::Medium >(0)},
|
|
disconnection_reason_{static_cast< ::location::nearby::proto::connections::DisconnectionReason >(0)},
|
|
client_flow_id_{::int64_t{0}},
|
|
type_{static_cast< ::location::nearby::proto::connections::ConnectionAttemptType >(0)},
|
|
safe_disconnection_result_{static_cast< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult >(0)},
|
|
device_type_{static_cast< ::location::nearby::proto::connections::DeviceType >(0)},
|
|
supported_service_{static_cast< ::location::nearby::proto::connections::SupportedService >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_EstablishedConnection_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_EstablishedConnectionDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_EstablishedConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_EstablishedConnectionDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_EstablishedConnection _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_EstablishedConnectionDefaultTypeInternal _ConnectionsLog_EstablishedConnection_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_DiscoveryPhase::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
medium_{},
|
|
discovered_endpoint_{},
|
|
sent_connection_request_{},
|
|
uwb_ranging_{},
|
|
adv_dis_result_{},
|
|
discovery_metadata_{nullptr},
|
|
duration_millis_{::int64_t{0}},
|
|
client_flow_id_{::int64_t{0}},
|
|
stop_reason_{static_cast< ::location::nearby::proto::connections::StopDiscoveringReason >(0)},
|
|
device_type_{static_cast< ::location::nearby::proto::connections::DeviceType >(0)},
|
|
supported_service_{static_cast< ::location::nearby::proto::connections::SupportedService >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_DiscoveryPhase_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_DiscoveryPhaseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryPhaseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_DiscoveryPhaseDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_DiscoveryPhase _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DiscoveryPhaseDefaultTypeInternal _ConnectionsLog_DiscoveryPhase_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_StrategySession::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
role_{},
|
|
discovery_phase_{},
|
|
advertising_phase_{},
|
|
connection_attempt_{},
|
|
established_connection_{},
|
|
upgrade_attempt_{},
|
|
build_version_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
duration_millis_{::int64_t{0}},
|
|
strategy_{static_cast< ::location::nearby::proto::connections::ConnectionsStrategy >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_StrategySession::ConnectionsLog_StrategySession(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_StrategySession_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_StrategySessionDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_StrategySessionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_StrategySessionDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_StrategySession _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_StrategySessionDefaultTypeInternal _ConnectionsLog_StrategySession_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog_ClientSession::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
strategy_session_{},
|
|
connection_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
duration_millis_{::int64_t{0}},
|
|
client_flow_id_{::int64_t{0}} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ClientSession::ConnectionsLog_ClientSession(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_ClientSession_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLog_ClientSessionDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLog_ClientSessionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLog_ClientSessionDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog_ClientSession _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_ClientSessionDefaultTypeInternal _ConnectionsLog_ClientSession_default_instance_;
|
|
|
|
inline constexpr ConnectionsLog::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
version_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
files_migration_phase_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
client_session_{nullptr},
|
|
error_code_{nullptr},
|
|
event_type_{static_cast< ::location::nearby::proto::connections::EventType >(0)},
|
|
log_source_{static_cast< ::location::nearby::proto::connections::LogSource >(0)} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ConnectionsLog::ConnectionsLog(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(ConnectionsLog_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct ConnectionsLogDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ConnectionsLogDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ConnectionsLogDefaultTypeInternal() {}
|
|
union {
|
|
ConnectionsLog _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLogDefaultTypeInternal _ConnectionsLog_default_instance_;
|
|
} // namespace proto
|
|
} // namespace analytics
|
|
} // namespace nearby
|
|
} // namespace location
|
|
namespace location {
|
|
namespace nearby {
|
|
namespace analytics {
|
|
namespace proto {
|
|
PROTOBUF_CONSTINIT const uint32_t ConnectionsLog_DeviceInfo_Platform_internal_data_[] = {
|
|
327680u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ConnectionsLog_DeviceInfo_Platform_strings[5] = {};
|
|
|
|
static const char ConnectionsLog_DeviceInfo_Platform_names[] = {
|
|
"ANDROID"
|
|
"CROS"
|
|
"IOS"
|
|
"UNKNOWN"
|
|
"WINDOWS"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ConnectionsLog_DeviceInfo_Platform_entries[] = {
|
|
{{&ConnectionsLog_DeviceInfo_Platform_names[0], 7}, 1},
|
|
{{&ConnectionsLog_DeviceInfo_Platform_names[7], 4}, 3},
|
|
{{&ConnectionsLog_DeviceInfo_Platform_names[11], 3}, 2},
|
|
{{&ConnectionsLog_DeviceInfo_Platform_names[14], 7}, 0},
|
|
{{&ConnectionsLog_DeviceInfo_Platform_names[21], 7}, 4},
|
|
};
|
|
|
|
static const int ConnectionsLog_DeviceInfo_Platform_entries_by_number[] = {
|
|
3, // 0 -> UNKNOWN
|
|
0, // 1 -> ANDROID
|
|
2, // 2 -> IOS
|
|
1, // 3 -> CROS
|
|
4, // 4 -> WINDOWS
|
|
};
|
|
|
|
const ::std::string& ConnectionsLog_DeviceInfo_Platform_Name(ConnectionsLog_DeviceInfo_Platform value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ConnectionsLog_DeviceInfo_Platform_entries, ConnectionsLog_DeviceInfo_Platform_entries_by_number, 5,
|
|
ConnectionsLog_DeviceInfo_Platform_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionsLog_DeviceInfo_Platform_entries,
|
|
ConnectionsLog_DeviceInfo_Platform_entries_by_number,
|
|
5, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionsLog_DeviceInfo_Platform_strings[idx].get();
|
|
}
|
|
|
|
bool ConnectionsLog_DeviceInfo_Platform_Parse(::absl::string_view name, ConnectionsLog_DeviceInfo_Platform* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ConnectionsLog_DeviceInfo_Platform_entries, 5, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ConnectionsLog_DeviceInfo_Platform>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_internal_data_[] = {
|
|
1179648u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_strings[18] = {};
|
|
|
|
static const char ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[] = {
|
|
"DCT_ERROR_CAPABILITY_MISMATCH"
|
|
"DCT_ERROR_CONTROL_MESSAGE_EXCHANGE"
|
|
"DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE"
|
|
"DCT_ERROR_MDNS_DISCOVERY_TIMEOUT"
|
|
"DCT_ERROR_MDNS_REGISTER_SERVICE"
|
|
"DCT_ERROR_REQUEST_FAILED"
|
|
"DCT_ERROR_RESPONSE_FAILED"
|
|
"DCT_ERROR_SERVICE_CANCELLED"
|
|
"DCT_ERROR_SUBSEQUENT_TLS_SPAKE"
|
|
"DCT_ERROR_UNVERIFIED_INTEGRITY"
|
|
"DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED"
|
|
"DCT_ERROR_USER_CANCELLED"
|
|
"DCT_ERROR_WIFI_CREDENTIAL_TRANSFER"
|
|
"DCT_ERROR_WIFI_DISABLED"
|
|
"DCT_ERROR_WIFI_DISCONNECTED"
|
|
"DCT_ERROR_WIFI_INTERNET_CONNECTION"
|
|
"SESSION_SUCCESS"
|
|
"UNKNOWN_DISCONNECTION_REASON"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries[] = {
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[0], 29}, 7},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[29], 34}, 6},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[63], 39}, 8},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[102], 32}, 1},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[134], 31}, 2},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[165], 24}, 4},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[189], 25}, 5},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[214], 27}, 15},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[241], 30}, 3},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[271], 30}, 16},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[301], 42}, 13},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[343], 24}, 14},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[367], 34}, 11},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[401], 23}, 9},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[424], 27}, 10},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[451], 34}, 12},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[485], 15}, 17},
|
|
{{&ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_names[500], 28}, 0},
|
|
};
|
|
|
|
static const int ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries_by_number[] = {
|
|
17, // 0 -> UNKNOWN_DISCONNECTION_REASON
|
|
3, // 1 -> DCT_ERROR_MDNS_DISCOVERY_TIMEOUT
|
|
4, // 2 -> DCT_ERROR_MDNS_REGISTER_SERVICE
|
|
8, // 3 -> DCT_ERROR_SUBSEQUENT_TLS_SPAKE
|
|
5, // 4 -> DCT_ERROR_REQUEST_FAILED
|
|
6, // 5 -> DCT_ERROR_RESPONSE_FAILED
|
|
1, // 6 -> DCT_ERROR_CONTROL_MESSAGE_EXCHANGE
|
|
0, // 7 -> DCT_ERROR_CAPABILITY_MISMATCH
|
|
2, // 8 -> DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE
|
|
13, // 9 -> DCT_ERROR_WIFI_DISABLED
|
|
14, // 10 -> DCT_ERROR_WIFI_DISCONNECTED
|
|
12, // 11 -> DCT_ERROR_WIFI_CREDENTIAL_TRANSFER
|
|
15, // 12 -> DCT_ERROR_WIFI_INTERNET_CONNECTION
|
|
10, // 13 -> DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED
|
|
11, // 14 -> DCT_ERROR_USER_CANCELLED
|
|
7, // 15 -> DCT_ERROR_SERVICE_CANCELLED
|
|
9, // 16 -> DCT_ERROR_UNVERIFIED_INTEGRITY
|
|
16, // 17 -> SESSION_SUCCESS
|
|
};
|
|
|
|
const ::std::string& ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries_by_number, 18,
|
|
ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries,
|
|
ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries_by_number,
|
|
18, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_strings[idx].get();
|
|
}
|
|
|
|
bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse(::absl::string_view name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries, 18, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_internal_data_[] = {
|
|
196608u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings[3] = {};
|
|
|
|
static const char ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[] = {
|
|
"SAFE_DISCONNECTION"
|
|
"UNKNOWN_SAFE_DISCONNECTION_RESULT"
|
|
"UNSAFE_DISCONNECTION"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries[] = {
|
|
{{&ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[0], 18}, 1},
|
|
{{&ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[18], 33}, 0},
|
|
{{&ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[51], 20}, 2},
|
|
};
|
|
|
|
static const int ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number[] = {
|
|
1, // 0 -> UNKNOWN_SAFE_DISCONNECTION_RESULT
|
|
0, // 1 -> SAFE_DISCONNECTION
|
|
2, // 2 -> UNSAFE_DISCONNECTION
|
|
};
|
|
|
|
const ::std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number, 3,
|
|
ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries,
|
|
ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number,
|
|
3, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings[idx].get();
|
|
}
|
|
|
|
bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse(::absl::string_view name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, 3, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ConnectionsLog_EstablishedConnection_SafeDisconnectionResult>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_ClientSession::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_ClientSession>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_ClientSession::ConnectionsLog_ClientSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ClientSession_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ClientSession::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
strategy_session_{visibility, arena, from.strategy_session_},
|
|
connection_token_(arena, from.connection_token_) {}
|
|
|
|
ConnectionsLog_ClientSession::ConnectionsLog_ClientSession(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_ClientSession& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ClientSession_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_ClientSession* 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_, client_flow_id_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::client_flow_id_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ClientSession::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
strategy_session_{visibility, arena},
|
|
connection_token_(arena) {}
|
|
|
|
inline void ConnectionsLog_ClientSession::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
0,
|
|
offsetof(Impl_, client_flow_id_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::client_flow_id_));
|
|
}
|
|
ConnectionsLog_ClientSession::~ConnectionsLog_ClientSession() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_ClientSession::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_ClientSession& this_ = static_cast<ConnectionsLog_ClientSession&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.connection_token_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_ClientSession::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_ClientSession(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_ClientSession::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.strategy_session_) +
|
|
decltype(ConnectionsLog_ClientSession::_impl_.strategy_session_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(
|
|
sizeof(ConnectionsLog_ClientSession), alignof(ConnectionsLog_ClientSession), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&ConnectionsLog_ClientSession::PlacementNew_,
|
|
sizeof(ConnectionsLog_ClientSession),
|
|
alignof(ConnectionsLog_ClientSession));
|
|
}
|
|
}
|
|
constexpr auto ConnectionsLog_ClientSession::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<61>{
|
|
{
|
|
&_ConnectionsLog_ClientSession_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_ClientSession::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_ClientSession>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_ClientSession::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_ClientSession>(), &ConnectionsLog_ClientSession::ByteSizeLong,
|
|
&ConnectionsLog_ClientSession::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.ClientSession",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<61> ConnectionsLog_ClientSession_class_data_ =
|
|
ConnectionsLog_ClientSession::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_ClientSession::GetClassData() const {
|
|
return ConnectionsLog_ClientSession_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
|
|
ConnectionsLog_ClientSession::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _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),
|
|
ConnectionsLog_ClientSession_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ClientSession>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string connection_token = 4;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{34, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.connection_token_)}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.duration_millis_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{18, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.strategy_session_)}},
|
|
// optional int64 client_flow_id = 3;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{24, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.client_flow_id_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.strategy_session_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional int64 client_flow_id = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional string connection_token = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.connection_token_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>()},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_ClientSession::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
::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_.strategy_session_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.connection_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.client_flow_id_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ClientSession::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_ClientSession& this_ = static_cast<const ConnectionsLog_ClientSession&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ClientSession::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_ClientSession& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_strategy_session_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_strategy_session().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
2, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional int64 client_flow_id = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
|
|
stream, this_._internal_client_flow_id(), target);
|
|
}
|
|
|
|
// optional string connection_token = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_connection_token();
|
|
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:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_ClientSession::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_ClientSession& this_ = static_cast<const ConnectionsLog_ClientSession&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_ClientSession::ByteSizeLong() const {
|
|
const ConnectionsLog_ClientSession& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
::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)) {
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_strategy_session_size();
|
|
for (const auto& msg : this_._internal_strategy_session()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional string connection_token = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_connection_token());
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional int64 client_flow_id = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_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 ConnectionsLog_ClientSession::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_ClientSession*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_ClientSession&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_strategy_session()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_strategy_session());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_connection_token(from._internal_connection_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_ClientSession::CopyFrom(const ConnectionsLog_ClientSession& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_ClientSession::InternalSwap(ConnectionsLog_ClientSession* 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_.strategy_session_.InternalSwap(&other->_impl_.strategy_session_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connection_token_, &other->_impl_.connection_token_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.client_flow_id_)
|
|
+ sizeof(ConnectionsLog_ClientSession::_impl_.client_flow_id_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_.duration_millis_)>(
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_),
|
|
reinterpret_cast<char*>(&other->_impl_.duration_millis_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_OperationResult::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_OperationResult>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_OperationResult::ConnectionsLog_OperationResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_OperationResult_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
}
|
|
ConnectionsLog_OperationResult::ConnectionsLog_OperationResult(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_OperationResult& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_OperationResult_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 ConnectionsLog_OperationResult::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_OperationResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, result_category_),
|
|
0,
|
|
offsetof(Impl_, result_code_) -
|
|
offsetof(Impl_, result_category_) +
|
|
sizeof(Impl_::result_code_));
|
|
}
|
|
ConnectionsLog_OperationResult::~ConnectionsLog_OperationResult() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_OperationResult::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_OperationResult& this_ = static_cast<ConnectionsLog_OperationResult&>(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 ConnectionsLog_OperationResult::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_OperationResult(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_OperationResult::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_OperationResult),
|
|
alignof(ConnectionsLog_OperationResult));
|
|
}
|
|
constexpr auto ConnectionsLog_OperationResult::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<63>{
|
|
{
|
|
&_ConnectionsLog_OperationResult_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_OperationResult::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_OperationResult>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_OperationResult::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_OperationResult>(), &ConnectionsLog_OperationResult::ByteSizeLong,
|
|
&ConnectionsLog_OperationResult::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.OperationResult",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_OperationResult_class_data_ =
|
|
ConnectionsLog_OperationResult::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_OperationResult::GetClassData() const {
|
|
return ConnectionsLog_OperationResult_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
|
|
ConnectionsLog_OperationResult::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _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),
|
|
ConnectionsLog_OperationResult_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 2;
|
|
{::_pbi::TcParser::FastEvS1,
|
|
{16, 1, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_.result_code_)}},
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 0, 10,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_.result_category_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_.result_category_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_.result_code_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
|
|
}},
|
|
{{
|
|
{0, 10},
|
|
{::_pbi::FieldAuxEnumData{}, ::location::nearby::proto::connections::OperationResultCode_internal_data_},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_OperationResult::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
::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_.result_category_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.result_code_) -
|
|
reinterpret_cast<char*>(&_impl_.result_category_)) + sizeof(_impl_.result_code_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_OperationResult::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_OperationResult& this_ = static_cast<const ConnectionsLog_OperationResult&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_OperationResult::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_OperationResult& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_result_category(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_result_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:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_OperationResult::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_OperationResult& this_ = static_cast<const ConnectionsLog_OperationResult&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_OperationResult::ByteSizeLong() const {
|
|
const ConnectionsLog_OperationResult& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
::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.connections.OperationResultCategory result_category = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_result_category());
|
|
}
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_result_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 ConnectionsLog_OperationResult::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_OperationResult*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_OperationResult&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
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_.result_category_ = from._impl_.result_category_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.result_code_ = from._impl_.result_code_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_OperationResult::CopyFrom(const ConnectionsLog_OperationResult& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_OperationResult::InternalSwap(ConnectionsLog_OperationResult* 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(ConnectionsLog_OperationResult, _impl_.result_code_)
|
|
+ sizeof(ConnectionsLog_OperationResult::_impl_.result_code_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_.result_category_)>(
|
|
reinterpret_cast<char*>(&_impl_.result_category_),
|
|
reinterpret_cast<char*>(&other->_impl_.result_category_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_OperationResultWithMedium::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_OperationResultWithMedium>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_OperationResultWithMedium::ConnectionsLog_OperationResultWithMedium(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_OperationResultWithMedium_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
}
|
|
ConnectionsLog_OperationResultWithMedium::ConnectionsLog_OperationResultWithMedium(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_OperationResultWithMedium& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_OperationResultWithMedium_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 ConnectionsLog_OperationResultWithMedium::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_OperationResultWithMedium::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, medium_),
|
|
0,
|
|
offsetof(Impl_, connection_mode_) -
|
|
offsetof(Impl_, medium_) +
|
|
sizeof(Impl_::connection_mode_));
|
|
}
|
|
ConnectionsLog_OperationResultWithMedium::~ConnectionsLog_OperationResultWithMedium() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_OperationResultWithMedium::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_OperationResultWithMedium& this_ = static_cast<ConnectionsLog_OperationResultWithMedium&>(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 ConnectionsLog_OperationResultWithMedium::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_OperationResultWithMedium(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_OperationResultWithMedium::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_OperationResultWithMedium),
|
|
alignof(ConnectionsLog_OperationResultWithMedium));
|
|
}
|
|
constexpr auto ConnectionsLog_OperationResultWithMedium::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<73>{
|
|
{
|
|
&_ConnectionsLog_OperationResultWithMedium_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_OperationResultWithMedium::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_OperationResultWithMedium>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_OperationResultWithMedium::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_OperationResultWithMedium>(), &ConnectionsLog_OperationResultWithMedium::ByteSizeLong,
|
|
&ConnectionsLog_OperationResultWithMedium::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_OperationResultWithMedium_class_data_ =
|
|
ConnectionsLog_OperationResultWithMedium::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_OperationResultWithMedium::GetClassData() const {
|
|
return ConnectionsLog_OperationResultWithMedium_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 5, 4, 0, 2>
|
|
ConnectionsLog_OperationResultWithMedium::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _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
|
|
4, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_OperationResultWithMedium_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 0, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.medium_)}},
|
|
// optional int32 update_index = 2;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{16, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.update_index_)}},
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 3;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{24, 2, 10,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.result_category_)}},
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 4;
|
|
{::_pbi::TcParser::FastEvS1,
|
|
{32, 3, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.result_code_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{40, 4, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.connection_mode_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.medium_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int32 update_index = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.update_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.result_category_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.result_code_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.connection_mode_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{0, 13},
|
|
{0, 10},
|
|
{::_pbi::FieldAuxEnumData{}, ::location::nearby::proto::connections::OperationResultCode_internal_data_},
|
|
{0, 1},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_OperationResultWithMedium::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
::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_.medium_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.connection_mode_) -
|
|
reinterpret_cast<char*>(&_impl_.medium_)) + sizeof(_impl_.connection_mode_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_OperationResultWithMedium::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_OperationResultWithMedium& this_ = static_cast<const ConnectionsLog_OperationResultWithMedium&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_OperationResultWithMedium::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_OperationResultWithMedium& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_medium(), target);
|
|
}
|
|
|
|
// optional int32 update_index = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
|
|
stream, this_._internal_update_index(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, this_._internal_result_category(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
4, this_._internal_result_code(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_connection_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:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_OperationResultWithMedium::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_OperationResultWithMedium& this_ = static_cast<const ConnectionsLog_OperationResultWithMedium&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_OperationResultWithMedium::ByteSizeLong() const {
|
|
const ConnectionsLog_OperationResultWithMedium& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
::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 .location.nearby.proto.connections.Medium medium = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
}
|
|
// optional int32 update_index = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_update_index());
|
|
}
|
|
// optional .location.nearby.proto.connections.OperationResultCategory result_category = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_result_category());
|
|
}
|
|
// optional .location.nearby.proto.connections.OperationResultCode result_code = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_result_code());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_connection_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 ConnectionsLog_OperationResultWithMedium::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_OperationResultWithMedium*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_OperationResultWithMedium&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
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_.medium_ = from._impl_.medium_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.update_index_ = from._impl_.update_index_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.result_category_ = from._impl_.result_category_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.result_code_ = from._impl_.result_code_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.connection_mode_ = from._impl_.connection_mode_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_OperationResultWithMedium::CopyFrom(const ConnectionsLog_OperationResultWithMedium& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_OperationResultWithMedium::InternalSwap(ConnectionsLog_OperationResultWithMedium* 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(ConnectionsLog_OperationResultWithMedium, _impl_.connection_mode_)
|
|
+ sizeof(ConnectionsLog_OperationResultWithMedium::_impl_.connection_mode_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_.medium_)>(
|
|
reinterpret_cast<char*>(&_impl_.medium_),
|
|
reinterpret_cast<char*>(&other->_impl_.medium_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_StrategySession::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_StrategySession>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_StrategySession::ConnectionsLog_StrategySession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_StrategySession_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_StrategySession::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
role_{visibility, arena, from.role_},
|
|
discovery_phase_{visibility, arena, from.discovery_phase_},
|
|
advertising_phase_{visibility, arena, from.advertising_phase_},
|
|
connection_attempt_{visibility, arena, from.connection_attempt_},
|
|
established_connection_{visibility, arena, from.established_connection_},
|
|
upgrade_attempt_{visibility, arena, from.upgrade_attempt_},
|
|
build_version_(arena, from.build_version_) {}
|
|
|
|
ConnectionsLog_StrategySession::ConnectionsLog_StrategySession(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_StrategySession& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_StrategySession_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_StrategySession* 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_, strategy_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::strategy_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_StrategySession::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
role_{visibility, arena},
|
|
discovery_phase_{visibility, arena},
|
|
advertising_phase_{visibility, arena},
|
|
connection_attempt_{visibility, arena},
|
|
established_connection_{visibility, arena},
|
|
upgrade_attempt_{visibility, arena},
|
|
build_version_(arena) {}
|
|
|
|
inline void ConnectionsLog_StrategySession::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
0,
|
|
offsetof(Impl_, strategy_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::strategy_));
|
|
}
|
|
ConnectionsLog_StrategySession::~ConnectionsLog_StrategySession() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_StrategySession::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_StrategySession& this_ = static_cast<ConnectionsLog_StrategySession&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.build_version_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_StrategySession::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_StrategySession(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_StrategySession::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.role_) +
|
|
decltype(ConnectionsLog_StrategySession::_impl_.role_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.discovery_phase_) +
|
|
decltype(ConnectionsLog_StrategySession::_impl_.discovery_phase_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.advertising_phase_) +
|
|
decltype(ConnectionsLog_StrategySession::_impl_.advertising_phase_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.connection_attempt_) +
|
|
decltype(ConnectionsLog_StrategySession::_impl_.connection_attempt_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.established_connection_) +
|
|
decltype(ConnectionsLog_StrategySession::_impl_.established_connection_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.upgrade_attempt_) +
|
|
decltype(ConnectionsLog_StrategySession::_impl_.upgrade_attempt_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(
|
|
sizeof(ConnectionsLog_StrategySession), alignof(ConnectionsLog_StrategySession), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&ConnectionsLog_StrategySession::PlacementNew_,
|
|
sizeof(ConnectionsLog_StrategySession),
|
|
alignof(ConnectionsLog_StrategySession));
|
|
}
|
|
}
|
|
constexpr auto ConnectionsLog_StrategySession::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<63>{
|
|
{
|
|
&_ConnectionsLog_StrategySession_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_StrategySession::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_StrategySession>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_StrategySession::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_StrategySession>(), &ConnectionsLog_StrategySession::ByteSizeLong,
|
|
&ConnectionsLog_StrategySession::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.StrategySession",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_StrategySession_class_data_ =
|
|
ConnectionsLog_StrategySession::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_StrategySession::GetClassData() const {
|
|
return ConnectionsLog_StrategySession_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 9, 7, 0, 2>
|
|
ConnectionsLog_StrategySession::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
10, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294966400, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
9, // num_field_entries
|
|
7, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_StrategySession_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.duration_millis_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 8, 5,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.strategy_)}},
|
|
// repeated .location.nearby.proto.connections.SessionRole role = 3;
|
|
{::_pbi::TcParser::FastEr0R1,
|
|
{24, 0, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.role_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{34, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.discovery_phase_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{42, 2, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.advertising_phase_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{50, 3, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.connection_attempt_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{58, 4, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.established_connection_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{74, 5, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.upgrade_attempt_)}},
|
|
// optional string build_version = 10;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{82, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.build_version_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.duration_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.strategy_), _Internal::kHasBitsOffset + 8, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// repeated .location.nearby.proto.connections.SessionRole role = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.role_), _Internal::kHasBitsOffset + 0, 6, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.discovery_phase_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.advertising_phase_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.connection_attempt_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.established_connection_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.upgrade_attempt_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional string build_version = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.build_version_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>()},
|
|
{0, 5},
|
|
{0, 2},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_StrategySession::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
::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, 0x0000007fU)) {
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_impl_.role_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_impl_.discovery_phase_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
_impl_.advertising_phase_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
_impl_.connection_attempt_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
_impl_.established_connection_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
|
|
_impl_.upgrade_attempt_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_impl_.build_version_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_.duration_millis_ = ::int64_t{0};
|
|
_impl_.strategy_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_StrategySession::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_StrategySession& this_ = static_cast<const ConnectionsLog_StrategySession&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_StrategySession::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_StrategySession& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_strategy(), target);
|
|
}
|
|
|
|
// repeated .location.nearby.proto.connections.SessionRole role = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (int i = 0, n = this_._internal_role_size(); i < n; ++i) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, static_cast<::location::nearby::proto::connections::SessionRole>(this_._internal_role().Get(i)),
|
|
target);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_discovery_phase_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_discovery_phase().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_advertising_phase_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_advertising_phase().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
5, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_connection_attempt_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_connection_attempt().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
6, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_established_connection_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_established_connection().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
7, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_upgrade_attempt_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_upgrade_attempt().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
9, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional string build_version = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
const ::std::string& _s = this_._internal_build_version();
|
|
target = stream->WriteStringMaybeAliased(10, _s, target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_StrategySession::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_StrategySession& this_ = static_cast<const ConnectionsLog_StrategySession&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_StrategySession::ByteSizeLong() const {
|
|
const ConnectionsLog_StrategySession& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
::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)) {
|
|
// repeated .location.nearby.proto.connections.SessionRole role = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
::size_t data_size =
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_role());
|
|
::size_t tag_size = ::size_t{1} *
|
|
::_pbi::FromIntSize(this_._internal_role_size());
|
|
total_size += data_size + tag_size;
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1UL * this_._internal_discovery_phase_size();
|
|
for (const auto& msg : this_._internal_discovery_phase()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1UL * this_._internal_advertising_phase_size();
|
|
for (const auto& msg : this_._internal_advertising_phase()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1UL * this_._internal_connection_attempt_size();
|
|
for (const auto& msg : this_._internal_connection_attempt()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1UL * this_._internal_established_connection_size();
|
|
for (const auto& msg : this_._internal_established_connection()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1UL * this_._internal_upgrade_attempt_size();
|
|
for (const auto& msg : this_._internal_upgrade_attempt()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional string build_version = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_build_version());
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
}
|
|
{
|
|
// optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_strategy());
|
|
}
|
|
}
|
|
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 ConnectionsLog_StrategySession::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_StrategySession*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_StrategySession&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_role()->MergeFrom(from._internal_role());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_mutable_discovery_phase()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_discovery_phase());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_mutable_advertising_phase()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_advertising_phase());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
_this->_internal_mutable_connection_attempt()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_connection_attempt());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
_this->_internal_mutable_established_connection()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_established_connection());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
|
|
_this->_internal_mutable_upgrade_attempt()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_upgrade_attempt());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_internal_set_build_version(from._internal_build_version());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.strategy_ = from._impl_.strategy_;
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_StrategySession::CopyFrom(const ConnectionsLog_StrategySession& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_StrategySession::InternalSwap(ConnectionsLog_StrategySession* 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_.role_.InternalSwap(&other->_impl_.role_);
|
|
_impl_.discovery_phase_.InternalSwap(&other->_impl_.discovery_phase_);
|
|
_impl_.advertising_phase_.InternalSwap(&other->_impl_.advertising_phase_);
|
|
_impl_.connection_attempt_.InternalSwap(&other->_impl_.connection_attempt_);
|
|
_impl_.established_connection_.InternalSwap(&other->_impl_.established_connection_);
|
|
_impl_.upgrade_attempt_.InternalSwap(&other->_impl_.upgrade_attempt_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.build_version_, &other->_impl_.build_version_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.strategy_)
|
|
+ sizeof(ConnectionsLog_StrategySession::_impl_.strategy_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_.duration_millis_)>(
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_),
|
|
reinterpret_cast<char*>(&other->_impl_.duration_millis_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_DiscoveryPhase::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_DiscoveryPhase>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DiscoveryPhase_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_DiscoveryPhase::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
medium_{visibility, arena, from.medium_},
|
|
discovered_endpoint_{visibility, arena, from.discovered_endpoint_},
|
|
sent_connection_request_{visibility, arena, from.sent_connection_request_},
|
|
uwb_ranging_{visibility, arena, from.uwb_ranging_},
|
|
adv_dis_result_{visibility, arena, from.adv_dis_result_} {}
|
|
|
|
ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_DiscoveryPhase& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DiscoveryPhase_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_DiscoveryPhase* 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_.discovery_metadata_ = (CheckHasBit(cached_has_bits, 0x00000020U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.discovery_metadata_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::supported_service_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_DiscoveryPhase::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
medium_{visibility, arena},
|
|
discovered_endpoint_{visibility, arena},
|
|
sent_connection_request_{visibility, arena},
|
|
uwb_ranging_{visibility, arena},
|
|
adv_dis_result_{visibility, arena} {}
|
|
|
|
inline void ConnectionsLog_DiscoveryPhase::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, discovery_metadata_),
|
|
0,
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, discovery_metadata_) +
|
|
sizeof(Impl_::supported_service_));
|
|
}
|
|
ConnectionsLog_DiscoveryPhase::~ConnectionsLog_DiscoveryPhase() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_DiscoveryPhase::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_DiscoveryPhase& this_ = static_cast<ConnectionsLog_DiscoveryPhase&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.discovery_metadata_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_DiscoveryPhase(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_DiscoveryPhase::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.medium_) +
|
|
decltype(ConnectionsLog_DiscoveryPhase::_impl_.medium_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.discovered_endpoint_) +
|
|
decltype(ConnectionsLog_DiscoveryPhase::_impl_.discovered_endpoint_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.sent_connection_request_) +
|
|
decltype(ConnectionsLog_DiscoveryPhase::_impl_.sent_connection_request_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.uwb_ranging_) +
|
|
decltype(ConnectionsLog_DiscoveryPhase::_impl_.uwb_ranging_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.adv_dis_result_) +
|
|
decltype(ConnectionsLog_DiscoveryPhase::_impl_.adv_dis_result_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(
|
|
sizeof(ConnectionsLog_DiscoveryPhase), alignof(ConnectionsLog_DiscoveryPhase), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&ConnectionsLog_DiscoveryPhase::PlacementNew_,
|
|
sizeof(ConnectionsLog_DiscoveryPhase),
|
|
alignof(ConnectionsLog_DiscoveryPhase));
|
|
}
|
|
}
|
|
constexpr auto ConnectionsLog_DiscoveryPhase::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<62>{
|
|
{
|
|
&_ConnectionsLog_DiscoveryPhase_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_DiscoveryPhase::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_DiscoveryPhase>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_DiscoveryPhase::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_DiscoveryPhase>(), &ConnectionsLog_DiscoveryPhase::ByteSizeLong,
|
|
&ConnectionsLog_DiscoveryPhase::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<62> ConnectionsLog_DiscoveryPhase_class_data_ =
|
|
ConnectionsLog_DiscoveryPhase::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_DiscoveryPhase::GetClassData() const {
|
|
return ConnectionsLog_DiscoveryPhase_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 11, 9, 0, 2>
|
|
ConnectionsLog_DiscoveryPhase::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
11, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294965248, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
11, // num_field_entries
|
|
9, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_DiscoveryPhase_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.duration_millis_)}},
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
{::_pbi::TcParser::FastEr0R1,
|
|
{16, 0, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.medium_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{26, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.discovered_endpoint_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{34, 2, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.sent_connection_request_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{42, 3, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.uwb_ranging_)}},
|
|
// optional int64 client_flow_id = 6;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{48, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.client_flow_id_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{58, 5, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.discovery_metadata_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{66, 4, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.adv_dis_result_)}},
|
|
// optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{72, 8, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.stop_reason_)}},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{80, 9, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.device_type_)}},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{88, 10, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.supported_service_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.duration_millis_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.medium_), _Internal::kHasBitsOffset + 0, 5, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.discovered_endpoint_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.sent_connection_request_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.uwb_ranging_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional int64 client_flow_id = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.discovery_metadata_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.adv_dis_result_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.stop_reason_), _Internal::kHasBitsOffset + 8, 6, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.device_type_), _Internal::kHasBitsOffset + 9, 7, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.supported_service_), _Internal::kHasBitsOffset + 10, 8, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>()},
|
|
{0, 13},
|
|
{0, 2},
|
|
{0, 3},
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_DiscoveryPhase::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
::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_.medium_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_impl_.discovered_endpoint_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
_impl_.sent_connection_request_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
_impl_.uwb_ranging_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
_impl_.adv_dis_result_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
ABSL_DCHECK(_impl_.discovery_metadata_ != nullptr);
|
|
_impl_.discovery_metadata_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.client_flow_id_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
|
|
::memset(&_impl_.stop_reason_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.supported_service_) -
|
|
reinterpret_cast<char*>(&_impl_.stop_reason_)) + sizeof(_impl_.supported_service_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_DiscoveryPhase& this_ = static_cast<const ConnectionsLog_DiscoveryPhase&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_DiscoveryPhase& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (int i = 0, n = this_._internal_medium_size(); i < n; ++i) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, static_cast<::location::nearby::proto::connections::Medium>(this_._internal_medium().Get(i)),
|
|
target);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_discovered_endpoint_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_discovered_endpoint().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_sent_connection_request_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_sent_connection_request().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_uwb_ranging_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_uwb_ranging().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
5, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional int64 client_flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
|
|
stream, this_._internal_client_flow_id(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
7, *this_._impl_.discovery_metadata_, this_._impl_.discovery_metadata_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_adv_dis_result_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_adv_dis_result().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
8, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
9, this_._internal_stop_reason(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
10, this_._internal_device_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
11, this_._internal_supported_service(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_DiscoveryPhase::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_DiscoveryPhase& this_ = static_cast<const ConnectionsLog_DiscoveryPhase&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_DiscoveryPhase::ByteSizeLong() const {
|
|
const ConnectionsLog_DiscoveryPhase& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
::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)) {
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
::size_t data_size =
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
::size_t tag_size = ::size_t{1} *
|
|
::_pbi::FromIntSize(this_._internal_medium_size());
|
|
total_size += data_size + tag_size;
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1UL * this_._internal_discovered_endpoint_size();
|
|
for (const auto& msg : this_._internal_discovered_endpoint()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1UL * this_._internal_sent_connection_request_size();
|
|
for (const auto& msg : this_._internal_sent_connection_request()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1UL * this_._internal_uwb_ranging_size();
|
|
for (const auto& msg : this_._internal_uwb_ranging()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1UL * this_._internal_adv_dis_result_size();
|
|
for (const auto& msg : this_._internal_adv_dis_result()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.discovery_metadata_);
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional int64 client_flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_flow_id());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
|
|
// optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_stop_reason());
|
|
}
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
|
|
}
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service());
|
|
}
|
|
}
|
|
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 ConnectionsLog_DiscoveryPhase::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_DiscoveryPhase*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_DiscoveryPhase&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_medium()->MergeFrom(from._internal_medium());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_mutable_discovered_endpoint()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_discovered_endpoint());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_mutable_sent_connection_request()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_sent_connection_request());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
|
|
_this->_internal_mutable_uwb_ranging()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_uwb_ranging());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
|
|
_this->_internal_mutable_adv_dis_result()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_adv_dis_result());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
ABSL_DCHECK(from._impl_.discovery_metadata_ != nullptr);
|
|
if (_this->_impl_.discovery_metadata_ == nullptr) {
|
|
_this->_impl_.discovery_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.discovery_metadata_);
|
|
} else {
|
|
_this->_impl_.discovery_metadata_->MergeFrom(*from._impl_.discovery_metadata_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.stop_reason_ = from._impl_.stop_reason_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.device_type_ = from._impl_.device_type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_this->_impl_.supported_service_ = from._impl_.supported_service_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_DiscoveryPhase::CopyFrom(const ConnectionsLog_DiscoveryPhase& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_DiscoveryPhase::InternalSwap(ConnectionsLog_DiscoveryPhase* 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_.medium_.InternalSwap(&other->_impl_.medium_);
|
|
_impl_.discovered_endpoint_.InternalSwap(&other->_impl_.discovered_endpoint_);
|
|
_impl_.sent_connection_request_.InternalSwap(&other->_impl_.sent_connection_request_);
|
|
_impl_.uwb_ranging_.InternalSwap(&other->_impl_.uwb_ranging_);
|
|
_impl_.adv_dis_result_.InternalSwap(&other->_impl_.adv_dis_result_);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.supported_service_)
|
|
+ sizeof(ConnectionsLog_DiscoveryPhase::_impl_.supported_service_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_.discovery_metadata_)>(
|
|
reinterpret_cast<char*>(&_impl_.discovery_metadata_),
|
|
reinterpret_cast<char*>(&other->_impl_.discovery_metadata_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_DiscoveredEndpoint::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_DiscoveredEndpoint>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_DiscoveredEndpoint::ConnectionsLog_DiscoveredEndpoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DiscoveredEndpoint_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
}
|
|
ConnectionsLog_DiscoveredEndpoint::ConnectionsLog_DiscoveredEndpoint(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DiscoveredEndpoint& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DiscoveredEndpoint_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 ConnectionsLog_DiscoveredEndpoint::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_DiscoveredEndpoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, latency_millis_),
|
|
0,
|
|
offsetof(Impl_, medium_) -
|
|
offsetof(Impl_, latency_millis_) +
|
|
sizeof(Impl_::medium_));
|
|
}
|
|
ConnectionsLog_DiscoveredEndpoint::~ConnectionsLog_DiscoveredEndpoint() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_DiscoveredEndpoint::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_DiscoveredEndpoint& this_ = static_cast<ConnectionsLog_DiscoveredEndpoint&>(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 ConnectionsLog_DiscoveredEndpoint::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_DiscoveredEndpoint(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_DiscoveredEndpoint::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_DiscoveredEndpoint),
|
|
alignof(ConnectionsLog_DiscoveredEndpoint));
|
|
}
|
|
constexpr auto ConnectionsLog_DiscoveredEndpoint::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<66>{
|
|
{
|
|
&_ConnectionsLog_DiscoveredEndpoint_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_DiscoveredEndpoint::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_DiscoveredEndpoint>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_DiscoveredEndpoint::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_DiscoveredEndpoint>(), &ConnectionsLog_DiscoveredEndpoint::ByteSizeLong,
|
|
&ConnectionsLog_DiscoveredEndpoint::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_DiscoveredEndpoint_class_data_ =
|
|
ConnectionsLog_DiscoveredEndpoint::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_DiscoveredEndpoint::GetClassData() const {
|
|
return ConnectionsLog_DiscoveredEndpoint_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
|
|
ConnectionsLog_DiscoveredEndpoint::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _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),
|
|
ConnectionsLog_DiscoveredEndpoint_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional int64 latency_millis = 2;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{16, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_.latency_millis_)}},
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 1, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_.medium_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_.medium_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 latency_millis = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_.latency_millis_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
}},
|
|
{{
|
|
{0, 13},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_DiscoveredEndpoint::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
::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_.latency_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.medium_) -
|
|
reinterpret_cast<char*>(&_impl_.latency_millis_)) + sizeof(_impl_.medium_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DiscoveredEndpoint::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_DiscoveredEndpoint& this_ = static_cast<const ConnectionsLog_DiscoveredEndpoint&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DiscoveredEndpoint::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_DiscoveredEndpoint& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_medium(), target);
|
|
}
|
|
|
|
// optional int64 latency_millis = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
|
|
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:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_DiscoveredEndpoint::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_DiscoveredEndpoint& this_ = static_cast<const ConnectionsLog_DiscoveredEndpoint&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_DiscoveredEndpoint::ByteSizeLong() const {
|
|
const ConnectionsLog_DiscoveredEndpoint& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
::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 latency_millis = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_latency_millis());
|
|
}
|
|
// optional .location.nearby.proto.connections.Medium medium = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
}
|
|
}
|
|
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 ConnectionsLog_DiscoveredEndpoint::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_DiscoveredEndpoint*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_DiscoveredEndpoint&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
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_.latency_millis_ = from._impl_.latency_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.medium_ = from._impl_.medium_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_DiscoveredEndpoint::CopyFrom(const ConnectionsLog_DiscoveredEndpoint& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_DiscoveredEndpoint::InternalSwap(ConnectionsLog_DiscoveredEndpoint* 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(ConnectionsLog_DiscoveredEndpoint, _impl_.medium_)
|
|
+ sizeof(ConnectionsLog_DiscoveredEndpoint::_impl_.medium_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_.latency_millis_)>(
|
|
reinterpret_cast<char*>(&_impl_.latency_millis_),
|
|
reinterpret_cast<char*>(&other->_impl_.latency_millis_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_UwbRangingProcess::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_UwbRangingProcess>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_UwbRangingProcess::ConnectionsLog_UwbRangingProcess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_UwbRangingProcess_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_UwbRangingProcess::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
uwb_ranging_data_{visibility, arena, from.uwb_ranging_data_} {}
|
|
|
|
ConnectionsLog_UwbRangingProcess::ConnectionsLog_UwbRangingProcess(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_UwbRangingProcess& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_UwbRangingProcess_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_UwbRangingProcess* 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_, azimuth_variance_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::azimuth_variance_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_UwbRangingProcess::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
uwb_ranging_data_{visibility, arena} {}
|
|
|
|
inline void ConnectionsLog_UwbRangingProcess::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
0,
|
|
offsetof(Impl_, azimuth_variance_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::azimuth_variance_));
|
|
}
|
|
ConnectionsLog_UwbRangingProcess::~ConnectionsLog_UwbRangingProcess() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_UwbRangingProcess::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_UwbRangingProcess& this_ = static_cast<ConnectionsLog_UwbRangingProcess&>(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 ConnectionsLog_UwbRangingProcess::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_UwbRangingProcess(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_UwbRangingProcess::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.uwb_ranging_data_) +
|
|
decltype(ConnectionsLog_UwbRangingProcess::_impl_.uwb_ranging_data_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(
|
|
sizeof(ConnectionsLog_UwbRangingProcess), alignof(ConnectionsLog_UwbRangingProcess), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&ConnectionsLog_UwbRangingProcess::PlacementNew_,
|
|
sizeof(ConnectionsLog_UwbRangingProcess),
|
|
alignof(ConnectionsLog_UwbRangingProcess));
|
|
}
|
|
}
|
|
constexpr auto ConnectionsLog_UwbRangingProcess::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<65>{
|
|
{
|
|
&_ConnectionsLog_UwbRangingProcess_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_UwbRangingProcess::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_UwbRangingProcess>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_UwbRangingProcess::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_UwbRangingProcess>(), &ConnectionsLog_UwbRangingProcess::ByteSizeLong,
|
|
&ConnectionsLog_UwbRangingProcess::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_UwbRangingProcess_class_data_ =
|
|
ConnectionsLog_UwbRangingProcess::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_UwbRangingProcess::GetClassData() const {
|
|
return ConnectionsLog_UwbRangingProcess_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 11, 1, 0, 2>
|
|
ConnectionsLog_UwbRangingProcess::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
11, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294965248, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
11, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_UwbRangingProcess_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.duration_millis_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{18, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.uwb_ranging_data_)}},
|
|
// optional int32 number_of_ranging_data = 3;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{24, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.number_of_ranging_data_)}},
|
|
// optional int32 distance_min = 4;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{32, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_min_)}},
|
|
// optional int32 distance_max = 5;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{40, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_max_)}},
|
|
// optional int32 distance_ave = 6;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{48, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_ave_)}},
|
|
// optional int32 distance_variance = 7;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{56, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_variance_)}},
|
|
// optional int32 azimuth_min = 8;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{64, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_min_)}},
|
|
// optional int32 azimuth_max = 9;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{72, 8, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_max_)}},
|
|
// optional int32 azimuth_ave = 10;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{80, 9, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_ave_)}},
|
|
// optional int32 azimuth_variance = 11;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{88, 10, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_variance_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.duration_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.uwb_ranging_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional int32 number_of_ranging_data = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.number_of_ranging_data_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 distance_min = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_min_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 distance_max = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_max_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 distance_ave = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_ave_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 distance_variance = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.distance_variance_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 azimuth_min = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_min_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 azimuth_max = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_max_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 azimuth_ave = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_ave_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 azimuth_variance = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_variance_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>()},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_UwbRangingProcess::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
::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_.uwb_ranging_data_.Clear();
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.azimuth_min_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.azimuth_min_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
|
|
::memset(&_impl_.azimuth_max_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.azimuth_variance_) -
|
|
reinterpret_cast<char*>(&_impl_.azimuth_max_)) + sizeof(_impl_.azimuth_variance_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_UwbRangingProcess::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_UwbRangingProcess& this_ = static_cast<const ConnectionsLog_UwbRangingProcess&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_UwbRangingProcess::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_UwbRangingProcess& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_uwb_ranging_data_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_uwb_ranging_data().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
2, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional int32 number_of_ranging_data = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
|
|
stream, this_._internal_number_of_ranging_data(), target);
|
|
}
|
|
|
|
// optional int32 distance_min = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
|
|
stream, this_._internal_distance_min(), target);
|
|
}
|
|
|
|
// optional int32 distance_max = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
|
|
stream, this_._internal_distance_max(), target);
|
|
}
|
|
|
|
// optional int32 distance_ave = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
|
|
stream, this_._internal_distance_ave(), target);
|
|
}
|
|
|
|
// optional int32 distance_variance = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
|
|
stream, this_._internal_distance_variance(), target);
|
|
}
|
|
|
|
// optional int32 azimuth_min = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
|
|
stream, this_._internal_azimuth_min(), target);
|
|
}
|
|
|
|
// optional int32 azimuth_max = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
|
|
stream, this_._internal_azimuth_max(), target);
|
|
}
|
|
|
|
// optional int32 azimuth_ave = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>(
|
|
stream, this_._internal_azimuth_ave(), target);
|
|
}
|
|
|
|
// optional int32 azimuth_variance = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
|
|
stream, this_._internal_azimuth_variance(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_UwbRangingProcess::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_UwbRangingProcess& this_ = static_cast<const ConnectionsLog_UwbRangingProcess&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_UwbRangingProcess::ByteSizeLong() const {
|
|
const ConnectionsLog_UwbRangingProcess& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
::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)) {
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_uwb_ranging_data_size();
|
|
for (const auto& msg : this_._internal_uwb_ranging_data()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional int32 number_of_ranging_data = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_number_of_ranging_data());
|
|
}
|
|
// optional int32 distance_min = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_distance_min());
|
|
}
|
|
// optional int32 distance_max = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_distance_max());
|
|
}
|
|
// optional int32 distance_ave = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_distance_ave());
|
|
}
|
|
// optional int32 distance_variance = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_distance_variance());
|
|
}
|
|
// optional int32 azimuth_min = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_azimuth_min());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
|
|
// optional int32 azimuth_max = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_azimuth_max());
|
|
}
|
|
// optional int32 azimuth_ave = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_azimuth_ave());
|
|
}
|
|
// optional int32 azimuth_variance = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_azimuth_variance());
|
|
}
|
|
}
|
|
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 ConnectionsLog_UwbRangingProcess::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_UwbRangingProcess*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_UwbRangingProcess&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_uwb_ranging_data()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_uwb_ranging_data());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.number_of_ranging_data_ = from._impl_.number_of_ranging_data_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.distance_min_ = from._impl_.distance_min_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.distance_max_ = from._impl_.distance_max_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.distance_ave_ = from._impl_.distance_ave_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.distance_variance_ = from._impl_.distance_variance_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.azimuth_min_ = from._impl_.azimuth_min_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.azimuth_max_ = from._impl_.azimuth_max_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.azimuth_ave_ = from._impl_.azimuth_ave_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_this->_impl_.azimuth_variance_ = from._impl_.azimuth_variance_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_UwbRangingProcess::CopyFrom(const ConnectionsLog_UwbRangingProcess& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_UwbRangingProcess::InternalSwap(ConnectionsLog_UwbRangingProcess* 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_.uwb_ranging_data_.InternalSwap(&other->_impl_.uwb_ranging_data_);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.azimuth_variance_)
|
|
+ sizeof(ConnectionsLog_UwbRangingProcess::_impl_.azimuth_variance_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_.duration_millis_)>(
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_),
|
|
reinterpret_cast<char*>(&other->_impl_.duration_millis_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_RawUwbRangingEvent::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_RawUwbRangingEvent>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_RawUwbRangingEvent::ConnectionsLog_RawUwbRangingEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_RawUwbRangingEvent_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
}
|
|
ConnectionsLog_RawUwbRangingEvent::ConnectionsLog_RawUwbRangingEvent(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_RawUwbRangingEvent& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_RawUwbRangingEvent_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 ConnectionsLog_RawUwbRangingEvent::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_RawUwbRangingEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, distance_),
|
|
0,
|
|
offsetof(Impl_, polar_angle_) -
|
|
offsetof(Impl_, distance_) +
|
|
sizeof(Impl_::polar_angle_));
|
|
}
|
|
ConnectionsLog_RawUwbRangingEvent::~ConnectionsLog_RawUwbRangingEvent() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_RawUwbRangingEvent::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_RawUwbRangingEvent& this_ = static_cast<ConnectionsLog_RawUwbRangingEvent&>(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 ConnectionsLog_RawUwbRangingEvent::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_RawUwbRangingEvent(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_RawUwbRangingEvent::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_RawUwbRangingEvent),
|
|
alignof(ConnectionsLog_RawUwbRangingEvent));
|
|
}
|
|
constexpr auto ConnectionsLog_RawUwbRangingEvent::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<66>{
|
|
{
|
|
&_ConnectionsLog_RawUwbRangingEvent_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_RawUwbRangingEvent::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_RawUwbRangingEvent>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_RawUwbRangingEvent::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_RawUwbRangingEvent>(), &ConnectionsLog_RawUwbRangingEvent::ByteSizeLong,
|
|
&ConnectionsLog_RawUwbRangingEvent::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_RawUwbRangingEvent_class_data_ =
|
|
ConnectionsLog_RawUwbRangingEvent::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_RawUwbRangingEvent::GetClassData() const {
|
|
return ConnectionsLog_RawUwbRangingEvent_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
|
|
ConnectionsLog_RawUwbRangingEvent::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _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
|
|
ConnectionsLog_RawUwbRangingEvent_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int32 distance = 1;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{8, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.distance_)}},
|
|
// optional int32 azimuth_angle = 2;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{16, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.azimuth_angle_)}},
|
|
// optional int32 polar_angle = 3;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{24, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.polar_angle_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int32 distance = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.distance_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 azimuth_angle = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.azimuth_angle_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 polar_angle = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.polar_angle_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_RawUwbRangingEvent::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
::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_.distance_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.polar_angle_) -
|
|
reinterpret_cast<char*>(&_impl_.distance_)) + sizeof(_impl_.polar_angle_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_RawUwbRangingEvent::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_RawUwbRangingEvent& this_ = static_cast<const ConnectionsLog_RawUwbRangingEvent&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_RawUwbRangingEvent::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_RawUwbRangingEvent& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int32 distance = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
|
|
stream, this_._internal_distance(), target);
|
|
}
|
|
|
|
// optional int32 azimuth_angle = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
|
|
stream, this_._internal_azimuth_angle(), target);
|
|
}
|
|
|
|
// optional int32 polar_angle = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
|
|
stream, this_._internal_polar_angle(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_RawUwbRangingEvent::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_RawUwbRangingEvent& this_ = static_cast<const ConnectionsLog_RawUwbRangingEvent&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_RawUwbRangingEvent::ByteSizeLong() const {
|
|
const ConnectionsLog_RawUwbRangingEvent& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
::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 int32 distance = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_distance());
|
|
}
|
|
// optional int32 azimuth_angle = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_azimuth_angle());
|
|
}
|
|
// optional int32 polar_angle = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_polar_angle());
|
|
}
|
|
}
|
|
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 ConnectionsLog_RawUwbRangingEvent::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_RawUwbRangingEvent*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_RawUwbRangingEvent&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
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_.distance_ = from._impl_.distance_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.azimuth_angle_ = from._impl_.azimuth_angle_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.polar_angle_ = from._impl_.polar_angle_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_RawUwbRangingEvent::CopyFrom(const ConnectionsLog_RawUwbRangingEvent& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_RawUwbRangingEvent::InternalSwap(ConnectionsLog_RawUwbRangingEvent* 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(ConnectionsLog_RawUwbRangingEvent, _impl_.polar_angle_)
|
|
+ sizeof(ConnectionsLog_RawUwbRangingEvent::_impl_.polar_angle_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_.distance_)>(
|
|
reinterpret_cast<char*>(&_impl_.distance_),
|
|
reinterpret_cast<char*>(&other->_impl_.distance_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_AdvertisingPhase::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_AdvertisingPhase>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_AdvertisingPhase_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_AdvertisingPhase::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
medium_{visibility, arena, from.medium_},
|
|
received_connection_request_{visibility, arena, from.received_connection_request_},
|
|
adv_dis_result_{visibility, arena, from.adv_dis_result_} {}
|
|
|
|
ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_AdvertisingPhase& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_AdvertisingPhase_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_AdvertisingPhase* 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_.advertising_metadata_ = (CheckHasBit(cached_has_bits, 0x00000008U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertising_metadata_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::supported_service_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_AdvertisingPhase::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
medium_{visibility, arena},
|
|
received_connection_request_{visibility, arena},
|
|
adv_dis_result_{visibility, arena} {}
|
|
|
|
inline void ConnectionsLog_AdvertisingPhase::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, advertising_metadata_),
|
|
0,
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, advertising_metadata_) +
|
|
sizeof(Impl_::supported_service_));
|
|
}
|
|
ConnectionsLog_AdvertisingPhase::~ConnectionsLog_AdvertisingPhase() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_AdvertisingPhase::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_AdvertisingPhase& this_ = static_cast<ConnectionsLog_AdvertisingPhase&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.advertising_metadata_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_AdvertisingPhase(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_AdvertisingPhase::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.medium_) +
|
|
decltype(ConnectionsLog_AdvertisingPhase::_impl_.medium_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.received_connection_request_) +
|
|
decltype(ConnectionsLog_AdvertisingPhase::_impl_.received_connection_request_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.adv_dis_result_) +
|
|
decltype(ConnectionsLog_AdvertisingPhase::_impl_.adv_dis_result_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(
|
|
sizeof(ConnectionsLog_AdvertisingPhase), alignof(ConnectionsLog_AdvertisingPhase), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&ConnectionsLog_AdvertisingPhase::PlacementNew_,
|
|
sizeof(ConnectionsLog_AdvertisingPhase),
|
|
alignof(ConnectionsLog_AdvertisingPhase));
|
|
}
|
|
}
|
|
constexpr auto ConnectionsLog_AdvertisingPhase::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<64>{
|
|
{
|
|
&_ConnectionsLog_AdvertisingPhase_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_AdvertisingPhase::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_AdvertisingPhase>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_AdvertisingPhase::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_AdvertisingPhase>(), &ConnectionsLog_AdvertisingPhase::ByteSizeLong,
|
|
&ConnectionsLog_AdvertisingPhase::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<64> ConnectionsLog_AdvertisingPhase_class_data_ =
|
|
ConnectionsLog_AdvertisingPhase::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_AdvertisingPhase::GetClassData() const {
|
|
return ConnectionsLog_AdvertisingPhase_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 9, 7, 0, 2>
|
|
ConnectionsLog_AdvertisingPhase::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
9, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294966784, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
9, // num_field_entries
|
|
7, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_AdvertisingPhase_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.duration_millis_)}},
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
{::_pbi::TcParser::FastEr0R1,
|
|
{16, 0, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.medium_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{26, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.received_connection_request_)}},
|
|
// optional int64 client_flow_id = 4;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{32, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.client_flow_id_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{42, 3, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.advertising_metadata_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{50, 2, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.adv_dis_result_)}},
|
|
// optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{56, 6, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.stop_reason_)}},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 8;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{64, 7, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.device_type_)}},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 9;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{72, 8, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.supported_service_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.duration_millis_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.medium_), _Internal::kHasBitsOffset + 0, 3, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.received_connection_request_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional int64 client_flow_id = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.advertising_metadata_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.adv_dis_result_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.stop_reason_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.device_type_), _Internal::kHasBitsOffset + 7, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.supported_service_), _Internal::kHasBitsOffset + 8, 6, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>()},
|
|
{0, 13},
|
|
{0, 2},
|
|
{0, 3},
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_AdvertisingPhase::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
::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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_impl_.medium_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_impl_.received_connection_request_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
_impl_.adv_dis_result_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(_impl_.advertising_metadata_ != nullptr);
|
|
_impl_.advertising_metadata_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.device_type_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.device_type_));
|
|
}
|
|
_impl_.supported_service_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_AdvertisingPhase& this_ = static_cast<const ConnectionsLog_AdvertisingPhase&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_AdvertisingPhase& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (int i = 0, n = this_._internal_medium_size(); i < n; ++i) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, static_cast<::location::nearby::proto::connections::Medium>(this_._internal_medium().Get(i)),
|
|
target);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_received_connection_request_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_received_connection_request().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional int64 client_flow_id = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
|
|
stream, this_._internal_client_flow_id(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
5, *this_._impl_.advertising_metadata_, this_._impl_.advertising_metadata_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_adv_dis_result_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_adv_dis_result().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
6, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
7, this_._internal_stop_reason(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
8, this_._internal_device_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
9, this_._internal_supported_service(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_AdvertisingPhase::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_AdvertisingPhase& this_ = static_cast<const ConnectionsLog_AdvertisingPhase&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_AdvertisingPhase::ByteSizeLong() const {
|
|
const ConnectionsLog_AdvertisingPhase& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
::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)) {
|
|
// repeated .location.nearby.proto.connections.Medium medium = 2;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
::size_t data_size =
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
::size_t tag_size = ::size_t{1} *
|
|
::_pbi::FromIntSize(this_._internal_medium_size());
|
|
total_size += data_size + tag_size;
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1UL * this_._internal_received_connection_request_size();
|
|
for (const auto& msg : this_._internal_received_connection_request()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1UL * this_._internal_adv_dis_result_size();
|
|
for (const auto& msg : this_._internal_adv_dis_result()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertising_metadata_);
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional int64 client_flow_id = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_flow_id());
|
|
}
|
|
// optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_stop_reason());
|
|
}
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
|
|
}
|
|
}
|
|
{
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service());
|
|
}
|
|
}
|
|
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 ConnectionsLog_AdvertisingPhase::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_AdvertisingPhase*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_AdvertisingPhase&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_medium()->MergeFrom(from._internal_medium());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_mutable_received_connection_request()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_received_connection_request());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_mutable_adv_dis_result()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_adv_dis_result());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(from._impl_.advertising_metadata_ != nullptr);
|
|
if (_this->_impl_.advertising_metadata_ == nullptr) {
|
|
_this->_impl_.advertising_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertising_metadata_);
|
|
} else {
|
|
_this->_impl_.advertising_metadata_->MergeFrom(*from._impl_.advertising_metadata_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.stop_reason_ = from._impl_.stop_reason_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.device_type_ = from._impl_.device_type_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.supported_service_ = from._impl_.supported_service_;
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_AdvertisingPhase::CopyFrom(const ConnectionsLog_AdvertisingPhase& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_AdvertisingPhase::InternalSwap(ConnectionsLog_AdvertisingPhase* 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_.medium_.InternalSwap(&other->_impl_.medium_);
|
|
_impl_.received_connection_request_.InternalSwap(&other->_impl_.received_connection_request_);
|
|
_impl_.adv_dis_result_.InternalSwap(&other->_impl_.adv_dis_result_);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.supported_service_)
|
|
+ sizeof(ConnectionsLog_AdvertisingPhase::_impl_.supported_service_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_.advertising_metadata_)>(
|
|
reinterpret_cast<char*>(&_impl_.advertising_metadata_),
|
|
reinterpret_cast<char*>(&other->_impl_.advertising_metadata_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_ConnectionRequest::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_ConnectionRequest>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_ConnectionRequest::ConnectionsLog_ConnectionRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ConnectionRequest_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
}
|
|
ConnectionsLog_ConnectionRequest::ConnectionsLog_ConnectionRequest(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_ConnectionRequest& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ConnectionRequest_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 ConnectionsLog_ConnectionRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_ConnectionRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
0,
|
|
offsetof(Impl_, client_flow_id_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::client_flow_id_));
|
|
}
|
|
ConnectionsLog_ConnectionRequest::~ConnectionsLog_ConnectionRequest() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_ConnectionRequest::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_ConnectionRequest& this_ = static_cast<ConnectionsLog_ConnectionRequest&>(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 ConnectionsLog_ConnectionRequest::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_ConnectionRequest(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_ConnectionRequest::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_ConnectionRequest),
|
|
alignof(ConnectionsLog_ConnectionRequest));
|
|
}
|
|
constexpr auto ConnectionsLog_ConnectionRequest::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<65>{
|
|
{
|
|
&_ConnectionsLog_ConnectionRequest_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_ConnectionRequest::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_ConnectionRequest>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_ConnectionRequest::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_ConnectionRequest>(), &ConnectionsLog_ConnectionRequest::ByteSizeLong,
|
|
&ConnectionsLog_ConnectionRequest::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionRequest_class_data_ =
|
|
ConnectionsLog_ConnectionRequest::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_ConnectionRequest::GetClassData() const {
|
|
return ConnectionsLog_ConnectionRequest_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 5, 2, 0, 2>
|
|
ConnectionsLog_ConnectionRequest::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _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),
|
|
ConnectionsLog_ConnectionRequest_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.duration_millis_)}},
|
|
// optional int64 request_delay_millis = 2;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{16, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.request_delay_millis_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{24, 2, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.local_response_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{32, 3, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.remote_response_)}},
|
|
// optional int64 client_flow_id = 5;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{40, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.client_flow_id_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.duration_millis_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional int64 request_delay_millis = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.request_delay_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.local_response_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.remote_response_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 client_flow_id = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
}},
|
|
{{
|
|
{0, 4},
|
|
{0, 4},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_ConnectionRequest::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
::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_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.client_flow_id_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ConnectionRequest::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_ConnectionRequest& this_ = static_cast<const ConnectionsLog_ConnectionRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ConnectionRequest::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_ConnectionRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// optional int64 request_delay_millis = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
|
|
stream, this_._internal_request_delay_millis(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, this_._internal_local_response(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
4, this_._internal_remote_response(), target);
|
|
}
|
|
|
|
// optional int64 client_flow_id = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
|
|
stream, this_._internal_client_flow_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:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_ConnectionRequest::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_ConnectionRequest& this_ = static_cast<const ConnectionsLog_ConnectionRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_ConnectionRequest::ByteSizeLong() const {
|
|
const ConnectionsLog_ConnectionRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
::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 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional int64 request_delay_millis = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_request_delay_millis());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_local_response());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_remote_response());
|
|
}
|
|
// optional int64 client_flow_id = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_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 ConnectionsLog_ConnectionRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_ConnectionRequest*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_ConnectionRequest&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
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_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.request_delay_millis_ = from._impl_.request_delay_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.local_response_ = from._impl_.local_response_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.remote_response_ = from._impl_.remote_response_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_ConnectionRequest::CopyFrom(const ConnectionsLog_ConnectionRequest& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_ConnectionRequest::InternalSwap(ConnectionsLog_ConnectionRequest* 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(ConnectionsLog_ConnectionRequest, _impl_.client_flow_id_)
|
|
+ sizeof(ConnectionsLog_ConnectionRequest::_impl_.client_flow_id_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_.duration_millis_)>(
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_),
|
|
reinterpret_cast<char*>(&other->_impl_.duration_millis_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_ConnectionAttempt::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_ConnectionAttempt>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ConnectionAttempt_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ConnectionAttempt::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
connection_token_(arena, from.connection_token_) {}
|
|
|
|
ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_ConnectionAttempt& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ConnectionAttempt_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_ConnectionAttempt* 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_.connection_attempt_metadata_ = (CheckHasBit(cached_has_bits, 0x00000002U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_attempt_metadata_)
|
|
: nullptr;
|
|
_impl_.operation_result_ = (CheckHasBit(cached_has_bits, 0x00000004U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::supported_service_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ConnectionAttempt::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
connection_token_(arena) {}
|
|
|
|
inline void ConnectionsLog_ConnectionAttempt::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, connection_attempt_metadata_),
|
|
0,
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, connection_attempt_metadata_) +
|
|
sizeof(Impl_::supported_service_));
|
|
}
|
|
ConnectionsLog_ConnectionAttempt::~ConnectionsLog_ConnectionAttempt() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_ConnectionAttempt::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_ConnectionAttempt& this_ = static_cast<ConnectionsLog_ConnectionAttempt&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.connection_token_.Destroy();
|
|
delete this_._impl_.connection_attempt_metadata_;
|
|
delete this_._impl_.operation_result_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_ConnectionAttempt(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_ConnectionAttempt::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_ConnectionAttempt),
|
|
alignof(ConnectionsLog_ConnectionAttempt));
|
|
}
|
|
constexpr auto ConnectionsLog_ConnectionAttempt::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<65>{
|
|
{
|
|
&_ConnectionsLog_ConnectionAttempt_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_ConnectionAttempt::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_ConnectionAttempt>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_ConnectionAttempt::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_ConnectionAttempt>(), &ConnectionsLog_ConnectionAttempt::ByteSizeLong,
|
|
&ConnectionsLog_ConnectionAttempt::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionAttempt_class_data_ =
|
|
ConnectionsLog_ConnectionAttempt::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_ConnectionAttempt::GetClassData() const {
|
|
return ConnectionsLog_ConnectionAttempt_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 14, 9, 0, 2>
|
|
ConnectionsLog_ConnectionAttempt::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
14, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294950912, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
14, // num_field_entries
|
|
9, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_ConnectionAttempt_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.duration_millis_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 4, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.type_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{24, 5, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.direction_)}},
|
|
// optional .location.nearby.proto.connections.Medium medium = 4;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{32, 6, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.medium_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{40, 7, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.attempt_result_)}},
|
|
// optional int64 client_flow_id = 6;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{48, 8, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.client_flow_id_)}},
|
|
// optional string connection_token = 7;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{58, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_token_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{66, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_attempt_metadata_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{74, 2, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.operation_result_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{80, 9, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_mode_)}},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 11;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{88, 10, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.device_type_)}},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 12;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{96, 13, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.supported_service_)}},
|
|
// optional int64 wifi_connection_latency_millis = 13;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{104, 11, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.wifi_connection_latency_millis_)}},
|
|
// optional int64 device_attestation_latency_millis = 14;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{112, 12, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.device_attestation_latency_millis_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.duration_millis_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.type_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.direction_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.Medium medium = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.medium_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.attempt_result_), _Internal::kHasBitsOffset + 7, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 client_flow_id = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional string connection_token = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_token_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_attempt_metadata_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.operation_result_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_mode_), _Internal::kHasBitsOffset + 9, 6, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.device_type_), _Internal::kHasBitsOffset + 10, 7, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 12;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.supported_service_), _Internal::kHasBitsOffset + 13, 8, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 wifi_connection_latency_millis = 13;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.wifi_connection_latency_millis_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional int64 device_attestation_latency_millis = 14;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.device_attestation_latency_millis_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>()},
|
|
{0, 3},
|
|
{0, 2},
|
|
{0, 13},
|
|
{0, 3},
|
|
{0, 1},
|
|
{0, 3},
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_ConnectionAttempt::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
::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_.connection_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(_impl_.connection_attempt_metadata_ != nullptr);
|
|
_impl_.connection_attempt_metadata_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(_impl_.operation_result_ != nullptr);
|
|
_impl_.operation_result_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.attempt_result_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.attempt_result_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
::memset(&_impl_.client_flow_id_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.supported_service_) -
|
|
reinterpret_cast<char*>(&_impl_.client_flow_id_)) + sizeof(_impl_.supported_service_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_ConnectionAttempt& this_ = static_cast<const ConnectionsLog_ConnectionAttempt&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_ConnectionAttempt& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, this_._internal_direction(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.Medium medium = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
4, this_._internal_medium(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_attempt_result(), target);
|
|
}
|
|
|
|
// optional int64 client_flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
|
|
stream, this_._internal_client_flow_id(), target);
|
|
}
|
|
|
|
// optional string connection_token = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_connection_token();
|
|
target = stream->WriteStringMaybeAliased(7, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
8, *this_._impl_.connection_attempt_metadata_, this_._impl_.connection_attempt_metadata_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
9, *this_._impl_.operation_result_, this_._impl_.operation_result_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
10, this_._internal_connection_mode(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
11, this_._internal_device_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
12, this_._internal_supported_service(), target);
|
|
}
|
|
|
|
// optional int64 wifi_connection_latency_millis = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<13>(
|
|
stream, this_._internal_wifi_connection_latency_millis(), target);
|
|
}
|
|
|
|
// optional int64 device_attestation_latency_millis = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>(
|
|
stream, this_._internal_device_attestation_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:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_ConnectionAttempt::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_ConnectionAttempt& this_ = static_cast<const ConnectionsLog_ConnectionAttempt&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_ConnectionAttempt::ByteSizeLong() const {
|
|
const ConnectionsLog_ConnectionAttempt& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
::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 connection_token = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_connection_token());
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_attempt_metadata_);
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_);
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_direction());
|
|
}
|
|
// optional .location.nearby.proto.connections.Medium medium = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_attempt_result());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
// optional int64 client_flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_flow_id());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_connection_mode());
|
|
}
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
|
|
}
|
|
// optional int64 wifi_connection_latency_millis = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_wifi_connection_latency_millis());
|
|
}
|
|
// optional int64 device_attestation_latency_millis = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_device_attestation_latency_millis());
|
|
}
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service());
|
|
}
|
|
}
|
|
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 ConnectionsLog_ConnectionAttempt::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_ConnectionAttempt*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_ConnectionAttempt&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
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_connection_token(from._internal_connection_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(from._impl_.connection_attempt_metadata_ != nullptr);
|
|
if (_this->_impl_.connection_attempt_metadata_ == nullptr) {
|
|
_this->_impl_.connection_attempt_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_attempt_metadata_);
|
|
} else {
|
|
_this->_impl_.connection_attempt_metadata_->MergeFrom(*from._impl_.connection_attempt_metadata_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(from._impl_.operation_result_ != nullptr);
|
|
if (_this->_impl_.operation_result_ == nullptr) {
|
|
_this->_impl_.operation_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_);
|
|
} else {
|
|
_this->_impl_.operation_result_->MergeFrom(*from._impl_.operation_result_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.direction_ = from._impl_.direction_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.medium_ = from._impl_.medium_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.attempt_result_ = from._impl_.attempt_result_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.connection_mode_ = from._impl_.connection_mode_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_this->_impl_.device_type_ = from._impl_.device_type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
_this->_impl_.wifi_connection_latency_millis_ = from._impl_.wifi_connection_latency_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
_this->_impl_.device_attestation_latency_millis_ = from._impl_.device_attestation_latency_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
_this->_impl_.supported_service_ = from._impl_.supported_service_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_ConnectionAttempt::CopyFrom(const ConnectionsLog_ConnectionAttempt& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_ConnectionAttempt::InternalSwap(ConnectionsLog_ConnectionAttempt* 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_.connection_token_, &other->_impl_.connection_token_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.supported_service_)
|
|
+ sizeof(ConnectionsLog_ConnectionAttempt::_impl_.supported_service_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_.connection_attempt_metadata_)>(
|
|
reinterpret_cast<char*>(&_impl_.connection_attempt_metadata_),
|
|
reinterpret_cast<char*>(&other->_impl_.connection_attempt_metadata_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_DeviceInfo::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_DeviceInfo>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_DeviceInfo::ConnectionsLog_DeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DeviceInfo_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_DeviceInfo::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
device_model_(arena, from.device_model_),
|
|
country_code_(arena, from.country_code_),
|
|
manufacturer_(arena, from.manufacturer_) {}
|
|
|
|
ConnectionsLog_DeviceInfo::ConnectionsLog_DeviceInfo(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_DeviceInfo& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DeviceInfo_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_DeviceInfo* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.device_platform_ = from._impl_.device_platform_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_DeviceInfo::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
device_model_(arena),
|
|
country_code_(arena),
|
|
manufacturer_(arena) {}
|
|
|
|
inline void ConnectionsLog_DeviceInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.device_platform_ = {};
|
|
}
|
|
ConnectionsLog_DeviceInfo::~ConnectionsLog_DeviceInfo() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_DeviceInfo::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_DeviceInfo& this_ = static_cast<ConnectionsLog_DeviceInfo&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.device_model_.Destroy();
|
|
this_._impl_.country_code_.Destroy();
|
|
this_._impl_.manufacturer_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_DeviceInfo(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_DeviceInfo::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_DeviceInfo),
|
|
alignof(ConnectionsLog_DeviceInfo));
|
|
}
|
|
constexpr auto ConnectionsLog_DeviceInfo::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<58>{
|
|
{
|
|
&_ConnectionsLog_DeviceInfo_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_DeviceInfo::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_DeviceInfo>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_DeviceInfo::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_DeviceInfo>(), &ConnectionsLog_DeviceInfo::ByteSizeLong,
|
|
&ConnectionsLog_DeviceInfo::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.DeviceInfo",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<58> ConnectionsLog_DeviceInfo_class_data_ =
|
|
ConnectionsLog_DeviceInfo::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_DeviceInfo::GetClassData() const {
|
|
return ConnectionsLog_DeviceInfo_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
|
|
ConnectionsLog_DeviceInfo::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _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),
|
|
ConnectionsLog_DeviceInfo_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string manufacturer = 4;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{34, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.manufacturer_)}},
|
|
// optional string device_model = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.device_model_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 3, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.device_platform_)}},
|
|
// optional string country_code = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.country_code_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string device_model = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.device_model_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.device_platform_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional string country_code = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.country_code_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string manufacturer = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_.manufacturer_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
{{
|
|
{0, 4},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_DeviceInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
::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_.device_model_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.country_code_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_impl_.manufacturer_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_.device_platform_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_DeviceInfo& this_ = static_cast<const ConnectionsLog_DeviceInfo&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_DeviceInfo& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string device_model = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_device_model();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_device_platform(), target);
|
|
}
|
|
|
|
// optional string country_code = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_country_code();
|
|
target = stream->WriteStringMaybeAliased(3, _s, target);
|
|
}
|
|
|
|
// optional string manufacturer = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
const ::std::string& _s = this_._internal_manufacturer();
|
|
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:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_DeviceInfo::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_DeviceInfo& this_ = static_cast<const ConnectionsLog_DeviceInfo&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_DeviceInfo::ByteSizeLong() const {
|
|
const ConnectionsLog_DeviceInfo& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
::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 device_model = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_device_model());
|
|
}
|
|
// optional string country_code = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_country_code());
|
|
}
|
|
// optional string manufacturer = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_manufacturer());
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_device_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 ConnectionsLog_DeviceInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_DeviceInfo*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_DeviceInfo&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
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_device_model(from._internal_device_model());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_country_code(from._internal_country_code());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_set_manufacturer(from._internal_manufacturer());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.device_platform_ = from._impl_.device_platform_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_DeviceInfo::CopyFrom(const ConnectionsLog_DeviceInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_DeviceInfo::InternalSwap(ConnectionsLog_DeviceInfo* 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_.device_model_, &other->_impl_.device_model_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.country_code_, &other->_impl_.country_code_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.manufacturer_, &other->_impl_.manufacturer_, arena);
|
|
swap(_impl_.device_platform_, other->_impl_.device_platform_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_DisconnectionReasonDetail::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_DisconnectionReasonDetail>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_DisconnectionReasonDetail::ConnectionsLog_DisconnectionReasonDetail(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DisconnectionReasonDetail_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
}
|
|
ConnectionsLog_DisconnectionReasonDetail::ConnectionsLog_DisconnectionReasonDetail(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DisconnectionReasonDetail& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DisconnectionReasonDetail_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 ConnectionsLog_DisconnectionReasonDetail::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_DisconnectionReasonDetail::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, is_local_disconnection_),
|
|
0,
|
|
offsetof(Impl_, disconnection_reason_) -
|
|
offsetof(Impl_, is_local_disconnection_) +
|
|
sizeof(Impl_::disconnection_reason_));
|
|
}
|
|
ConnectionsLog_DisconnectionReasonDetail::~ConnectionsLog_DisconnectionReasonDetail() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_DisconnectionReasonDetail::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_DisconnectionReasonDetail& this_ = static_cast<ConnectionsLog_DisconnectionReasonDetail&>(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 ConnectionsLog_DisconnectionReasonDetail::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_DisconnectionReasonDetail(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_DisconnectionReasonDetail::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_DisconnectionReasonDetail),
|
|
alignof(ConnectionsLog_DisconnectionReasonDetail));
|
|
}
|
|
constexpr auto ConnectionsLog_DisconnectionReasonDetail::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<73>{
|
|
{
|
|
&_ConnectionsLog_DisconnectionReasonDetail_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_DisconnectionReasonDetail::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_DisconnectionReasonDetail>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_DisconnectionReasonDetail::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_DisconnectionReasonDetail>(), &ConnectionsLog_DisconnectionReasonDetail::ByteSizeLong,
|
|
&ConnectionsLog_DisconnectionReasonDetail::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_DisconnectionReasonDetail_class_data_ =
|
|
ConnectionsLog_DisconnectionReasonDetail::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_DisconnectionReasonDetail::GetClassData() const {
|
|
return ConnectionsLog_DisconnectionReasonDetail_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
|
|
ConnectionsLog_DisconnectionReasonDetail::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _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),
|
|
ConnectionsLog_DisconnectionReasonDetail_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 1, 17,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_.disconnection_reason_)}},
|
|
// optional bool is_local_disconnection = 1;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{8, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_.is_local_disconnection_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bool is_local_disconnection = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_.is_local_disconnection_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_.disconnection_reason_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{0, 17},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_DisconnectionReasonDetail::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
::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_.is_local_disconnection_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.disconnection_reason_) -
|
|
reinterpret_cast<char*>(&_impl_.is_local_disconnection_)) + sizeof(_impl_.disconnection_reason_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DisconnectionReasonDetail::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_DisconnectionReasonDetail& this_ = static_cast<const ConnectionsLog_DisconnectionReasonDetail&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DisconnectionReasonDetail::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_DisconnectionReasonDetail& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bool is_local_disconnection = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
1, this_._internal_is_local_disconnection(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_disconnection_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:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_DisconnectionReasonDetail::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_DisconnectionReasonDetail& this_ = static_cast<const ConnectionsLog_DisconnectionReasonDetail&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_DisconnectionReasonDetail::ByteSizeLong() const {
|
|
const ConnectionsLog_DisconnectionReasonDetail& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
::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>(0x00000001U & cached_has_bits) * 2;
|
|
{
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_disconnection_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 ConnectionsLog_DisconnectionReasonDetail::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_DisconnectionReasonDetail*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_DisconnectionReasonDetail&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
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_.is_local_disconnection_ = from._impl_.is_local_disconnection_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.disconnection_reason_ = from._impl_.disconnection_reason_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_DisconnectionReasonDetail::CopyFrom(const ConnectionsLog_DisconnectionReasonDetail& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_DisconnectionReasonDetail::InternalSwap(ConnectionsLog_DisconnectionReasonDetail* 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(ConnectionsLog_DisconnectionReasonDetail, _impl_.disconnection_reason_)
|
|
+ sizeof(ConnectionsLog_DisconnectionReasonDetail::_impl_.disconnection_reason_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_.is_local_disconnection_)>(
|
|
reinterpret_cast<char*>(&_impl_.is_local_disconnection_),
|
|
reinterpret_cast<char*>(&other->_impl_.is_local_disconnection_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_EstablishedConnection::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_EstablishedConnection>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_EstablishedConnection_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_EstablishedConnection::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
sent_payload_{visibility, arena, from.sent_payload_},
|
|
received_payload_{visibility, arena, from.received_payload_},
|
|
connection_token_(arena, from.connection_token_) {}
|
|
|
|
ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_EstablishedConnection& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_EstablishedConnection_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_EstablishedConnection* 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_.operation_result_ = (CheckHasBit(cached_has_bits, 0x00000008U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_)
|
|
: nullptr;
|
|
_impl_.remote_device_info_ = (CheckHasBit(cached_has_bits, 0x00000010U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remote_device_info_)
|
|
: nullptr;
|
|
_impl_.disconnection_reason_detail_ = (CheckHasBit(cached_has_bits, 0x00000020U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_reason_detail_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::supported_service_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_EstablishedConnection::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
sent_payload_{visibility, arena},
|
|
received_payload_{visibility, arena},
|
|
connection_token_(arena) {}
|
|
|
|
inline void ConnectionsLog_EstablishedConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, operation_result_),
|
|
0,
|
|
offsetof(Impl_, supported_service_) -
|
|
offsetof(Impl_, operation_result_) +
|
|
sizeof(Impl_::supported_service_));
|
|
}
|
|
ConnectionsLog_EstablishedConnection::~ConnectionsLog_EstablishedConnection() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_EstablishedConnection::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_EstablishedConnection& this_ = static_cast<ConnectionsLog_EstablishedConnection&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.connection_token_.Destroy();
|
|
delete this_._impl_.operation_result_;
|
|
delete this_._impl_.remote_device_info_;
|
|
delete this_._impl_.disconnection_reason_detail_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_EstablishedConnection(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_EstablishedConnection::InternalNewImpl_() {
|
|
constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.sent_payload_) +
|
|
decltype(ConnectionsLog_EstablishedConnection::_impl_.sent_payload_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.received_payload_) +
|
|
decltype(ConnectionsLog_EstablishedConnection::_impl_.received_payload_)::
|
|
InternalGetArenaOffset(
|
|
::google::protobuf::MessageLite::internal_visibility()),
|
|
});
|
|
if (arena_bits.has_value()) {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(
|
|
sizeof(ConnectionsLog_EstablishedConnection), alignof(ConnectionsLog_EstablishedConnection), *arena_bits);
|
|
} else {
|
|
return ::google::protobuf::internal::MessageCreator(&ConnectionsLog_EstablishedConnection::PlacementNew_,
|
|
sizeof(ConnectionsLog_EstablishedConnection),
|
|
alignof(ConnectionsLog_EstablishedConnection));
|
|
}
|
|
}
|
|
constexpr auto ConnectionsLog_EstablishedConnection::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<69>{
|
|
{
|
|
&_ConnectionsLog_EstablishedConnection_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_EstablishedConnection::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_EstablishedConnection>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_EstablishedConnection::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_EstablishedConnection>(), &ConnectionsLog_EstablishedConnection::ByteSizeLong,
|
|
&ConnectionsLog_EstablishedConnection::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<69> ConnectionsLog_EstablishedConnection_class_data_ =
|
|
ConnectionsLog_EstablishedConnection::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_EstablishedConnection::GetClassData() const {
|
|
return ConnectionsLog_EstablishedConnection_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 14, 11, 0, 2>
|
|
ConnectionsLog_EstablishedConnection::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
14, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294950912, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
14, // num_field_entries
|
|
11, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_EstablishedConnection_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.duration_millis_)}},
|
|
// optional .location.nearby.proto.connections.Medium medium = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 7, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.medium_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{26, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.sent_payload_)}},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{34, 1, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.received_payload_)}},
|
|
// optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{40, 8, 8,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.disconnection_reason_)}},
|
|
// optional int64 client_flow_id = 6;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{48, 9, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.client_flow_id_)}},
|
|
// optional string connection_token = 7;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{58, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.connection_token_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 8;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{64, 10, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.type_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{72, 11, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.safe_disconnection_result_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{82, 3, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.operation_result_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{90, 4, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.remote_device_info_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{98, 5, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.disconnection_reason_detail_)}},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 13;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{104, 12, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.device_type_)}},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 14;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{112, 13, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.supported_service_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.duration_millis_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.proto.connections.Medium medium = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.medium_), _Internal::kHasBitsOffset + 7, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.sent_payload_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.received_payload_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.disconnection_reason_), _Internal::kHasBitsOffset + 8, 6, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 client_flow_id = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional string connection_token = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.connection_token_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.type_), _Internal::kHasBitsOffset + 10, 7, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.safe_disconnection_result_), _Internal::kHasBitsOffset + 11, 8, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.operation_result_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.remote_device_info_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.disconnection_reason_detail_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 13;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.device_type_), _Internal::kHasBitsOffset + 12, 9, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 14;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.supported_service_), _Internal::kHasBitsOffset + 13, 10, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_Payload>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_Payload>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail>()},
|
|
{0, 13},
|
|
{0, 8},
|
|
{0, 3},
|
|
{0, 2},
|
|
{0, 3},
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_EstablishedConnection::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
::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_.sent_payload_.Clear();
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_impl_.received_payload_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_impl_.connection_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(_impl_.operation_result_ != nullptr);
|
|
_impl_.operation_result_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
ABSL_DCHECK(_impl_.remote_device_info_ != nullptr);
|
|
_impl_.remote_device_info_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
ABSL_DCHECK(_impl_.disconnection_reason_detail_ != nullptr);
|
|
_impl_.disconnection_reason_detail_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.medium_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.medium_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
::memset(&_impl_.disconnection_reason_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.supported_service_) -
|
|
reinterpret_cast<char*>(&_impl_.disconnection_reason_)) + sizeof(_impl_.supported_service_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_EstablishedConnection& this_ = static_cast<const ConnectionsLog_EstablishedConnection&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_EstablishedConnection& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.Medium medium = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_medium(), target);
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_sent_payload_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_sent_payload().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_received_payload_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_received_payload().Get(i);
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, repfield, repfield.GetCachedSize(),
|
|
target, stream);
|
|
}
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_disconnection_reason(), target);
|
|
}
|
|
|
|
// optional int64 client_flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
|
|
stream, this_._internal_client_flow_id(), target);
|
|
}
|
|
|
|
// optional string connection_token = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
const ::std::string& _s = this_._internal_connection_token();
|
|
target = stream->WriteStringMaybeAliased(7, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
8, this_._internal_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
9, this_._internal_safe_disconnection_result(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
10, *this_._impl_.operation_result_, this_._impl_.operation_result_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
11, *this_._impl_.remote_device_info_, this_._impl_.remote_device_info_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
12, *this_._impl_.disconnection_reason_detail_, this_._impl_.disconnection_reason_detail_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
13, this_._internal_device_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
14, this_._internal_supported_service(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_EstablishedConnection::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_EstablishedConnection& this_ = static_cast<const ConnectionsLog_EstablishedConnection&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_EstablishedConnection::ByteSizeLong() const {
|
|
const ConnectionsLog_EstablishedConnection& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
::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)) {
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_sent_payload_size();
|
|
for (const auto& msg : this_._internal_sent_payload()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4;
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1UL * this_._internal_received_payload_size();
|
|
for (const auto& msg : this_._internal_received_payload()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional string connection_token = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_connection_token());
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_);
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.remote_device_info_);
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.disconnection_reason_detail_);
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional .location.nearby.proto.connections.Medium medium = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
// optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_disconnection_reason());
|
|
}
|
|
// optional int64 client_flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_flow_id());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptType type = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_safe_disconnection_result());
|
|
}
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
|
|
}
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service());
|
|
}
|
|
}
|
|
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 ConnectionsLog_EstablishedConnection::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_EstablishedConnection*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_EstablishedConnection&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_sent_payload()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_sent_payload());
|
|
}
|
|
if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_mutable_received_payload()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_received_payload());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_set_connection_token(from._internal_connection_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(from._impl_.operation_result_ != nullptr);
|
|
if (_this->_impl_.operation_result_ == nullptr) {
|
|
_this->_impl_.operation_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_);
|
|
} else {
|
|
_this->_impl_.operation_result_->MergeFrom(*from._impl_.operation_result_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
ABSL_DCHECK(from._impl_.remote_device_info_ != nullptr);
|
|
if (_this->_impl_.remote_device_info_ == nullptr) {
|
|
_this->_impl_.remote_device_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remote_device_info_);
|
|
} else {
|
|
_this->_impl_.remote_device_info_->MergeFrom(*from._impl_.remote_device_info_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
ABSL_DCHECK(from._impl_.disconnection_reason_detail_ != nullptr);
|
|
if (_this->_impl_.disconnection_reason_detail_ == nullptr) {
|
|
_this->_impl_.disconnection_reason_detail_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_reason_detail_);
|
|
} else {
|
|
_this->_impl_.disconnection_reason_detail_->MergeFrom(*from._impl_.disconnection_reason_detail_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.medium_ = from._impl_.medium_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.disconnection_reason_ = from._impl_.disconnection_reason_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
_this->_impl_.safe_disconnection_result_ = from._impl_.safe_disconnection_result_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
_this->_impl_.device_type_ = from._impl_.device_type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
_this->_impl_.supported_service_ = from._impl_.supported_service_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_EstablishedConnection::CopyFrom(const ConnectionsLog_EstablishedConnection& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_EstablishedConnection::InternalSwap(ConnectionsLog_EstablishedConnection* 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_.sent_payload_.InternalSwap(&other->_impl_.sent_payload_);
|
|
_impl_.received_payload_.InternalSwap(&other->_impl_.received_payload_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connection_token_, &other->_impl_.connection_token_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.supported_service_)
|
|
+ sizeof(ConnectionsLog_EstablishedConnection::_impl_.supported_service_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_.operation_result_)>(
|
|
reinterpret_cast<char*>(&_impl_.operation_result_),
|
|
reinterpret_cast<char*>(&other->_impl_.operation_result_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_DctPayloadTransferStats::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_DctPayloadTransferStats>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_DctPayloadTransferStats::ConnectionsLog_DctPayloadTransferStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DctPayloadTransferStats_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
}
|
|
ConnectionsLog_DctPayloadTransferStats::ConnectionsLog_DctPayloadTransferStats(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DctPayloadTransferStats& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DctPayloadTransferStats_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 ConnectionsLog_DctPayloadTransferStats::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_DctPayloadTransferStats::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, type_),
|
|
0,
|
|
offsetof(Impl_, num_parts_failure_) -
|
|
offsetof(Impl_, type_) +
|
|
sizeof(Impl_::num_parts_failure_));
|
|
}
|
|
ConnectionsLog_DctPayloadTransferStats::~ConnectionsLog_DctPayloadTransferStats() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_DctPayloadTransferStats::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_DctPayloadTransferStats& this_ = static_cast<ConnectionsLog_DctPayloadTransferStats&>(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 ConnectionsLog_DctPayloadTransferStats::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_DctPayloadTransferStats(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_DctPayloadTransferStats::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_DctPayloadTransferStats),
|
|
alignof(ConnectionsLog_DctPayloadTransferStats));
|
|
}
|
|
constexpr auto ConnectionsLog_DctPayloadTransferStats::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<71>{
|
|
{
|
|
&_ConnectionsLog_DctPayloadTransferStats_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_DctPayloadTransferStats::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_DctPayloadTransferStats>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_DctPayloadTransferStats::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_DctPayloadTransferStats>(), &ConnectionsLog_DctPayloadTransferStats::ByteSizeLong,
|
|
&ConnectionsLog_DctPayloadTransferStats::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_DctPayloadTransferStats_class_data_ =
|
|
ConnectionsLog_DctPayloadTransferStats::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_DctPayloadTransferStats::GetClassData() const {
|
|
return ConnectionsLog_DctPayloadTransferStats_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 5, 1, 0, 2>
|
|
ConnectionsLog_DctPayloadTransferStats::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _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
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_DctPayloadTransferStats_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .location.nearby.proto.connections.DctPayloadType type = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 0, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.type_)}},
|
|
// optional bool is_multipart = 2;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{16, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.is_multipart_)}},
|
|
// optional int32 num_parts_success = 3;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{24, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.num_parts_success_)}},
|
|
// optional int32 num_parts_failure = 4;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{32, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.num_parts_failure_)}},
|
|
// optional bool is_resumption = 5;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{40, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.is_resumption_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.DctPayloadType type = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional bool is_multipart = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.is_multipart_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional int32 num_parts_success = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.num_parts_success_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 num_parts_failure = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.num_parts_failure_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional bool is_resumption = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.is_resumption_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
}},
|
|
{{
|
|
{0, 4},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_DctPayloadTransferStats::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
::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_.type_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.num_parts_failure_) -
|
|
reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.num_parts_failure_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DctPayloadTransferStats::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_DctPayloadTransferStats& this_ = static_cast<const ConnectionsLog_DctPayloadTransferStats&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DctPayloadTransferStats::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_DctPayloadTransferStats& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.DctPayloadType type = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_type(), target);
|
|
}
|
|
|
|
// optional bool is_multipart = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
2, this_._internal_is_multipart(), target);
|
|
}
|
|
|
|
// optional int32 num_parts_success = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
|
|
stream, this_._internal_num_parts_success(), target);
|
|
}
|
|
|
|
// optional int32 num_parts_failure = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
|
|
stream, this_._internal_num_parts_failure(), target);
|
|
}
|
|
|
|
// optional bool is_resumption = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
5, this_._internal_is_resumption(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_DctPayloadTransferStats::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_DctPayloadTransferStats& this_ = static_cast<const ConnectionsLog_DctPayloadTransferStats&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_DctPayloadTransferStats::ByteSizeLong() const {
|
|
const ConnectionsLog_DctPayloadTransferStats& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
::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(0x0000000cU & cached_has_bits) * 2;
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000013U)) {
|
|
// optional .location.nearby.proto.connections.DctPayloadType type = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
// optional int32 num_parts_success = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_parts_success());
|
|
}
|
|
// optional int32 num_parts_failure = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_parts_failure());
|
|
}
|
|
}
|
|
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 ConnectionsLog_DctPayloadTransferStats::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_DctPayloadTransferStats*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_DctPayloadTransferStats&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
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_.type_ = from._impl_.type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.num_parts_success_ = from._impl_.num_parts_success_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.is_multipart_ = from._impl_.is_multipart_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.is_resumption_ = from._impl_.is_resumption_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.num_parts_failure_ = from._impl_.num_parts_failure_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_DctPayloadTransferStats::CopyFrom(const ConnectionsLog_DctPayloadTransferStats& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_DctPayloadTransferStats::InternalSwap(ConnectionsLog_DctPayloadTransferStats* 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(ConnectionsLog_DctPayloadTransferStats, _impl_.num_parts_failure_)
|
|
+ sizeof(ConnectionsLog_DctPayloadTransferStats::_impl_.num_parts_failure_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_.type_)>(
|
|
reinterpret_cast<char*>(&_impl_.type_),
|
|
reinterpret_cast<char*>(&other->_impl_.type_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_Payload::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_Payload>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_Payload::ConnectionsLog_Payload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_Payload_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_Payload::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_Payload& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0} {}
|
|
|
|
ConnectionsLog_Payload::ConnectionsLog_Payload(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_Payload& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_Payload_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_Payload* 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_.operation_result_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_)
|
|
: nullptr;
|
|
_impl_.dct_payload_transfer_stats_ = (CheckHasBit(cached_has_bits, 0x00000002U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dct_payload_transfer_stats_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
offsetof(Impl_, num_failed_auto_resume_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::num_failed_auto_resume_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_Payload::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0} {}
|
|
|
|
inline void ConnectionsLog_Payload::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, operation_result_),
|
|
0,
|
|
offsetof(Impl_, num_failed_auto_resume_) -
|
|
offsetof(Impl_, operation_result_) +
|
|
sizeof(Impl_::num_failed_auto_resume_));
|
|
}
|
|
ConnectionsLog_Payload::~ConnectionsLog_Payload() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_Payload::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_Payload& this_ = static_cast<ConnectionsLog_Payload&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.operation_result_;
|
|
delete this_._impl_.dct_payload_transfer_stats_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_Payload::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_Payload(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_Payload::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionsLog_Payload),
|
|
alignof(ConnectionsLog_Payload));
|
|
}
|
|
constexpr auto ConnectionsLog_Payload::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<55>{
|
|
{
|
|
&_ConnectionsLog_Payload_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_Payload::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_Payload>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_Payload::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_Payload>(), &ConnectionsLog_Payload::ByteSizeLong,
|
|
&ConnectionsLog_Payload::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.Payload",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<55> ConnectionsLog_Payload_class_data_ =
|
|
ConnectionsLog_Payload::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_Payload::GetClassData() const {
|
|
return ConnectionsLog_Payload_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 10, 4, 0, 2>
|
|
ConnectionsLog_Payload::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _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
|
|
4, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_Payload_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_Payload>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional int64 duration_millis = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.duration_millis_)}},
|
|
// optional .location.nearby.proto.connections.PayloadType type = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 4, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.type_)}},
|
|
// optional int64 total_size_bytes = 3;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{24, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.total_size_bytes_)}},
|
|
// optional int64 num_bytes_transferred = 4;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{32, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_bytes_transferred_)}},
|
|
// optional int32 num_chunks = 5;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{40, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_chunks_)}},
|
|
// optional .location.nearby.proto.connections.PayloadStatus status = 6;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{48, 7, 11,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.status_)}},
|
|
// optional int32 num_successful_auto_resume = 7;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{56, 8, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_successful_auto_resume_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{66, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.operation_result_)}},
|
|
// optional int32 num_failed_auto_resume = 9;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{72, 9, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_failed_auto_resume_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{82, 1, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.dct_payload_transfer_stats_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 duration_millis = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.proto.connections.PayloadType type = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.type_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 total_size_bytes = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.total_size_bytes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional int64 num_bytes_transferred = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_bytes_transferred_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional int32 num_chunks = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_chunks_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional .location.nearby.proto.connections.PayloadStatus status = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.status_), _Internal::kHasBitsOffset + 7, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int32 num_successful_auto_resume = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_successful_auto_resume_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.operation_result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional int32 num_failed_auto_resume = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.num_failed_auto_resume_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.dct_payload_transfer_stats_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats>()},
|
|
{0, 3},
|
|
{0, 11},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_Payload::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
::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_.operation_result_ != nullptr);
|
|
_impl_.operation_result_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(_impl_.dct_payload_transfer_stats_ != nullptr);
|
|
_impl_.dct_payload_transfer_stats_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.status_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.status_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
|
|
::memset(&_impl_.num_successful_auto_resume_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.num_failed_auto_resume_) -
|
|
reinterpret_cast<char*>(&_impl_.num_successful_auto_resume_)) + sizeof(_impl_.num_failed_auto_resume_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_Payload::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_Payload& this_ = static_cast<const ConnectionsLog_Payload&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_Payload::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_Payload& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.PayloadType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_type(), target);
|
|
}
|
|
|
|
// optional int64 total_size_bytes = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
|
|
stream, this_._internal_total_size_bytes(), target);
|
|
}
|
|
|
|
// optional int64 num_bytes_transferred = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
|
|
stream, this_._internal_num_bytes_transferred(), target);
|
|
}
|
|
|
|
// optional int32 num_chunks = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
|
|
stream, this_._internal_num_chunks(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.PayloadStatus status = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
6, this_._internal_status(), target);
|
|
}
|
|
|
|
// optional int32 num_successful_auto_resume = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
|
|
stream, this_._internal_num_successful_auto_resume(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
8, *this_._impl_.operation_result_, this_._impl_.operation_result_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional int32 num_failed_auto_resume = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
|
|
stream, this_._internal_num_failed_auto_resume(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
10, *this_._impl_.dct_payload_transfer_stats_, this_._impl_.dct_payload_transfer_stats_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_Payload::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_Payload& this_ = static_cast<const ConnectionsLog_Payload&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_Payload::ByteSizeLong() const {
|
|
const ConnectionsLog_Payload& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
::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 .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_);
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dct_payload_transfer_stats_);
|
|
}
|
|
// optional int64 duration_millis = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional int64 total_size_bytes = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_total_size_bytes());
|
|
}
|
|
// optional .location.nearby.proto.connections.PayloadType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
// optional int32 num_chunks = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_chunks());
|
|
}
|
|
// optional int64 num_bytes_transferred = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_num_bytes_transferred());
|
|
}
|
|
// optional .location.nearby.proto.connections.PayloadStatus status = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
|
|
// optional int32 num_successful_auto_resume = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_successful_auto_resume());
|
|
}
|
|
// optional int32 num_failed_auto_resume = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_failed_auto_resume());
|
|
}
|
|
}
|
|
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 ConnectionsLog_Payload::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_Payload*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_Payload&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
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_.operation_result_ != nullptr);
|
|
if (_this->_impl_.operation_result_ == nullptr) {
|
|
_this->_impl_.operation_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_);
|
|
} else {
|
|
_this->_impl_.operation_result_->MergeFrom(*from._impl_.operation_result_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(from._impl_.dct_payload_transfer_stats_ != nullptr);
|
|
if (_this->_impl_.dct_payload_transfer_stats_ == nullptr) {
|
|
_this->_impl_.dct_payload_transfer_stats_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dct_payload_transfer_stats_);
|
|
} else {
|
|
_this->_impl_.dct_payload_transfer_stats_->MergeFrom(*from._impl_.dct_payload_transfer_stats_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.total_size_bytes_ = from._impl_.total_size_bytes_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.num_chunks_ = from._impl_.num_chunks_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.num_bytes_transferred_ = from._impl_.num_bytes_transferred_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.status_ = from._impl_.status_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.num_successful_auto_resume_ = from._impl_.num_successful_auto_resume_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.num_failed_auto_resume_ = from._impl_.num_failed_auto_resume_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_Payload::CopyFrom(const ConnectionsLog_Payload& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.Payload)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_Payload::InternalSwap(ConnectionsLog_Payload* 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(ConnectionsLog_Payload, _impl_.num_failed_auto_resume_)
|
|
+ sizeof(ConnectionsLog_Payload::_impl_.num_failed_auto_resume_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_.operation_result_)>(
|
|
reinterpret_cast<char*>(&_impl_.operation_result_),
|
|
reinterpret_cast<char*>(&other->_impl_.operation_result_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_BandwidthUpgradeAttempt::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_BandwidthUpgradeAttempt>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_BandwidthUpgradeAttempt_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_BandwidthUpgradeAttempt::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
connection_token_(arena, from.connection_token_) {}
|
|
|
|
ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_BandwidthUpgradeAttempt& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_BandwidthUpgradeAttempt_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_BandwidthUpgradeAttempt* 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_.operation_result_ = (CheckHasBit(cached_has_bits, 0x00000002U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, duration_millis_),
|
|
offsetof(Impl_, num_ipv6_only_interfaces_) -
|
|
offsetof(Impl_, duration_millis_) +
|
|
sizeof(Impl_::num_ipv6_only_interfaces_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_BandwidthUpgradeAttempt::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
connection_token_(arena) {}
|
|
|
|
inline void ConnectionsLog_BandwidthUpgradeAttempt::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, operation_result_),
|
|
0,
|
|
offsetof(Impl_, num_ipv6_only_interfaces_) -
|
|
offsetof(Impl_, operation_result_) +
|
|
sizeof(Impl_::num_ipv6_only_interfaces_));
|
|
}
|
|
ConnectionsLog_BandwidthUpgradeAttempt::~ConnectionsLog_BandwidthUpgradeAttempt() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_BandwidthUpgradeAttempt::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_BandwidthUpgradeAttempt& this_ = static_cast<ConnectionsLog_BandwidthUpgradeAttempt&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.connection_token_.Destroy();
|
|
delete this_._impl_.operation_result_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_BandwidthUpgradeAttempt(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_BandwidthUpgradeAttempt::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_BandwidthUpgradeAttempt),
|
|
alignof(ConnectionsLog_BandwidthUpgradeAttempt));
|
|
}
|
|
constexpr auto ConnectionsLog_BandwidthUpgradeAttempt::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<71>{
|
|
{
|
|
&_ConnectionsLog_BandwidthUpgradeAttempt_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_BandwidthUpgradeAttempt::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_BandwidthUpgradeAttempt>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_BandwidthUpgradeAttempt::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_BandwidthUpgradeAttempt>(), &ConnectionsLog_BandwidthUpgradeAttempt::ByteSizeLong,
|
|
&ConnectionsLog_BandwidthUpgradeAttempt::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_BandwidthUpgradeAttempt_class_data_ =
|
|
ConnectionsLog_BandwidthUpgradeAttempt::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_BandwidthUpgradeAttempt::GetClassData() const {
|
|
return ConnectionsLog_BandwidthUpgradeAttempt_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 13, 8, 0, 2>
|
|
ConnectionsLog_BandwidthUpgradeAttempt::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
13, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294959104, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
13, // num_field_entries
|
|
8, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_BandwidthUpgradeAttempt_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 3, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.direction_)}},
|
|
// optional int64 duration_millis = 2;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{16, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.duration_millis_)}},
|
|
// optional .location.nearby.proto.connections.Medium from_medium = 3;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{24, 4, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.from_medium_)}},
|
|
// optional .location.nearby.proto.connections.Medium to_medium = 4;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{32, 5, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.to_medium_)}},
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5;
|
|
{::_pbi::TcParser::FastEvS1,
|
|
{40, 6, 4,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.upgrade_result_)}},
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{48, 8, 34,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.error_stage_)}},
|
|
// optional int64 client_flow_id = 7;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{56, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.client_flow_id_)}},
|
|
// optional string connection_token = 8;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{66, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.connection_token_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{74, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.operation_result_)}},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{80, 9, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.device_type_)}},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{88, 10, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.supported_service_)}},
|
|
// optional int32 num_interfaces = 12;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{96, 11, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.num_interfaces_)}},
|
|
// optional int32 num_ipv6_only_interfaces = 13;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{104, 12, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.num_ipv6_only_interfaces_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.direction_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 duration_millis = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional .location.nearby.proto.connections.Medium from_medium = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.from_medium_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.Medium to_medium = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.to_medium_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.upgrade_result_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.error_stage_), _Internal::kHasBitsOffset + 8, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int64 client_flow_id = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.client_flow_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional string connection_token = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.connection_token_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.operation_result_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.device_type_), _Internal::kHasBitsOffset + 9, 6, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.supported_service_), _Internal::kHasBitsOffset + 10, 7, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int32 num_interfaces = 12;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.num_interfaces_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 num_ipv6_only_interfaces = 13;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.num_ipv6_only_interfaces_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>()},
|
|
{0, 2},
|
|
{0, 13},
|
|
{0, 13},
|
|
{::_pbi::FieldAuxEnumData{}, ::location::nearby::proto::connections::BandwidthUpgradeResult_internal_data_},
|
|
{0, 34},
|
|
{0, 3},
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_BandwidthUpgradeAttempt::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
::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_.connection_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(_impl_.operation_result_ != nullptr);
|
|
_impl_.operation_result_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
|
|
::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.client_flow_id_) -
|
|
reinterpret_cast<char*>(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
|
|
::memset(&_impl_.error_stage_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.num_ipv6_only_interfaces_) -
|
|
reinterpret_cast<char*>(&_impl_.error_stage_)) + sizeof(_impl_.num_ipv6_only_interfaces_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_BandwidthUpgradeAttempt& this_ = static_cast<const ConnectionsLog_BandwidthUpgradeAttempt&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_BandwidthUpgradeAttempt& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_direction(), target);
|
|
}
|
|
|
|
// optional int64 duration_millis = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
|
|
stream, this_._internal_duration_millis(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.Medium from_medium = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, this_._internal_from_medium(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.Medium to_medium = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
4, this_._internal_to_medium(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_upgrade_result(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
6, this_._internal_error_stage(), target);
|
|
}
|
|
|
|
// optional int64 client_flow_id = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
|
|
stream, this_._internal_client_flow_id(), target);
|
|
}
|
|
|
|
// optional string connection_token = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_connection_token();
|
|
target = stream->WriteStringMaybeAliased(8, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
9, *this_._impl_.operation_result_, this_._impl_.operation_result_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
10, this_._internal_device_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
11, this_._internal_supported_service(), target);
|
|
}
|
|
|
|
// optional int32 num_interfaces = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>(
|
|
stream, this_._internal_num_interfaces(), target);
|
|
}
|
|
|
|
// optional int32 num_ipv6_only_interfaces = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>(
|
|
stream, this_._internal_num_ipv6_only_interfaces(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_BandwidthUpgradeAttempt::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_BandwidthUpgradeAttempt& this_ = static_cast<const ConnectionsLog_BandwidthUpgradeAttempt&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_BandwidthUpgradeAttempt::ByteSizeLong() const {
|
|
const ConnectionsLog_BandwidthUpgradeAttempt& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
::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 connection_token = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_connection_token());
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_);
|
|
}
|
|
// optional int64 duration_millis = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_duration_millis());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_direction());
|
|
}
|
|
// optional .location.nearby.proto.connections.Medium from_medium = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_from_medium());
|
|
}
|
|
// optional .location.nearby.proto.connections.Medium to_medium = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_to_medium());
|
|
}
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_upgrade_result());
|
|
}
|
|
// optional int64 client_flow_id = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_client_flow_id());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
|
|
// optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_error_stage());
|
|
}
|
|
// optional .location.nearby.proto.connections.DeviceType device_type = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
|
|
}
|
|
// optional .location.nearby.proto.connections.SupportedService supported_service = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service());
|
|
}
|
|
// optional int32 num_interfaces = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_interfaces());
|
|
}
|
|
// optional int32 num_ipv6_only_interfaces = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_num_ipv6_only_interfaces());
|
|
}
|
|
}
|
|
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 ConnectionsLog_BandwidthUpgradeAttempt::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_BandwidthUpgradeAttempt*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_BandwidthUpgradeAttempt&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
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_connection_token(from._internal_connection_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(from._impl_.operation_result_ != nullptr);
|
|
if (_this->_impl_.operation_result_ == nullptr) {
|
|
_this->_impl_.operation_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.operation_result_);
|
|
} else {
|
|
_this->_impl_.operation_result_->MergeFrom(*from._impl_.operation_result_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.duration_millis_ = from._impl_.duration_millis_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.direction_ = from._impl_.direction_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.from_medium_ = from._impl_.from_medium_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.to_medium_ = from._impl_.to_medium_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.upgrade_result_ = from._impl_.upgrade_result_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.client_flow_id_ = from._impl_.client_flow_id_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.error_stage_ = from._impl_.error_stage_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.device_type_ = from._impl_.device_type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_this->_impl_.supported_service_ = from._impl_.supported_service_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
_this->_impl_.num_interfaces_ = from._impl_.num_interfaces_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
_this->_impl_.num_ipv6_only_interfaces_ = from._impl_.num_ipv6_only_interfaces_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_BandwidthUpgradeAttempt::CopyFrom(const ConnectionsLog_BandwidthUpgradeAttempt& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_BandwidthUpgradeAttempt::InternalSwap(ConnectionsLog_BandwidthUpgradeAttempt* 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_.connection_token_, &other->_impl_.connection_token_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.num_ipv6_only_interfaces_)
|
|
+ sizeof(ConnectionsLog_BandwidthUpgradeAttempt::_impl_.num_ipv6_only_interfaces_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_.operation_result_)>(
|
|
reinterpret_cast<char*>(&_impl_.operation_result_),
|
|
reinterpret_cast<char*>(&other->_impl_.operation_result_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_ErrorCode::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_ErrorCode>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_._has_bits_);
|
|
static constexpr ::int32_t kOneofCaseOffset =
|
|
PROTOBUF_FIELD_OFFSET(::location::nearby::analytics::proto::ConnectionsLog_ErrorCode, _impl_._oneof_case_);
|
|
};
|
|
|
|
ConnectionsLog_ErrorCode::ConnectionsLog_ErrorCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ErrorCode_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ErrorCode::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
service_id_(arena, from.service_id_),
|
|
connection_token_(arena, from.connection_token_),
|
|
ErrorCodeDetail_{},
|
|
_oneof_case_{from._oneof_case_[0]} {}
|
|
|
|
ConnectionsLog_ErrorCode::ConnectionsLog_ErrorCode(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_ErrorCode& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ErrorCode_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_ErrorCode* 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_, flow_id_) -
|
|
offsetof(Impl_, direction_) +
|
|
sizeof(Impl_::flow_id_));
|
|
switch (ErrorCodeDetail_case()) {
|
|
case ERRORCODEDETAIL_NOT_SET:
|
|
break;
|
|
case kCommonError:
|
|
_impl_.ErrorCodeDetail_.common_error_ = from._impl_.ErrorCodeDetail_.common_error_;
|
|
break;
|
|
case kStartAdvertisingError:
|
|
_impl_.ErrorCodeDetail_.start_advertising_error_ = from._impl_.ErrorCodeDetail_.start_advertising_error_;
|
|
break;
|
|
case kStartDiscoveringError:
|
|
_impl_.ErrorCodeDetail_.start_discovering_error_ = from._impl_.ErrorCodeDetail_.start_discovering_error_;
|
|
break;
|
|
case kStopAdvertisingError:
|
|
_impl_.ErrorCodeDetail_.stop_advertising_error_ = from._impl_.ErrorCodeDetail_.stop_advertising_error_;
|
|
break;
|
|
case kStopDiscoveringError:
|
|
_impl_.ErrorCodeDetail_.stop_discovering_error_ = from._impl_.ErrorCodeDetail_.stop_discovering_error_;
|
|
break;
|
|
case kStartListeningIncomingConnectionError:
|
|
_impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_ = from._impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_;
|
|
break;
|
|
case kStopListeningIncomingConnectionError:
|
|
_impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_ = from._impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_;
|
|
break;
|
|
case kConnectError:
|
|
_impl_.ErrorCodeDetail_.connect_error_ = from._impl_.ErrorCodeDetail_.connect_error_;
|
|
break;
|
|
case kDisconnectError:
|
|
_impl_.ErrorCodeDetail_.disconnect_error_ = from._impl_.ErrorCodeDetail_.disconnect_error_;
|
|
break;
|
|
case kSendPayloadError:
|
|
_impl_.ErrorCodeDetail_.send_payload_error_ = from._impl_.ErrorCodeDetail_.send_payload_error_;
|
|
break;
|
|
case kReceivePayloadError:
|
|
_impl_.ErrorCodeDetail_.receive_payload_error_ = from._impl_.ErrorCodeDetail_.receive_payload_error_;
|
|
break;
|
|
case kUpgradeError:
|
|
_impl_.ErrorCodeDetail_.upgrade_error_ = from._impl_.ErrorCodeDetail_.upgrade_error_;
|
|
break;
|
|
case kAcceptConnectionError:
|
|
_impl_.ErrorCodeDetail_.accept_connection_error_ = from._impl_.ErrorCodeDetail_.accept_connection_error_;
|
|
break;
|
|
case kRejectConnectionError:
|
|
_impl_.ErrorCodeDetail_.reject_connection_error_ = from._impl_.ErrorCodeDetail_.reject_connection_error_;
|
|
break;
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ErrorCode::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
service_id_(arena),
|
|
connection_token_(arena),
|
|
ErrorCodeDetail_{},
|
|
_oneof_case_{} {}
|
|
|
|
inline void ConnectionsLog_ErrorCode::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, direction_),
|
|
0,
|
|
offsetof(Impl_, flow_id_) -
|
|
offsetof(Impl_, direction_) +
|
|
sizeof(Impl_::flow_id_));
|
|
}
|
|
ConnectionsLog_ErrorCode::~ConnectionsLog_ErrorCode() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_ErrorCode::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_ErrorCode& this_ = static_cast<ConnectionsLog_ErrorCode&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.service_id_.Destroy();
|
|
this_._impl_.connection_token_.Destroy();
|
|
if (this_.has_ErrorCodeDetail()) {
|
|
this_.clear_ErrorCodeDetail();
|
|
}
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
void ConnectionsLog_ErrorCode::clear_ErrorCodeDetail() {
|
|
// @@protoc_insertion_point(one_of_clear_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
switch (ErrorCodeDetail_case()) {
|
|
case kCommonError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStartAdvertisingError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStartDiscoveringError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStopAdvertisingError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStopDiscoveringError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStartListeningIncomingConnectionError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStopListeningIncomingConnectionError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kConnectError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kDisconnectError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kSendPayloadError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kReceivePayloadError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kUpgradeError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kAcceptConnectionError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kRejectConnectionError: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case ERRORCODEDETAIL_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
_impl_._oneof_case_[0] = ERRORCODEDETAIL_NOT_SET;
|
|
}
|
|
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_ErrorCode(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_ErrorCode::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_ErrorCode),
|
|
alignof(ConnectionsLog_ErrorCode));
|
|
}
|
|
constexpr auto ConnectionsLog_ErrorCode::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<57>{
|
|
{
|
|
&_ConnectionsLog_ErrorCode_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_ErrorCode::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_ErrorCode>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_ErrorCode::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_ErrorCode>(), &ConnectionsLog_ErrorCode::ByteSizeLong,
|
|
&ConnectionsLog_ErrorCode::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.ErrorCode",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<57> ConnectionsLog_ErrorCode_class_data_ =
|
|
ConnectionsLog_ErrorCode::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_ErrorCode::GetClassData() const {
|
|
return ConnectionsLog_ErrorCode_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 21, 18, 0, 2>
|
|
ConnectionsLog_ErrorCode::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
21, 56, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4292870144, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
21, // num_field_entries
|
|
18, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_ErrorCode_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string connection_token = 16;
|
|
{::_pbi::TcParser::FastBS2,
|
|
{386, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.connection_token_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 2, 2,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.direction_)}},
|
|
// optional string service_id = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.service_id_)}},
|
|
// optional .location.nearby.proto.connections.Medium medium = 3;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{24, 3, 13,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.medium_)}},
|
|
// optional .location.nearby.errorcode.proto.Event event = 4;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{32, 4, 14,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.event_)}},
|
|
// optional .location.nearby.errorcode.proto.Description description = 5;
|
|
{::_pbi::TcParser::FastEvS1,
|
|
{40, 5, 3,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.description_)}},
|
|
// optional int64 flow_id = 6;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{48, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.flow_id_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.direction_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional string service_id = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.service_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.proto.connections.Medium medium = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.medium_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.errorcode.proto.Event event = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.event_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.errorcode.proto.Description description = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.description_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
|
|
// optional int64 flow_id = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.flow_id_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// .location.nearby.errorcode.proto.CommonError common_error = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.common_error_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.StartAdvertisingError start_advertising_error = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.start_advertising_error_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kEnum)},
|
|
// .location.nearby.errorcode.proto.StartDiscoveringError start_discovering_error = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.start_discovering_error_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.StopAdvertisingError stop_advertising_error = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.stop_advertising_error_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.StopDiscoveringError stop_discovering_error = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.stop_discovering_error_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.StartListeningIncomingConnectionError start_listening_incoming_connection_error = 12;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.StopListeningIncomingConnectionError stop_listening_incoming_connection_error = 13;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_), _Internal::kOneofCaseOffset + 0, 10, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.ConnectError connect_error = 14;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.connect_error_), _Internal::kOneofCaseOffset + 0, 11, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.DisconnectError disconnect_error = 15;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.disconnect_error_), _Internal::kOneofCaseOffset + 0, 12, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// optional string connection_token = 16;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.connection_token_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.send_payload_error_), _Internal::kOneofCaseOffset + 0, 13, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.receive_payload_error_), _Internal::kOneofCaseOffset + 0, 14, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.upgrade_error_), _Internal::kOneofCaseOffset + 0, 15, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.accept_connection_error_), _Internal::kOneofCaseOffset + 0, 16, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
// .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.ErrorCodeDetail_.reject_connection_error_), _Internal::kOneofCaseOffset + 0, 17, (0 | ::_fl::kFcOneof | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{0, 2},
|
|
{0, 13},
|
|
{0, 14},
|
|
{::_pbi::FieldAuxEnumData{}, ::location::nearby::errorcode::proto::Description_internal_data_},
|
|
{0, 6},
|
|
{::_pbi::FieldAuxEnumData{}, ::location::nearby::errorcode::proto::StartAdvertisingError_internal_data_},
|
|
{31, 41},
|
|
{31, 35},
|
|
{31, 34},
|
|
{31, 40},
|
|
{31, 32},
|
|
{31, 46},
|
|
{31, 32},
|
|
{31, 32},
|
|
{31, 32},
|
|
{31, 32},
|
|
{31, 32},
|
|
{31, 32},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_ErrorCode::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_impl_.service_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.connection_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000007cU)) {
|
|
::memset(&_impl_.direction_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.flow_id_) -
|
|
reinterpret_cast<char*>(&_impl_.direction_)) + sizeof(_impl_.flow_id_));
|
|
}
|
|
clear_ErrorCodeDetail();
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_ErrorCode& this_ = static_cast<const ConnectionsLog_ErrorCode&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_ErrorCode& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_direction(), target);
|
|
}
|
|
|
|
// optional string service_id = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_service_id();
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.Medium medium = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, this_._internal_medium(), target);
|
|
}
|
|
|
|
// optional .location.nearby.errorcode.proto.Event event = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
4, this_._internal_event(), target);
|
|
}
|
|
|
|
// optional .location.nearby.errorcode.proto.Description description = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_description(), target);
|
|
}
|
|
|
|
// optional int64 flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
|
|
stream, this_._internal_flow_id(), target);
|
|
}
|
|
|
|
switch (this_.ErrorCodeDetail_case()) {
|
|
case kCommonError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
7, this_._internal_common_error(), target);
|
|
break;
|
|
}
|
|
case kStartAdvertisingError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
8, this_._internal_start_advertising_error(), target);
|
|
break;
|
|
}
|
|
case kStartDiscoveringError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
9, this_._internal_start_discovering_error(), target);
|
|
break;
|
|
}
|
|
case kStopAdvertisingError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
10, this_._internal_stop_advertising_error(), target);
|
|
break;
|
|
}
|
|
case kStopDiscoveringError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
11, this_._internal_stop_discovering_error(), target);
|
|
break;
|
|
}
|
|
case kStartListeningIncomingConnectionError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
12, this_._internal_start_listening_incoming_connection_error(), target);
|
|
break;
|
|
}
|
|
case kStopListeningIncomingConnectionError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
13, this_._internal_stop_listening_incoming_connection_error(), target);
|
|
break;
|
|
}
|
|
case kConnectError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
14, this_._internal_connect_error(), target);
|
|
break;
|
|
}
|
|
case kDisconnectError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
15, this_._internal_disconnect_error(), target);
|
|
break;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
// optional string connection_token = 16;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_connection_token();
|
|
target = stream->WriteStringMaybeAliased(16, _s, target);
|
|
}
|
|
|
|
switch (this_.ErrorCodeDetail_case()) {
|
|
case kSendPayloadError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
17, this_._internal_send_payload_error(), target);
|
|
break;
|
|
}
|
|
case kReceivePayloadError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
18, this_._internal_receive_payload_error(), target);
|
|
break;
|
|
}
|
|
case kUpgradeError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
19, this_._internal_upgrade_error(), target);
|
|
break;
|
|
}
|
|
case kAcceptConnectionError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
20, this_._internal_accept_connection_error(), target);
|
|
break;
|
|
}
|
|
case kRejectConnectionError: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
21, this_._internal_reject_connection_error(), target);
|
|
break;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_ErrorCode::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_ErrorCode& this_ = static_cast<const ConnectionsLog_ErrorCode&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_ErrorCode::ByteSizeLong() const {
|
|
const ConnectionsLog_ErrorCode& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
::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, 0x0000007fU)) {
|
|
// optional string service_id = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_service_id());
|
|
}
|
|
// optional string connection_token = 16;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_connection_token());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_direction());
|
|
}
|
|
// optional .location.nearby.proto.connections.Medium medium = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_medium());
|
|
}
|
|
// optional .location.nearby.errorcode.proto.Event event = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_event());
|
|
}
|
|
// optional .location.nearby.errorcode.proto.Description description = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_description());
|
|
}
|
|
// optional int64 flow_id = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_flow_id());
|
|
}
|
|
}
|
|
switch (this_.ErrorCodeDetail_case()) {
|
|
// .location.nearby.errorcode.proto.CommonError common_error = 7;
|
|
case kCommonError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_common_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.StartAdvertisingError start_advertising_error = 8;
|
|
case kStartAdvertisingError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_start_advertising_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.StartDiscoveringError start_discovering_error = 9;
|
|
case kStartDiscoveringError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_start_discovering_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.StopAdvertisingError stop_advertising_error = 10;
|
|
case kStopAdvertisingError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_stop_advertising_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.StopDiscoveringError stop_discovering_error = 11;
|
|
case kStopDiscoveringError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_stop_discovering_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.StartListeningIncomingConnectionError start_listening_incoming_connection_error = 12;
|
|
case kStartListeningIncomingConnectionError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_start_listening_incoming_connection_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.StopListeningIncomingConnectionError stop_listening_incoming_connection_error = 13;
|
|
case kStopListeningIncomingConnectionError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_stop_listening_incoming_connection_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.ConnectError connect_error = 14;
|
|
case kConnectError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_connect_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.DisconnectError disconnect_error = 15;
|
|
case kDisconnectError: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_disconnect_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17;
|
|
case kSendPayloadError: {
|
|
total_size += 2 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_send_payload_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18;
|
|
case kReceivePayloadError: {
|
|
total_size += 2 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_receive_payload_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19;
|
|
case kUpgradeError: {
|
|
total_size += 2 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_upgrade_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20;
|
|
case kAcceptConnectionError: {
|
|
total_size += 2 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_accept_connection_error());
|
|
break;
|
|
}
|
|
// .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21;
|
|
case kRejectConnectionError: {
|
|
total_size += 2 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_reject_connection_error());
|
|
break;
|
|
}
|
|
case ERRORCODEDETAIL_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 ConnectionsLog_ErrorCode::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_ErrorCode*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_ErrorCode&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
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_service_id(from._internal_service_id());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_connection_token(from._internal_connection_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.direction_ = from._impl_.direction_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.medium_ = from._impl_.medium_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.event_ = from._impl_.event_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.description_ = from._impl_.description_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.flow_id_ = from._impl_.flow_id_;
|
|
}
|
|
}
|
|
_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_ErrorCodeDetail();
|
|
}
|
|
_this->_impl_._oneof_case_[0] = oneof_from_case;
|
|
}
|
|
|
|
switch (oneof_from_case) {
|
|
case kCommonError: {
|
|
_this->_impl_.ErrorCodeDetail_.common_error_ = from._impl_.ErrorCodeDetail_.common_error_;
|
|
break;
|
|
}
|
|
case kStartAdvertisingError: {
|
|
_this->_impl_.ErrorCodeDetail_.start_advertising_error_ = from._impl_.ErrorCodeDetail_.start_advertising_error_;
|
|
break;
|
|
}
|
|
case kStartDiscoveringError: {
|
|
_this->_impl_.ErrorCodeDetail_.start_discovering_error_ = from._impl_.ErrorCodeDetail_.start_discovering_error_;
|
|
break;
|
|
}
|
|
case kStopAdvertisingError: {
|
|
_this->_impl_.ErrorCodeDetail_.stop_advertising_error_ = from._impl_.ErrorCodeDetail_.stop_advertising_error_;
|
|
break;
|
|
}
|
|
case kStopDiscoveringError: {
|
|
_this->_impl_.ErrorCodeDetail_.stop_discovering_error_ = from._impl_.ErrorCodeDetail_.stop_discovering_error_;
|
|
break;
|
|
}
|
|
case kStartListeningIncomingConnectionError: {
|
|
_this->_impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_ = from._impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_;
|
|
break;
|
|
}
|
|
case kStopListeningIncomingConnectionError: {
|
|
_this->_impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_ = from._impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_;
|
|
break;
|
|
}
|
|
case kConnectError: {
|
|
_this->_impl_.ErrorCodeDetail_.connect_error_ = from._impl_.ErrorCodeDetail_.connect_error_;
|
|
break;
|
|
}
|
|
case kDisconnectError: {
|
|
_this->_impl_.ErrorCodeDetail_.disconnect_error_ = from._impl_.ErrorCodeDetail_.disconnect_error_;
|
|
break;
|
|
}
|
|
case kSendPayloadError: {
|
|
_this->_impl_.ErrorCodeDetail_.send_payload_error_ = from._impl_.ErrorCodeDetail_.send_payload_error_;
|
|
break;
|
|
}
|
|
case kReceivePayloadError: {
|
|
_this->_impl_.ErrorCodeDetail_.receive_payload_error_ = from._impl_.ErrorCodeDetail_.receive_payload_error_;
|
|
break;
|
|
}
|
|
case kUpgradeError: {
|
|
_this->_impl_.ErrorCodeDetail_.upgrade_error_ = from._impl_.ErrorCodeDetail_.upgrade_error_;
|
|
break;
|
|
}
|
|
case kAcceptConnectionError: {
|
|
_this->_impl_.ErrorCodeDetail_.accept_connection_error_ = from._impl_.ErrorCodeDetail_.accept_connection_error_;
|
|
break;
|
|
}
|
|
case kRejectConnectionError: {
|
|
_this->_impl_.ErrorCodeDetail_.reject_connection_error_ = from._impl_.ErrorCodeDetail_.reject_connection_error_;
|
|
break;
|
|
}
|
|
case ERRORCODEDETAIL_NOT_SET:
|
|
break;
|
|
}
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_ErrorCode::CopyFrom(const ConnectionsLog_ErrorCode& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_ErrorCode::InternalSwap(ConnectionsLog_ErrorCode* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_, &other->_impl_.service_id_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connection_token_, &other->_impl_.connection_token_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.flow_id_)
|
|
+ sizeof(ConnectionsLog_ErrorCode::_impl_.flow_id_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, _impl_.direction_)>(
|
|
reinterpret_cast<char*>(&_impl_.direction_),
|
|
reinterpret_cast<char*>(&other->_impl_.direction_));
|
|
swap(_impl_.ErrorCodeDetail_, other->_impl_.ErrorCodeDetail_);
|
|
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_AdvertisingMetadata::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_AdvertisingMetadata>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_AdvertisingMetadata_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
}
|
|
ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_AdvertisingMetadata& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_AdvertisingMetadata_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 ConnectionsLog_AdvertisingMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
power_level_{static_cast< ::location::nearby::proto::connections::PowerLevel >(-1)} {}
|
|
|
|
inline void ConnectionsLog_AdvertisingMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, connected_ap_frequency_),
|
|
0,
|
|
offsetof(Impl_, endpoint_info_size_) -
|
|
offsetof(Impl_, connected_ap_frequency_) +
|
|
sizeof(Impl_::endpoint_info_size_));
|
|
}
|
|
ConnectionsLog_AdvertisingMetadata::~ConnectionsLog_AdvertisingMetadata() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_AdvertisingMetadata::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_AdvertisingMetadata& this_ = static_cast<ConnectionsLog_AdvertisingMetadata&>(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 ConnectionsLog_AdvertisingMetadata::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_AdvertisingMetadata(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_AdvertisingMetadata::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_AdvertisingMetadata),
|
|
alignof(ConnectionsLog_AdvertisingMetadata));
|
|
}
|
|
constexpr auto ConnectionsLog_AdvertisingMetadata::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<67>{
|
|
{
|
|
&_ConnectionsLog_AdvertisingMetadata_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_AdvertisingMetadata::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_AdvertisingMetadata>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_AdvertisingMetadata::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_AdvertisingMetadata>(), &ConnectionsLog_AdvertisingMetadata::ByteSizeLong,
|
|
&ConnectionsLog_AdvertisingMetadata::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<67> ConnectionsLog_AdvertisingMetadata_class_data_ =
|
|
ConnectionsLog_AdvertisingMetadata::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_AdvertisingMetadata::GetClassData() const {
|
|
return ConnectionsLog_AdvertisingMetadata_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 8, 1, 0, 2>
|
|
ConnectionsLog_AdvertisingMetadata::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _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),
|
|
ConnectionsLog_AdvertisingMetadata_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional int32 endpoint_info_size = 8;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{64, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.endpoint_info_size_)}},
|
|
// optional bool supports_extended_ble_advertisements = 1;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{8, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_extended_ble_advertisements_)}},
|
|
// optional int32 connected_ap_frequency = 2;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{16, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.connected_ap_frequency_)}},
|
|
// optional bool supports_nfc_technology = 3;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{24, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_nfc_technology_)}},
|
|
// optional bool multiple_advertisement_supported = 4;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{32, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.multiple_advertisement_supported_)}},
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 5;
|
|
{::_pbi::TcParser::FastErS1,
|
|
{40, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.power_level_)}},
|
|
// optional bool supports_dual_band = 6;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{48, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_dual_band_)}},
|
|
// optional bool supports_wifi_aware = 7;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{56, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_wifi_aware_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bool supports_extended_ble_advertisements = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_extended_ble_advertisements_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional int32 connected_ap_frequency = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.connected_ap_frequency_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional bool supports_nfc_technology = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_nfc_technology_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional bool multiple_advertisement_supported = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.multiple_advertisement_supported_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.power_level_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional bool supports_dual_band = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_dual_band_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional bool supports_wifi_aware = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.supports_wifi_aware_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional int32 endpoint_info_size = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.endpoint_info_size_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
}},
|
|
{{
|
|
{-1, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_AdvertisingMetadata::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
::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_.connected_ap_frequency_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.endpoint_info_size_) -
|
|
reinterpret_cast<char*>(&_impl_.connected_ap_frequency_)) + sizeof(_impl_.endpoint_info_size_));
|
|
_impl_.power_level_ = -1;
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_AdvertisingMetadata::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_AdvertisingMetadata& this_ = static_cast<const ConnectionsLog_AdvertisingMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_AdvertisingMetadata::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_AdvertisingMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bool supports_extended_ble_advertisements = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
1, this_._internal_supports_extended_ble_advertisements(), target);
|
|
}
|
|
|
|
// optional int32 connected_ap_frequency = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
|
|
stream, this_._internal_connected_ap_frequency(), target);
|
|
}
|
|
|
|
// optional bool supports_nfc_technology = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
3, this_._internal_supports_nfc_technology(), target);
|
|
}
|
|
|
|
// optional bool multiple_advertisement_supported = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
4, this_._internal_multiple_advertisement_supported(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_power_level(), target);
|
|
}
|
|
|
|
// optional bool supports_dual_band = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
6, this_._internal_supports_dual_band(), target);
|
|
}
|
|
|
|
// optional bool supports_wifi_aware = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
7, this_._internal_supports_wifi_aware(), target);
|
|
}
|
|
|
|
// optional int32 endpoint_info_size = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
|
|
stream, this_._internal_endpoint_info_size(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_AdvertisingMetadata::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_AdvertisingMetadata& this_ = static_cast<const ConnectionsLog_AdvertisingMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_AdvertisingMetadata::ByteSizeLong() const {
|
|
const ConnectionsLog_AdvertisingMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
::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(0x0000003eU & cached_has_bits) * 2;
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000c1U)) {
|
|
// optional int32 connected_ap_frequency = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_connected_ap_frequency());
|
|
}
|
|
// optional int32 endpoint_info_size = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_endpoint_info_size());
|
|
}
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_power_level());
|
|
}
|
|
}
|
|
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 ConnectionsLog_AdvertisingMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_AdvertisingMetadata*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_AdvertisingMetadata&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
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_.connected_ap_frequency_ = from._impl_.connected_ap_frequency_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.supports_extended_ble_advertisements_ = from._impl_.supports_extended_ble_advertisements_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.supports_nfc_technology_ = from._impl_.supports_nfc_technology_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.multiple_advertisement_supported_ = from._impl_.multiple_advertisement_supported_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.supports_dual_band_ = from._impl_.supports_dual_band_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.supports_wifi_aware_ = from._impl_.supports_wifi_aware_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.endpoint_info_size_ = from._impl_.endpoint_info_size_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.power_level_ = from._impl_.power_level_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_AdvertisingMetadata::CopyFrom(const ConnectionsLog_AdvertisingMetadata& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_AdvertisingMetadata::InternalSwap(ConnectionsLog_AdvertisingMetadata* 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(ConnectionsLog_AdvertisingMetadata, _impl_.power_level_)
|
|
+ sizeof(ConnectionsLog_AdvertisingMetadata::_impl_.power_level_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_.connected_ap_frequency_)>(
|
|
reinterpret_cast<char*>(&_impl_.connected_ap_frequency_),
|
|
reinterpret_cast<char*>(&other->_impl_.connected_ap_frequency_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_DiscoveryMetadata::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_DiscoveryMetadata>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DiscoveryMetadata_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
}
|
|
ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DiscoveryMetadata& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_DiscoveryMetadata_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 ConnectionsLog_DiscoveryMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
power_level_{static_cast< ::location::nearby::proto::connections::PowerLevel >(-1)} {}
|
|
|
|
inline void ConnectionsLog_DiscoveryMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, connected_ap_frequency_),
|
|
0,
|
|
offsetof(Impl_, supports_nfc_technology_) -
|
|
offsetof(Impl_, connected_ap_frequency_) +
|
|
sizeof(Impl_::supports_nfc_technology_));
|
|
}
|
|
ConnectionsLog_DiscoveryMetadata::~ConnectionsLog_DiscoveryMetadata() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_DiscoveryMetadata::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_DiscoveryMetadata& this_ = static_cast<ConnectionsLog_DiscoveryMetadata&>(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 ConnectionsLog_DiscoveryMetadata::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_DiscoveryMetadata(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_DiscoveryMetadata::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_DiscoveryMetadata),
|
|
alignof(ConnectionsLog_DiscoveryMetadata));
|
|
}
|
|
constexpr auto ConnectionsLog_DiscoveryMetadata::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<65>{
|
|
{
|
|
&_ConnectionsLog_DiscoveryMetadata_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_DiscoveryMetadata::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_DiscoveryMetadata>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_DiscoveryMetadata::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_DiscoveryMetadata>(), &ConnectionsLog_DiscoveryMetadata::ByteSizeLong,
|
|
&ConnectionsLog_DiscoveryMetadata::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_DiscoveryMetadata_class_data_ =
|
|
ConnectionsLog_DiscoveryMetadata::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_DiscoveryMetadata::GetClassData() const {
|
|
return ConnectionsLog_DiscoveryMetadata_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
|
|
ConnectionsLog_DiscoveryMetadata::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _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),
|
|
ConnectionsLog_DiscoveryMetadata_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 4;
|
|
{::_pbi::TcParser::FastErS1,
|
|
{32, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.power_level_)}},
|
|
// optional bool supports_extended_ble_advertisements = 1;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{8, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.supports_extended_ble_advertisements_)}},
|
|
// optional int32 connected_ap_frequency = 2;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{16, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.connected_ap_frequency_)}},
|
|
// optional bool supports_nfc_technology = 3;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{24, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.supports_nfc_technology_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional bool supports_extended_ble_advertisements = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.supports_extended_ble_advertisements_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional int32 connected_ap_frequency = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.connected_ap_frequency_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional bool supports_nfc_technology = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.supports_nfc_technology_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.power_level_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{-1, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_DiscoveryMetadata::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
::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_.connected_ap_frequency_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.supports_nfc_technology_) -
|
|
reinterpret_cast<char*>(&_impl_.connected_ap_frequency_)) + sizeof(_impl_.supports_nfc_technology_));
|
|
_impl_.power_level_ = -1;
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DiscoveryMetadata::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_DiscoveryMetadata& this_ = static_cast<const ConnectionsLog_DiscoveryMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_DiscoveryMetadata::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_DiscoveryMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional bool supports_extended_ble_advertisements = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
1, this_._internal_supports_extended_ble_advertisements(), target);
|
|
}
|
|
|
|
// optional int32 connected_ap_frequency = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
|
|
stream, this_._internal_connected_ap_frequency(), target);
|
|
}
|
|
|
|
// optional bool supports_nfc_technology = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
3, this_._internal_supports_nfc_technology(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
4, this_._internal_power_level(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_DiscoveryMetadata::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_DiscoveryMetadata& this_ = static_cast<const ConnectionsLog_DiscoveryMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_DiscoveryMetadata::ByteSizeLong() const {
|
|
const ConnectionsLog_DiscoveryMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
::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;
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000009U)) {
|
|
// optional int32 connected_ap_frequency = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_connected_ap_frequency());
|
|
}
|
|
// optional .location.nearby.proto.connections.PowerLevel power_level = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_power_level());
|
|
}
|
|
}
|
|
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 ConnectionsLog_DiscoveryMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_DiscoveryMetadata*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_DiscoveryMetadata&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
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_.connected_ap_frequency_ = from._impl_.connected_ap_frequency_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.supports_extended_ble_advertisements_ = from._impl_.supports_extended_ble_advertisements_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.supports_nfc_technology_ = from._impl_.supports_nfc_technology_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.power_level_ = from._impl_.power_level_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_DiscoveryMetadata::CopyFrom(const ConnectionsLog_DiscoveryMetadata& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_DiscoveryMetadata::InternalSwap(ConnectionsLog_DiscoveryMetadata* 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(ConnectionsLog_DiscoveryMetadata, _impl_.power_level_)
|
|
+ sizeof(ConnectionsLog_DiscoveryMetadata::_impl_.power_level_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_.connected_ap_frequency_)>(
|
|
reinterpret_cast<char*>(&_impl_.connected_ap_frequency_),
|
|
reinterpret_cast<char*>(&other->_impl_.connected_ap_frequency_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog_ConnectionAttemptMetadata::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog_ConnectionAttemptMetadata>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ConnectionAttemptMetadata_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ConnectionAttemptMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
network_operator_(arena, from.network_operator_),
|
|
country_code_(arena, from.country_code_) {}
|
|
|
|
ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog_ConnectionAttemptMetadata& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_ConnectionAttemptMetadata_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog_ConnectionAttemptMetadata* 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_, technology_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, technology_),
|
|
offsetof(Impl_, connected_ap_frequency_) -
|
|
offsetof(Impl_, technology_) +
|
|
sizeof(Impl_::connected_ap_frequency_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog_ConnectionAttemptMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
network_operator_(arena),
|
|
country_code_(arena) {}
|
|
|
|
inline void ConnectionsLog_ConnectionAttemptMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, technology_),
|
|
0,
|
|
offsetof(Impl_, connected_ap_frequency_) -
|
|
offsetof(Impl_, technology_) +
|
|
sizeof(Impl_::connected_ap_frequency_));
|
|
}
|
|
ConnectionsLog_ConnectionAttemptMetadata::~ConnectionsLog_ConnectionAttemptMetadata() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog_ConnectionAttemptMetadata::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog_ConnectionAttemptMetadata& this_ = static_cast<ConnectionsLog_ConnectionAttemptMetadata&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.network_operator_.Destroy();
|
|
this_._impl_.country_code_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog_ConnectionAttemptMetadata(arena);
|
|
}
|
|
constexpr auto ConnectionsLog_ConnectionAttemptMetadata::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog_ConnectionAttemptMetadata),
|
|
alignof(ConnectionsLog_ConnectionAttemptMetadata));
|
|
}
|
|
constexpr auto ConnectionsLog_ConnectionAttemptMetadata::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<73>{
|
|
{
|
|
&_ConnectionsLog_ConnectionAttemptMetadata_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog_ConnectionAttemptMetadata::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog_ConnectionAttemptMetadata>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog_ConnectionAttemptMetadata::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog_ConnectionAttemptMetadata>(), &ConnectionsLog_ConnectionAttemptMetadata::ByteSizeLong,
|
|
&ConnectionsLog_ConnectionAttemptMetadata::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_ConnectionAttemptMetadata_class_data_ =
|
|
ConnectionsLog_ConnectionAttemptMetadata::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog_ConnectionAttemptMetadata::GetClassData() const {
|
|
return ConnectionsLog_ConnectionAttemptMetadata_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<4, 15, 2, 0, 2>
|
|
ConnectionsLog_ConnectionAttemptMetadata::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
15, 120, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294934528, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
15, // num_field_entries
|
|
2, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_ConnectionAttemptMetadata_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .location.nearby.proto.connections.ConnectionTechnology technology = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 2, 11,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.technology_)}},
|
|
// optional .location.nearby.proto.connections.ConnectionBand band = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 3, 7,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.band_)}},
|
|
// optional int32 frequency = 3;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{24, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.frequency_)}},
|
|
// optional string network_operator = 4;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{34, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.network_operator_)}},
|
|
// optional string country_code = 5;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{42, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.country_code_)}},
|
|
// optional bool is_tdls_used = 6;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{48, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.is_tdls_used_)}},
|
|
// optional int32 try_counts = 7;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{56, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.try_counts_)}},
|
|
// optional bool wifi_hotspot_status = 8;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{64, 8, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.wifi_hotspot_status_)}},
|
|
// optional int32 max_tx_speed = 9;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{72, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.max_tx_speed_)}},
|
|
// optional int32 max_rx_speed = 10;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{80, 10, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.max_rx_speed_)}},
|
|
// optional int32 wifi_channel_width = 11;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{88, 11, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.wifi_channel_width_)}},
|
|
// optional int32 send_buffer_size = 12;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{96, 12, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.send_buffer_size_)}},
|
|
// optional int32 receive_buffer_size = 13;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{104, 13, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.receive_buffer_size_)}},
|
|
// optional int32 connected_ap_frequency = 14;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{112, 14, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.connected_ap_frequency_)}},
|
|
// optional bool is_mcc_mode = 15;
|
|
{::_pbi::TcParser::FastV8S1,
|
|
{120, 9, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.is_mcc_mode_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.ConnectionTechnology technology = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.technology_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.proto.connections.ConnectionBand band = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.band_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional int32 frequency = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.frequency_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional string network_operator = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.network_operator_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string country_code = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.country_code_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional bool is_tdls_used = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.is_tdls_used_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional int32 try_counts = 7;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.try_counts_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional bool wifi_hotspot_status = 8;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.wifi_hotspot_status_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
// optional int32 max_tx_speed = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.max_tx_speed_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 max_rx_speed = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.max_rx_speed_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 wifi_channel_width = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.wifi_channel_width_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 send_buffer_size = 12;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.send_buffer_size_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 receive_buffer_size = 13;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.receive_buffer_size_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional int32 connected_ap_frequency = 14;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.connected_ap_frequency_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
|
|
// optional bool is_mcc_mode = 15;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.is_mcc_mode_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
|
|
}},
|
|
{{
|
|
{0, 11},
|
|
{0, 7},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog_ConnectionAttemptMetadata::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
::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_.network_operator_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.country_code_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
|
|
::memset(&_impl_.technology_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.is_tdls_used_) -
|
|
reinterpret_cast<char*>(&_impl_.technology_)) + sizeof(_impl_.is_tdls_used_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
|
|
::memset(&_impl_.wifi_hotspot_status_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.connected_ap_frequency_) -
|
|
reinterpret_cast<char*>(&_impl_.wifi_hotspot_status_)) + sizeof(_impl_.connected_ap_frequency_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog_ConnectionAttemptMetadata& this_ = static_cast<const ConnectionsLog_ConnectionAttemptMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog_ConnectionAttemptMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.ConnectionTechnology technology = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_technology(), target);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.ConnectionBand band = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_band(), target);
|
|
}
|
|
|
|
// optional int32 frequency = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
|
|
stream, this_._internal_frequency(), target);
|
|
}
|
|
|
|
// optional string network_operator = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_network_operator();
|
|
target = stream->WriteStringMaybeAliased(4, _s, target);
|
|
}
|
|
|
|
// optional string country_code = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_country_code();
|
|
target = stream->WriteStringMaybeAliased(5, _s, target);
|
|
}
|
|
|
|
// optional bool is_tdls_used = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
6, this_._internal_is_tdls_used(), target);
|
|
}
|
|
|
|
// optional int32 try_counts = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
|
|
stream, this_._internal_try_counts(), target);
|
|
}
|
|
|
|
// optional bool wifi_hotspot_status = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
8, this_._internal_wifi_hotspot_status(), target);
|
|
}
|
|
|
|
// optional int32 max_tx_speed = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
|
|
stream, this_._internal_max_tx_speed(), target);
|
|
}
|
|
|
|
// optional int32 max_rx_speed = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>(
|
|
stream, this_._internal_max_rx_speed(), target);
|
|
}
|
|
|
|
// optional int32 wifi_channel_width = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
|
|
stream, this_._internal_wifi_channel_width(), target);
|
|
}
|
|
|
|
// optional int32 send_buffer_size = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>(
|
|
stream, this_._internal_send_buffer_size(), target);
|
|
}
|
|
|
|
// optional int32 receive_buffer_size = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>(
|
|
stream, this_._internal_receive_buffer_size(), target);
|
|
}
|
|
|
|
// optional int32 connected_ap_frequency = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>(
|
|
stream, this_._internal_connected_ap_frequency(), target);
|
|
}
|
|
|
|
// optional bool is_mcc_mode = 15;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
15, this_._internal_is_mcc_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:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog_ConnectionAttemptMetadata::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog_ConnectionAttemptMetadata& this_ = static_cast<const ConnectionsLog_ConnectionAttemptMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog_ConnectionAttemptMetadata::ByteSizeLong() const {
|
|
const ConnectionsLog_ConnectionAttemptMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
::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(0x00000380U & cached_has_bits) * 2;
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
|
|
// optional string network_operator = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_network_operator());
|
|
}
|
|
// optional string country_code = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_country_code());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionTechnology technology = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_technology());
|
|
}
|
|
// optional .location.nearby.proto.connections.ConnectionBand band = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_band());
|
|
}
|
|
// optional int32 frequency = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_frequency());
|
|
}
|
|
// optional int32 try_counts = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_try_counts());
|
|
}
|
|
// optional int32 max_tx_speed = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_max_tx_speed());
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00007c00U)) {
|
|
// optional int32 max_rx_speed = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_max_rx_speed());
|
|
}
|
|
// optional int32 wifi_channel_width = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_wifi_channel_width());
|
|
}
|
|
// optional int32 send_buffer_size = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_send_buffer_size());
|
|
}
|
|
// optional int32 receive_buffer_size = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_receive_buffer_size());
|
|
}
|
|
// optional int32 connected_ap_frequency = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this_._internal_connected_ap_frequency());
|
|
}
|
|
}
|
|
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 ConnectionsLog_ConnectionAttemptMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog_ConnectionAttemptMetadata*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog_ConnectionAttemptMetadata&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
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_network_operator(from._internal_network_operator());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_country_code(from._internal_country_code());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.technology_ = from._impl_.technology_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_impl_.band_ = from._impl_.band_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.frequency_ = from._impl_.frequency_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.try_counts_ = from._impl_.try_counts_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.max_tx_speed_ = from._impl_.max_tx_speed_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.is_tdls_used_ = from._impl_.is_tdls_used_;
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.wifi_hotspot_status_ = from._impl_.wifi_hotspot_status_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_this->_impl_.is_mcc_mode_ = from._impl_.is_mcc_mode_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_this->_impl_.max_rx_speed_ = from._impl_.max_rx_speed_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
_this->_impl_.wifi_channel_width_ = from._impl_.wifi_channel_width_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
_this->_impl_.send_buffer_size_ = from._impl_.send_buffer_size_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
_this->_impl_.receive_buffer_size_ = from._impl_.receive_buffer_size_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
|
|
_this->_impl_.connected_ap_frequency_ = from._impl_.connected_ap_frequency_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog_ConnectionAttemptMetadata::CopyFrom(const ConnectionsLog_ConnectionAttemptMetadata& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog_ConnectionAttemptMetadata::InternalSwap(ConnectionsLog_ConnectionAttemptMetadata* 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_.network_operator_, &other->_impl_.network_operator_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.country_code_, &other->_impl_.country_code_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.connected_ap_frequency_)
|
|
+ sizeof(ConnectionsLog_ConnectionAttemptMetadata::_impl_.connected_ap_frequency_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_.technology_)>(
|
|
reinterpret_cast<char*>(&_impl_.technology_),
|
|
reinterpret_cast<char*>(&other->_impl_.technology_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ConnectionsLog::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<ConnectionsLog>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_._has_bits_);
|
|
};
|
|
|
|
ConnectionsLog::ConnectionsLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:location.nearby.analytics.proto.ConnectionsLog)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::location::nearby::analytics::proto::ConnectionsLog& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
version_(arena, from.version_),
|
|
files_migration_phase_(arena, from.files_migration_phase_) {}
|
|
|
|
ConnectionsLog::ConnectionsLog(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ConnectionsLog& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, ConnectionsLog_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ConnectionsLog* 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_.client_session_ = (CheckHasBit(cached_has_bits, 0x00000004U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.client_session_)
|
|
: nullptr;
|
|
_impl_.error_code_ = (CheckHasBit(cached_has_bits, 0x00000008U))
|
|
? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.error_code_)
|
|
: 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_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ConnectionsLog::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) {}
|
|
|
|
inline void ConnectionsLog::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, client_session_),
|
|
0,
|
|
offsetof(Impl_, log_source_) -
|
|
offsetof(Impl_, client_session_) +
|
|
sizeof(Impl_::log_source_));
|
|
}
|
|
ConnectionsLog::~ConnectionsLog() {
|
|
// @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ConnectionsLog::SharedDtor(MessageLite& self) {
|
|
ConnectionsLog& this_ = static_cast<ConnectionsLog&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.version_.Destroy();
|
|
this_._impl_.files_migration_phase_.Destroy();
|
|
delete this_._impl_.client_session_;
|
|
delete this_._impl_.error_code_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL ConnectionsLog::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ConnectionsLog(arena);
|
|
}
|
|
constexpr auto ConnectionsLog::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsLog),
|
|
alignof(ConnectionsLog));
|
|
}
|
|
constexpr auto ConnectionsLog::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<47>{
|
|
{
|
|
&_ConnectionsLog_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&ConnectionsLog::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<ConnectionsLog>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ConnectionsLog::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<ConnectionsLog>(), &ConnectionsLog::ByteSizeLong,
|
|
&ConnectionsLog::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"location.nearby.analytics.proto.ConnectionsLog",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<47> ConnectionsLog_class_data_ =
|
|
ConnectionsLog::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ConnectionsLog::GetClassData() const {
|
|
return ConnectionsLog_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 6, 4, 0, 2>
|
|
ConnectionsLog::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _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
|
|
4, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
ConnectionsLog_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .location.nearby.proto.connections.EventType event_type = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 4, 6,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.event_type_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{18, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.client_session_)}},
|
|
// optional string version = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.version_)}},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{34, 3, 1,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.error_code_)}},
|
|
// optional .location.nearby.proto.connections.LogSource log_source = 5;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{40, 5, 9,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.log_source_)}},
|
|
// optional string files_migration_phase = 6;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{50, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.files_migration_phase_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .location.nearby.proto.connections.EventType event_type = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.event_type_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.client_session_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional string version = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.version_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.error_code_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .location.nearby.proto.connections.LogSource log_source = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.log_source_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional string files_migration_phase = 6;
|
|
{PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.files_migration_phase_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
{{
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ClientSession>()},
|
|
{::_pbi::TcParser::GetTable<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode>()},
|
|
{0, 6},
|
|
{0, 9},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void ConnectionsLog::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog)
|
|
::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_.version_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.files_migration_phase_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(_impl_.client_session_ != nullptr);
|
|
_impl_.client_session_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(_impl_.error_code_ != nullptr);
|
|
_impl_.error_code_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000030U)) {
|
|
::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_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ConnectionsLog& this_ = static_cast<const ConnectionsLog&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ConnectionsLog::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ConnectionsLog& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .location.nearby.proto.connections.EventType event_type = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_event_type(), target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
2, *this_._impl_.client_session_, this_._impl_.client_session_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional string version = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_version();
|
|
target = stream->WriteStringMaybeAliased(3, _s, target);
|
|
}
|
|
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, *this_._impl_.error_code_, this_._impl_.error_code_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .location.nearby.proto.connections.LogSource log_source = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, this_._internal_log_source(), target);
|
|
}
|
|
|
|
// optional string files_migration_phase = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_files_migration_phase();
|
|
target = stream->WriteStringMaybeAliased(6, _s, target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.analytics.proto.ConnectionsLog)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ConnectionsLog::ByteSizeLong(const MessageLite& base) {
|
|
const ConnectionsLog& this_ = static_cast<const ConnectionsLog&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ConnectionsLog::ByteSizeLong() const {
|
|
const ConnectionsLog& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog)
|
|
::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 string version = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_version());
|
|
}
|
|
// optional string files_migration_phase = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_files_migration_phase());
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.client_session_);
|
|
}
|
|
// optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.error_code_);
|
|
}
|
|
// optional .location.nearby.proto.connections.EventType event_type = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_event_type());
|
|
}
|
|
// optional .location.nearby.proto.connections.LogSource log_source = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_log_source());
|
|
}
|
|
}
|
|
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 ConnectionsLog::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<ConnectionsLog*>(&to_msg);
|
|
auto& from = static_cast<const ConnectionsLog&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog)
|
|
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_version(from._internal_version());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_files_migration_phase(from._internal_files_migration_phase());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(from._impl_.client_session_ != nullptr);
|
|
if (_this->_impl_.client_session_ == nullptr) {
|
|
_this->_impl_.client_session_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.client_session_);
|
|
} else {
|
|
_this->_impl_.client_session_->MergeFrom(*from._impl_.client_session_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(from._impl_.error_code_ != nullptr);
|
|
if (_this->_impl_.error_code_ == nullptr) {
|
|
_this->_impl_.error_code_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.error_code_);
|
|
} else {
|
|
_this->_impl_.error_code_->MergeFrom(*from._impl_.error_code_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_impl_.event_type_ = from._impl_.event_type_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.log_source_ = from._impl_.log_source_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ConnectionsLog::CopyFrom(const ConnectionsLog& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ConnectionsLog::InternalSwap(ConnectionsLog* 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_.version_, &other->_impl_.version_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.files_migration_phase_, &other->_impl_.files_migration_phase_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.log_source_)
|
|
+ sizeof(ConnectionsLog::_impl_.log_source_)
|
|
- PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_.client_session_)>(
|
|
reinterpret_cast<char*>(&_impl_.client_session_),
|
|
reinterpret_cast<char*>(&other->_impl_.client_session_));
|
|
}
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace proto
|
|
} // namespace analytics
|
|
} // namespace nearby
|
|
} // namespace location
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include "google/protobuf/port_undef.inc"
|